<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener("load", function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <iframe src="http://www.blogger.com/navbar.g?targetBlogID=8211560&amp;blogName=Web+Development+Tips%2C+Tricks+%26+Trivia&amp;publishMode=PUBLISH_MODE_BLOGSPOT&amp;navbarType=BLUE&amp;layoutType=CLASSIC&amp;searchRoot=http%3A%2F%2Fmvark.blogspot.com%2Fsearch&amp;blogLocale=en_IN&amp;homepageUrl=http%3A%2F%2Fmvark.blogspot.com%2F" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" height="30px" width="100%" id="navbar-iframe" allowtransparency="true" title="Blogger Navigation and Search"></iframe> <div></div>

Web Development Tips, Tricks & Trivia

by 'Anil' Radhakrishna
A seasoned developer's little discoveries and annotated bookmarks.

Search from over a hundred Web Development HOW TO articles, Tips and Tricks


PDF Security - a myth?

Tuesday, November 10, 2009
In the whitepaper "How Secure is PDF?", Adobe Certified Expert (ACE) Bryan Guignard's conclusion on PDF security is -
The only way your property can be safe is if you keep it to yourself.

The site Giveaway Of The Day (GAOTD) is even giving away a commercial tool called Recover PDF Password for free. This tool unlocks restricted PDF documents & recovers passwords of protected PDF files.

As per comments at GAOTD, this isn't also the only tool. This comes as a rude surprise to me.

Sometimes, ignorance is not bliss.

Labels: ,

Resize an Image & Email with just 2 steps

Friday, November 06, 2009
Got to know from Vinod Unny's tweet that you can select some pics in Explorer and click the "Email" button to auto-resize to emailable format in Windows7.

This feature works in Windows XP & Vista too! Right click a large image that you want to email. Choose Send To > Mail Recipient -


As soon as you do that, Windows XP provides an option to let you resize it -



The dialog box is a little different in Vista -


That's it!

Also see:
Crop Images online
Free tools to generate screenshots

Labels:

Say Goodbye to Privacy

Wednesday, November 04, 2009
Don't take yourself so seriously. No one else does.
Regina Brett


Danny Dover makes an interesting point on privacy -
The privacy conflicts .. encountered in the offline world are nothing compared to those .. in the online world.

With a story & hard facts he illustrates how our private details are tracked by popular websites -
And some people actually think nobody is interested in them :-)

Labels:

Don't let Chrome & Firefox remember your passwords on a shared computer

Friday, October 30, 2009
If you like your browser to remember your passwords, you would have to be careful if you are agreeing to this setting in Chrome & Firefox, especially on a shared computer.
Remember Password, Firefox
Any unscrupulous person can find them out with little effort as this post by Roy Osherove explains.
With Firefox, the default behavior is to allow anyone to see your passwords as well, but you can actively choose to use a master password in firefox to make this less accessible. the default is that it’s open for anyone to see. With Chrome, there isn’t even a “master password” option.

IE, Opera, Safari store passwords if you ask them to remember but do not display them.

Also see:
IE8 Developer Tools Tips & Tricks

Labels:

Some Software Engineering Myths Busted

Tuesday, October 27, 2009
Nachi Nagappan, a senior researcher at Microsoft Research worked with Microsoft development teams to validate conventional software-engineering wisdom and came out with these findings (copied almost verbatim) -

* Code coverage measures how comprehensively a piece of code has been tested; if a program contains 100 lines of code and the quality-assurance process tests 95 lines, the effective code coverage is 95 percent. Higher code coverage is not the best measure of post-release failures.

The reason is that software quality depends on so many other factors and dynamics that no one metric can predict quality—and not all metrics apply to all projects. Two of the most obvious reasons why code coverage alone fails to predict error rates: usage and complexity.

..it is more beneficial to achieve higher code coverage of more complex code than to test less complex code at an equivalent level

* Test-Driven Development - TDD teams produced code that was 60 to 90 percent better in terms of defect density than non-TDD teams. They also discovered that TDD teams took longer to complete their projects—15 to 35 percent longer.

...the tradeoff is that you reduce post-release maintenance costs significantly, since code quality is so much better.

* Assertions are contracts or ingredients in code, often written as annotations in the source-code text, describing what the system should do rather than how to do it.

More assertions and code verifications means fewer bugs.

Looking behind the straight statistical evidence, they also found a contextual variable: experience. Software engineers who were able to make productive use of assertions in their code base tended to be well-trained and experienced, a factor that contributed to the end results.

* Organizational metrics, which are not related to the code, can predict software failure-proneness with a precision and recall of 85 percent. This is a significantly higher precision than traditional metrics such as churn, complexity, or coverage that have been used until now to predict failure-proneness.

* Distributed-Development - One of the most cherished beliefs in software project management is that a distributed-development model has a negative impact on software quality because of problems with communication, coordination, culture, and other factors.

Does distributed development affect software quality? ...the differences were statistically negligible.

Organizational cohesiveness plays a bigger role than geographical distance.

Labels:

Interviews with Programming legends

Monday, October 19, 2009
Jeff Atwood points out that key interviews from the book Programmers at Work (1986) are available online.

This includes 6 out of the 19 interviews in that book with the following luminaries -
Also see:
"The History of Microsoft" Series
The Visual Studio Documentary

Labels:

Mapping APIs for India

Friday, October 09, 2009
There are quite a few free mapping services for India on the Web but only some among them offer APIs that web publishers can extend & integrate in their own websites.

There is news now that BIG Maps has also released its application programming interface (API). The documentation is pretty comprehensive with demos but it looks like it's not all official yet as the home page of the website currently sports a "Coming soon" label.

The FAQ informs that coordinate system that BIGMaps follows is proprietary but there are ways to import and export data from/to other formats.

This is an interesting development & I hope the competition among the players results in better products.

Also see:
2 months of BigFlix

Labels: ,