Determine File Encoding

December 14, 2006

I ran into a problem where I wasn’t sure if I could trust the encoding that my text editor was displaying. I also wanted to check the encoding on about 10,000 files and determine if it was not a specific encoding. So, I created a little program to tell me the encoding of a file. This in […]

Read the full article →

Mute on the Command Line

December 14, 2006

I found a nice little utility to mute computer speakers at the following site: http://magic.aladdin.cs.cmu.edu/2005/08/01/command-line-mute/ It is now very easy for me to mute/un-mute my speakers since I have this setup with SlickRun. Basically, while working on my computer I hit ctrl+space start to type mute and hit enter. I now have toggled the sound […]

Read the full article →

Sleep/Pause on the command line

December 14, 2006

A quick simple way to make the command line stop executing for a certain amount of time is by put Everyone once in a while I need a way to stop the command line from executing for a certain number of seconds. By putting the 2 below lines in to a sleep.bat file I am […]

Read the full article →

Intro to Windows Power Shell

December 10, 2006

I am just starting to familarize myself with windows Powershell. So far it sounds very powerful! I often find myself using DOS to create quick scripts that will automate some process. Over time I have found DOS to be fairly weak when compared to a Linux shell. My solution to this problem was to download […]

Read the full article →

Formatting SQL

December 7, 2006

Today I found a nice little Java tool to help format long SQL queries. It has many options on how the string will be formatted. It will also take sql input types such as: SQL DB2/UDB Oracle MSAccess SQL Server Sybase MYSQL PostgreSQL Informix It then can take this input SQL and format it into […]

Read the full article →

Java to C# Comparison

November 22, 2006

The first high-level language that I learned was Java. Of course I shortly found that there was a need to know C# too. So, as I started  to learn C# I kept a list of the differences between C# and Java (as can m be seen below).    Class ——–     Java: class GMTTime extends Time implements ICloneable{…}     C#: class GMTTime: Time, […]

Read the full article →

Create file in DOS edit/copy con

November 21, 2006

When working in DOS sometimes I have the need to quickly create a file. Normally I would type “edit test.txt” which would open test.txt if it exists or create it if it doesn’t exist. This works well if I need to edit an existing file or type a lot of data. Note: use the alt […]

Read the full article →

Hardlinks in Windows (junctions)

November 15, 2006

Hardlinks are something that I always thought were not supported in windows. Now with the NTFS file system hard links can be used. In dos the fsutil command can be used to create a hardlink from a specific file. Using a command like the following: fsutil hardlink create newFile.txt originalFile.txt From what I can tell this […]

Read the full article →

Force No Cache on a Webpage

November 6, 2006

Sometimes it is usefull to force a web page to not be cached. One example where this could be used is on a form that takes credit card information. Once the user submits their data you may not want someone to be able to hit the back button and be able to view the users credit card information. […]

Read the full article →

Character Encodings

November 1, 2006

A text document can be saved with many different types of character encodings. The question is which one is correct? Is there a best encoding for web development or to use in the <meta http-equiv=“Content-Type”? A great guide to understanding the different encodings can be found here.

Read the full article →