Proxy Configuration for Web Requests in .NET Applications
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 »
ConnectionString for Excel Sheets
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 »
Random Avatars & Sigs in PHP
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 »
Working with ID3 Tags using Taglib-Sharp
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 »
Multiple Random Images JavaScript
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 »





