Archive for aprile, 2007

Usare multiple schede di rete contemporaneamente in Ubuntu

Ok, avevo seguente problema: A casa uso wireless per collegare il portatile ed il fisso (su cui è installato Feisty Fawn), ma siccome per guardare i film uso il portatile con windows sopra (poiché ancora non sono riuscito a trovare una valida alternativa sotto linux a DirectVobSub) voglio anche poterli collegare contemporaneamente via ethernet (sulla rete diversa, x esempio 192.168.1.x).

“Stranamente” quando collegavo anche il cavo, windows non faceva minima piega, mentre linux si impallinava. Cosi dopo un po di tentativi e googlando un po in giro ho risolto in seguente modo:

Continua…

Chiamare un costruttore da un altro costruttore

public FormNewArticolo(string id):this()
        {
            //blabla
        }
        public FormNewArticolo()
        {
            InitializeComponent();
            dtCategorie = new DataTable();
            dtSubCat = new DataTable();
            dtCategorie.Columns.Add("Nome");
            dtSubCat.Columns.Add("Nome");
            dtSubCat.Columns.Add("Categoria");
        }

Mozilla Thunderbird for Windows (Beta) 2.0.0.0 RC1

E’ disponibile la versione Release Candidade di Thunderbird.

Tra alcune novità c’è la nuova skin, possibilità di creare direttamente un account gmail specificando solo indirizzo di posta elettronica (Yesss), ed alcune altre cosine simpatiche.

Link per scaricare:
Download Thunderbird (scegliere “it” se volete lingua italiana, en quella inglese )

Screen Refresh rate with Nvidia under Feisty Fawn

It was kinda strange but my screen refresh rate was setted on 50 hz, well i’ve discovered that it was normal (remember? “It’s not a bug, it’s a feature <.<)

Just use nvidia-settings for configuring right refresh rate…

Howto install Beryl with Nvidia on Ubuntu Feisty Fawn

Some nice guide for installing beryl: http://www.ubuntugeek.com/how-to-install-beryl-with-latest-nvidia-drivers-in-ubuntu-feisty-fawn.html
Just one note: instead of executing

sudo apt-get install beryl emerald-themes

Try to exec

sudo apt-get install beryl beryl-manager emerald-themes

Install Wl-138g on Feisty Fawn

Check if you have Asus Wl-138g installed on system

lspci |grep Marvell

You should have something like this:
00:0d.0 Ethernet controller: Marvell Technology Group Ltd. Marvell W8300 802.11 Adapter (rev 07)

————-
Download and install NdisWrapper 1.42

wget http://ovh.dl.sourceforge.net/sourceforge/ndiswrapper/ndiswrapper-1.41.tar.gz
Extract it
tar -xzvf ndiswrapper-1.41.tar.gz
cd ndiswrapper-1.41/
sudo make uninstall
make
sudo make install
cd ..

Download and install drivers

wget ftp://ftp.dlink.com/Wireless/dwlg510/Drivers/dwlg510_driver_100.zip
unzip dwlg510_driver_100.zip
cd Driver/manual/Win2K/
sudo ndiswrapper -i mrv8k51.inf

Test installed driver

ndiswrapper -l

It should give Driver Installed, device present (or hardware present)
If with iwconfig you can’t see your card, try to exec these commands:

rmmod ndiswrapper
modprobe ndiswrapper

Andale Mono e Consolas download

Since it took me a while to find these 2 fonts (which are very useful for coding), i’ve uploaded them both to rapidshare mirror.

Link: http://rapidshare.com/files/24663204/DevFonts.rar

Use ListView Groups

How To Group ListView Items

            listView1.Groups.Add(new ListViewGroup("List item text",HorizontalAlignment.Left));
            listView1.Groups.Add(new ListViewGroup("Bla", HorizontalAlignment.Left));
            listView1.Groups[1].
            listView1.Items.Add("Prova");
            listView1.Items[listView1.Items.Count - 1].Group = listView1.Groups[0];
            listView1.Items.Add("Prova2");
            listView1.Items[listView1.Items.Count - 1].Group = listView1.Groups[0];
            listView1.Items.Add("Prova3");
            listView1.Items[listView1.Items.Count - 1].Group = listView1.Groups[1];

Cambiare radiobutton in Firefox

wget http://users.tkk.fi/~otsaloma/art/firefox-form-widgets.tar.gz
tar -xvzf firefox-form-widgets.tar.gz
sudo cp /usr/lib/mozilla-firefox/res/forms.css /usr/lib/mozilla-firefox/res/forms.css.bak
cat firefox-form-widgets/res/forms-extra.css | sudo tee --append /usr/lib/mozilla-firefox/res/forms.css > /dev/null
sudo cp -r firefox-form-widgets/res/form-widgets /usr/lib/mozilla-firefox/res
rm -rf firefox-form-widgets