Making a click-for-help window with jQuery’s tooltip widget

Intro I needed some neat overlay to appear when the user clicks those question-mark icons on a specific, Drupal-based page. So I went for using jQuery’s tooltip widget, with due adaptations. It turned out to be a wise choice. The idea is simple: Click on the question mark, an overlay window appears right underneath it, [...]

A perl script sending mails for testing a mail server

Just set up your mail server? Congratulations! Now you should test it. In particular, check if it relays mails to other servers and if the response time is reasonable. Here’s a script for doing the testing. Just edit the arguments to send_mail() to match your setting. #!/usr/bin/perl use warnings; use strict; use Net::SMTP; send_mail(’127.0.0.1′, # [...]

Perl script rectifying the encoding of a mixed UTF-8 / windows-1255 file

Suppose that some hodge-podge of scripts and template files create a single file, which has multiple encoding of Hebrew. That is, both UTF-8 and windos-1255. If the different encodings don’t appear in the same lines, the following script makes it all UTF-8: #!/usr/bin/perl use strict; use warnings; use Encode; binmode(STDOUT, “:utf8″); while (defined (my $l [...]

Setting up a VPS server. It was a bumpy road.

Introduction These are my own notes as I set up an OpenVZ VPS server, based upon CentOS 5.6 to function as a web and mailing list server. A $36/year 128 MB RAM machine was good enough for this. Since there’s some criticism about the hosting provider, and it looks like they’re OK after all, I’m [...]

Fax to PC on HP Officejet 4500

I bought the Officejet 4500 to be able to send and receive faxes every now and then, use it as a scanner, and actually never print with it. I’m not sure I would recommend this to anyone. Not that it matters much, as it’s pretty phased out. Anyhow, the overall feeling about this machine and [...]

Workaround: “git push” from msysgit (git for Windows) hangs

I had set up my plain git-daemon and everything seemed to work fine, until I tried it from Windows. It just didn’t return from the command. According to a discussion in a newsgroup, the problem is a bug in msysgit’s implementation of side-band-64k, whatever that is. Personally, even if an upgrade to msysgit existed, or [...]

Pretty-Printing with XEmacs under FC12

Yet another thing that should have been so simple, but required hacking. Using (Beta) Xemacs 21.5.29, it didn’t have a menu item for pretty printing. Nor was there a clear way to connect with CUPS. First thing first, make sure to have a nice popup for printing. If not for any other reason, it gives [...]

Windows device drivers: Notes to self

Yet another messy post with just things I wrote down while developing a device driver for Windows. Not necessary coherent, not necessarily accurate. General notes while playing around To start Windows 10 allowing installation of unsigned drivers, hold Shift while selecting “Restart” in the Power menu. Windows will appear to restart normally, but enters a [...]

Authoritative timestamping: Some silly games

Ever wanted to prove you knew something before everyone else? Here’s the way: You write it down in a file, and timestamp it. Then, when you want to prove you were there first, you’ll show the original file, the signed timestamp, and then everyone know you’re a hopeless geek. But this can help a bit [...]

When Cygwin gets fussy about forking a new process

Things like 3 [main] bash 2216 child_info_fork::abort: data segment start: parent(0x26D000) != child(0x38D000) -bash: fork: retry: Resource temporarily unavailable It appears to be a recent Red Hat mishap. One of those bugs that happen because of the common belief that if you don’t play around with your software all the time, it will be considered [...]