How to handle Flag Arguments

January 23, 2012

Martin Fowler’s Website is teaching about the do’s and don’ts of handling flag arguments

A flag argument is a kind of function argument that tells the function to carry out a different operation depending on its value. Let’s imagine we want to make booking for a concert. There are two ways to do this: regular and premium .

If you are interested in improving your coding skills read the whole article.

BibTex information for books?

November 30, 2011

If your are citing books and you are sick of creating the BibTex data for yourself: Cheer up, there is a easy way to get the data created. You just have to get the ISBN Number of the book (easiest by finding the book on wikipedia). Then you use the OttoBib webservice. Just replace the ISBN number in this example

http://www.ottobib.com/isbn/9780199535705/bibtex

Calling this URL gives you

@Book{marx2008capital,
author = {Marx, Karl},
title = {Capital : an abridged edition},
publisher = {Oxford University Press},
year = {2008},
address = {Oxford New York},
isbn = {9780199535705}
}

Easy and a real life saver….

Alternative to GoogleReader? rsslounge

August 25, 2011

Maybe you are one of the people who is using GoogleReader not because you like Google that much, but because you are not aware of a nice online alternative.

organize and read your feeds, set priorities, filter your feeds and items and fetch news, images and photos in a really easy way
simple ⋅ free ⋅ open source

You can install rsslounge on your own server. You just need apache/php/mysql.

Where is the RSS Feed Icon in Firefox 4?

July 31, 2011

Have you ever asked yourself: Where the $&”(% is the RSS Feed Icon in Firefox 4?” I did.

By default the new RSS web feeds subscription button is not visible. To add this to the toolbar ( or navigation tool-bar as it is called in Firefox 4 ) just right-click on the toolbar and select customize. In the customize tool bar window that appears, click and drag the “Subscribe” icon to the desired location. Done.

More Details can be found on technophilia.madharasan.com

Tweet new blog postings from wordpress

June 20, 2011

If you have a wordpress installation in you own webspace, you may want to automatically publish your blog posting on twitter. You can do this with the Twitter Tools for WordPress.

Twitter Tools is a plugin that creates a complete integration between your WordPress blog and your Twitter account.

Notes about the installation and the configuration can be found on the plugin homepage.

Something which is not mentioned: You have to have the php curl library installed to use the plugin. The library was easily installed on my debian root server.

aptitude install php5-curl

Use blogilo with wordpress

June 3, 2011

Blogilo is a Free/Open Source Blogging client, focused on simplicity and usability.

It is a KDE program, which allows you to create a blog posting offline and submit it to your blog. Using a normal client instead of a browser can be more convenient.

I’m using wordpress with a handfull of a blogs and discovered a problem with blogilo: It only allows me to submit postings to my primary wordpress blog. For everyone who has the same problem, there is an easy solution

BTW, To get out of this problem, You can set http://wordpress.com as your blog url and try! It will fetch all of your blogs, and you can select which one you want!

Howto: Extract images from a PDF document

January 2, 2011

If you find youself struggeling with exporting images from PDFs, don’t give up, there is a solution

… if you’re in my situation (no desire to use Adobe’s bloat) or you just need a small handy command line tool for linux (or other “unixes”): try pdfimages. It’s part of the xpdf package, which is probably available for all major linux distributions.
Usage is very straightforward:
pdfimages -j foo.pdf  bar

You can read the rest of the article on Stefaan Lippens Blog.

Say Grace

October 1, 2010

The Boondocks - Say GraceThe Boondocks

Searching a file with given content recursively in unix

July 30, 2010

Some time ago I had the problem to search files with a given string in lots and lots of directories with lots and lots of files. Finally I used this command to show me every file in a given directory (plus sub-directories) which contains the search-string.

find . -name "*.php" -print | xargs grep "searchstring"

Means: Search for all php files which contain the string “searchstring”.

I read some marx and I liked it

July 26, 2010

And if you want to read some Marx: www.marxists.org (Marxists Internet Archive00)

Lyrics:
I thought I just wanted to pass;
Good grades were all I cared for.
My college made me take the class
More stuff for me to ignore!
But then I found out that
His theories weren’t so bad:
Labor and class combat,
What a very clever man!

CHORUS
I read some Marx, and I liked it;
The friend of the proletariat.
I read some Marx, just to try it;
Hope Adam Smith don’t mind it!
It felt so wrong,
It felt so right;
Men of the working class, unite!
I read some Marx, and I liked it;
I liked it!

There is a spectre hanging o’er
The face of Europe!
‘Tis communism, and it’s more
Than just a social hiccup.
A time will come soon when
The masses rise as one
To carve out their place in
The brand new poetry to come!

CHORUS

Marx is the man, he’s working for you;
The bourgeoisie, they just ain’t your crew.
Alienation of labor is bad,
Commodification is not a good fad.
The capitalists are greedy you see;
A shorter workday, now that’s what we need!
I’m reading some Marx, and I’m liking it;
Rise up now, proletariat!

CHORUS


Follow

Get every new post delivered to your Inbox.