Microsoft kills DHTML to take on Google

Back in the yesteryears, Microsoft wanted to build a great browser – hence it ensured it was leading the DHTML feature list. Sites began to be developed specifically for Internet Explorer version 4 or 5. At some point however, it realised it had made the browser too powerful – and Google was taking advantage of that, releasing software as service.

Microsoft obviously hates software as service model since it doesn’t tie people down to a particular operating system. People could very much use a Linux based browser (such as Firefox) to access those services, and at the same time share documents with Microsoft Windows based users who could access those documents as well through Internet Explorer.

One of the strategies Microsoft uses to kill competition is to not support their USPs on Windows. Since most users use Windows today, that prevents those USP features to gain acceptance and die sooner or later. It understood that it could not do this with DHTML: obviously because on the one hand DHTML was its own creation and on the other it would break backward compatibility with Internet Explorer. Hence, it decided to at least halt the development of DHTML and has not added any major features to DHTML in the recent past.

Just an opinion.

Share

Diwali hiatus

Have not been able to post last week due to being busy with the festival of Diwali. It symbolises the victory of good over evil, and is a festival of lights. I may be able to post some pictures later. This is a major North Indian festival and celebrations typically are spread over a week.

Anyhow, I am back now and you will see some posts that I really should have posted during this period.

Share

The Arrow of Time

Being the fan of Stephen Hawking that I am, it’s quite surprising that I have not devoted even a single blogpost to his works. Let me do that today, with the adding of a new category to this blog: Science & Technology.

One of the most interesting of his thoughts is about the arrow of time. We take ‘time’ for granted as a fixed entity universal for everyone. However, as Theory of Relativity tells us: time is personal. Everyone carries his own clock, and they may not necessarily agree. Now, the problem is, how do we define time? I will let the master speak in his own words:

The increase of disorder or entropy with time is one example of what is called an arrow of time, something that distinguishes the past from the future, giving a direction to time. There are at least three different arrows of time. First, there is the thermodynamic arrow of time, the direction of time in which disorder or entropy increases. Then, there is the psychological arrow of time. This is the direction in which we feel time passes, the direction in which we remember the past but not the future. Finally, there is the cosmological arrow of time. This is the direction of time in which the universe is expanding rather than contracting.

He goes on to explain why all three arrows point in the same direction, and why its impossible for intelligent beings such as us to exist in conditions where the three arrows do not point in the same direction.

Read more here, or better: buy the book as I have.

Share

‘Lifafa’-logy

This blogpost is a contribution from Mr.Broca: an article he had written in the year 1992:

Wait friends! You won’t find this word in any dictionary! I’ll explain what it means. ‘Lifafa’ in Hindi means ‘a paper bag’ – the usual ones made from newspapers or magazines etc. ‘Logy’ means the art of gaining knowledge from these ‘lifafas’ which we normally throw away after using whatever is packed in it – be they ‘tandoori rotis’ from a ‘dhaba’ or bread from the corner booth or ‘fish-pakoras’ from a fast food joint!1

A few days ago, my Mummy purchased ‘Rakhis’2 from a seller in Sector 22 market. They were packed in a lifafa. I have the habit of collecting odds & ends, bits of information etc from various sources. So my ‘karamchand’ish eye3 fell on that lifafa. You’ll be surprised to know that that piece of paper proved to be a mine of information. It contained the following items:

  • A column on really jocular jokes
  • A crossword puzzle for children
  • Snoopy and Dennis-the-menace cartoons
  • A funny little poem called ‘a silly fellow’
  • A humourous piece on ‘kitty-parties’
  • Do’s and Dont’s for persons suffering from acne
  • Useful tips for tired eyes, tired legs, kitchen queries etc.
  • How to make a doll from stalks of corn
  • Knowledge bank.

After reading the contents of that ‘lucky’ lifafa I have gained a lot of knowledge on various topics. Do you want to know what I liked best?
Well – the knowledge bank. I am reproducing that portion of the lifafa for your comments:

“Language is essentially a means of communication through words. There are around 5000 different languages spoken in different countries of the world today.4 In India alone the number of languages along with their dialect comes to 845. Of these 15 are recognised constitutionally.

Every language has a set of letters. By joining these letters in a required order we get words. Do you know which language has of the world has the greatest number of words? It is English with 7,90,000 words. Of these about 4,50,000 are regular words and 3,00,000 are technical terms. According to the linguists no one uses more than 60,000 of these in a life-time of writing and speaking. Although more than 4,00,00,000 people throughout the world speak English, its not the most widely used language. The most widely used language is Mandarin or Northern Chinese which is spoken by about 6,75,000,000 people.

The English word which has the maximum number of meanings is the word ‘set’. It has 58 meanings as a noun, 126 meanings as a verb and 10 meanings as a participle adjective.5

See how even a lifafa can be educative! Let us all henceforth read such lifafas before throwing them. Long live lifafas – long live ‘lifafa’logists.

PS: The idea of this article came from a lifafa which I have carefully preserved. Its possible that when you sell this magazine to the ‘raddiwala’6 some enterprising person may make a small lifafa from this very page and you may read this article after some time when you buy ‘moongfali’7 in it. In case you come across it, do let me know. Thanks!

Footnotes are explained in the first comment to this post.

Share

300 years of blessings by the Guru

http://en.wikipedia.org/wiki/300_Saal_Guru_de_Naal

India is celebrating today 300 years of the inception (consecration) of the Holy Book ‘Sri Guru Granth Sahib’ as the spiritual Guru of the Sikhs. It’s a state holiday in Delhi. The celebrations have really started around a year back, on 15th of September 2007. Today the epicenter is Nanded Sahib, where this historic event actually took place years ago.

While we are organising Jagriti Yatra (awareness rally) and Nagar Kirtan (city wide hymn singing), we should also take up the occasion to look within. How many people can place their hands on their hearts and proclaim to being a true Gursikh (disciple to the true Guru)?

A friend asked me a few days back ‘How many points would you give yourself as a good Gursikh?’. I said I would fail at the very first test. He was surprised, and asked me ‘in spite of reciting the Nitnem (daily prayers) everyday as you do?’. I said yes – and I quoted from Sri Guru Granth Sahib – ‘Gur Satgur ka jo Sikh akhai so bhalke uth har Naam dhiawai’. Translated it means ‘One who calls himself the Guru’s disciple, wakes up before dawn and recites the Lords name’. I told him I have never woken up before dawn, let alone reciting the Lord’s name at that hour.

However, the most important task for us at the moment is to root out the evil of shearing of hair. This is unacceptable within the Panth, and we need to ask ourselves why do we trim hair – just to look good (in my opinion, ending up looking like clowns)? Is that reason enough to break away from the Guru’s advice? Lets remember these words:

Hoye Sikh sir topi dhare,
saat janam kushti hoye mare.


Cursed is the Sikh who wears a cap – he will die as a leper for seven births.

Share

NTFS: Alternate Data Streams

Not many people working on Windows using the NTFS file system are aware of a feature called Alternate Data Streams (ADS).

First things first: A file system is that part of an operating system which deals with storage and management of files on the disk. Its responsible for the ability to retrieve data from a file when needed. An operating system can support multiple file systems – for example, Windows XP supports at least FAT and NTFS.

Now we come to ADS. Its a feature of NTFS, and allows data to be stored in “hidden” blocks linked to a file. Normal operations such as reading or writing to the file do not reveal the existence of this data. So it can happen that your hard disk is full, yet the file sizes do not reveal the reason. Here is a small ‘test’ I did in this regards (for people who understand command line – a more ‘Windows’ example is available here):

C:\>copy con hello.txt
This is visible to all.
^Z
        1 file(s) copied.

C:\>dir hello.txt
 Volume in drive C has no label.
 Volume Serial Number is A8EB-38D4

 Directory of C:\

10/15/2008  12:56 PM                25 hello.txt
               1 File(s)             25 bytes
               0 Dir(s)   8,501,428,224 bytes free

C:\>echo This is visible only to some > hello.txt:hiddendata

C:\>type hello.txt
This is visible to all.

C:\>dir hello.txt
 Volume in drive C has no label.
 Volume Serial Number is A8EB-38D4

 Directory of C:\

10/15/2008  12:56 PM                25 hello.txt
               1 File(s)             25 bytes
               0 Dir(s)   8,501,428,224 bytes free

C:\>more < hello.txt:hiddendata
This is visible only to some, and is part of ADS

This is what I did: I created a file called hello.txt with some text. Thereafter, I checked the file-size and it was 25 bytes. I then added some text to the file, but under an ADS named ‘hiddendata’. I again checked the file-size: it was still shown as 25 bytes, and the contents did not show the content of the ADS. However, when I directly asked to be shown the content of the ADS, it was shown to me.

Windows may use ADS to store access related information, or anything it wants to. In particular this is used to store “zone” information – when a file is downloaded from the internet and you see a warning when executing the file – its because of this zone information stored in the ADS. To remove ADS from a file, a quick way is to copy it to a FAT device and then copy it back. Since FAT cannot hold ADS, it gets deleted.

Virus writers, however, may use this feature for anything: they can store their own files without anyone noticing. Can you run an executable file directly off an ADS? You bet:

C:\>start /b c:/hello.txt:hello.exe

C:\>

Hello, World.

Hence it’s important to keep an eye on your NTFS drives. One way to do this is to use a tool called LADS. It comes with a very nice FAQ on ADS. Another tool, one that I haven’t tried myself is LNS.

The official word from Microsoft is here, and another interesting PDF is here.

LADS can be run on a partition, say C: as below:

lads c: /s

If you notice anything strange beyond “Zone.Identifier” or “Thumbs.db:encryptable” – especially a file with ‘exe’ extension – it can be a cause for concern.

Share

Moving multiple files

One common requirement on *nix systems is to rename (or move-and-rename) more than one file, matching a wildcard. However, if you try to do this:

mv ACK*.xml /code/xml/ACK*.xml.done

it wont work for more than one file. By the way, this is one of those odd places where Windows command line works better!

How to work around this? As below:

ls ACK*.xml | sed -e 's/.*/mv & \/code\/xml\/&.done/' | sh

I have already talked about sed, sh and this style of scripting: it can work also on Windows. In the target path all slashes need to be escaped like this: \/ since its being used inside a sed script. Of course, this was easy because we had to suffix something to the filename – had we needed to add something in the middle, it would have been more difficult (and a bigger sed script would be needed).

Here is a more ‘capable’ script: it takes two parameters, first one the path to the source directory, and next one the path to the target directory. It moves ACK*.xml files from source to target/.processed (.processed folder under target) renaming them with the current datetime stamp.

Customise it to suit your needs.

Share

Ravan burning

Yet again India witnessed the effigy-burning of Ravana during the festival of Dussehra. This is how the stage was set initially with Ravana in the middle and Kumbhkaran (Ravana’s brother) and Meghnath (Ravana’s son) on the sides:

Ravana in the middle
Ravana in the middle

Some pictures of the fireworks that happened to initiate the ceremony:

Fireworks 1
Fireworks 1

Fireworks 2
Fireworks 2

Fireworks 3
Fireworks 3

Fireworks 4
Fireworks 4

Fireworks 5
Fireworks 5

In short the story goes as below: Ravana kidnaps Sita, the wife of Rama. Rama launches a battle, and after a few days of fighting, is face to face with Ravana on the day of Dussehra. He shoots a burning arrow and Ravana turns into a fireball:

The Fireball
The Fireball

This is what remains a bit later:

Remains
Remains

So Ravana is killed by Rama, and Sita saved. For more details visit the Wikipedia link.
Watch a video by clicking here.

Share

Chicken or Egg: The Ig Nobel awards

The Ig Nobel awards for 2008 have been announced. These awards are given by an organisation called Improbable Research and are designed to “make people laugh, and then make them think“. They do it in the real Nobel style, with the ceremonies and lectures.

From the website, some of the winners for 2008:

NUTRITION PRIZE: Massimiliano Zampini of the University of Trento, Italy and Charles Spence of Oxford University, UK, for electronically modifying the sound of a potato chip to make the person chewing the chip believe it to be crisper and fresher than it really is.

BIOLOGY PRIZE: Marie-Christine Cadiergues, Christel Joubert, and Michel Franc of Ecole Nationale Veterinaire de Toulouse, France for discovering that the fleas that live on a dog can jump higher than the fleas that live on a cat.

MEDICINE PRIZE: Dan Ariely of Duke University (USA), Rebecca L. Waber of MIT (USA), Baba Shiv of Stanford University (USA), and Ziv Carmon of INSEAD (Singapore) for demonstrating that high-priced fake medicine is more effective than low-priced fake medicine.

The prize itself, is also rather funny: http://improbable.com/ig/2008/images/2008IgNobelPrize1-500w.gif.

From the website, I got to know that apples and oranges are quite easy to compare, that a black hole was found in Calcutta (India), and that people have published their findings on the effect of peanut butter on rotation of earth.

The classic problem of “which came first – the chicken or the egg” has also been investigated both theoretically and practically.

Share

Licensing and information about the blog available here.