archives

Date

Javascript - Override a Function and Retain the Old One Too

<SCRIPT language=javascript>
var base_foo;
function foo(yourname){
    alert('Hello ' + yourname);
}

base_foo = foo;

foo = function(yourname){
    alert('(overide) Hello ' + yourname);
}
</SCRIPT>

From http://dataerror.blogspot.com/2005/08/javascript-function-overriding-part-2.html

TiddlyWiki and Firefox 3 Security Prompt

When TiddlyWiki goes to save a file, in Firefox, you get the following dialog

=====

Internet Security

A script from "file://" is requesting enhanced abilities that are UNSAFE and could be used to compromise your machine or data

=====

Rebooting Linux (Centos 3) Virtual Server

I am using a virtual server from Rose Hosting.  It runs Centos 3.  When I try to reboot, it fails with a mesage:

  • init: /dev/initctl: no such file or directory

Running:

  • $mkfifo /dev/initctl

seems to have corrected the problem.  I'm not sure whether I eventually ran "reboot -f" or "init 6" to reboot.

 

Oracle exp (and other utilities) Without TNSNAMES

It is possible to run the Oracle exp or imp (and probably other commands) without getting your tnsnames.ora and your environment variables 100% right.  (You will need them at least part-way right.) Here's how to run exp:

exp userid/password@sidname direct=y recordlength=65535 feedback=1000 file=test1.dmp log=test1.log tables=(TABLENAME)

Note: sidname might be globalname instead; I'm not sure.

Chandler PIM, iCalendar, and Outlook (Oh my!)

I thought I'd take a look at Chandler for GTD.  I downloaded and installed Chandler_win_1.0-rc1.exe.  That was the easy part.  Then I had to import my Outlook data.

Chandler can import .ics files (only). In case you're unaware, Outlook 2003 can export a .ics file, but it
exports one per event.  This doesn't work for my 1000+ events.

Playing Audible.com AA Files in the Car

I wanted to be able to play audio books from Audible.com in my car.  I don't have an iPod in this car, but my car stereo does have an audio input jack.  I have a cheap MP3 player.  So I thought I'd load an audio book to the MP3 player, to listen to in the car.

I tried using the DirectShow filter for .aa files, with multiple applications such as dbPowerAmp and GoldWave.  It sorta worked, but some books got cut off a few minutes before the end.  Consistently.

Music Players

I'm taking a fresh look at iPod-enabled music players.  Current candidates include:

  • iTunes
  • Songbird + its iPod-enabling add-on
  • Floola
  • Yamipod

Yeah, I'm Windows, so Mac-only and Linux-only players are out.  I don't want to be further locking myself into Windows, so Windows-only players like Winamp are out.  I'm not a glutton for punishment, so WINE+Linux doesn't count as being able to run a Windows-only player in Linux.

Outliners

I've been using My Life Organized (MLO) for Getting Things Done.  Since it is really just an outliner that can synch with Outlook Tasks, I thought I'd take a look at the general category of outliners.

Things I want from an outliner:

Virtualbox Networking Via Microsoft Loopback Adapter

There are some bugs in the VirtualBox "Shared Folders" feature.  It can be convenient to work-around this in a secure way by using the Microsoft Loopback Adapter.   Here's how I set it up for a Windows XP guest running on an XP host.

Unison on Windows

Running the Windows edition of Unison has a problem.  Synchronizing small sets of files works nicely.  Synchronizing large file sets (hundreds of thousands of files and about 30 GB) will just stop sometimes.  The client says that it is waiting for updates from the server.  The server side isn't doing any I/O or burning any CPU (per task manager).  It just sits.