Installed ubuntu
Anyways, the installation has not been particularly smooth. I had to install linux twice because once the system was booted from the recovery partition. damn, it removed the linux partition. Then i went on to modify the GRUB's menu.lst to hide the vista's recovery partition from the boot menu. WARNING: if you are installing linux and have vista's recovery partition, the boot loader may show two Vista/Longhorn OS under 'Other Operating Systems'. In such case, first boot in linux, edit the /boot/grub/menu.lst and comment out entry for the OS thats is poiting to recovery partition. (You will probably have to google a bit about GRUB)
Thank God, I had already copied all my data to another laptop (through network). Will have to copy that back. Well that was expected, and windows had warned me about it. But my point is they should keep a provision for keeping other drives intact. Now its all done, and am bit relaxed.
I am a complete linux newbie, and i hardly know anything about this OS. Am gearing up myself to use it now on for my development works. Ubuntu looks very user-friendly and is quick. But there are many things for which i may have to turn back to vista for a while.
I am happy :) as am posting this blog using ubuntu. Will post more about the same very soon.
Wishes
Yes, coincidently this year my b'day and diwali are on the same day.
New Hotmail
When I happened to check my Hotmail inbox after long time today, I was surprised by a message that said it didn't recognize my browser and I should use either IE, ffx or opera.Now the funny part is, I was already using ffx. You have an option to continue anyways. I chose that. The display was simply horrible. I mean Fonts and overall look and feel. I tried in IE8 as well. No improvement. May be its not rendering properly on my VAIO with vista. I tried on desktop PC. There viewed it on IE 6. Fonts were better. But heck, old look was much better, cleaner and faster.
I think the transition is not over as of now. But what they are serving you now is a total crap. The old interface was much cleaner than what it looks today. The interface is even slower. My whole point is they should not have released such an unbaked version.
Microsoft has always been slow in implementing features. Be it anything. For example, when everyone else has already implemented IM feature (inside the mail) long back, they are still to incorporate it.
Anyways lets hope for Hotmail to get better. You can share your experiences with me regarding the same.
One year
Blogging
Blogs are great place to share your thought on just anything. It doesn't matter how good you write as long as someone is there who is reading it. Even if no-one is reading it, it gives you satisfaction that you are writing something. I have just limited the scope of blogging by saying the above lines. There is definitely a lot more to it.
The first difficulty in creating a blog is setting up your mind (and not the blog). The second is choosing the service. Then comes choosing a URL. Mind it, choose a URL such that it doesn't change with time. Don't give it name based on your present state of mind. Or something that will not hold true after some time. For example, thirdyearstudent.xyzblogsite.com etc. Now think yourself, are you always gonna be in third year? This name may be pertinent if it actually will always have posts related to third year students only. That is, your are always gonna write about it. That said, choose some sensible name that actually reflects the purpose of blog. Every caution you take while choosing a (non anonymous) email-id should be taken while choosing the blog url/name. I simply use my name for all the stuffs. I don't want to conceal my identity behind some cryptic names (And even my brain can't think of any creative names). But you may want to do so. Do so, but sensibly.
Why am i saying URL should not change? Because someone in the other corner of world may be bookmarking your page or hyperlinking to your blog which would point nowhere once you change the URL itself.
Now what should one write? I don't know. I dont have any goals for myslef. But a blog dedicated to specific subjects receive more attention by limited audience. Blogs written on more general topics receive lesser attention by greater audience.
Do blog. I would love to hear from anyone who is reading this. (well if I am talking about blogs, I should've said read ;)
Wierd Widespread Web
Emails, IMs, Search Engines, Social Networks, Blogs, Wikis, Audio/Video Streaming etc. are just the tip of iceberg. There is whole lot more, huge and massive. Rich Internet Applications are delivering desktop-apps like functionalities in the browser windows. Server Side Technologies are powering billions of hits a day. There is so much going on and beyod that, that it doesnt make any sense to belabor its importance.
What I would like to cover in some of my posts in future is some really cool and useful web based services that I found useful and am using or have used them for some time or would like to use them or would like YOU to use them. And also would love to discuss some common problems that we are facing on the web.
PS: I will tag these posts with 'web'.
Back again
Meanwhile lot of things happened. Is it? I don't know what. I am just putting it this way to give you a feel that the world was not sitting idle while I was studying. I hardly have any idea of what happened.
Again, just writing because I felt like, nothing more to it. Will be writing more in coming days. Although have loads of work , but will manage to update you with some good stuff.
Stay Tuned!
हिन्दी में प्रथम लेख
तो फ़िर क्या वजह है कि हिन्दी का उपयोग आज भी व्यापक रूप से नही हो रहा। हमारे देश मैं इंटरनेट का उपयोग करने वालो कि संख्या दिन प्रतिदिन बढ़ रही है, पर हिन्दी लिखने वालो का प्रतिशत आज भी नगण्य है। एक आम उपयोगकर्ता आज भी हिन्दी मैं लिखना नही जानता। कहने को तो आज हम सूचना प्रौद्योगिकी की महाशक्ति है, पर हम हमारी ख़ुद की भाषाओँ में ही लिखना नही जानते।
हम अपने सामने ऐसे कई उदहारण रख सकते जिन्होंने अपनी भाषाओँ को ससम्मान इंटरनेट तक पहुँचाया। जर्मनी एवं दुसरे यूरोपियन देश, चीन, जापान, थाईलैंड, अरबिक देश आदि आज कामयाबी से व्यापक तौर पर अपनी भाषाओँ का उपयोग कर रहें हैं। पर हम आज भी अंग्रेजी पर पूरी तरह अवलंबित हैं।
कोई दोमत नही कि आज हम जहाँ है उसमें अंग्रजी का महत्वपूर्ण योगदान है। अंग्रेजी की वजह से ही हमने सूचना प्रौद्योगिकी में यह मुकाम हासिल किया है। पर इस वजह से आज हिन्दी का तिरस्कार होने लगा है। यदि आप हिन्दी बोल रहें हो तो लोग आपको नीची निगाहों से देखने लगते है। कम से कम तथाकथित 'कॉस्मो' शहरों का 'मल्टीप्लेक्स कल्चर' तो यही कहता है। बच्चो को बचपन से हिन्दी बोलने पे सज़ा दी जाने लगती है। हिन्दी को प्रायः दूजी श्रेणी कि का दर्जा ही हासिल होता है। या तो अंग्रेजी कि वजह से, या उस प्रदेश कि प्रांतीय भाषा के सामने। कई लोग तो हिन्दी में बात करने वाले को सीधे-सीधे पिछडा करार दे देते हैं। लोग फ्रेंच, जर्मन या कोई विदेशी भाषा बड़े गर्व के साथ सीखते है। पर हिन्दी का ज़िक्र तक करते उन्हें शर्म आती है। यह दर्शाता है कि हम में कितना आत्मसम्मान है।
हो यह गया है कि हम ना तो घर के रहें है न घाट के। ना हमें ढंग से अंग्रेजी आती है, (जी हाँ, आज भी हमारी अंग्रेजी का आंग्ल-देशों में मज़ाक ही उडाया जाता है) ना ही हम ढंग से हिन्दी बोलने के काबिल रहे हैं, और ना ही अपनी प्रांतीय भाषा। और इस भाषा कि खिचडी को नये पीढ़ी की 'फैशन' करार दिया जाता है। मैं किसी हिन्दी के प्राध्यापक की तरह कोई भाषण नही देना चाहता, और मैं ख़ुद भी इसी 'फैशन' का जाने-अनजाने गुलाम बन चुका हूँ।
आज भी हमारे देश की ९० फीसदी से ज्यादा जनता (जो की पढ़ लिख सकती है ), प्रमुख रूप से हिन्दी या प्रांतीय भाषा का प्रयोग अपने रोज़मर्रा के कार्यो के लिए करती है। यदि उन तक हमें इन्टरनेट को पहुचना है तो अपनी भाषाओं को इन्टरनेट तक पहुचाना ही पड़ेगा। हम लोग भाग्यशाली है जो अंग्रेजी पढ़-लिख सकते है। परन्तु जो नही है उन तक इस चमत्कारी सूचना प्रौद्योगिकी को पहुचाने के लिए देशीय भाषाओं का इन्टरनेट तक पहुचना अत्यन्त आवश्यक है।
यद्यपि आज के दौर में अंग्रेजी अत्यधिक महत्वपूर्ण है परन्तु अपनी मातृभाषा का सम्मान करना भी हमारी ही ज़िम्मेदारी है। भले ही आप ख़ुद हिन्दी का प्रयोग ना करे, पर इस लेख को पढ़ कर यदि आप हिन्दी के लिए भी अपने ह्रदय में थोड़ा सा स्थान बना पायें, और हिन्दी को हीन भावना से न देखे, तो भी मेरा यह लेख सफल है।
Chrome shows passwords
Chrome Contd...
Hotmail on Chrome
Google Chrome - A Quick Look
Downloads very fast. Installs very quickly. Very easy.
Browser Startup
Very quick indeed. 10 times faster than ffx I'd say. Really lightning fast. Lets wait for some more features to add to it, like plugins etc.
Page Loading
I don't think browser can do much if your internet connection is screwed up. I didn't find any noticeable difference in terms of loading a page. For real benchmarking, test highly AJAXified sites on chrome. According to developers, V8 and WebKit would make rich internet applications work faster on chrome.
UI
Truly Awesome. Almost no UI. All you see is your webpage. Full marks for UI engineering. All not-so-used buttons/controls (which clutter up other browser's UI space) are safely hidden.
Window's title-bar's space is utilized for displaying tab. Even the browser's name is not shown anywhere on the screen. Looks like not a single pixel is wasted.
Tabs
Extremely Flexible Tabs, Pull out of one window, Push it in other window.
Secure. If one tab crashes, whole browser wont go down. (ffx3 on vista has become real pain in this regards)
Shortcuts
common shortcuts keys should work like they work for ffx/IE.
CTRL+TAB, CTRL+SHIFT+TAB, F5, CTRL+N, CTRL+T etc.
(They SHOULD work, for ease of new users)
Address+Search Bar
Address bar can act as search bar as well. (hmm...)
Application Shortcuts
drag and drop web applications shortcuts on desktop (..not a great deal, at least i think so)
Well well well....you can read about more features (downloads, security, incognito window etc) on chrome's site. Why am I wasting my time!!
Conclusion
Truly a new generation browser. Its worth giving a try. Very light weight and fast. Smart, streamlined and intuitive UI. But in the browser market, it has a long way to go.
Google Chrome
Internet Explorer, the blue E, had become synonymous to internet the same way Windows became synonymous to computer. [I have deliberately used internet in place of browser and computer in place of OS, so please, no hullabaloo regarding the same ;) ] . The little blue E was made an inseparable part of ubiquitous Windows. Though there was an Antitrust suit blah blah.. (which I don't want to discuss here).. it hardly made any difference.
Time kept passing by. The big M had now become a symbol of tyranny. The little E kept reigning the browsersphere. Given the backing of the big M, nobody could move E from its throne.
Meanwhile there was born a little g (then little), who had all good intents of organizing information. Little g would not intrude into business of others. It would just innovate (or take over small fishes in the pond).
At around same time a little m was born. By 2004 little m devised its flagship product named ffx (firefox, if you don't know). It was open source browser, all set to set all the records straight with M for whatever it had done to the poor chap NN (Netscape Navigator). And by far, it is climbing the ladder of success, successfully.
During all this, little g's growth had been exponential. Its journey from little g to bold face, font size 64, underlined, hyperlinked G was record breaking, jaws dropping.
G liked the good deeds of m. Shook hands. Together they looked like becoming a synomym of web 2.0. Glory of browser was coming back. People started realizing that Internet cannot only be explored by IE (and also computer cannot only be operated through a small service Window). G was ruling the web.
G should be having data of users like no other on the planet. G's offerings were increasing day-by day. G Offered win-win situation for businesses and end users by its Advertising services. G took control of everything, from search to email, blog to documents, code to health, finance to patents (and the endless list goes on). But somewhere in the back of its mind, G realized that all services it provides are still accessed through a medium (browser) on which it has little control.
Bang!!!! G lunched its own browser named chrome. They are giving good reasons as well. (Psst psst... has it got anything to with impending release of IE8)
As of now (2-Sep-2008), it (like all other Google products) is under Google's cool, all-new, exclusive forever-beta tag. Do they also think putting beta is trendy? because gmail, after 4 years, still has beta.
Anyways, I've always liked almost everything Google has offered. And am going to try this out as well and very soon gonna update you about it.
PS: Don't be deceived by the cynical language of this blog. I am a Google fan. I have respect to MS as well. They have done a lot good to the computing world. Please don't always disparage MS. It should really hurt the good folks working there.
PPS: Throughout this blog I have not mentioned the super brand with little i (and their broswer Safari). And also the browser with big O (Opera). This does not mean their contribution is insignificant. They were not here just because they would add a very little to the discussion. Now I have mentioned them, I feel better. Feel much safer from those iFanatics.
PPPS: You can find more on browser comparison (and almost anything that you can think of) on wikipedia
Delete data from tables
You can use this script to clean the tables. It will work for oracle only, AFAIK.
-- script to clean the tables (ie the deleting the data only)
DECLARE
cursor c1 is select distinct table_name from user_tab_columns;
BEGIN
for v1 in c1 loop
dbms_output.put_line('cleaning '|| v1.table_name ||'...');
execute immediate 'Delete from '|| v1.table_name ||'';
dbms_output.put_line('done');
end loop;
dbms_output.put_line('completed');
END;
Disclaimer: I hold no responsibility for the havoc this script may create on your database ;) never use it on production databases.
Presentation on Log4j
Interesting Identifiers in Java
_ _ = new _();
or call to a method like
System.out.println(_._());
Try this example, you'll see, these are valid java statements.
read on..
package test.identifiers;
/**
* example that shows various legal identifiers
*
* @author Kunal
*
*/
public class LegalIdentifiers {
int $1 = 1; // valid
long _6 = 6L; // valid
char t = '\t'; // of course valid, did u have any doubt ;)
class t{
}
t $; // now here t is type & $ is object of type t
class _{
int _ = 0;
int _(){ // method with name of constructor
return _;
}
}
_ _ = new _(); // _ is an object of type _ (underscore)
void display(){
System.out.println(_._()); // interesting, isn't it?
}
// this is not a fill-in-the-blanks question
// it actually compiles and runs :)
// this means
String String = "String"; // is valid
// yes it is !!!
// so you can have variable name same as class name
public static void main(String[] args) {
(new LegalIdentifiers()).display();
}
}
Felt like writing just Anything
complicating things to get rid of complications
I do code to earn my bread & butter. I have observed that I keep on refining/refactoring the code until everything becomes so customizable that it gets too complicated to understand at first sight. I have seen people who just do the work. They do great. They almost never drive themselves crazy for just a freaking line of code which doesn't seem right to them.
The point is to understand the 80-20 principle (Pereto's principle). 80% of work is done in 20% of time but the rest 20% takes the 80% of time to complete. This principle is amazingly true. Notice the time spent on each activity, even the trivial ones. We tend to spend a lot of time on the 'finishing touch'. And if you are not doing so then you are already on your way of learning the art of time management. The art is to cut the rest 20% of work at the point where you can just say you have completed your task. (Say at 90%... you saved 40% of total time just at cost of 10% of work.)... Well it’s easier said than done... :)
In fact, I fall in the category of those pigheaded perfectionists who consume whole 80% of time, still reach to 95% then again waste 20-25% of time & even after that believe there is something left to be done. And this last portion of work which I do really looks like a Monalisa hung on bathroom’s wall. It was really not needed. It doesn’t actually blend with the quality of rest of the things in place.
I do really waste a lot of time. I just can’t understand that why I complicate things so much. How do I convince myself that 90% is enough and is more than what is usually expected or done? Will write something more on the same topic, some other perfect day.