Search This Blog

To adblock users

Hello! If you see this, you are most likely using an ad blocker. (Or maybe you have JavaScript disabled. Or maybe my web server is down.) I have no problem with ad blockers; in fact I use one myself. If a site tries to deny me access unless I disable it, I just find a way to circumvent that. But if a site politely asks me to do so, but still allows access to the site, I disable it for the site. I am asking you to please do the same for this site. I can't make you, but I would appreciate it. Thank you! :-)

Sunday, December 27, 2009

Simple gravity simulator in Visual Basic

I wrote a program in Visual Basic that simulates gravity. Basically, it just simulates a box falling. Not that interesting, but the point is you can look at my code and see how I did it. As you can see from the screenshot, it has two modes: manual step, where you can click the Step button to advance one frame, and automatic, where it runs the simulation in realtime. You can also turn off the gravity, which basically just disables acceleration. The scale is one inch to one meter.

(Now to get some sleep...)

EDIT: I really was tired. I forgot to post the download link! Sorry about that... :-/
Here it is:

Monday, November 02, 2009

Fix audio problems when running XP in Boot Camp

I have Windows XP installed on my MacBook Pro with Boot Camp, and until now I have been having two problems with the audio. One is that the volume is way too low, even at max. The other is that certain programs, such as the Source engine (games like HL2, Portal, TF2, etc.) don't work with the microphone. However I have recently come across a modified driver that fixes both of these problems. I didn't see anything about the mic, but it fixed it for me.

Here's the link:

To install it, extract the archive to your desktop (it's already in a folder) or anywhere convenient. Then, open Device Manager (Start > My Computer (right-click) > Properties > Hardware tab > Device Manager.) Expand "Sound, video, and game controllers" and double-click "Cirrus Logic HD Audio". When the Properties dialog appears, click the "Update Driver..." button. Choose these responses I have outlined for you here:
  1. No, not this time
  2. Install from a list or specific location (Advanced)
  3. Don't search. I will choose the driver to install.
  4. Have Disk...
Now navigate to the folder where you extracted the drivers, and double-click the .INF file. (It should be the only one visible in that folder.) Two options should appear: "Cirrus Logic HD Audio [MacBook, No S/PDIF Out]" and "Cirrus Logic HD Audio [MacBook]". (I'm not completely sure about the name of the first one.) To find out which one to choose, look at your headphones port. If it's glowing red (yes, it lights up) choose the latter. Otherwise, choose the former. It will probably warn you that it's not signed, but just tell it to install the driver anyway. The problems will be fixed, and you shouldn't even need to reboot!

Monday, July 27, 2009

AppleScript: Create an empty file with ease

I wrote this simple AppleScript that lets you create an empty file on the Mac, like you could in Windows. Make sure your script menu is enabled (Applications→AppleScript→AppleScript Utility→Show Script menu in menu bar) and then put it in your Library→Scripts folder. Here's the link:

By the way, you don't need to cut 'n paste the whole thing. Just click the Download link at the top!

Tuesday, March 03, 2009

3D Shading Editor

I've got a new program for you. It's called 3D Shading Editor. I've got a screenshot here, and the introduction from the Readme file, the latter of which should explain the weird colors in the screenshot. Here's the download link:

As I'm sure many of you know, when using the Windows Classic visual style, you can customize the colors of pretty much anything. However, unlike in Windows 3.1, when you change the color for 3D objects, such as buttons and dialogs, the highlight and shadow colors automatically change with it. This may seem nice, but what if you want to specify your own colors for this? Windows doesn't provide any method for this, except for editing the registry or theme files, which can be very inconvenient when you just want to see what it looks like. However, this program can change these colors independently.