Posted by Anay on July 31, 2009
Today, I managed to install Mono 2.4 in Ubuntu 9.04 without affecting Ubuntu’s default mono installation. Thanks to the instructions here (Building Mono 2.4 from source on Ubuntu 8.10), I was able to install latest mono/monodevelop in a parallel environment. Now I can work on C# 3.5 code in Linux as well. Here is the [...]
Posted by Anay on April 8, 2009
For last few days, I was trying to use lambda feature of C# to implement Y-Combinator. After few trial and errors, I was able to implement it in C# 3.5. I’m currently posting the code here and in my next blog, I’ll explain how I derived it. In this code, Y-Combinator function, is used to [...]
Posted by Anay on February 11, 2009
It is really embarrassing to send an email with an attachment and actually forgetting to attach the file you were supposed to mail along, isn’t it? In my case, I often forget to attach files to emails if I’m typing it in hurry. Sometimes, I even end up receiving replies from recipients of those emails [...]
Posted by Anay on February 9, 2009
Gone are those days when users had to learn all the shell commands (Dos or Unix), to be able to use their PCs. Now you have Graphical User Interfaces or GUIs which allow you to do all those tasks simply by pointing and clicking at icons or menus with that small device near your keyboard [...]
Posted by Anay on October 28, 2008
We had an application written in C# .Net, which used to communicate with Alfresco Enterprise Document/Content Management System. The application was using Alfresco’s NTLM component for authenticating users against their AD (Active Directory) user account. The application worked perfectly while we were testing it on Windows XP system. However, on Windows 2003 64 Bit system, [...]
Posted by Anay on October 27, 2008
Most of the time, while trying to replace a substring in a given string, either all its occurrences or just the first one, java programmers tend to use ‘replaceAll’ and ‘replaceFirst’ methods provided by String class in Java. Java programmers like to use these methods to replace substrings as compared to ‘replace’ method of String [...]
Posted by Anay on June 30, 2008
Let’s play with inheritance and closures in Javascript. Take a look at the following javascript code: function BaseClass(){ var id=200; this.Id=function(){ return id; } } function ChildClass(){ var id=500; } ChildClass.prototype = new BaseClass(); var childObject=new ChildClass(); In Javascript, inheritance is achieved using prototype. When we try to access any member on Javascript object, it [...]
Posted by Anay on May 22, 2008
Consider that I have a object called ‘person’ with a property called ‘Name’ which returns me the name of a particular person. I want to assign this object property to a form element such that: The form element will display the value of object property (In our case, the value of person.Name) If I change [...]
Posted by Anay on May 8, 2008
In my current project, we are using Alfresco for the content repository and all the extra functionalities required are developed using Webscripts. While working on one functionality, I had to serialize javascript objects to JSON and also deserialize it. For doing this, there is a nice javascript code on Alfresco Wiki for converting the object [...]
Posted by Anay on March 12, 2008
Many big guys have participated in discussions regarding agile and waterfall model. Hold on big guys, look at this video where two kids have nicely presented the debate on agile vs. waterfall.