Times of India Alive App – Review

Today I came across an interesting app, Alive app from Times Of India. A very nice concept to engage smartphone users to interactive content. But this app is from TimesMobile, not Times Internet Limited. Whatever, lets go and try it out. I quickly opened web-browser on my Android 4.1 tablet and jumped to aliveapp.in. Install. Open. And here is what I felt about it, discouraging, my all hopes are stranded. Read on to know how wrong they are in marketing, technological advances, app design, and mobile user interfaces. (It should be noted that I have not used this app on…

Read more

Split Pascalcase String

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); java.util.regex.Pattern p = java.util.regex.Pattern.compile(“[A-Z][a-z]+”); java.util.regex.Matcher m = p.matcher(camelCase); while ( m.find() ) { label.append( m.group() + ” “); } System.out.println(camelCase + ” >> ” + label.toString()); [ Note: this does not work for all test cases. You may also want to try regexp as “[A-Z][a-z]+”, for matching any continues uppercase letters…

Read more

Handicapped Software

[ 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 me laugh, not for the user, but for the poor developer! Users are innocent, they are not concerned about technical details. A software is there to make life simpler and hide complications of a task. It’s your responsibility to make it intuitive and meet…

Read more

Unreachable code Error or Warning?

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 from code, and such unconditional return statements can be rectified later.

Read more

Setting up SDB for MySQL

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 SDB to rescue you. It’s a component of Jena that allows you to store these models in relational databases like MySQL, MSSQL, PostgreSQL, Oracle, etc; This post describes my experience while setting up SDB on Ubuntu. Download SDB. Extract it into some folder. SDB works…

Read more

Setting Default JVM on Ubuntu

Heard of ‘update-alternatives’ on Linux? It’s a smart utility to find various versions of one software and set default. For example, you may have GNU Java as well as Sun Java. (frankly saying, I hate GNU Java, aka gcj) sudo update-alternatives –config java [ Where can I see all installed JVM? On Ubuntu, Java Virtual Machines are installed in /usr/lib/jvm. You can see java-gcj here which comes by default with Ubuntu. ] – ankit

Read more

Lucene StopWords

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) in-build full-text search engine is Lucene ranks search results based on their relevancy. For example assume you have a product table with <title , description> fields and you want to give higher rank to ‘title’ over ‘description’. ) A stopword is a language-word that…

Read more

Proposal for WordPress Summer of Code

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 and planning meetings, event media, etc. Source WordPress GSoC2009. This proposal generalizes it further. Project Proposal Social networks are a medium of easier communication, bounding and bringing people together. Any effort made to achieve this is highly appreciated by the community (of users). Event management…

Read more

Windows CardSpace: FAQ for ASP.NET Developers

Few frequently asked question for ASP.NET developers: The Identity Selector dialog box is displayed only for SSL protected pages. Therefore you are required to deploy your application on a Web server and install a SSL Certificate. Windows CardSpace does not work with Self Signed Certificates and will die horribly. These certificates do not have CRL field. It contains a URL that CardSpace will check for the revocation list. For ASP.NET developers there is Toolbox control written by Christian Arnold. Add this to your Toolbox and you won’t need to write a single line of code. Watch demo. When you use…

Read more

TFS – Free Text search in History Objects

It’s a best practice to add comment when you do check-in to the source control. A text comment is associated with the change you made to the item. Some of the times you need to find a particular comment, but the View History tool available with Visual Studio/TFS is limited that you can’t make a search in the history results. Say you want to find all check-ins by a particular user 🙁 Here comes the purpose of this small add-in. It provides search within history comments and find a particular change-set instead of traversing the whole list. The plug-in goes…

Read more