RSS | Archive | Random | E-mail

About

Hi, I'm Christian Castelli, a 28 years old italian programmer located in Pisa (Italy). Here I post small snippets of code which can be useful in my work.

Links

Codepuzzling main site
Development site
ByteStrike italian blog
Follow me on Twitter

My Life Style

while(passion) {
  try {
    myLife.run();
  }catch(LifeExceptions) {  
    stronger++;
    continue;
   }
}

Following

1 June 10

fglrx patch arch_fglrx_2.6.34.patch fails

user@host:~$ sudo updatedb 
user@host:~$  locate arch_fglrx_2.6.34.patch 
/usr/src/fglrx-8.732/patches/arch_fglrx_2.6.34.patch
/var/lib/dkms/fglrx/8.732/build/patches/arch_fglrx_2.6.34.patch

# substitute first two lines of each file with these lines (without #)
# --- a/kcl_wait.c 2010-04-13 20:02:46.494496561 +0200
# +++ b/kcl_wait.c 2010-04-13 19:52:00.054563389 +0200 
user@host:~$ sudo vim /usr/src/fglrx-8.732/patches/arch_fglrx_2.6.34.patch
user@host:~$ sudo vim /var/lib/dkms/fglrx/8.732/build/patches/arch_fglrx_2.6.34.patch
user@host:~$ sudo apt-get --no-download install fglrx fglrx-amdcccle
Via: Ubuntu forums

Tags: ubuntu
Comments (View)
14 May 10

How to restore Ubuntu gnome panel and menu items

As simple as:

gconftool-2 --shutdown
rm -rf ~/.gconf/apps/panel
pkill gnome-panel
If you want to restore, in example, Games menu from Applications, you have to:
cd ~/.config/menus
vim applications.menu
and then remove (in my case) Deleted node:
        <Menu>
                 <Name>Games</Name>
                 <Exclude>
                         <Filename>mahjongg.desktop</Filename>
                 </Exclude>
                 <AppDir>/home/chris/.local/share/applications</AppDir>
                <!-- remove this node </Deleted> -->
         </Menu>
Via Ubuntu forums here and here.

Tags: ubuntu gnome
Comments (View)
7 May 10

Chosing java-6-sun instead of OpenJDK on Ubuntu

I was disappointed when I figured out that Vuze didn’t work anymore after having upgraded to Lucid Lynx. So I launched the program in the shell and I discovered it couldn’t find some Swing stuff for creating the GUI. Back to Java Sun 6, so:

chris@sirio:~$ sudo update-java-alternatives -l
java-6-openjdk 1061 /usr/lib/jvm/java-6-openjdk
java-6-sun 63 /usr/lib/jvm/java-6-sun
chris@sirio:~$ sudo update-java-alternatives -s java-6-sun

Comments (View)
Themed by Hunson. Originally by Josh