T420s – Optimus NVIDIA on Ubuntu 11.04

Galeon Posted in Linux
2

Holy Moly!

I just had a hard fight with my brand new Thinkpad T420s, trying to get the NVIDIA graphics to work.

After installing the properitary nvidia drivers via ubuntu unity stopped working after the restart and no nvidia driver was active.

The solution, after all, was pretty simple:

  1. Boot your notebook into the BIOS and change the display-value from “Optimus” to “Discrete”.
  2. Install the nvidia-drivers
  3. smile, that’s it

It seems that there is currently no linux-support for nvidias optimus-technology.

Ubuntu and a crashing OpenOffice

Galeon Posted in General Stuff, Linux
2

I’m currently writing on my thesis and had the problem that OO is crashing all the time for unknown reasons. After I did some research I came to the following conclusion:

Screw it!

Remove the OO-packages which ship with ubuntu and install a fresh vanilla version (follow this)

I had no crash since that change and everything works pretty smooth.

Bulk rename files (.html to .php)

Galeon Posted in Linux, Note to myself
1

I just had the case that I needed to rename all old .html-files into .php for a large website.

This little command did it for me

find . -name "*.html" -exec rename -v 's/\.html$/\.php/' {} \;

JavaScript-Garden

Galeon Posted in Javascript
0

Caio Romão and Andreas Blixt build the wonderful JavaScript-Garden which contains a lot of pitfalls when programming JS.

Guess what, node-cron bug

Galeon Posted in Javascript, NodeJS
0

The last two bugs are now pulled into ncb000gt repository, but there is a third one.

When setting a cron like

new cron.CronJob('0 */10', function(){

it should be executed every 10 minutes starting with 0, 10, 20 etc. which was more like 9, 19, 29…

Until the fix is pulled it can be found here

Déjà-vu node-cron bug

Galeon Posted in Javascript, NodeJS
0

There is a second bug in node-cron that causes no job-execution on sundays. A fixed version can be found here

node-cron – decemberbug

Galeon Posted in Javascript, NodeJS
0

node-cron is pretty neat when it comes to peridocial (cron)jobs with node.js, except for the point that it didn’t seem to work in december.

Long story short, there is a bug with the identifier for december, at some point it is 12 (at all other parts 11).
So I’ve fixed that one here, which works at least for me. Maybe it can help someone else until the bug is fixed =).

Cheers

Grasshopper.js – Wiki

Galeon Posted in Javascript, NodeJS
0

I’m doing a lot of my development with grasshopper.js latelty. While doing that I stumbel often over things I have to lookup in grasshoppers code, so I decided to setup a wiki and write at least a little bit of documentation while working with gh.

Everybody feel free to join!

Time tracking for Ubuntu

Galeon Posted in General Stuff
0

Since I’m working for various customers I’ve the need to measure the time I spend on different Projects.

I’ve used the Time Tracking Tool recently which is far from perfect but it did the job, except from being very picky when it comes to unclean shutdowns.
Anyway, I stumbled over  Project Hamster today. I’ve not tested it fully but it looks very promising (at least for gnome-users).

sudo aptitude install hamster-applet

will install a little applet which can be added to your panel. Hamster offers

  • easy tracking
  • a nice overview
  • tagging
  • an HTML-export(!)

IDEA X

Galeon Posted in Groovy & Grails
2

I’m a big fan of Grails and working with IntelliJ IDEA is indeed a pleasure. Since a few weeks IDEA X is released and this blogpost gives a very nice idea of what is new.