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);
[...]
[ 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 [...]
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 [...]
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 [...]
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 [...]
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) [...]
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 [...]
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 [...]
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 [...]
Hmmm… a new tool in my hands
… and following equation makes me crazy about it!
C# 2.0 + ADO.NET = LINQ = C# 3.0
In simple words Language Integrated Query (LINQ) exposes the power of SQL queries within C# syntax. This technology along with its tools allows you to connect to SQL database, extract metadata, build typed [...]