CMake GUI 

When using CMake GUI, the process is:
* Select source code directory
* Select build directory (I use a 'build' subdirectory of the source code)
* Press Configure to get a list of default settings
* Evaluate options displayed, make any changes required
* IMPORTANT: If you change any options, you need to press Configure again
* Press Generate

Multiple times I have forgotten to press Configure again before pressing Generate, leading to files not compiling as expected.

[ add comment ] ( 51 views ) permalink

squid-prefetch is a Ubuntu package was developed before Squid (the web proxy) migrated to Squid3. However it can be made to work with Squid3 with a little configuration tweaking.

You need to set squid_config_file to point to the Squid3 config file, and manually add cache_access_log to point to the Squid3 access log. (The option name changed so squid-prefetch doesn't recognize it in the Squid3 config file.)

I also set prefetch_options 1 as my usual browsing sites require this.
[ 1 comment ] ( 14884 views ) permalink
Win32 app dump debugging on Win64 

If you get an app dump for a 32bit application that was running on Win64, and try to view it, most of the symbols will be variants on wow64cpu and similar names.

In order to view this crash dump as a 32bit application, in WinDbg, use:
.load wow64exts
.effmach x86

to switch the debugger to the appropriate mode.
[ add comment ] ( 98 views ) permalink
Duplicity bug in current Ubuntu LTS 

If attempting to resume a partial backup with duplicity on Ubuntu 12.04 LTS the bug #946988 affects the current duplicity-0.6.18-0ubuntu3 package available.

Indications of this are "gpg: public key decryption failed: bad passphrase" when using GPG to encrypt and/or sign the backup.

The correction in comment #9 fixed the issue. /usr/bin/duplicity is a Python script so the modification can be applied manually.
[ add comment ] ( 73 views ) permalink
Counting lines of code 

To measure the lines of code in a codebase (on a standard Linux machine):

find -iname "*.c" -or -iname "*.cpp" -or -iname "*.h" -or -iname "*.hpp" | while read i; do wc -l "$i"; done | cut -d " " -f 1 | awk '{total = total + $1}END{print total}'

The while read is needed to join together file names with spaces (versus using -exec wc -l {} \;).
[ add comment ] ( 85 views ) permalink

<<First <Back | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | Next> Last>>