Skip to main content

AddToAny

Share/Save

vaibhav's blog

Path Combine: Leading Slash in relative path

System.IO.Path.Combine is one of the scarcely used method provided by .Net Framework. It is used to combine two strings in to a complete path. Path.Combine is also essential for cross-platform coding as it uses whatever path separator the current OS uses.

 

Error : Unable to connect to the remote server

I got "Unable to connect to the remote server error" when I tried to call a webservice that is hosted on some remote machine outside my firewall. I am using a proxy server, and figured it that my application is not aware of the proxy server. So I did some googling and add the following defaultproxy settings under System.net tag in applications web.config file.

Jquery Form Validation

Gone are the days when client side Form Validation was used to be a hectic task for most of us. Lately I stumbled upon a Jquery Validation Plugin, which can validate a form in much more cleaner and simple way. Here I try to give you a gist of the functionality provided by the plugin.

Let us take an example.

LIMS

Posted in

Row Number function in SQL Server

I used to create temporary tables and subqueries to add a row number to every row in the result set. But somedays ago, I came across to the Row_Number() function provided in Sql Server, which simply constructs the row number column on the fly as part of the query. But a question might have arosed in your mind, What is the use of adding a Row_Number, when we have serial number associated with every row. There are several situation, where we need to query against the row number.(we can't query against a serial number)

So you think, Linux is Free

linux-logo.jpgWe have been using Linux for more then 18 years, without paying a single penny, Thanks to Open Source. There are more than 137000 registered machines, which are using Linux as their Operating System. Linux is the work of thousand of developers working as a Community. But have you ever wondered, what would be the development cost of Linux.

State of the Internet

Posted in

Modify Recent Comments Block in Drupal

When I launched this blog in Drupal, I knew, I would be modifying its "Recent Comments" Block someday. I did'nt like Drupals default "Recent Comments" Block. It only display, subject of the comment with its posted time.

But I wanted a lot more. I wanted to display the "'comment author'(linking to author's homepage) added a 'comment' (linking to comment) to 'Title of the post' (linking to the post) (Time ago). I also wanted to separate Comments according to the node types. Comments on the blog entry and Forums should be shown in a differnt blocks. 

Syntax Highlighting using GeSHi Filter and FCKeditor in Drupal

When I was developing this site, I knew I would be publishing a lot of Source Code. After some googling I foung GeSHi Filter for Source Code Syntax Highlighting. This module integrates the third party PHP library GeSHi (Generic Syntax Highlighter) into Drupal. GeSHi Filter, syntax highlight your source code between <blockcode>tag.

Promote and Share your Links on Orkut

Its have been quite a time when Orkut launched Promote feature. In a recent announcement Orkut release its Bookmarklet feature. Now you can share any link with your friends on orkut by just clicking a Button. Visit this link to add a new button to your bookmark toolbar. Link shared will appear on your updates section as well as promote section in orkut.

orkut share.PNG

Syndicate content