Tools for web developers….
February 17th, 2010Firebug- Extension to FireFox.
Web Developer Tools - Extension to FireFox.
Fiddler - Like FireBug - Works with IE as well.
Internet Explorer Developer Toolbar - Extension to IE.
Enjoy.

Short, Sweet, Suggestive!
Firebug- Extension to FireFox.
Web Developer Tools - Extension to FireFox.
Fiddler - Like FireBug - Works with IE as well.
Internet Explorer Developer Toolbar - Extension to IE.
Enjoy.

Think what following sentences would mean to you if you hear them in day-to-day conversation.
S1: “People, who do not work on anything, think that nothing is impossible.”
Makes sense?
S2: “People, who do not work on anything, think that everything is impossible.”
Makes sense?
It may seem like S1 and S2 are complementary and that means only one should make sense.
Think more annd you will realize that it is not so!
Hints:
* S1 can be taken to mean that people, who do not do things themselves, can easily think that something impossible is really possible to do when that thing is supposed to be done by others.
* S2 can be taken to mean that people, who do not do things themselves, think that everything is impossible beacuse that is the reason they do not do things in the first place.
* Or read S3.
S3: “People, who do not work on anything, think that something is impossible.”
* What do you mean by ‘people’: all persons? some persons? Specific type of persons? ‘people’ in S1 is same as ‘people’ in S2?
Have fun thinking…

In no particular order.
Extravagance:
The quality of exceeding appropriate limits of decorum or probability or truth
Lust:
Excessive sexual desire
Gluttony:
Excessive Eating
Greed:
Unsatisfiable desire for wealth, power or status
Acedia:
Lacking enthusiasm for things generally and inactivity in practice of virtue
Despair:
The feeling that everything is wrong and nothing will turn out well
Sloth:
Laziness and indifference
Rage:
Excessive uncontrolled feelings of hatred and/or anger
Envy:
Sorrow for another’s good and desire to have something that is possessed by another
Superbia:
Unreasonable and inordinate self-esteem
Vainglory:
Feelings of excessive pride or unjustified boasting

If you ever, ever, put a claim to correct to fullest any situation, I repeat, any situation, then make sure that you find and remove root cause of the problem. Do not just remove symptom(s).
Here is minor, obvious, excogitated, concocted, devised example.
Imagine your best friend. He is having high temperature.
Would you try to cure him by making him take bath in cold water? Would you?!!
Think, buddy, think! Then act!

How do you know if Person knows Something?
Here are indications:
(For logicians, following are sufficient and necessary.)
1. Person believes in Something.
2. P has justification for belief.
3. Something is true.
4. Belief and truth are not accidental.
Have fun thinking about this!

I am working on a project where backbase is being used. Customer wants to have filters on top of ListGrid. Unfortunately, ListGrid from backbase does not support this. I searched developer network on backbase developer network for this functionality. Either I missed it or it was not there. I have ended up working on custom widget which will support this. I think this source code can be useful to many others. So, I share it here. Though it is straight enough, if I recieve many request I will explain it in detail. So, without much ado, here it is. Note that it is WIP and without any warranty ;-).
Example usage:
<cp:cpListGrid id=”cpFilteredGrid”
width=”auto” height=”300px”
readonly=”true” rows=”10″ dataSource=”myGridDataSource”>
<e:handler event=”DOMNodeInsertedIntoDocument” type=”text/javascript”><![CDATA[
this.addColumn('title', 'title', '100px', true, 'text');
this.addColumn('ranking', 'ranking', '30px', true, 'checkbox');
this.synchFilterWidth();
]]>
</e:handler>
</cp:cpListGrid>
If you are normal, you must be loving Intellisense in source editor in visual studio. You press ‘.’, and you get help.
It is good, with one bad side effect. When intellisense window is opened, you cannot see source code beneath it. So, sometimes when you need to see that part of source code, you have to close intellisense window, look at source code, and open intellisense window again.
Do not blame microsoft, as they have provided a solution. Just press ‘Ctrl’ when intellisense window is open. Try it now.

If you are successful in getting visual studio barking at you with error message “instance failure”, there is a very good chance that you have used \\ in your connection string in configuration file. Replace all \\ with \ and you should be okay.
I learnt it hard way!

Reason 1: Triggers are not maintenance friendly.
Triggers are basically “Side Effects” and too many of them will create complexity of understanding.
Triggers are “hidden” in data definition language (DDL).
Reason 1: Buggy triggers can create issues.
Any buggy code can create issues, but triggers have context to create tricky concurrency ones.
Triggers are fired even when transactions are rolled back. And that means, even if inserted rows rolled back, “after insert” triggers would have fired! If this fired triggers are doing something outside RDBMS (like sending mail), that will be a problem.
In general, triggers must not do anything with external entities if they are not participating in transaction.
Also, triggers must not work on mutating tables. This means if trigger is executed as result of query operating on table X, then trigger must not query table X. Simple reason is that for one query, trigger may be fired many times and each time trigger will see different data in table X. In general, it is difficult to keep entity integrity via triggers.
Advice: Treat triggers as last resort to solve a problem.
Source:oracle.com
Framework is incomplete, though concrete, driving solution to recurring high-value problem. To elaborate more, let me go through properties of framework one by one.
1. Framework is concrete.
In other words, framework has physical components - usually files usable during production.
Java and .Net frameworks are set of concrete components like dlls, arjs, exes etc.
GoF Design Patterns are not framework as they are practical design ideas. It is up to you to apply those ideas to context. Design patterns are logical ideas which you convert to concrete software in a project, whereas framework is concrete already.
2. Framework is incomplete.
Framework itself is not usable on its own. Framework does leave some fill-in-the-blanks for its user.
If you deploy Java/.Net framework to a end-user computer, it does not add any usability value unless you write your own code to use Java/.Net and then deploy that code in executable form along with framework.
More powerful is framework, less complex are fill-in-the-blanks and more efforts in learning to use framework.
Frameworks pose trade-off challenge between learning curve and saving-coding-time.
3. Framework drives solution.
Framework dictates how you do fill-in-the-blanks. Framework dictates overall architecture of complete specific solution.
You have to follow ASP.Net rules, if you have to use ASP.Net framework to build a website.
4. Framework helps solving recurring problems.
That just means that framework are very much reusable as they are helpful in many recurring problem contexts. This also implies commercial case for building a framework for set of problem contexts.
5. Framework deal with high-valued problems.
How to add two number is a problem. Solution is a routine in a form of library. But then it is not a framework as problem is not high-valued.
Providing object persistence is high-valued problem and you can build framework for same. Note that value is relative term.
If you look at these properties, it does not make sense to try to solve any specific non-trivial problem without help from a already existing and proven framework!
Dr Nigel Bannister (University of Leicester) worked out cost of obtaining 1 megabyte of data from Hubble – and compared that with the 5p cost of sending a text SMS.
He said: “The bottom line is texting is at least 4 times more expensive than transmitting data from Hubble, and is likely to be
substantially more than that. The maximum size for a text message is 160 characters, which takes 140 bytes because there are only 7 bits per character in the text messaging system, and we assume the average price for a text message is 5p. There are 1,048,576 bytes in a megabyte, so that’s 1 million/140 = 7490 text messages to transmit one megabyte. At 5p each, that’s £374.49 per MB - or about 4.4 times more expensive than the ‘most pessimistic’ estimate for Hubble Space Telescope transmission costs.”
There you go!
Here are symptoms of cancer (of various kinds) taken from a postal mail from http://www.globalcancer.org/:
C: Change in bowel or bladder habits
A: A sore throat that doesn’t heal
U: Unusual bleeding or discharge
T: Thickening or lump in breast or elsewhere
I: Indigestion of difficulty in swallowing
O:Obvious change in wart or mole
N: Nagging cough or hoarseness
Spread this knowledge…
I received a forward from cousin on - How to identify an Indian. Based on that I have come up with sysptoms of being gujarati.
Enjoy!
Nope. I will not. I tried it by making it my default browser for few days.
Pro: really fast, Easy to use, Good for casual browsing
Con: No add-ons like FireFox 3.x
I will still keep using FF3.x…
If you have to decide on something important enough, do you get in a dilemma?
You want to buy a car. At the same time, you do not want to spend too much money. Your old car is still good enough, though just reaching a point where you should sell it off. No new car is good enough is your budget and you are scared that you may end up buying accident-damaged second hand car. You end up in a situation where all options have some negatives for your context and you think too much over it which keeps you away from making decision.
To get you out of this dilemma, think if following statements are true.
* All non-trivial decisions have +ve and -ve possibilities.
* All non-trivial decisions have impact (good, bad, etc) when actually taken. Impact may not have been seen as possibility before.
* You can learn from impact.
* Only you are responsible for impact of decision supposed to be taken by you, even if you take ‘advice(s) or guarantee(s)’ from no-matter-whom.
* Nobody can guarantee success, though somebody can help/influence/guide/opine etc. Note that anybody can guide you towards good or bad decision based on their own incentive.
* Anybody can do only this : Make sure to try hard enough, in reasonable time frame, that decision is ‘good’ in a context, in any case.
All in all, here is golden rule.
Take a conscious decision and take responsibility for impact.
Note that keeping decision pending is also a decision!
nFAQ: Not Frequently Asked Questions
Q: Why do they ask us to make seatback upright while landing and taking-off?
A: So that if aircraft crashes, we do not easily slip out of our seat belt.
Q: Why do they ask us to keep window lid open?
A: So that if there is something wrong outside (i.e. engine is on fire), one of us can see and inform them.
Q: Why do they ask us to keep mobile phones in switched off mode?
A: So that there is no chance of interference with radio devices on aircraft.
Note that it is just about not taking chance. If every phone would cause interference then they would not allow us to carry it on aircraft at all.
Q: Why do they serve candies before take-off?
A: So that we can ’suck’ candies to avoid ear-whistles or change in blood pressure.
Source: Outlook
To prove, here is partial list of useful things produced, discovered or invented by accidental idea(s):
1. Microwave Oven
2. Pacemaker
3. Velcro
4. Slinky (Spring like toy)
5. Saran Wrap
6. Safety Glass
7. Urea Synthesis
8. Teflon
9. Super Glue
10. Scotch Guard
11. Helium
12. Iodine
13. Polycarbonates
14. Celluloid
15. Rayon
16. Indigo
17. Saccharin, Aspartame, Acesulfame - sweeteners
18. Penicillin
19. LSD
20. Viagra
21. Laughing Gas
22. Oral contraceptive
23. Vaccination
24. Uranus
25. Superconductivity
26. X Rays
27. Inkjet printer’s working principle
28. Rubber Vulcanization
29. Corn Flakes
30. Ice Cream Candy Bar
31. Post-It Notes
32. Potato Chips
33. Frisbee
34. Sandwich
35. Coca-cola
36. Champagne
Here is 25 things which would change things in India. And so, may have effect elsewhere in world as well .
List is from Outlook Business May Anniversary Edition.
If you are not from India, this will give you an idea of what is going on in India.
1. India, with China, will dominate world economy.
It is still early days. Too many things need to be done, before ‘world domination’ can be claimed.
2. $3000 Car
Negative: Road infrastructure is too bad. Traffic is going to be too bad even in small cities of India.
Positive: Hopefully this will awaken governments, both local and central.
3. Rice Intensification System (RIS)
This will double rice production in India. Rice is staple food in India. And RIS is needed for India’s growth.
4. Smart Cards
All numbered cards (Income tax card, election card, ration card) will be unified. Hopefully, there will be better control over corruption.
5. Aerotropolis (Airport City)
City center will shift. If Airport will have SEZs around them, then lot of things will change.
6. Rs 5 Lakh ($12500) House
This, though less than one bedroom apartment, will make lives of people living in slums better.
7. Rural BPOs
Rural areas will develop. Villagers will have wealth.
8. Piped Gas Ecosystem
Gas will always be cheaper than crude. And it will help fight pollution.
9. Micro-pension schemes
This will increase social security for poor people by making them able to financially self reliant during old age by investing micro-amounts while they are earning.
10. Mobile Wallet
Mobile will not be only for talking anymore. Not too much cash needed to be carried.
11. Commodities Aggregators
This will make agricultural supply chain more efficient and fair to farmers.
12. Migration Services
India already Border-less workers! This will happen internally among Indian states, too.
13. Coal to Oil
Oils is and will be made from coal instead of crude. India has lots of coal. And various gases are by-product.
14. Work from Home
Less traffic, less fuel, more work, happy employee, …
15. Solar For Poor
India has lots of Sun. Solar lamps will become cheap enough.
16. Alternative Public Distribution System
New system is to execute most operations at village level. It is more efficient and fair.
17. Plastics to Fuel
This will be boon for environment as waste plastics will be used for production of fuel.
18. Digital Delivery of Movies
This will allow ‘real’ all India release to as many cinemas without too much distribution cost. Piracy can be beaten.
19. Bar Camps
These are informal forums with objective of sharing ideas. These will become brain storming vehicle.
20.Vernacular Keyboard
These gesture keyboards will allow villagers (who do not know English or cannot handle complex keyboards) access to computer and Internet.
21. Telemedicine
Remote and relatively cheap health-care delivery which knows no distance will become widely available.
22. Pay per Use
DTH, Video on Demand, Audio on Demand….
23. Online Education
Always available, no distance issue, cheaper once infrastructure is setup. Then India will have more people educated.
24. Computer-based Functional Literacy
Multimedia based literacy programs will make sure literacy rate increases.
25. Electric Vehicles
Average cost per Km will come down drastically.