rosiko | Diego Billi's Blog
Giusto al fin della licenza io tocco.
rosiko | Diego Billi's Blog

Me

Utente: diegobilli
Nome: Diego Billi
Ho 25 anni e sono laureato in Informatica presso l'Universita' di Bologna, dove vivo. Informatica a parte, nel tempo libero mi interesso anche di libri, fotografia e fotoritocco.

Recent comments:

shinji81 in i'm not dead... yet

Bottoni

  • Contattami
  • Il mio profilo
  • Linkami


  • RSS 2.0
  • ATOM 0.3
  • Powered by Splinder

Counter:

Visited *loading* volte
domenica, 26 agosto 2007

.NET: write everything once, run everywhere

I'm really annoyed by the lack of APIs provided with the .NET framework (both Microsoft .NET or Mono). There is everything for implementing Web Services, XML Applications and Proton Torpedoes, but few  "unuseful" and silly things are still missing.

For example, there is no a standard and multi-platform API for getting the list of available DNS servers on your system. It seems to be a very stupid information the System.Net.Dns class should return, but nothing!

This is a small piece of code i've found online about this little problem:

   using System.Win32;
   ...
   ...
   RegistryKey start = Registry.LocalMachine;
   string DNSservers = @"SYSTEM\CurrentControlSet\Services\Tcpip\Parameters";

   RegistryKey DNSserverKey = start.OpenSubKey(DNSservers);
   if (DNSserverKey == null)
   {
      Console.WriteLine("Unable to open DNS servers key");
      return;
   }
 
   string serverlist = (string)DNSserverKey.GetValue("NameServer");

   Console.WriteLine("DNS Servers: {0}", serverlist);
   DNSserverKey.Close();
   start.Close();


Registry? Win32? Now tell me, how is it supposed to work on a Unix-like platform? And what about the list of network interfaces? and routing informations?

Write once, run everywhere!? Bull shits! You still have to code very stupid things for every system you want to support. Maybe my idea about "everywhere" is too much
optimistic.

Good night, and good code!

postato da: diegobilli alle ore 21:14 | link | commenti (1)
categorie: informatica, polemica, rosiko
mercoledì, 30 maggio 2007

Google ecologico... ma vaffanc.*#&@(!!!

Dunque, Google ed ecologia. Vi chiederete in che modo queste due cose siano connesse tra loro. Ebbene, la risposta e'  Blackle.com

Se andate su sito notere sicuramente un dettaglio. E' completamente nero. La seconda cosa che noterete e' che il sito e' di fatto una copia in Nero e Bianco di Google. A tutti gli effetti e' un'interfaccia Nera per Google.

Ora arriviamo al punto. Questo sito e' ecologico. E' ecologico perche' e' nero. Sugli schermi LCD i pixel neri consumano meno corrente. Hanno stimato che il risparmio energetico ottenuto si aggiri intorno al 20%. In pratica consumiamo meno risorse per fare le stesse ricerche con Google.

Bella cazzata direte voi. Quelli di Google devono aver pensato "e'  una cazzata fantastica" visto che hanno comprato il sito dall'autore per circa 2,5 milioni di dollari.

...

...

MA VAFFANCUA)(*$)@(*$)(@*)$(*@)$(@*)$(*@)$(*@)$(*@$)(*@$)(*!!!!! E io che ho pure perso tempo a studiare informatica!
postato da: diegobilli alle ore 21:30 | link | commenti (2)
categorie: cronaca, vari, rosiko