RSS
 

Archive for July, 2009

Ubuntu: Intel Graphics on X200 with intrepid

29 Jul

I installed ubuntu intrepid on my thinkpad x200. It is mostly working but the graphics were big enough to annoy me.
I tried many xorg.conf configuration and this on worked perfectly for me to fix the screen resolution to wxga.

Section “Device”
Identifier “Configured Video Device”
Driver “intel”
Option “monitor-HDMI-1″ “HDMI-1″
Option “monitor-HDMI-2″ “HDMI-2″
EndSection

Section “Monitor”
Identifier “Configured Monitor”
EndSection

Section “Monitor”
Identifier “HDMI-1″
Option “Ignore” “True”
EndSection

Section “Monitor”
Identifier “HDMI-2″
Option “Ignore” “True”
EndSection

Section “Screen”
Identifier “Default Screen”
Monitor “Configured Monitor”
Device “Configured Video Device”
DefaultDepth 24
SubSection “Display”
Modes “1280×800″ “1024×768″
Virtual 2432 864
EndSubSection
EndSection

 
No Comments

Posted in Ubuntu

 

Ubuntu: Very good HowTo for everything

29 Jul

I found in Internet a good web page to install many useful thing for Ubuntu.
I paste it for my own reference and it may help othres.
Here is the page
—————–
Here is the summery

Initial setup

  1. Install Ubuntu
  2. Update and upgrade package sources
  3. Turn on the firewall
  4. Install the graphics driver

Multimedia

Internet & Networking

Filesystem

Scientific & Programming

Misc

 
No Comments

Posted in Ubuntu

 

C++: Convert int to string

24 Jul

This is an elegant function to convert int to string to use anywhere:

std::string intToString(int i)
{
    std::stringstream ss;
    std::string s;
    ss < < i;
    s = ss.str();

    return s;
}
 
No Comments

Posted in C++

 

Ubuntu: Two or more plots in the same windows

15 Jul

The mode is called MULTI-PLOT.

Gnuplot can plot more than one figure in a frame ( like subplot in matlab ) i.e., try:

set multiplot; # get into multiplot mode
set size 1,0.5;
set origin 0.0,0.5; # The upper plot
plot sin(x);
set origin 0.0,0.0; # The bottom plot
plot cos(x)
unset multiplot # exit multiplot mode

 
No Comments

Posted in Ubuntu

 

Ubuntu: Convert ogg to avi

15 Jul

Most of the time, I record with recordMyDesktop which produces .ogg-Videos. So any need to convert it to avi file to share the screen-cast.
First you need memcoder, so install it:
sudo apt-get install memcoder
Next use this commend:
mencoder out.ogg -o out.avi -oac mp3lame -ovc lavc

  • out.ogg is the .ogg-file you want to convert
  • out.avi is the .avi-file you want to create
  • mp3lame is the used audio-codec (here mp3)
  • lavc is the used video-codec (here libavcodec)
 
No Comments

Posted in Ubuntu