Every now and then, some USB device misbehaves badly enough to knock out the entire interface, to the extent that the system doesn’t detect any new USB devices. Or work so well with the existing ones, for that matter. The solution for me until now was to reboot the computer. But hey, I don’t like [...]
So I bought this $10 mini DV camera on EBay. Since the user’s manual is pretty out of sync with itself and the product (Chinese and English doesn’t match, even by looking at the specification and drawings) I’ve written down some basic howto, in case I need to remember what to do at a later [...]
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′, # [...]
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 [...]
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 [...]
I tried to change directory to eli from other users belonging to the group “eli” and it failed with $ cd ../eli/ -bash: cd: ../eli/: Permission denied despite everything begin OK with the classic UNIX settings. Reminder: After settings groups, there’s a need to either logout and login again, or use “su -” to refresh [...]
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 [...]
The problem It first seemed extremely odd: The IP address of my embedded Linux machine changed suddenly after a few hours, breaking the ssh connection I had up, and messing up the NFS mount. The problem turned out to be the lack of a hardware clock (RTC) on the board + clock being updated with [...]
Introduction In the past, a LiveDVD was offered along with the evaluation kit for Xillybus, to make the setup quicker. As it turned out, there was no demand for this prepackaged kit, so it’s no longer available. But the steps for creating the image are documented here anyhow. This procedure was made on Fedora 14, [...]
Git has this thing about trailing white spaces in source files, for good reasons. Somehow it looks like there isn’t a widely spread utility for cleaning up a lot of files in one go. On the other hand, there are plenty of them out there, but none met my needs. So I wrote yet another [...]