Raman Singla

Life Collage of my thoughts, hobbies, bits n bytes

Taj Mahal

with 2 comments

Taj Mahal

Read the rest of this entry »

Written by Raman Singla

January 7, 2011 at 9:17 pm

Posted in Miscellaneous

Tagged with , ,

Proxy Configuration for Web Requests in .NET Applications

with one comment

Download: DLL, Code, Zip
There are many ways to do it. You can use the WebProxy class. But the easiest way is to specify the defaultProxy element in your application’s configuration (web.config or app.config) file. The following example uses the defaults from the Internet Explorer proxy, specifies the proxy address, and bypasses the proxy for local access and demo.com (courtesy MSDN):
Read the rest of this entry »

Written by Raman Singla

December 26, 2010 at 7:27 pm

ConnectionString for Excel Sheets

with one comment

If you want to import/export data from/to an excel sheet then use this (the first row will be taken as column headers):
Read the rest of this entry »

Written by Raman Singla

December 17, 2010 at 1:25 pm

Posted in .NET, Snippets, VB

Tagged with ,

Moon

leave a comment »

Moon

Written by Raman Singla

December 15, 2010 at 2:13 pm

Posted in Miscellaneous

Tagged with , ,

Random Avatars & Sigs in PHP

leave a comment »

Community Forums are strange places. Sometimes you find wealth of information along with superb graphics (read avatars and sigs) while other times it’s all crap. Yesterday, I was visiting some hosting forums and saw a different avatar of a poster with every post. After some thought I developed a small trick using PHP and mod_rewrite (Apache). There are two parts to this trick.
Read the rest of this entry »

Written by Raman Singla

December 6, 2010 at 6:08 pm

Posted in Apache, PHP

Tagged with , , , ,

Working with ID3 Tags using Taglib-Sharp

with 3 comments

I needed to remove clutter from my MP3 files; Searching Google lead me to a simple & popular library Taglib-Sharp. You can download it here. Here’s a small code fragment to get you started:
Read the rest of this entry »

Written by Raman Singla

December 5, 2010 at 10:35 am

Posted in .NET, Snippets, VB

Tagged with , ,

Birds

leave a comment »

Birds

Written by Raman Singla

November 27, 2010 at 10:54 am

Posted in Miscellaneous

Tagged with , ,

Multiple Random Images JavaScript

with 13 comments

Sometime back I was looking for a small script to display multiple random images from my gallery. After quick searching I decided that it’s better to code it myself. The main goals were

  • to keep it small
  • to make it easily plug-able
  • to make it cross-browser

Features:

  • the number of random images picked from the gallery, configurable
  • custom CSS class
  • alternate text for the images
  • images can be hyper-linked to any content on the web

Cons:
The biggest drawback is SEO unfriendliness, as search engines won’t parse the JavaScript and will never see the content.
Requirement:
The images should be named sequentially (ex1.jpg, ex2.jpg, ex3.jpg, …).
Script:
Right click here and save the target file. View the demo HTML here.
Read the rest of this entry »

Written by Raman Singla

November 23, 2010 at 11:39 am

Posted in HTML, JavaScript, Libraries

Tagged with , , ,

Clouds

leave a comment »

Clouds

Written by Raman Singla

November 8, 2010 at 8:34 pm

Posted in Miscellaneous

Tagged with ,

Clouds

leave a comment »

Clouds

Written by Raman Singla

November 7, 2010 at 11:54 pm

Posted in Miscellaneous

Tagged with ,

Follow

Get every new post delivered to your Inbox.