Archives: Programming

Automatically Add Name Attribute for Google Syntax Highlighter

July 12, 2010 | By Rakhitha | 7 Comments | Filed in: JavaScript, Tech.

If you write programming related posts in your blog, you are most probably using Google Syntax Highlighter to highlight your code snippets. In case if you don’t, it’s a set of javascripts that allows you to add syntax highlighting for source code that you post on your blog. It supports a large number of programming languages. After • Read More »

Tags: , , , , , , , , ,

ASP.Net: Reduce Page Size, and Make Pages Load Faster by Storing View State on Server

July 6, 2010 | By Rakhitha | 3 Comments | Filed in: .Net Stuff, Tech.

View state is a mechanism which allow storing data related to the view of the web applications. That includes all data in your controls which is not yet saved to database. But the problem is this can get quite large and take  big bite out of your bandwidth and performance. When to Use View State & How • Read More »

Tags: , , , , , , , , , , , , , , , , , , , , , , , , ,

Fun with Java Reflections: Access Private Member Fields/Methods of other Classes

June 12, 2010 | By Rakhitha | No Comments | Filed in: Java Stuff.

This is a follow-up to my earlier post on Java Reflections.  In the earlier post I just showed how to invoke methods of an object dynamically using reflection. Here I am going to talk about accessing attributes of another object using reflection, with a little twist. Just like my earlier post I’ll start this with • Read More »

Tags: , , , , , , , , , , , ,

Java Core API: Introduction to Java Reflections

June 12, 2010 | By Rakhitha | 6 Comments | Filed in: Java Stuff.

Here is an exercise for you! Write a java program that take two or more command line arguments. 1st argument is a class name. 2nd argument is a method name. Rest of the arguments are string values to be passed in to that method. Your program has to load the class specified in first argument • Read More »

Tags: , , , , , , , ,

Me, My Self and Java

June 11, 2010 | By Rakhitha | No Comments | Filed in: Java Stuff, Me, Myself & I, Tech.

Programming is my main hobby. I wrote my first computer program when I was 11 years old. Then I was using GW BBASIC. Since then I have learned QBASIC, Pascal, Visual Basic, Perl, Java, PLSQL, C++,  PHP, C#, bit of Python and many other things over time. I screwed up  my A/L for it but • Read More »

Tags: , , , , , , , , , , , , , , , , , , ,