Skip to main content

Posts

Showing posts from April, 2014

Thunderbird or Firefox extension - nsISimpleEnumerator

Issue :  Some of the Firefox or Mozilla application extension API s return  an enumerator object of type interface nsISimpleEnumerator ,  that result objects can not be used in a global scope and can not do iteration through the  list more than one time.   Cause: nsISimpleEnumerator  interface has only two methods hasMoreElements() getNext()   - There is no way to reset this enumerator to the first position once it is iterated through once. Like in this example given in Mozilla developer example page,  ( https://developer.mozilla.org/en-US/docs/Using_nsISimpleEnumerator )   var enumerator = document.getElementById('aStringBundleID').strings; var s = ""; while (enumerator.hasMoreElements()) { var property = enumerator.getNext().QueryInterface(Components.interfaces.nsIProperty); s += property.name + ' = ' + property.value + ';\n'; } If you want to reuse the 'enumerator' object again, in another place another loop, this wil...

Developing Firefox or Thunderbird Extensions: Extensions Folder not found in profile folder or Extension not showing up in addons

Issue: When developing Firefox / Thunderbird Extensions , after copying your extension to the extensions folder, your extension doesn't appear in the Thunderbird / Firefox. Cause: Mozilla  apps can be installed under 3 profiles: 1. Single User : Extensions accessible by single user 2. Multi User:  You can setup multiple Firefox profiles still use the same profile folder : default for extensions. 3. Global : This is the installation folder itself. Extensions installed in this folder available for all the users have access to this folder. If your install option and the development extensions folders  differ , after restarting the application will not be to locate in the extensions folder it is looking for. FIX:   (Don't get confused with Window's user profile vs Firefox user profiles - they are different) If you had selected 'Single User' install , move your extension files/package  under your user profile Windows: %APPDATA%\Thunderbird\Profi...

Java 8 and Oracle : Create the Future?!

Did you notice the new punch line from Oracle: Oracle and Java  - Create the Future .  A perfect motivation for the 21st century developers and  they've found a way to get into the nerves of the developers. Java 8 : Now supports Lambda expressions, finally.

What happened to Online Team Foundation Service with Microsoft ( tfs.visualstudio.com)

Issue: No trace of  last year announced Online Team Foundation Service. What happened to it. www.tfs.visualstudio.com doesn't work any more. Fix: www.tfs.visualstudio.com is moved to www.visualstudio.com. Micorsoft has consolidated the Online Team Foundation Service as part Visual Studio Online Service and named 'Team Foundation Version Control'.

Online and Free Team Foundation Version Control for all your source code

Issue: Most of the developers   don't use a  Source Control, Configuration Management and Team Collaboration system while developing small scale or even with the team. Source control which helps you to save lots of time from code loss by IDE crash or System crash. It Helps you to revert back to previous version or compare the versions at later point. Checking-in often to a Source Control  helps you avoid lots of  code commented out in the source in between working code. Also there is not an online service available for free . Most are free  only  for 'open  source projects' or you will have to pay. (Google code, codeplex, github, sourceforge, etc) Solution: Looks like Microsoft is taking a great move in the right direction to catch up with the rocket fast  tech World. Check out, a state of the art Source control online service is FREE for upto 5 users! (You can use with eclipse , android - any code you want, how cool is that?) L...