Archive for the ‘technology’ Category

Windows 7 – Yet another review

Thursday, January 15th, 2009

After microsoft released the first Beta for Windows 7 last friday, I decided to try it out. First some introduction. I am primarily a Windows Vista user who tries to switch to Ubuntu every now and then but somehow never gets around doing it. I installed Windows 7 on a 3 year old laptop that Nilopa donated to me(just for some time). The specs of the laptop are:

  • Intel Pentium M processor 1.73 GHz
  • 512 MB Ram
  • No graphics card.

Yes the hardware specifications are not exactly what Microsoft suggests and technically not supported by the release. But then I didn’t want to post the same stuff that has already been posted here, here and here. So, Here goes my take on it:

As you can guess from the hardware configuration, I ran Windows 7 without the Aero Interface. So what I reviewed would as “Windows 7 Basic”.

  • None of the Fun Applications (as Apple refers to them) are shipped with the OS. Photo Gallery, Movie Maker, Messenger, calendar, Mail etc are shipped separately. This allows Microsoft to focus more on the OS and lesser on the frills as I generally call them.
  • There is a “New” taskbar.  In case you are wondering what is new in it, It looks a lot like the Apple Dock. You will basically see a bunch of icons for different applications in the taskbar. Active applications have a very subtle square around the icon while the rest just sit there. You can add new icons to the task bar by running an application once and then “pinning” it to the taskbar.
  • There are several UI changes:  As is usual with Microsoft releases, there are quite a many UI changes. What I am glad to report is that many of them are in the right direction. The wireless networking related functions can be accessed faster. The action center and system tray customization are good features to be included. Another commendable move is the removal of the ugly black sidebar. The control panel has been restructured while the search box in the start menu gives better results.
  • And there are those not-so-good changes:  There are many changes that leave the application behavior inconsistent. For example, The post-it gadget has been removed and instead a new application has been added that does the same work. The problem with the move is that applications do not behave the way gadgets do when you click on the “show desktop” icon on the taskbar (and this is really annoying). Some fundamental changes in icon behavior on the taskbar are not so welcome. For example clicking on an icon starts a new instance of the application but subsequent clicks just minimize or maximize the already running instance.  This behavior is again similar to the way OS X behaves but not what Windows users would expect.

Here are some screenshots from my installation:

Various Applications

Various Applications in the new Version:
Paint, Wordpad and Calculator sport a sleeker UI

The new Taskbar

New TaskBar

In short:

Windows 7 is a release worthy of being called the next version of Windows. It adds a few new features to the OS and at the same time improves on the stability, usability and performance of existing features. Some features might take getting used to but they will be apprecited with time.

Usable AJAX (how to not break the back button)

Wednesday, December 10th, 2008

Have you wondered how the websites like Gmail use Ajax and yet make sure that usability is not compromised? The trick is widely being used but still, I get almost 3-4 hits everyday on this topic. So I decided to explain it…

The problem: Sending requests to servers asynchronously using javascript to load content dynamically(or should I say AJAX?) has been around for quite some time. It became popular when Google started using it in Gmail and it has been in the buzz since then. The buzz has started dying down now with usability becoming the important aspect now. I completely agree with the trend and this post is about solving one of the problems related to it. The problem in one sentence is:

While making AJAX calls, how do you keep the behavior of back button from breaking.

To explain it further: When you are changing the state of a page, using Ajax, how do you make sure that the user can return to it or a meaningful state without problems?

The solution:

(more…)

Tools for a Web Developer

Monday, December 8th, 2008

I have been developing things for internet for more then 5 years now. I started out as a script kiddie when I was in first year at DAIICT. I started out by creating simple websites using Microsoft Frontpageand publishing them on different [free] servers. As time passed, I started hacking javascript code, learnt the concept of CSS and why styling should be done using CSS and not HTML (seperate design from content!). Since then I have done countless number of projects, designed and redesigned my website and also participated in different programs(Google SOC 2007 with Drupal :).  Today, I thought I should share the programs that I use for web development and ask you what you use.

As I mostly work on windows, the programs listed here are specific to this OS. Of course this does not mean that these are as fast or function rich as vi.

Editor: I generally use multiple editors for creating the web pages. Notepad++ is one of my first choices. It has tabs, syntax highlighting and it supports almost all the languages that I want to develop in. The only thing missing is the auto-complete feature. If there is such a feature available, I could not find it.

The other editor, that I have had an on and off relationship with, is Aptana. It is a fully featured IDE based on Eclipse and supports all the client and server side languages that I can think of. The only thing that goes against it is the bulkiness. I can never open more then 10 files at a time and still work without being slowed down by it.

Reference: For references on topics related to Web Development, I usually go to Google. I specially find articles on A list Apart, quirksmode to be of real help when dealing with compatibility issues. In addition, there are quite a few resources that have come up recently. One of such resources is Google DocType.

Testing: The rule of thumb here is to develop in Firefox and then tweak and patch-up for IE. Doing work in Firefox is very easy due to the huge number of extensions and plugins that make your life easier. Firefox is also straightforward to develop for as it does not act weird in implementing web standards.

Debugging: Of course nothing is complete without proper debugging tools. Here I find the Web Developer Extension for Firefox and Firebug to be really helpful. You can do almost anything from the combination of two.

With the combination of above tools, the life has become so much easier for me :). Hope it helps you too.

Is there something that I am missing out on? Do tell me in comments!

Updates

Sunday, November 23rd, 2008

Recently I have been trying to experiment with some new things(do I need to mention software related things?). One of the biggest pains in my life is to organize my time. I tend to be a bit late, and somewhat disorganized. To relieve the pain, I decided to I started out with developing a calendar gadget for windows Sidebar. The gadget was supposed to simply display a user’s calendar from Google Calendar with events and possibly provide ways to edit and add events. I started using Google Calendar APIs as they had a pretty good documentation. For some reasons(laziness?)I decided to use the AuthSub APIs that google provides for authorization and then download the calendar in JSON format. This is where I got stuck…

Detail below :)

(more…)

PHP to python. Why?

Thursday, August 7th, 2008

Well.. let me give a background first. I have been working with PHP for quite some time(>3 years) on various projects from small 500 lines to more then 20K lines. I like to keep up with the latest (or should I say hot since python is in no way “latest“) trends. Lately there has been quite a lot of buzz around “which language” is the best for web development. I thought may be it is time to experiment! Firstly I am ignoring Ruby/Ruby on rails completely. I just never got to like it much to put in extra effort. The hosting for ruby can be quite expensive and I like to have complete control on my code(down to last for loop :) which I dont think ruby on rails provides. If I am wrong, someone please comment and set it up for me.

Coming back to the comparison, I really am not the right person to judge which is better. But I know for sure: Even if I can do everything possible on web through PHP, there is one thing missing. The clean structure. For those who say that there is an “object oriented” way to go about to do things in php, I would like to say that php was never designed to be used that way. There are far too many inconsistencies in php to use oop at a large scale. I came across one more funny thing about it today on Google reader. The post can be found here.

So coming back to my situation, I got introduced to python about a year back in a completely non-web-development setting. The basic syntax and structure does not look or feel like it is good for web development. But it was so clean that I wanted to code in it! But how? I had heard about Django but had never tried to use it. From its description, It felt like it would be really handy to use django if I want to develop something in python. And so I started. About a month back, I did tried to use it. To say it in one line, I could not get it to install. The pages on django website are far too long to fit in my somewhat small brain. I could never get over with the problems compatibilities.

For some reason, my love for python has not gotten over yet. I’ll try to begin using it one more time. This time I have a project that I would like to do with it and so will try to be more careful.

I guess I’ll post soon how it went.