what is the meaning of restrict in the function signature?

It’s something introduced in C99 which lets the compiler know that the pointer passed in there isn’t pointing to the same place as any other pointers in the arguments. If you give this hint to the compiler, it can do some more aggressive optimizations without breaking code. As an example, consider this function: int add(int … Read more

Start JBoss 7 as a service on Linux

After spending a couple of hours of snooping around I ended up creating /etc/init.d/jboss with the following contents #!/bin/sh ### BEGIN INIT INFO # Provides: jboss # Required-Start: $local_fs $remote_fs $network $syslog # Required-Stop: $local_fs $remote_fs $network $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start/Stop JBoss AS v7.0.0 … Read more

Good diff tools under Ubuntu GNOME

Meld is an actively-developed, open-source GUI-based diff utility targeted at developers. It is free It runs on Linux GNU License 40+ posts tagged as meld on Stack Overflow. Actively developed through February 2013 (the time of this posting) Allows two and three way comparison between files and folders Supports Subversion, Git, and Mercurial