Archive for July, 2010

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”.

Advertisements

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

KDE bug #243160

July 9, 2010

Today I (hopefully) start a new tradition. Presenting bugs in free software I care about (caring about the software AND the bug *g*).

I’m starting with bug #243160 in the KDE bug database.

Check for free space first when copying one file to flash memory
If you copy one file to a flash memory – file size has to be bigger than free space on flash memory – it starts copying the file and aborts only after the free space is filled up

I think it is a rather easily reproduceable bug which potentially hits a lot of people. If you want this bug to be closed, vote on it! Maybe you even have an idea how to fix the problem or where to search for the cause of it. Just comment here or even better in the kde bug database.

thx to my brother for filing the bug in the first place.

Sluggish text input in kde

July 7, 2010

I use kmail a lot and kile sometimes. Something which bothered me a lot was the sluggish text input of these two kde programs. Characters were shown with a notable delay which made writing painfully.

But  there is a workaround which solved the problem for me.

kmail –graphicssystem raster

Start the program from the console with the additional option –graphicssystem raster

More on this topic can be found in this bug entry https://bugs.launchpad.net/ubuntu/+source/kile/+bug/361843.

I Read Some Marx (And I Liked It)

July 6, 2010

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

Nice: IBM is moving to Firefox as its default browser

July 2, 2010

Some days there are good news to be found in the web

We’re officially adding a new piece of software to the list of default common applications we expect employees to use, and that’s the Mozilla Firefox browser.
Firefox has been around for years, of course. Today we already have thousands of employees using it on Linux, Mac, and Windows laptops and desktops, but we’re going to be adding thousands more users to the rolls.
[sutor.com]