Archive for October, 2009

Utilities: Filename Randomiser

Program Information:

This is a small program to change the filenames of all files in the target folder to something random and uniform. This may be useful for, as an example, a number of photos in a directory that are displayed in filename order.

It should go without saying that if you run this on a directory it will rename everything in that directory, so take care.

Read the rest of this entry »

, , , ,

No Comments

Remotely controlling OS-X via a web page

WARNING: Please read before continuing ▼

Difficulty: Expert
Time: varies
Last Updated: 24th October 2009
Applies to: OS X

Applescript is a scripting language provided by OS X that has the ability to automate significant portions of the system.

PHP has the ability to, given the right configuration, make arbitrary system calls, including applescript.

Using the two together, one can remotely control a number of functions on an OS X system via a web page.

Read the rest of this entry »

, , , , ,

No Comments

Mixing C++ and Objective-C code using XCode

WARNING: Please read before continuing ▼

Difficulty: Expert
Time: varies
Last Updated: 20th October 2009
Applies to: Objective-C

With the release of the iPhone SDK and the growing popularity of OS X, Objective-C is becoming the language of choice for a significant amount of projects.

One inescapable fact in the programming world is the existence of legacy code. Moving to a new language typically means porting or rewriting existing code entirely in the new language. In the case of Objective-C, most existing C and C++ code can be used directly.

Read the rest of this entry »

, , , , , ,

No Comments

Renaming the admin user on a WordPress 2.8+ blog

WARNING: Please read before continuing ▼

Difficulty: Easy
Time: ~5 Minutes
Last Updated: 16th October 2009
Applies to: WordPress

By default, WordPress uses “admin” as the log in name for the first user. With this information, a prospective cracker is only a password away from your wordpress admin account. By changing the admin user name, the minimum amount of information required for any miscreant to access the account is increased.

Read the rest of this entry »

, , , , ,

No Comments

Removing Antivirus Pro 2010

WARNING: Please read before continuing ▼

Difficulty: Easy
Time: ~30 Minutes
Last Updated: 12th October 2009
Applies to: Windows

Antivirus Pro 2010 is a variety of malware that pops up fake antvirus notifications attempting to coerce you into paying for a full version to remove these fake infections. Whilst its constant nagging is irritating, it is relatively mild as far as malware goes and is fairly simple to remove though it is often packaged with other more serious malware.

Read the rest of this entry »

, , , , ,

No Comments

Manually relocating the Windows 7 User Profile Folder

WARNING: Please read before continuing ▼

Difficulty: Expert
Time: ~30 Minutes
Last Updated: 8th October 2009
Applies to: Windows 7 ONLY

Relocating the user profile folder is a procedure that can make backing up massively easier. User specific data, such as music and videos, can be moved to another drive, leaving only the core OS and programs on the primary hard drive. It can also act as a cost saving measure, using a small, fast, expensive drive to install the OS to, and a slow, but big and cheap drive to store user data.

Read the rest of this entry »

, , ,

2 Comments

Recovering from ‘ImportError: No module named pysqlite2′ after upgrading python on a Gentoo Linux system

WARNING: Please read before continuing ▼

Difficulty: Moderate
Time: ~30 Minutes, depending on CPU speed/internet connection
Last Updated: 4th October 2009
Applies to: Gentoo Linux

Symptoms:

When running emerge after a major upgrade of pythons core files (dev-lang/python), you get an error similar to (other information may be included in the error message):

ImportError: No module named pysqlite2

emerge will fail to work as a result of this. Additionally, if you run /usr/sbin/python-updater, that will fail too, with a similar error.

Read the rest of this entry »

, , , , , ,

No Comments

Technical Procedures is Digg proof thanks to caching by WP Super Cache