Archive for October, 2008

Is Linux really ready for a Home User ?

Monday, October 27th, 2008

Is Linux really ready for a Home User ?

I used Windows OS for the past 10 years. I tried (or tried to try) Linux OS some 9 years back. I tried to install Linux on my very very old computer with 500 MHz processor, 32 MB RAM, 4 GB HardDisk. I was first overwhelmed when the install wizard started showing some tech jargon like cylinders etc… Somehow I read associated help and successfully installed Linux to only find out that my mouse is not detected. I tried to tweak it by asking friends, in those days I did not have internet connection at home, I used browse internet from Internet Cafe’s where it was too expensive. Now I got frustrated and thought of going back to Windows, but wait I never formatted a hard disk and never installed Windows OS also.
I gave it a try, I popped in Windows 98 CD and the installation was smooth. Very similar to how I would install any other program on Windows OS, Few mouse clicks and there it is ready. However my display drivers were not installed, but it did not take long to get the drivers and install them. I never again tried Linux again untill 2008.
I was reading a lot about Linux, Ubuntu etc.. how they are ready for alternate OS and especially how Ubuntu can be installed on Windows partition and can be uninstalled from Windows Add/Remove programs. So I gave it a shot, downloaded Ubuntu CD, installed on my hard disk, rebooted and I had a prompt at boot time to select the OS, I was more than happy to see that Linux has evolved so much and it was so easy to try Linux without going through the hassle of disk partitioning etc… When my system booted up, I was even more happy, everything worked fine, my mouse, keyboard, sound card, video drivers everything worked great.
It was perfect with OpenOffice installed, few games, multimedia apps etc… The package manager where I can search for and install applications as long as those applications are available. Just too wonderful and I really appreciate the guys at Ubuntu for making such a great Linux Distro. This is for the very basic user, but not enough for me. As I started playing around more with Linux I found that it is not really ready for a Windows alternative.
Today I read an article titled Ten Commandments for New Linux Users, and I felt like if these are the really 10 commandments then Is Linux really worth ?

4) Thou shalt read documentation and man pages.
Always read the documentation. The people who wrote the software tried to anticipate your questions, and provided answers before you asked.
C’Mon do I really need to read the documentation to start using an OS ? I think OS should be as User Friendly as possible.

Thou shalt use the available support system.
Switching to Linux can be tough. It can be frustrating, but there are a lot of people out there who want to help you. Let them.
Then is it worth the switch ?

Thou shalt not try to recreate Windows.
Linux is not meant to be a clone of Windows. It’s different. Embrace and appreciate the differences.
True, Linux is not a clone of Windows but aren’t different distro’s of Linux trying to be close to Windows to increase User adaption ? And isn’t the blogosphere filled with comparisions of Linux with Windows. They are different in a lot of ways at the underlying kernel level, but when it comes to End User’s experience isn’t linux trying to be close to Windows, yes I can hear people saying about Vista, I am comparing Windows XP.

Thou shalt not give up.
I tried several distributions before I found one I liked. I still try other distros from time to time. I also tried several different programs to serve one purpose before settling on what I use now (amarok, xmms, beep, exaile for music - azureus, ktorrent, deluge for bittorrents). If you don’t like the defaults, remember that you can change almost everything to suit you.
Iam sorry I really don’t want to try and try and try. I would rather stick to my current OS. BTW, if we need to try and try till we find a distro that suits us, that surely indicates Linux is not ready for Home User yet. I don’t want to end up installing an reinstalling my OS every now and then.

Conclusion:
Linux has come a long way, it has greatly improved, I appreciate the work of Linux community. As of now I don’t think Linux is ready for Home adoption, but it is very very close to get there. I wish the Linux community would achieve as soon as possible.

BTW don’t forget to checkout Ubuntu Desktop Edition, it is really really nice.

Update:
I want to use Linux that is the reason why I tried Linux. I may not be an authority to comment on Linux, this is just my opinion as a first time user trying to use Linux on a Home machine (a user trying to use Linux at home).

Is Linux really ready for a Home User ?

19 Javascript String functions explained

Monday, October 27th, 2008

19 Javascript String functions explained

1) escape(string):
The escape method returns a string value (in Unicode format) that contains the contents of [the argument]. All spaces, punctuation, accented characters, and any other non-ASCII characters are replaced with %xx encoding, where xx is equivalent to the hexadecimal number representing the character. For example, a space is returned as “%20.”
Use unescape() function to get back the original string.

2) unescape(string):
De-encodes a string that is encoded using escape() function.

3) encodeURI(string):
The encodeURI method returns an encoded URI. If you pass the result to decodeURI, the original string is returned. The encodeURI method does not encode the following characters: “:”, “/”, “;”, and “?”. Encodes a Uniform Resource Identifier (URI) by replacing each instance of certain characters by one, two, or three escape sequences representing the UTF-8 encoding of the character.

4) decodeURI(string):
De-encodes a string that is encoded using encodeURI() function.

5) charAt(n)
Returns the character at the position nth position.

6) charCodeAt(n)
Returns the encoded character at the nth position.

7) concat(string)
Returns a concatenated string.

8) fromCharCode()
Returns a string created from Unicode values.

9) indexOf()
Returns the position of of a specified string value’s first occurrence in a string.

10) lastIndexOf()
Returns the position of of a specified string value’s last occurrence in a string.

11) match()
Searches for a specified value in a string.

12) Replace()
Replaces some characters with some other characters in a string.

13) search()
Searches a string for a specified value.

14) Slice()
Extracts a part of a string and returns the extracted part in a new string.

15) Split()
Splits a string into an array of strings.

16) substr()
Extracts a specified number of characters in a string, from a start index.

17) substring()
Extracts the characters in a string between two specified indices.

18) toLowerCase()
Converts to Lower Case string.

18) toUpperCase()
Converts to Upper Case string.

19 Javascript String functions explained

Tried Minefield ?

Monday, October 27th, 2008

Tried Minefield ?

What is MineField ?
Minefield is a way the future of Firefox, it’s a pre-release/alpha version of the Firefox browser.

It has a new blue icon. I am not making any statements about the speed, because I believe firefox is fast enough for me. Minefield can exist side by side with your current version of firefox so give it a try, but remember it is a pre release.

I installed this 2 days back, currently it does not support my favourite plugins - FireBug, FireFTP, HttpFox.

Everything worked smooth, except for one crash when I visited some web page that had a Java applet. When it restarted that web page worked fine.

Download from here.

If you are interested in helping mozilla by reporting bugs please visit this page.

Tried Minefield ?

nUrlRewriter - IIS7 Url Rewriter

Sunday, October 26th, 2008

nUrlRewriter - IIS7 Url Rewriter

nUrlRewriter is a ASP.NET Http Module written in managed C# code which examines incoming Http requests and applies user defined criteria which may result in a Http request being redirected or rewritten. Web pages within existing web sites are often archived or retired, however many Internet based hyperlinks may exist for such web pages. nUrlRewriter solves this problem by providing a facility which can easily redirect or rewrite such Http requests to other web site web pages or web applications. For example, a discontinued product web page may be redirected to a general product category web page. nUrlRewriter differentiates itself from other redirectors/rewriters in that nUrlRewriter also supports the IIS7 Integrated ASP.NET Pipeline, enabling nUrlRewriter to redirect/rewrite any incoming web application URL supported by the IIS7 web server, such as but not limited to native HTML applications (htm, html), classic ASP applications (asp), PHP applications (php) as well as ASP.NET (aspx) applications.

Incoming Http requests which are redirected are returned to the originating browser with a status code of either 301 (permanent) or 302 (temporary) to indicate that the requested web page has been moved to a new target URL provided to the browser. the browser will then issue a new Http request for the new URL. Http status code 301 indicates that the URL has been permanently moved and the browser should use the new URL in any new Http requests. Http status code 302 indicates that the URL has been temporarily moved and the browser should use the new URL only for the outstanding Http request.

Incoming Http requests which are rewritten, are rewritten to a different URL location within IIS. Since the originating browser is not informed of the URL rewrite, the browser URL address bar will continue to display the originating URL before the URL rewrite.

nUrlRewriter works equally as well with IIS5 and IIS6.

Home Page

I was thinking of reading some source code of open source projects, I thought I will start with this as this is a simple and small little utility and in my imagination, the source code could be under 1000 lines. Do you have any good suggestions or what are your favourite open source projects ?

Comments and Suggestions are Welcome.

nUrlRewriter - IIS7 Url Rewriter

Fiddling with Fiddler

Sunday, October 26th, 2008

Fiddling with Fiddler

Fiddler is a HTTP Debugging Proxy tool which logs all HTTP traffic between your computer and the Internet. Fiddler allows you to inspect all HTTP Traffic. Fiddler includes a powerful event-based scripting subsystem, and can be extended using any .NET language.

Important Links:
Get Fiddler
Addons
Video Tutorials

Fiddler can be used with non - IE browsers also by changing proxy settings on browser.

Fiddling with Fiddler


Books 24x7