Skip to content

Category Archives: Programming/Code

ProxySwitcher – My First Firefox Extension

10-Jan-10

At IITK we have two Internet proxy-servers. Sometimes, one server goes down and we are required to switch to another by navigating to Tools > Options > Advanced > Network > Settings. With Firefox, I tried to simplify this effort with following extension – one click proxy switcher!

Once installed, you will see IITK’s Proxy Switcher [...]

Split Pascalcase String

11-Sep-09

Do you ever need to split a camel case or pascal case string to a set of words? This can be achieved simply by regular expressions in Java as well as C#. The following code is for Java:

String camelCase = “StructuralDesignPattern”;
StringBuffer label = new StringBuffer(camelCase + 10);
[...]

Handicapped Software

25-Jul-09

[ This post is about software's disability to meet users' expectations. I know you have developed lots of software/applications over your career! Have you ever evaluated them on disability index? No, then read on. "You" = refers to our typical "software engineer" ]
Ever heard someone saying “this software sucks”… I love such moments. It makes [...]

Unreachable code Error or Warning?

08-Jul-09

In Java, unreachable code is treated as compilation error. What do you think? Isn’t making it warning would have made developers’ life simpler?
Of course you can write –
if( true )
   return;

What if you could simply write return. This helps in testing a function quickly. As a good programming practice we always remove all warnings [...]

Setting up SDB for MySQL

21-Jun-09

Jena is a semantic web framework implemented in Java. It allows you to store/query/inference RDF/RDSF/OWL triples. In Jena a set of triples (in RDF) are called Model or stored within Model object. By default Jena creates in-memory models, but this is not suitable if you have pretty large set of triples to process. Here comes [...]

Lucene StopWords

27-May-09

Lucene is a open-source high performance full-text search engine and has libraries for almost all well known languages (Java, C#, PHP, Python, C). This post is about describing StopWords for a full-text search engine (Lucene).
( Lucene can also be used to index database table rows. The advantage for having Lucene search instead of (database software’s) [...]

Proposal for WordPress Summer of Code

02-Apr-09

Requirements: Create a suite of plug-ins for event planning, tie it into WordPress MU/BuddyPress/bbPress, and create a community organizing platform for open source release. Using WordCamp.org as the test case, the resulting site would include functionality for registration, calendaring, additional roles/permissions, extended profiles, directories (vendors, participants, etc), discussion and messaging, coordination around things like carpooling [...]

Fun with Yahoo Media Player!

08-Feb-09

A quick way to insert music in your site:

Create hyper-links for few MP3 files
Insert following script code to your page
<script type=”text/javascript” src=”http://mediaplayer.yahoo.com/js”></script>
You are done! Yahoo! Media Player will be loaded and it will make all media links clickable

Here are few of my favorite tracks. Use the play button to listen. Thanks to RadioReloaded.com.
[...]

Concept Maps for sharing knowledge

31-Dec-08

A concept map is a graph to organize (domain) knowledge. It’s a way of representing concepts (entity/act/idea/process) and relationship between them. It is developed to facilitate learning and knowledge sharing among humans. Here is a simple concept map describing myself.

The concept maps are quite similar to RDF Graphs, where we can explain entities and relate [...]

Visual Studio – Database Project Not Loading

05-May-08

Have you ever created a Database project and after some time you are not able to load it in the Visual Studio? Probably you might be getting following error:

An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact [...]