Tuesday, September 8, 2009

Batch convert EPS to PDF

In Mac OS X, the application Preview will automatically open your EPS files as PDFs and offer you to save it as PDF when you are done. However, sometimes it does not manage to convert to PDF properly. You may then resort to the command ps2pdf

To batch convert several EPS files in your current directory, do the following at a command line prompt:
FILES="*.eps"
for f in $FILES; do ps2pdf -dEPSCrop $f; done

This will convert all your EPS files to PDF and ensure that they are cropped properly. If you actually prefer to use an entire A4 (or letter size) page for your figure, leave out the -dEPSCrop flag.

Sunday, September 6, 2009

Adding a style (*.sty) file to your TexLive LaTeX installation

There are a few reasons you may need to add a style (*.sty) file to your LaTeX distribution manually instead of using the repositories. First, you may have obtained a newer version than the one that exists in the repos. Second, the style file may not even exist in the repos. 

The following works for a TexLive installation in OS X (and possibly other UNIX systems):

sudo mv foo.sty /usr/local/texlive/texmf-local/tex/latex/foo/

where foo is the style file you want to add. Afterwards, make sure you run 

sudo texhash

to ensure that TexLive discovers your added file.

Sunday, June 21, 2009

Opera Unite - a web revolution?

Opera Unite (release 10 beta) is the latest version of the Opera browser (stable release 9.64). It integrates a web server tool, which allows you to share content on your computer directly instead of uploading to (sometimes costly) remote servers.

The Unite API is available and users are encouraged to write their own applications. Opera has provided a few applications already to demonstrate the possibilies of Unite: The Fridge (for visitors to leave messages on post-it notes), the Web Server (you can share your web directory), File Sharing (access to a directory and subdirectories/files), the Lounge (a chat room), Photo Sharing (includes a simple album browser and possibility to download entire photos),  and a Media Player (visitors can play music on your computer directly in their browser). 

Importantly, visitors do not need to be Unite users to use your Unite applications.

As the number of applications grow when users submit their application, Opera Unite can very well be the next big thing in cloud computing.

You may want to try locksley90's Unite page!


Dropbox - a free solution for syncing files across computers

Dropbox is a program for syncing directories and files across your computers. When you add or remove something on one computer, the changes are updated to all your other computers. This way you always have the latest version of your files both a work and at home. 

Moreover, a web interface allows you to access your Dropbox directory on any computer with internet access. Thus, if you sit down at some random internet cafe while on vacation, you can still access, upload, and modify your files! This is very useful for keeping a backup copy of your passport, tickets, or other valuable files. 

The free version of Dropbox gives you 2 GB of storage, however, by using the link below both you and I get an extra 250 MB :)

https://www.getdropbox.com/referrals/NTEyMTMzNTQ5

Sunday, May 3, 2009

Get Spotify without an invite

Spotify requires an invite to install on your computer. However, there is a workaround:

  1. Go to http://lazyfoo.co.uk/
  2. In the URL field, enter https://www.spotify.com/en/get-started/
  3. Enter your registration details to create a Spotify account and download the software.

Apparently this works because UK citizens are allowed to register, but the rest of us are not. The workaround routes your traffic via a proxy so that you appear to be a UK citizen. Once registered, you need not worry about this.

Good luck!