Archive for October, 2006

You are now browsing the archive for October in 2006.

Find Your Zerg Ancestors or Buy New

I was tag-searching Technorati for , and came across two interesting sponsored links:

Find Your Zerg Ancestors Now Find Zerg family history records. Create, grow and share your family tree at Ancestry.com. Download Ancestry Family Tree software and start a 14-day risk-free trial. (www.ancestry.com)

In case you can’t find your zergs, you can always buy new ones:

Looking for Zerg? Low prices, wide selection. Find exactly what you want today. (www.ebay.com)

Fibonacci with TI Basic

If you want to calculate the first few numbers in the Fibonacci sequence:

: { 1, 1 } -> L1
: 2 -> A
: While 1
: A + 1 -> A
: L1( A - 2 ) + L1( A - 1 ) -> L1
: End

You will end up with L1, a list of the first few Fibonacci numbers up to nearly 10100, where overflow will occur. If you want to print the numbers too, just add this in the while loop (second last line):

: Disp L1( A )

Subconscious Math Poem

Just like the Jamaicans have the rythm, my maths teacher has the rhyme in his blood. He undeliberately said a five-line rhyming poem today:

un
Equals ten
And n
Then
Equals eleven

Haiku #24: IB / WP

IB kills my time
WP plugins are so cool
Need multitasking

It feels like all of my time goes to my IB studies right now. When am I supposed to write my WordPress plugins? I’ve got five plugin ideas in my to-do list right now. Perhaps I should write a to-do plugin.

WP DB Backup: Backup Directory not Writeable

WordPress Database backup is one of the default plugins that come with WordPress. It is very useful, and I use it frequently on a blog on another host. However, I’ve had a problem on with this host that I hadn’t been able to solve for months. When I tried to either save, download or email the backup, I got the following error in a Javascript popup:

The backup directory is not writeable! Please check the permissions for writing to your backup directory and try again.

The page only said this:

Creating backup file…
The backup directory is not writeable!

I was sure that the pop-up was wrong — the backup-directory was chmoded to 777 (read, write and execute for everyone). Today I noticed that the owner for the backup-directory was “80″, and not “3619″ as for every other directory. Thus I deleted it and re-created it, this time by hand through the FTP client instead letting the plugin do the job.

I tried backing the database up again, and this time it worked just fine.

Haiku #23: Dream-Hex

Dreams are aestethic
Illogical, sub-concious
Not worthy of hex

I just made a very important decision: not to order the dreams in my dream log with hexadecimal. Everything looks so small in hex — just look at this haiku. #17. Actually, it’s the 24th haiku posted. Therefore, the dream count will be in decimal. Yes, my haikus are unimportant enough to write them about this.

Dream #10: Zerg-Infested Chess Players

There was a chess competition in a Terran command center. The only scene that I remembered was about a commander discussing important plans about an attack on the Zerg with his secretary. Stellan Brynell, Swedish chess champion, was also there, using the phone. He turned around, and held the phone upside-down. When the commander realized that Brynell eavesdropping on the conversation, Brynell showed that he was infested with the Zerg and shot a parasite on the commander. The secretary ran in panic.

I dreamt this during a chess competition, and the night before, I played Starcraft. I am not surprised.

Haiku #22: Cheese

Google for lyrics
All the lyrics of your dreams
With free smile downloads

I hate all the cheesy lyrics sites filled with advertisement. Either that, or I adore them. I suppose I’m just mad because I didn’t come up with the idea first. Really, they’ve got to become millionaires over and over again.

CurMusic Test

I’m testing a WordPress plugin that I just wrote, CurMusic. It creates two additional fields when you post, one for the artist and one for the song title. The idea is that it’s supposed to create statistics after a while, but I’m afraid I’m too lazy to do that. At least it writes what I’m listening to now.

I’m going away now, and will post the source code some time when I get back.

Ardour 2: ‘g_access’ was not declared in this scope

I just tried installing Ardour 2, a work station for digital audio, on 64-bit Fedora Core 4. This is the complete log from the scons command:

adamant ardour-2.0beta5.1 # scons
scons: Reading SConscript files ...
Checking for usb_interrupt_write() in C library usb... yes
Checking for FLAC__stream_decoder_new() in C++ library FLAC... no
Checking for C++ header file boost/shared_ptr.hpp... yes
Checking for lo_server_new() in C library lo... yes
Checking for dmalloc_shutdown() in C library dmallocth... no
Checking for C header file alsa/asoundlib.h... yes
Congratulations, you have a functioning C++ compiler.
system triple: x86_64-unknown-linux-gnu

*******************************
detected DIST_TARGET = x86_64
*******************************

Checking for internationalization support ...
Found xgettext
Found msgmerge
Checking for C header file libintl.h... yes
International version will be built.
Checking for C header file /System/Library/Frameworks/CoreAudio.framework/Versions/A/Headers/CoreAudio.h... no
Checking for C function posix_memalign()... yes
Checking for C header file /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h... no
Checking for C function getmntent()... yes
Checking for C header file execinfo.h... yes
Checking for jack_client_open()...ok
Checking for jack_recompute_total_latencies()...ok
Checking for JackVideoFrameOffset in jack_position_bits_t enum...failed
Checking for C function jack_port_ensure_monitor()... no

WARNING: You need at least svn revision 985 of jack for hardware monitoring to work correctly.

Checking for C header file wordexp.h... yes
Checking for C header file sys/vfs.h... yes
Checking for C header file /System/Library/Frameworks/CoreMIDI.framework/Headers/CoreMIDI.h... no
Checking for C header file /System/Library/Frameworks/AudioUnit.framework/Headers/AudioUnit.h... no
Checking for C header file /System/Library/Frameworks/AudioToolbox.framework/Headers/ExtendedAudioFile.h... no
scons: done reading SConscript files.
scons: Building targets ...
scons: `ardour.rc' is up to date.
scons: `libs/soundtouch/libsoundtouch.so' is up to date.
scons: `libs/sigc++2/sigc++config.h' is up to date.
scons: `libs/sigc++2/libsigc++2.so' is up to date.
scons: `libs/libsndfile/src/sndfile.h' is up to date.
scons: `libs/libsndfile/libsndfile.so' is up to date.
scons: `libs/glibmm2/glibmmconfig.h' is up to date.
g++ -O3 -fomit-frame-pointer -ffast-math -fstrength-reduce -DARCH_X86 -mmmx -m3dnow -msse -mfpmath=sse -DBUILD_SSE_OPTIMIZATIONS -DUSE_X86_64_ASM -Wall -DHAVE_LIBLO -DENABLE_NLS -DHAVE_GETMNTENT -Woverloaded-virtual -DPACKAGE=\"libpbd\" -D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DLIBSIGC_DISABLE_DEPRECATED -DHAVE_EXECINFO -fPIC -I/usr/include/glib-2.0 -Ilibs/sigc++2 -Ilibs/glibmm2 -I/usr/lib64/glib-2.0/include -Ilibs/pbd -I/usr/include/libxml2 -c -o libs/pbd/path.os libs/pbd/path.cc
libs/pbd/path.cc: In member function ‘bool PBD::Path::readable_directory(const std::string&)’:
libs/pbd/path.cc:63: error: ‘g_access’ was not declared in this scope
libs/pbd/path.cc: In function ‘bool PBD::find_file_in_path(const PBD::Path&, const std::string&, std::string&)’:
libs/pbd/path.cc:150: error: ‘g_access’ was not declared in this scope
scons: *** [libs/pbd/path.os] Error 1
scons: building terminated because of errors.
adamant ardour-2.0beta5.1 #

The error was:

‘g_access’ was not declared in this scope

Turns out I had just forgotten to update glib. Ardour requires at least glib 2.10.

« Later PostsEarlier Posts »
FireStats iconAnvänder FireStats