Enabling PHP file_put_contents() support on IIS 7.5 on Windows Server 2008 R2

  • September 1, 2010
  • James Skemp
I've already installed the current verison of PHP 5.2 on my Windows Server 2008 R2 machine, but unfortunately wasn't able to get content saved via the file_put_contents function. It seems that you need to add and give IUSR the necessary permissions on the file (or directory) in order for writes to work properly.

Read More

Personal NetBeans IDE 6.9.1 setting tweaks

  • August 29, 2010
  • James Skemp
For my own personal reference, I've made the following tweaks to the default install of NetBeans IDE 6.9.1. Tools Options Editor Formatting Language: All Languages / Category: Tabs and Indents Expand Tabs to Spaces: unchecked (from checked) Number of Spaces per Indent: 4 (default) Tab Size: 4 (from 8)

Read More

Tic-Tac-Toe in Visual Basic 6

  • July 24, 2010
  • James Skemp
Back in December of 2003 I created a Tic-Tac-Toe application in Visual Basic 6. Below is the code from MainWin.frm, which should be sufficient to create the application. This code is covered by a Creative Commons Attribution-NonCommercial 3.0 license. VERSION 5.00 Begin VB.Form Form1 Caption = "Tic-Tac-Toe" ClientHeight = 3255 ClientLeft = 4410 ClientTop = 3255 ClientWidth = 4080 LinkTopic = "Form1" ScaleHeight = 3255 ScaleWidth = 4080 Begin VB.CommandButton AboutThis Caption = "

Read More

Tic-Tac-Toe using Pascal

  • July 24, 2010
  • James Skemp
The following is a really old program (November 2003) written in Pacal using Bloodshed Dev-Pascal (which seems to no longer be updated). This is the code in main.pas, which it seems is the only file really necessary. This code is covered by a Creative Commons Attribution-NonCommercial 3.0 license. program TicTacToe (input, output); label begingame, picknumber, checkmove, checkforwin, compmove, winner, nobodywon, playagain, illegalmove, compcrash, endgame; var playmove, turn, points : integer; place1, place2, place3, place4, place5, place6, place7, place8, place9 : char; currentplayer, ynagain, lastwinner : char; begin writeln; writeln('JRSs Tic-Tac-Toe v1.

Read More

Setting up a task with SyncToy under a different account?

  • July 17, 2010
  • James Skemp
Every time I setup SyncToy I always, always, forget to setup the folder pairs correctly. SyncToy uses per-user folder pairs, which means that if you'll be running a scheduled task using a different user, you'll want to login as that user, setup the folder pairs in SyncToy, run the sync via SyncToy's interface, and then setup the task. If you don't do this you'll just end up with a 0x1 return code.

Read More

Working with Virtual Hard Disks in Windows 7 and Server 2008 R2

  • June 20, 2010
  • James Skemp
A new feature in Windows 7 and Windows Server 2008 R2 is the ability to work with Virtual Hard Disks (VHDs) directly within the OS, by booting from them or mounting them as additional drives. While I've had a good deal of experience with using VHDs in virtual environments, being able to work with VHDs directly is fairly new, and leaves some question as to how useful it could potentially be, since I'm happy using VirtualBox to work with virtual machines when I need to do any testing.

Read More

Secunia consumer products - PSI and OSI

  • June 20, 2010
  • James Skemp
I have an old Windows XP machine that I know is out of date, in particular as regards the drivers, and potentially for some old software that I've forgotten I've even installed. Years and years ago it was possible to run a scan, online, on a CNET, or the like, site, which would tell you exactly what applications you had installed that needed to get upgraded, based on DLLs. Dan Conderman recommended Driver Detective, which is a free and pay service, which looks to provide part of that.

Read More

Windows Server 2008 R2 Enterprise Edition - setup for sharing files

  • June 6, 2010
  • James Skemp
When I first started downloading files, almost a decade and a half ago, I would just download everything to one directory, using whatever name the file originally had when I was downloading it. In the last couple of years I've been trying (despite Chrome's default method trying to push be back) to be much better about saving files, by creating a directory with the full name of the application - "Microsoft Web Platform Installer"

Read More

Windows Server 2008 R2 Enterprise Edition - setup for Web development

  • June 5, 2010
  • James Skemp
This afternoon I setup a machine for the following purposes: to serve as a test bed for Web development to serve as an always-available Subversion repository server to serve as a repository for shared downloads, across all my machines As time goes by the scope of the server may also change. But for now, this will work just fine. Choosing an edition The first step was to install Windows Server 2008 R2.

Read More

Music Recommendations Please! version 0.5 beta

  • May 28, 2010
  • James Skemp
While not necessarily a step forward from version 0.4.5 of Music Recommendations Please!, version 0.5 is nonetheless a positive step. Consider this an idea-based release. As such, this application is in no way final (but might be more complete after this long weekend). Download Music Recommendations Please! version 0.5, beta. You can see a general idea of where I'd like to end up by reading my music application idea. .NET Framework 4 is required for this application.

Read More