Archive for the 'Programming' Category

Getting the PowerShell Version

Posted by Johan Cyprich on 04 Aug 2010 | Tagged as: Programming

To find out which version of PowerShell is installed in your computer, you need to do more than just run it. When you start the command line interface, your lead to believe that version 1.0 is installed from the directory location displayed in the dialog box. The text in the dialog box shows C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe, which [...]

SendMail Function for PowerShell

Posted by Johan Cyprich on 27 Jul 2010 | Tagged as: Programming

The SendMail function for PowerShell will send an e-mail through an SMTP server. I’m currently using it for backing up a web server to a virtual machine and sending a confirmation by e-mail on the status of the backup. Usage is very simple:           SendMail Host From To Subject Message UserName Password The Host is [...]

How to Redirect Web Pages (Part 1)

Posted by Johan Cyprich on 26 Jul 2010 | Tagged as: Programming

Redirecting web pages becomes necessary when a web site is updated and old pages are replaced with new ones. This is very common when a site is upgraded to a CMS which typically displays pages as folders (i.e. www.website.com/about) as opposed to www.website.com/about.htm. Its important to redirect old pages to new ones because if the [...]

Using FCKEditor in ASP.NET 3.5

Posted by Johan Cyprich on 16 Apr 2010 | Tagged as: Programming

FCKEditor is a text editor that you can use in a web page. It has many more options than the text input boxes in HTML. This is a WYSIWYG editor and resembles desktop applications like Microsoft Word. It supports multiple languages, but if you want to use it in an ASP.NET site, the ASP.NET control [...]

Calculating the Date from Exported PostgreSQL Table

Posted by Johan Cyprich on 14 Dec 2009 | Tagged as: Programming

When exporting a PostgreSQL database to another database server, such as MySQL or MS SQL Server, the date field will appear as a number if it is saved as an Excel sheet. After spending some time trying to determine what the number means, I found that it seems to represent the number of days from [...]

Older Entries »