Saturday, February 05, 2005

up next... GTK#

My first program, had to be a "hello world" :-D


namespace GtkSharpTutorial {
using Gtk;
using GtkSharp;
using System;
using System.Drawing;


public class helloworld {

static void hello (object obj, EventArgs args)
{
Console.WriteLine("Hello World");
Application.Quit ();
}

static void delete_event (object obj, DeleteEventArgs args)
{
Console.WriteLine ("delete event occurred\n");
Application.Quit ();
}

public static void Main(string[] args)
{
Application.Init ();

Window window = new Window ("helloworld GTK#");
window.DeleteEvent += new DeleteEventHandler (delete_event);
window.BorderWidth = 10;

Button btn = new Button ("Hello World");
btn.Clicked += new EventHandler (hello);

window.Add (btn);
window.ShowAll ();

Application.Run ();
}
}

}


then...
mcs helloGTK.cs
mono helloGTK.exe

Sunday, January 30, 2005

LUFS to the rescue!

A superbly amazing piece of software...
something i was thinking for quite some time now :)

http://lufs.sourceforge.net/lufs/intro.html

[quote]
LUFS is enabling you to mount into your file hierarchy a remote computer's file system, which is accessible by various means (ftp, ssh, etc.). Then, the access to the remote files will be completely network transparent. In other words, you'll be able to read/modify remote files as if they were local, watch movies/listen to MP3s from FTP/SSH/Gnutella servers without copying them locally. Sheer magic. Now skip to the next section.
[/quote]

[quote]
OK, it's time to fasten your seatbelt and hold your breath: Kansas is going bye-bye 'cause you're about to swallow the red pill.

Forget everything you knew about file sharing clients. This is a glimpse of the future...

You mount a gnetfs in ~/gnet. You wait a couple of minutes so it can establish its peer connections. You start a search by creating a subdirectory of SEARCH: mkdir “~/gnet/SEARCH/metallica mp3”. You wait a few seconds for the results to accumulate. The you chdir to “SEARCH/metallica mp3” and try a ls: surprise – the files are there! You shoot up mpg123 and enjoy... You are happy.
[/quote]


Still amazed,
chk out the URL

:)
Makentoo

Monday, January 17, 2005

\"makentoo\" in the making...

It was quite a frustrating experience back in the days of RedHat. Downloading each & every rpm manually, installing it, solving dependencies myself... why d heck do i need to use Linux, if i cant automate these things???
Ok, yum was around the corner... but in beta/gama stages, quite broken at times... alot frustrating!

To automate this package installation, i decided to move onto Debian. Its "apt-get" is amazing. 5-6 months down the line, i find it very easy to use (99 times out of 100). But still, some dependencies creep in, urge to get the latest packages remains, which are still not added to debian repositories & the SPEED... still lacks!

In came Gentoo!!!
Rock solid, automated installers, repositories as wast as "open source" & above all, upto 20% faster than my debian on my existing hardware!

I think, its time to move on...

signing off...
makentoo!

Sunday, January 09, 2005

Hacking Firefox... Speeding it up!

Hi,

I found this amazing article @ linuxgazette.com which tells about pipelining requests in HTTP 1.1 & how it makes surfing faster. Try it (@ ur own risk :-D)
http://www.linuxgazette.com/node/9802

BTW, anyone tried "about:config" in the address bar of ur firefox???
Try it & u'll be baffeled!

cya,
makuchaku

Exceptions creating Exceptional Problems!

Hello,

Exception handling is cool, but can be a pain in the... donkey sometimes!
LinSock++ is just inches away from being finished, what remains is just error handling. This is what troubling us from past 5 days...


//Socket class

class Socket
{
Socket()
{
if(error_on_doing_something())
{
throw SockException("ErrMessage", code);
}
}

do_something_else()
{
if(error_on_doing_something())
{
throw SockException("ErrMessage", code);
}
}
};



//Main program

#include<...>
void main()
{
try
{
Socket object();
object.do_something_else();
}catch(SockException err)
{
err.getCode(); //works
err.getMessage(); //works
//object.cannot_access_this(); <----- this is troublesome!
}
}


Now consider this,
If i create a TCP socket, which fails to connect, the user might want to connect after a timeout in the catch block, or call a function from there to do it. But when control reaches the catch block, the "object" is either destroyed or yet not created (behaviour of C++ exceptions) & hence the user is stuck!

In a nutshell, accessing the object in which exception occured is not being possible in catch block.

How to overcome this problem?
Any other solutions... workarounds...

All comments/flames/suggestions are welcome.

cya,
makuchaku

Thursday, January 06, 2005

Long time no see!


maku: Hi Blog!
blog: Hey maku... long time no see!
maku: yup yaar, exams/projects/tensions/more-tensions... :-D
maku: now evrythings fine... exams finito!
blog: chalo, dats nice
maku: yaa
blog: Aur? whats up these days?
maku: hmm... SAP training comming up...
maku: Our LinSock++ is almost ready
maku: going to launch it very soon on sourceforge.net (hope so)
blog: grr8
maku :-D
maku: then only the SIP implementation will remain!
maku: though implementing it will be a herculian task!
blog: hehe! Wish you all d luck
maku: thanks blog... its needeed :)
maku: blog, chal, gtg, hav other things to finish also :-P
blog: okies, bbyeee (Ta Ta)
maku: cya!

Saturday, January 01, 2005

Technology is amazing... & so is Linux!

Yes, sometimes the technology becomes so fascinating!

I had these C++ classes with me, for which i had to generate Class Diagrams. After working at a streach for 5-6 hours, designing/re-designing/debugging the classes, i had absolutely no energy left to make these diagrams by hand.

...in came Dia & autodia.pl (amazing piece of software)!!!

All i had to do was "autodia.pl -l C++ -d ./" in my source directory & it generated an XML formatted class diagram, readable by Dia. & in no time the following class diagram was made... Click Here

& all this couldn't have been possible if i wouldn't have been working on Linux...

Win$$ just screws everything!

makuchaku

New Year Resolutions...

Offo!
New years & resolutions... never go hand-in-hand!

Anyways, here are mine...

1> Honour commitments.
2> Try not to be late (part of resolution-1)
3> Behave in a better way ;-)

Hope, i follow the first resolution so that others follow automatically :-D

bbye,
makuchaku
HNY...

Wednesday, December 29, 2004

Our first serious day @ coderz_voip!!!

A pic from my "spy-cam" is worth a zillion... words!


Designing classes...




The lovely hosts & us...




Chimpz @ the actual brainstorming...

Tuesday, December 28, 2004

A beauty saves the day!

Free software is everyones lifeline!

Objective - To get my 6600 flashed & reloaded with latest firmware
Problem - My Phone book would have been lost!
Solution - Found this beautiful software... "Contact Transfer" Link... that does this job of exporting/importing/compressing contact list beautifully!



Highly recommended *****

makuchaku

Tuesday, December 21, 2004

Forward files/mp3 recieved via bluetooth to others AND copy them to other locations in your MMC -- Nokia 6600

Hi all,
... a revolution is waiting for you, read on...

Problem
--------
We all know that those files recieved via bluetooth in Nokia6600 (series 60) phones can :-

1. neither be forwarded via bluetooth
2. nor can be saved to other locations in the MMC.


Solution
---------
The solutions which seemed very tricky in the begening, came out to be a "low dud", all you need is some right tools (all freeware) & some POM (Presence Of Mind)

Tools
-----
1. FExplorer -- http://users.skynet.be/domi/fexplorer.htm -- (freeware)
2. Forwarder -- http://www.compsoc.man.ac.uk/~ashley -- (freeware)
3. Bluetooth connection or any other means to transfer these onto your mobile.

Steps
-----
1. Install FExplorer & Forwarder
2. Recieve something via bluetooth so that it goes to your inbox
3. Check that you are not able to transfer it further as you dont get any option to send it via bluetooth or move it to a suitable gallery/folder in ur MMC

THE FUN PART

4. Run Forwarder and forward sis/mp3 files to another bluetooth device! (Problem (1) solved)
5. Click options > file properties
6. Try remembering the path it shows!
7. Close Forwarder & open FExplorer
8. Goto the path specified in step (6)
9. Cut & copy the mp3/sis file to any folder you like (even your gallery) (Problem (2) solved)
10. You can even send these files via Bluetooth as FExplorer supports bluetooth!

CAUTION
--------
The inbuilt gallery manager (The Gallery in simple terms) will not show you the .sis & .mp3 extension files. So to send them via Bluetooth from "the gallery", rename them to any other extension. OR use FExplorer's bluetooth!

Nokia & Symbian made great efforts to hide these formats, preventing the people from sending these files via Bluetooth/Infrared... but remember... Nothing's Mission Impossible!!!

TIP
---
Make a permanent directory in your MMC & keep atleast these two installers (forwarder & fexplorer) files, so that you can always forward them & this knowledgebase to your friends!


makuchaku

Monday, December 20, 2004

God bless Bluetooth!

Its just so amazing...
...a piece of cake...

have your cake & eat it too!!!
makuchaku

Linux is Ultimate!!!

It took me just 15 minutes to configure a bluetooth connection on Linux!!! considering the fact that i have never ever used any USB/bluetooth devices in past...

experience the true freedom...
go Linu!!!

makuchaku

Monday, December 06, 2004

So Ironic...

Life seems so ironic these days...


(Then)
------
I had all the time to go & get my Moku, no-one was willing to get me one. I could have spent hours & hours fiddling with it, recording things, syncing it with my PC, testing its Blue-tooth connectivity, frying my friends with jelousy... capturing "piddi" in a yet smaller "piddi" would have been so much fun!

(Now)
-----
I dont have even seconds to "scratch-my-head", the course content is just piling up like files in an MCD office, pressure is at peak, tension is high, wind is cold & above all my throat is so damm sour! AND now everybody is willing to get me my Moku... So IRONIC!!!

Anyways, i'm playing it safe... have decided to get it after tomorrow's exam, so that i can peacefully finish with my "Control Systems" exam (A BIG DINOSOUR). A CELL delayed can cause me no harm, but anything less than 50 in Controls *will* put back my career by "atleast" 6 months!

So... hoping, that DINOSOUR gets past my 3 hour exam without any tranqualizers :-D

makuchaku

Saturday, December 04, 2004

Thumbs up to Kalango Linux!

Yeah!
Good Work!



Almost everything works out of the box in this Linux. MP3/AVI/MPEG/RM/WMA/DAT, all file formats are supported. Has some preloaded stunning themes (xmms/kde) and is DEB based, so whatever it dosn't has can be apt-get in seconds (amazing piece of work by Debian guys!)

Though it has some libraries missing... but hey! you cant get everything in a 480 megs ISO :)

So "apt-get install missing" is an *apt* solution **grin**

I have decided to not go for MAJOR Linux distros (fedora/mandrake) in future. They, in order to cater large masses often miss out on latest (though unstable/testing) & day-2-day packages. BUT these kinda distros (Kalango Linux) proove much more focussed & updated!

So? any takers for this brazillian Linux...
gimme a buzz...

cyao!

Friday, December 03, 2004

God Bless Yahoooo!

Today yahoo gave me 250 mb!!!
All i can say is... God Bless Yahooo!

makuchaku
happy mailing..

PS: Now who needs Gmail, which cant open in Konqueror (BTW, KDE3.4 will have Konqueror overcome this situation also... Konqueror will definitely give firefox a hard run for its money!)

Ghosh! I'm already feeling outdated!!!

MAN!!!

The only BAD thing I about about Linux is that the moment you feel you are really up-to-date with Linux world... you actually fall behind 2 steps!
Just 2 days back, i installed "Kalango Linux" (kde3.3.1, gnome2.8.1) & was very excited to be a top-notch UPDATED Linux user (hehe). But today, while surfing kde-look, i read about KDE 3.4 (and KDE 4), which made me feel really really OUTDATED!!!

OSdir.com says...
KDE 3.3.2 was tagged today, so we should see a new bug fix release of KDE in the first or second week of December. Earlier this past week, the plans for a KDE 3.4 release were also finalized. This will be the last major KDE 3 release before KDE 4. KDE 4 will make use of the Qt 4 library which promises to be quite a revolution for KDE and all Qt applications, but will break binary compatibility with previous releases....
Preview of KDE 3.4 / KDE

So until i can "apt-get kde4", i'll have to remain happy with Kde3.3.1...

makuchaku
Kde 3.4 features

Thursday, December 02, 2004

A picture is worth a thousand words!



My new Linux... Kalango Linux :)
Kde 3.3.1, Gnome 2.8.1, WindowMaker, Kernel 2.6.7, DEB package system, what more do you want???
WOW!

Wednesday, December 01, 2004

Moku's Future...

I guess, I will have to buy it myself, from my own "earned" money!
Some people kept on delaying it endlessly, so i junked their money/help! Now i'm thinking of getting it on my own.

So it will take a bit more time, but atleast i dont have to keep on BEGGING people!

PS: Ankit, i was banking on MOKU for my newer pic, infact lots of them! So guess whats the right word... WAIT...

Sunday, November 28, 2004

My WORST wishes for that car!!!


Yes!
My WORST wishes with that car!
May this car never be successfull for us...

:((:((:((