Posts Tagged ‘tip’

Set password for local oracle accounts and let them never expire again

March 3, 2014

If you are a getting warning messages like this one on your local developer oracle installation,

java.sql.SQLWarning: ORA-28002: the password will expire within 1 days

then there are two easy step to avoid the situation that you are not able to login with a given database user.

Step 1: Set the passsword policy to never expire passwords. Execute this SQL Query with your SYSTEM database user.


Step 2: The expiring database user accounts are not affected by the above statements. You have to set a password for them to get rid of the warning and only then is the password never expiring again. You just have to start your “Run SQL Commandline” oracle console and first connect via the sysdba user (don’t be afraid, you don’t need a password for that one).

connect / as sysdba;

When you are connected successfully, just change the password for any database user

alter user SYSTEM identified by NEWPASSWORD;

(Disclainer: I’m no fan of oracle, but in my workplace I have to use it)


XPath evaluating in Chrome

October 23, 2013

IF you need to find HTML elements in a web page via XPath, it’s desirable to do this with an already existing web page in your browser. in Chrome/Chromium this is especially easy. If you open the web developer tools and switch to the console, you can type something like that

$x(“//*[@id=’list’]”) ;

And the browser will return you the found HTML element (or nothing if it does not exist).

A nice mono laser printer working with linux: Samsung ML1860

March 16, 2012

If you are looking for a  reasonable priced mono laser printer which works flawlessly under linux: I recommend the Samsung ML series. For example the Samsung ML1860.

For more information how to install the driver, just look here:

Samsung Series 9 NP900X3A wireless Problems

February 12, 2012

After installing Ubuntu on my new Samsung Series 9 NP900X3A notebook, I was having massive problems with my wireless connection. The problem was, that the speed of the wireless connection was changing from full speed to transmitting nothing at all. After quite some googling and researching on the web, I found the solution.

gedit /etc/modprobe.d/iwlagn.conf
and add the line:
options iwlagn 11n_disable=1

The wireless controller is from intel… after all, I’m quite happy with the new notebook…

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

Calling this URL gives you

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

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

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

Howto embedd videos from on

October 21, 2008

As far as know, unlike other short codes the values aren’t obvious how they relate to the videos, so the only way I’ve found is to ask Blip for it on a video’s permalink page. For example for
1. In the left sidebar click the orange Share and select Embed from the drop down.
2. Click the orange Show Player to Embed’s right and select from the drop down.
3. Click the green go! button
4. Copy and paste the generated short code into your blog post here on In my example the code I copied into my blog post is
[ ?posts_id=755336&dest=-1 ] (remove whitespace after/before the brackets)


Log4j Online Wizard

June 19, 2008

Have you ever fought with the correct structure of a log4j xml or property file? If you have, and I know, I have a lot of times, you maybe wanna have a look on WizardForge log4j online wizard.

And byt the way, WizardForge supports more than only log4j.

  • dhcpd
  • django
  • lighthttpd