Categorieën
Geen categorie

Howto get Ubuntu 10.10 GUI to work on a Dell SX270

I can give the long version but after all this searching and fidling I prefer just to show the short version.

The problem was that Ubuntu (10.10) installs fine on a Dell SX270, but X just does not want to play. I solved the problem using a custom X config file:

/etc/X11/xorg.conf:

#Section "Device"
#Identifier "Configured Video Device"
#Driver "vesa"
#EndSection
Section "Screen"
Identifier "Default Screen"
Device "Generic Video Device"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
#Modes "1024x768"
#Modes "800x600"
#Modes "640x480"
Modes "1280x1024"
EndSubSection
EndSection

As you can see, the resolution isn’t all that bad. I guess all comment lines (lines starting with a “#”) can be removed. I just left them in there as a tribute to all my hard work 🙂

Categorieën
Geen categorie

Hoe nerd ben jij?

Ik heb er even over na moeten denken maar ben er nu toch uit. Graag wil ik op gedegen wijze een herrinering achterlaten op deze wereld over wie Jeroen “Kwoot” Baten nou eigenlijk was. En mijn eindconclusie is: een rasechte nerd. En dan bedoel ik niet iemand die ooit eens in een ver verleden met een MSX computer heeft gespeeld, maar iemand wiens leven is te karakteriseren in de vorm van een lange lijst met alle computers en besturingsssytemen die ooit een belangrijk deel van zijn dagelkijks werk waren.

En daarom laat ik dan ook de volgende tekst in mijn grafsteen graveren:

qrcode

Categorieën
Geen categorie

Vim is COOL!

Just one of those days. I have a large page in XWiki format and I want to add a column to a lot of lines in a table, but not to all lines. I also want that column to contain a counter and I don’t want to keep typing the rest of the day myself.

Enter VIM and it’s scripting capabilities.

I guess you know about mapping keys. So I can say at the “:” prompt something like this:

map <F5> iHello<Esc>j

But now I want to add a counter variable and have it inserted. It is at first not so obvious but the result is this:

map <F5> 0i\|<C-r>=g:c<Enter><Esc>:let g:c=g:c+1<Enter>j

it maps F5 to the following sequence:

  • 0 (zero) means beginning of line
  • i means insert
  • \| means | character
  • <C-r>= means insert variable
  • g:c means global variable c
  • let g:c=g:c+1 means off course add 1 to global variable c

Guess what, it works!