Showing posts with label Tech. Show all posts
Showing posts with label Tech. Show all posts

Wednesday, June 10, 2009

Jira Firefox Extension

My office uses Jira as bug tracking tool. Quick search option in Jira is really useful to peak into the bug details when you know the bug ID. In my perspective, the deterrent to this feature is, one has start the browser, navigate to the jira site and then do a quick search.

To simplify, I developed a small firefox extension through which you can enter the bug ID and it directly takes you to the bug page.

In the course of this, I got a few good links to firefox plugin development.

Firefox Extension Devlopment
XUL Controls - MDC



If you are interested in the extension, pls leave a comment.
Note: This extension is not generic enough to support all Jira deployments.

Tuesday, November 11, 2008

Feature Request in MS Outlook

I manage my official mails in MS Outlook. I have setup "Rules" to move the messages from my Inbox to designated folders. Apart from these rule based categorization of mails, I have certain manual categorization as well (done at the end of completion of tasks in those mails).

Request for feature:
When a new mail arrives with the earlier categorized mail subject, there should be an indication in the Inbox that earlier mails with this subject has been categorized in a particular folder. This way I could get
  • I could get related mails easily
  • I can perform manual categorization easily

Thursday, March 13, 2008

Lookout - MS Outlook Search Plug-in

For a long time, I was looking out for a simple search option for MS Outlook 2003. I could not convince myself to use some desktop search tool. I felt that most of the desktop search tools are CPU hungry and could slowdown your system at critical junctures. Finally had time and energy to find the search plug-in.

Lookout
“Lookout is a lightning-fast search for your email, files, and desktop works with Microsoft Outlook. Built on top of a powerful search engine, Lookout is the only personal search engine that can search all of your email from directly within Outlook - in seconds. You can use Lookout to search your: Email messages; Contacts, calendar, notes, tasks, etc.; Data from exchange, POP, IMAP, PST files, Public Folders; Files on your computer or other computers.”

History
Microsoft bought this company way back in 2004 and started un-supporting it. So today to get this plug-in you have rely on third-party web-archives.

Disclaimer
There is no support for this plug-in. So use your own discretion.

Download URL
http://web.archive.org/web/20060831223528/http://www.lookoutsoft.com/Lookout/download.html

References
http://www.lockergnome.com/windows/2004/07/26/microsoft-lookout-for-outlook/
http://www.joelonsoftware.com/items/2007/04/19.html

Thursday, October 18, 2007

Tips to copy preserving dir structure

I had this weird requirement. I had to copy a set of different files from different directories from a source folder to a target folder and preserve the directory structure. For instance

Source File: c:\temp\test\abc.txt
Target Folder: e:\test

Copy the Source File into the Target folder preserving the dir structure. I need to achieve the following after copying
e:\test\temp\test\abc.txt

The best solution is to create a jar/zip file and keep on appending it with the file entries. Then copy the jar/zip file to target folder and extract the files. This will keep the directories preserved.

Tuesday, August 21, 2007

Downloading videos from internet

A novel plugin with Firefox enables you to download the online videos from the video portals like Google Video, MySpace, YouTube, etc. The step by step procedure can be found in the following post.

http://www.gilsmethod.com/htdownloadvideosfromtheinternet

Original post:
http://www.dvdhelp.us/php/forums/index.php?act=ST&f=120&t=3910

Excerpt from the post:

1. Download & install Firefox (You need firefox for the extension to work)

2. Download & install the Video Downloader extension for Firefox (The video downloader extension allows you to save videos from popular websites like Myspace, YouTube, Google, and others.)

3. Download & install Media Coder (This encoder converts the video you download into .avi files which allow you to view and store them at your won discretion)

4. Find the video you wish to save. Once you are on the page click the Video Downloader Button in the bottom right part of your Firefox Browser window.

5. A window will pop-up. Click the button that says Download Link

6. When prompted select Save to Disk and then click OK

>>>>>Please note that if the file you download does not have the extension .flv, then rename the file and end the name with .flv <<<<<

7. Start up MediaCoder

8. Click on the I agree radio button and on the Skip Setup Wizard button, then close the window that appears after that.

9. Drag and drop the .flv files you downloaded into the large white area in Media Coder

10. Click on the Video tab in the lower left-hand section on the window and select XviD in the Format drop-down menu.

11. Click the large Start buttonon the top toolbar window to start transcoding your video.

12. When completed a window will propmt you saying that transcoding is completed, go your file's original location and an .AVI file shoudl be there with the same file name. Now you can play it with Windows Media or your favorite media player.

Friday, August 10, 2007

Googled

Just after a few hours of posting about the Shivanasamudra falls trip, I could see my blog post listed in Google search results.

Friday, July 20, 2007

FileZilla - review

Have been using the FileZilla ftp client and server, the experience has been amazing. It is free and stands by these words.

"FileZilla is a fast and reliable FTP client and server with lots of useful features and an intuitive interface."

Wednesday, July 11, 2007

Outlook 2003 Search annoyance

Have you performed a simple find in MS Outlook 2003 client? The search happens in the folder from older date to the recent one. Doesn't it sound strange?

Ideally I would be more interested in recent mail threads than the older one, since the recent ones will make more relevance. When the search results are shown, the older ones are displayed first and then the recent ones. So one has to wait till the search completes fully, before getting to see the most recent thread.

Are there any tweaks that can be done to Outlook to search in the reverse way? Anyhow the default configuration is really annoying.

Friday, June 29, 2007

Event Mailer

The spark happened when there was a discussion in the college group, "how prompt people are in sending birthday wishes". Somehow I am never prompt in this one. I wish to make a mark every time a wish is sent. Another reason is to kill the time when I get locked in office (happens during most of evenings). Thirdly wanted to have a hands-on on a couple of Java technologies which I know only conceptually.

Technologies Used:
JDK 1.5
JAXB
XML and XSD
Java Mail
Java Servlet
Apache Commons HTTPClient

Flow chart:
There are two parts to this project.

Getting the event list
1. Got the recurring birthday list from the Group Calendar
2. Converted it into a CSV file format
3. Used JAXB to create a events xml file from the CSV file

Sending the mailer
1. Read the events xml
2. Check for any events scheduled for today
3. Send out a request to Event mailer servlet with subject, message and mailId.
4. The event mailer servlet sends a mail

The events xsd is made generic such that it can span more than birthday list. I had to use event mailer servlet (hosted in myjavaserver), since could not make SMTP connections (I am behind the firewall). Made a cron job (using windows scheduler), to run the mailer everyday.

Tuesday, June 26, 2007

Sony Ericsson K550i - Network icons

Just pondering over the 'G' and 'E' icons displayed near the network tower indicator on the top left corner of the phone screen. Lately found that it represents the network capability of your mobile service provider.

For more information refer the network tutorial on the Learning Center in SE site.

Legend:

Thursday, June 21, 2007

Things to consider while writing public APIs

When you expose public class/APIs, there are certain things that you need to consider

1. Arguments/Parameters
Carefully consider the arguments that gets passed into the API.

2. Method Name
Choose an apt meaningful name for the public methods or classes. Avoid ambiguity.

3. Exceptions
Throw only non-runtime exceptions, so that clients can handle them. Do try to handle all the exceptions in the method. If you have logging framework, log the exceptions and rethrow them.

4. Backward Compatibility
Once the APIs get released and you need to support them for an extended period of time. So if you modifying existing public APIs take care of backward compatibility, such that you wont break client code.

5. Intented use
The public APIs should do only what it is intended to do

6. Java docs
Provide clear crisp java docs. The best example is the one that comes with JDKs.

7. Trace / Log / Debug
Provide support for tracing/logging. Both serves different purposes. Trace is used to find the control flow inside the public APIs. Logging is used to log any error messages and exceptions.

8. Error statements
In case of wrong parameters getting passed, log descriptive error messages. The error message should typically say what went wrong and what is the corrective action.

Monday, June 18, 2007

Find java class files in JAR

Typically in a development environment of a big J2EE product, you often cross the step of including the right jars in your library path to get your product compile/run/debug. With lot of jars lying in you lib folder, you face the daunting task of including the needed few.

OR

In case if you want to find from which jar a particular class gets picked up, you face the same daunting task of opening the various jars and looking out for a particular class file packaged inside it.

To get rid of this one, I came up with a java program that takes a path and class name and spits out the jars which contains the class. The usage of FindClass is simple

java FindClass C:\j2ee\product\lib MyClass

FindClass iterates through the folder (and subsequent subfolders) to get the list of available jars and list out the jars, which contains the specified class.

I used JarFile and JarEntry to read a jar file. Rest is all simple File operations.
If you love to use this util class, drop a comment.

Tuesday, June 05, 2007

MyJavaServer - Signup Challenge

When I tried to sign-up for MyJavaServer service, I was quiet amused by their sign-up challenge. The challenge is to write a small Java program (just to make sure that you are conversant with Java). The site then compiles your program and runs a couple of tests to validate the program. Quiet a novel way to authenticate the users.

Signup Challenge
Master a simple Java programming challenge (STATUS: NOT PASSED)

As the principal engineer of an HTTP web server, you are responsible for implementing the request processing subsystem of the server.
An incoming request for a specific resource, identified by an URI, must be dispatched to the appropriate handler according to the server configuration which maps URIs to request handlers. 'HandlerFactory.getHandler' must be implemented:

public class HandlerFactory
{
public String getHandler(String[] config, String requestUri)
{
}
}

The string array 'config' contains URI patterns and handler names. Two consecutive values form a key-value pair comprised of URI pattern and handler. 'requestUri' represents an incoming request, the URI to match against the configured handlers. 'getHandler' must return the correct handler for a given URI as a string value.

An URI pattern never contains wildcards and represents the start of an URI string, a prefix. Matching must be implemented accordingly. The handler with the longest matching URI pattern wins if more than one pattern matches. If no handler can be found, "XqAoLy" must be returned.

MyJavaServer

Found that MyJavaServer is a free online java application server that one could use to host their web applications for free. They offer the following services on their site for developers.

Java
Java SE 6.0 based application server
Servlet 2.3
Java Server Pages (JSP) 1.2
Pre-installed third-party libraries

RDBMS services
Embedded: HSQLDB, InstantDB

Miscellaneous
SMTP service
Unfiltered HTTP responses (no ad placement)
WAP/WML, Java WebStart MIME extensions

Storage
5 MB initial filesystem quota
Full native filesystem read/write access
File Transfer Protocol (FTP) file management


Quite cool. They use Tomcat application server to provide the service. So if you just want to host any simple web app for free, MyJavaServer is the place to go!

Tuesday, May 22, 2007

Google's Bot is amazingly fast

Google's web crawler bot is amazingly fast. My yesterday's post on Nimishambha Temple trip has been already added to google's search index and ranks first.

Thursday, March 22, 2007

Closures in Java


Watch the talk given by Neal Gafter from Google

How to download video from Google Video



By now, most of us would have watched videos online using Google Video sharing site. Google doesn't allow you to download the video file. And when you download, it gets you the gvp (google video player) file. In order to get the video file, you need to do a small hack. Edit the gvp file and you will see the URL. Use this URL to download the avi file.

Beware that google had encoded the video file in such a way that only its player will be able to play the avi file.

This titbit will be of great use when you want to watch the videos off-line.

Friday, March 02, 2007

Doubly Zipped

When you compress a folder/files, doubly zipping reduces the size further compared to the single zip. Why is it so? Why can't single zip does the same compression? If we keep-on zipping, will the size keep on reducing further?

Yet to find answers for all these? Any pointers?