Tuesday, December 11, 2012

find files between two dates

Here's a quick tip for how you can find a file between two dates.
Suppose you are looking for a file you know you worked with last friday. At the time of writing this would be on december 7th. Using the find command you can go to your terminal and add the following code:

find . -type f -newerat "2012-12-07" -not -newerat "2012-12-08"


This would search for files acessed between dec. 7th and dec. 8th.
This code snippet also shows an example of how to use the -newerXY parameter of the find -command.

Tuesday, November 27, 2012

Vmware Server 2 - "Failed to initialize monitor device."

After rebooting the server my virtual machines would not start up again. Neither automatically nor manually. This problem had me confused for a while but I finally found a simple solution.

The problem was that kvm-intel module was loaded, so simply removing this, and restarting the vmware service was sufficient to restart my virtual machines.

sudo rmmod kvm-intel
sudo service vmware restart

After this my virtual machines had no problem starting.

Wednesday, November 7, 2012

Backup your images on JottaCloud

On JottaCloud you can easily backup your images or files. I use JottaCloud to save a backup of the images I take on my Android phone.

Sunday, September 30, 2012

Scaling a pdf file from A3 to A4

This is just a quick tip for converting a pdf file from one pagesize to another.
By using the command convert this is easily achieved.

This is the quickest way I've found to do this:


convert -page a3 infile.pdf -page a4 outfile.pdf

The outfile.pdf should now be sized as an A4 page.
The command is as follows: convert [input file options] infile.pdf [output file options] outfile.pdf

Of course it is possible to convert to and from other sizes as well.

Sunday, September 23, 2012

SSH without password prompting

Usually while working on different computers I am using SSH. Being prompted for a password is not a favourite of mine, so I set up my computers to connect without needing a password. It's easier than you think.

Tuesday, September 11, 2012

Free E-books

Just a quick tip for everyone who likes to learn more.
At BookBoon.com you'll find a few good pdf-books free to download.


As always there is a small cath; there are a few adverts in these books.