Ivan Radovanovic's picture

If Java applets don't work after installing IcedTea

Obviously plugin has to be enabled when building IcedTea. Apparently some systems (like iLo) can't use java web start with OpenJDK. For them applets have to be used but by default they won't open in Firefox - for iLo to work without surprises it is necessary to choose "always activate" for java plugin (Tools > Add-ons > Plugins, then find IcedTea-Web and choose "Always Activate" for it).

Ivan Radovanovic's picture

Mono 4.8.1 with TLS 1.2 on FreeBSD

TLS 1.2 is not enabled in default version of Mono 4.8.1 port for FreeBSD.

Ivan Radovanovic's picture

MATE 1.12.1 and FreeBSD 10.3

One place to put all little tweaks to make it work better with FreeBSD.

Ivan Radovanovic's picture

Too much antialiasing when rendering fonts with new freetype2

In case there is too much antialiasing there it can be reverted to old behavior by setting environment variable FREETYPE_PROPERTIES to truetype:interpreter-version=35 (port gives suggestion of using "truetype:interpreter-version=35 cff:no-stem-darkening=1 autofitter:warping=1" but for me these extra options make no difference). More about available options can be found in freetype2 documentation (/usr/local/share/doc/freetype2/reference/ft2-toc.html section "Controlling FreeType Modules", if documentation is installed).

Ivan Radovanovic's picture

Programming fonts

I was for very long time happy with Bitstream Vera Sans Mono, but since lately it doesn't show that well on my monitor any more. I thought finding nice looking development font would be 5 minutes of browsing, but apparently it was not that easy. I found this website with lot of programming fonts and I tested many of them, but I liked only few - those are:

Ivan Radovanovic's picture

Directory Permissions for ASP.Net Web Applications

If configuring with default settings make sure to add privileges to user "IIS AppPool\name_of_the_pool".

When testing application if using only IP make sure that checking hostname in request header is not enabled.

Ivan Radovanovic's picture

Unbound without DNSSEC on FreeBSD 10

After initial installation according to instructions in handbook, you have to edit /var/unbound/unbound.conf and to add module-config: "iterator" to server section there, so it looks similar to

server:
username: unbound
directory: /var/unbound
chroot: /var/unbound
pidfile: /var/run/local_unbound.pid
auto-trust-anchor-file: /var/unbound/root.key

Ivan Radovanovic's picture

Useful one-liner for building template git comment

Goes like this:
git status | grep modified: | awk 'BEGIN {FS="[ \t]+modified:[ \t]+";print "Change summary\n";} {print "* " $2 "\t\n";}'

Sample output:

Change summary

* include/Application.hpp

* include/fengine.hpp

* nginx.sh

* samples/if.ftx

* src/fEngine/compiling/Compiler.cpp

* src/fEngine/compiling/Compiling.cpp

* src/fEngine/f/Alt.cpp

* src/fEngine/f/BuiltInTag.cpp

* src/fEngine/f/Case.cpp

* src/fEngine/f/CodeGenerator.cpp

Ivan Radovanovic's picture

Unzip multivolume zip file on FreeBSD

It can be done with port installed, but first multivolume zip has to be converted to single volume zip file.

First run
zip -FF path-to-multivolume-zip --out path-to-singlezip
to convert to single volume, then you can unzip that one as usual.

Ivan Radovanovic's picture

How to find out which preprocessor symbols are defined for C/C++ compiler

Run compiler with arguments -dM -E -xc++ /dev/null. (-x specifies language, so if you want to see predefined symbols for C, you should use -xc instead of -xc++).

For example:
clang -dM -E -xc++ /dev/null

or
gcc -dM -E -xc++ /dev/null

Pages

Subscribe to codenicer.com RSS