You are currently browsing the archives for the Programming & Internet category.

Sorting an HTML Table

Oh, sometimes I really LOVE the web 2.0 javascript features. Take for example sorting tables. Now the old school method of doing this is to programatically send the column you want to sort by and whether you will be sorting ascending or descending and pass it to the page in a get variable. It is […]

Word Wrap / Reflow in Firefox Table Cell

OK, this bug is just insane. I’ve got a table cell displaying very long URLs. Oddly, there is no CSS style that allows Firefox to “reflow” or wrap the text based on a given width.
This bit of CSS solves the problem for virtually every other popular browser:
td {
width: 450px;
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* […]

A generic error occurred in GDI+.

Sometime I run into errors that seem to make no sense and it takes me a while to find the answer as to why. Such is the case with this error. I wrote a routine in VB.NET to split a multi-page tiff file. Every once in a while, I would get this less than helpful […]

Clicky Is So Much Easier!

I wrote a post about how to hack Google Analytics to show the full path on referrer URL. Honestly, its a pain in the butt at best. I went digging around the net and came across a new stat tool that shows the full URL. It’s called Clicky and I have to say, it is […]

Gmail Delete Shortcut Key

I love Gmail, but I find it rather annoying that they feel you never need to delete an email. It took them about 2 years to add the delete button. I don’t know why they didn’t add a shortcut key with it. Certainly, they must have had thousands of requests for it already.Well, I’m happy […]

Crop An Image (Bitmap) in C# or VB.NET

I looked all over the net for some sort of function and what I ended up with seemed rather simple function to crop an bitmap.
Here is the function in C#
public Bitmap CropBitmap(Bitmap bitmap, int cropX, int cropY, int cropWidth, int cropHeight)
{
Rectangle rect = new Rectangle(cropX, cropY, cropWidth, cropHeight);
[…]

How Many Domain Names Do You Own?

I was recently asked how many domain names I owned. I actually had to go count them all. The results were sort of scary! Well, here is the count:
12 at GoDaddy
29 at Hostway
24 at 1&1
– Total –
65
Definitely too many. I guess I can’t say I completely own. There are a few that I registered for […]

Setting Up DNS Wildcards / ServerAlias in DirectAdmin

This is straight from their knowlege base, more for my own personal archive than anything else
If you’d like to setup your domain to accept anything.domain.com, you can do so with the following guide (Admin access required)
1) Setup the dns with a wildcard A record. Go to Dns Control, and add an “A” record:
* […]

Paint.net Trim Function

I’m really liking Paint.net. I certainly can’t afford Photoshop and so I resorted to using free alternatives such as GIMP and Paint.net. There has been a slight learning curve though as I’ve had to get used to these free tools.
One thing I found missing that I would often use in Photoshop is the trim function. […]

Windows Icons

If you’ve ever tried to find some good windows icons for your applications you may have experiences frustrations sorting through all the junk on the internet. Did you know that if you have Visual Studio .NET installed, you likely have all the common icons that you need?
Take a look in your file system for this […]