Guides

by

The following Perl script uses regular expressions to parse a text file called myFile.txt and replace any occurrence of the character sequence REPLACE with the string (or number) stored in $NEWTEXT. The modified text file is saved as myNewFile.txt. #!/usr/bin/perl $NEWTEXT = “New Stuff”; # could also be a number open(INPUT, “< myFile.txt") or die

by

Use a terminal command like the following to runs a MATLAB script in the background under Linux, Mac OS X, etcetera. nohup matlab -nodisplay < runProgram.m > outputFile & The nuhup command tells the OS to ignore hangups so the user who enters this command can log out and the program will still be running

by

Most motherboards have a feature that I have been aware of for some time but have not tried until recently. It is called wake-on-LAN (WOL) and gives you the ability to wake a computer simply by sending it a “magic packet” from any other machine on the local area network (LAN). A magic packet is

by

If you followed this guide, your Ubuntu machine can now serve files to Macs on your local area network (LAN) using AFP. It would be nice if this Ubuntu/Netatalk Apple file server was discovered automatically by your Macs. This can be accomplished by installing Avahi, an implementation of Zeroconf similar to Apple’s Bonjour that allows

by

Apple computers communicate with one another using the Apple Filing Protocol (AFP). Using the freely-available implementation of this protocol called Netatalk, Ubuntu can interface with Mac OS X and you can set up a AppleShare file server on a Ubuntu machine that is accessible to Macs on your local area network (LAN). To install Netatalk