Category: Uncategorized
-
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…
-
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.
-
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 toserver: username: unbound directory: /var/unbound chroot: /var/unbound pidfile: /var/run/local_unbound.pid auto-trust-anchor-file: /var/unbound/root.key module-config: “iterator”
-
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 * src/fEngine/f/Default.cpp * src/fEngine/f/ElIf.cpp * src/fEngine/f/Else.cpp * src/fEngine/f/Footer.cpp * src/fEngine/f/Foreach.cpp *…
-
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 runzip -FF path-to-multivolume-zip –out path-to-singlezipto convert to single volume, then you can unzip that one as usual.
-
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/nullorgcc -dM -E -xc++ /dev/null