Kill a GNU Screen Session from the Command Line

This article is about GNU Screen – you can read about GNU Screen here: http://www.gnu.org/software/screen/ There may be times when you have multiple, or even a single, screen session which you want to kill without attaching to it and ending it as you normally would. You can kill a screen session using the session ID or the …

How to Stop .DS_Store From Being Created on Network Drives (OS X)

.DS_Store files can make even the tidiest network shares look horrible to none-OS X users. Whenever an OS X machine accesses a network share, it creates a .DS_Store file for it’s own use (on SMB/CIFS, AFP, NFS, and WebDAV servers).  These files are invisible to the OS X user, but will show up to anyone …

Removing packages only installed as dependancies and no longer needed (Ubuntu, Debian)

We’ve all installed packages, using apt-get, where it’s installed a lot of other packages to satisfy dependancies. But what if you remove that package at a later date that needed all of those dependancies?  You’ll probably find it’s left the dependancies installed.. and if you’ve not installed any other packages which also need those dependacies, …

Windows 7 Experience Index Performance on the Atom-powered, Asus 1005HA Netbook

The question of “How does Windows 7 run on ………….” is often asked. I’ve been running an Asus Seashell 1005HA (6-Cell Battery, 63Wh) with Windows 7 for some time now, and use it as my main machine 90% of the time. Just as a side note, the only thing I have done is upgraded the …

Finding out when (and where from) a user last logged into a Linux/BSD machine

There may be times when you want to find out when and where from a user last logged into a Linux or BSD machine. Of course, you could trawl through auth logs, but there is a quicker way by using “lastlog“. lastlog is a command which shows you the last login time and also from …

iPhone Apps Not Launching? Do they Open and then Close Instantly?

Have you been happily using all of your third party apps from the AppStore for ages, and then, one day, none of them load? We’ve all had applications which seem to start loading then close instantly.. but what if they are all doing it?  The default Apple applications work fine, but your downloaded ones don’t. …

No E-Mail Client in Windows 7? Where’s Windows Mail or Outlook Express?

So, you’ve just installed Windows 7 and go to add your e-mail account. You go to Start, and look for Mail – it’s not there. You look in All Programs – same story, it’s not there, it’s “missing” – so, what do you do? Microsoft have removed the default e-mail client found in Vista, Windows …

Reading STDIN to PHP from the Command Line (CLI)

There may be times when you want to read from STDIN to a PHP script you’ve created from the command line. Code below: $in = fopen(‘php://stdin’, ‘r’); while(!feof($in)){     $text = $text . fgets($in, 4096); } What this will do is read from STDIN, and create a $text variable of the contents.  It does this …