Skip to main content

Posts

Showing posts from April, 2011

Structures: C -> Java -> Python -> Erlang

With C we had structures and unions. I like them, because, I don't always need to embed behaviors with data(class). So you'll do something like With Java, I'm forced to use classes, because that's how java is structured. They are purely object oriented. (eg: in C++) In python, you can take java's approach; but since Python is not Java ;-) and we tend to write less, We'll use dictionaries (or hashes in Perl) I'm a newbie to earlang (and to functional programming), I think there's no dictionaries, but tuples. Here's how we use tuples to achieve same (also applicable to python) much like json, isn't it? notice, there are no quotes around someone, that's an atom (this is erlang dude). This in python: Well, how do we understand what's what? hmm, ok, we can tag them with atoms, (this is a programming practice in erlang world) so our earlier example becomes, That's it. You can do this with python too, like

My Desktop setup

  Here goes my desktop. Operating System : GNU/Linux Flavour : Ubuntu (Debian Derivative) Version : 10.10 (kept up to date) Kernel : 2.6.35-28-generic-pae Hardware(striped down) : Intel C2D, 4GB, 320GB.  Manufacture & Model: Toshiba Satellite Pro. Desktop Manager : Gnome Compositing Manager : Compiz Gnome-panel : set to be hidden always and removed all that I can from the panel. (ie., panel is empty now, but we can't remove last panel completely.) Icon Theme :  Fenza Dark.  (see link for ppa) Dock : Avant (trunk)  Menu : Cardapio Menu (using ppa)  it even have awn applet.  Conky : for configuration look here Dock theme : Divergence-IV A New Hope Other gtk themes in use : Elegent , Equinox , A new hope. Other Icon theme in use: awoken Cursor theme : X11-Gear  (Sorry, I can't find exact package now, but it's there) File Manager:   nautilus-elementary   (nautilus isn't complete with this, sleek elegant look,breadcrumbs, inbuilt terminal, clutter view) and ma

My Conky Configuration File

Edit :                         (Aug 17, 2013) All my configurations including conky's are now hosted at  https://github.com/kra3/dot_files I've been hearing about this conky for a long time. I think I tried it once in my 5 years of linux experience. But, I haven't experienced it till last day. Conky is a system monitor originally based on torsmo! What the heck is this "torsomo"? Honestly, I don't know. Le me google that for you.... Torsmo is a system monitor that sits in the corner of your desktop. It's very simple, customizable and it renders only text on the desktop (and percentagebars if you want it to ;) and the only lib it uses is Xlib. Torsmo can show various information about your system and it's peripherals, including: Kernel version Uptime System time Network interface information Memory and swap usage Hostname Machine, i686 for example System name, Linux for example Temperatures from i2c-senso