Linux

Change file date in linux using touch

To change the date on all files in a folder to 19th February 2009 at 18:00 using the linux command touch # touch * -t “200902191800” It’s a nice way to correct file dates. Replace * with the actual file name if you don’t want to correct all files in the current folder.

Read More
Scripting

Valid Flash

I’ve gotten tired of my Flashpresentation movies not being valid HTML. After some research and a tip from a friend of mine I found this solution to the problem. <object type=”application/x-shockwave-flash” data=”images/banner.swf” width=”288″ height=”128″> <param name=”movie” value=”images/banner.swf” /> <img src=”banner.gif” width=”288″ height=”128″ alt=”banner” /> </object> It works great and shows a image file if Flash […]

Read More
Linux

Using Forte Agent Newsreader in linux with SSL support

This post describes how you can connect to a NNTP news servers that provides SSL support with your Forte Agent Newsreader version 6.0 under Ubuntu linux. I assume you know how to install Forte Agent in linux or access it from a Windows partition and will not describe that in this post. Installing wine # […]

Read More
Scripting

Enable secure / https SSL login on mediaWiki 1.13.3

This is how I’ve enabled secure SSL login through https on a mediaWiki 1.13.3 installation. This description might work on other versions of mediaWiki, but that has not been tested. mediWiki doesn’t support SSL login out of the box so a little hack has to be performed. First you need to tell the webserver, in […]

Read More
Scripting

Copy files using tar

This is a oneliner to copy files from current directory to another target directory using tar, preserving file attributes, dates etc. #!/bin/sh fromdir=/path/from todir=/path/to/target echo “cd $fromdir; tar cf – . | (cd $todir; tar xpf -)” cd $fromdir; tar cf – . | (cd $todir; tar xpf -)

Read More