Category Archives: Computing

Sim City 5 Sandbox Cheat Codes

To use cheats in Sim City 5, you must play in a Sandbox region.

Use the following commands while in-game:

ALT+W - Add §100,000 to City Budget
ALT+F - Toggle Fire On/Off
ALT+C - Toggle Crime On/Off
ALT+M - Toggle Health Issues On/Off
ALT+A - Toggle Air Pollution On/Off
ALT+P - Toggle Ground Pollution On/Off
ALT+H - Toggle Homeless Sims On/Off
ALT+S - Toggle Sewage On/Off

Pressing CTRL-SHIFT-C no longer shows cheats.

Windows 7 – How To Move The 100MB Partition Reserved For Sytem Boot

You installed a new version of Windows 7, just to discover that Windows made a 100MB partition on your old harddisk, so now you can’t boot without this harddisk….

I was looking for a solution to this, most solutions suggested to delete the partition and un-plug the old HD and then using the Windows CD to make a new system partition.

Well, I found a better solution and it worked out just fine.

If you want to keep a special partition for your boot files, start by making a 100MB partition on your C: drive (assuming Windows is installed here).

It is recommended to make a backup of your harddisk before following the next steps.

Now follow these steps, remember to use the correct disk and volumes.

  1. Click the Start button, then in the “Start Search” box, type “CMD” but do not press Enter yet.
  2. In the list above the search box, under “Programs”, right-click on CMD and choose “Run as Administrator” and click “Continue”.
  3. In the open console, type the following commands and press Enter:
    diskpart
    select disk 0 \\I assume that the 100MB partition is in Disk 0
    list vol
    select volume 0 \\I assume that the 100MB partition is installed in "volume 0"
    inactive
    select volume 1 \\I assume that the OS is in "volume 1"
    active
    exit
  4. Type in CMD (still in administrator mode):
    C:\windows\system32\bcdboot.exe C:\windows /s C:

It should prompts that the command line is successfully. Restart the computer. The boot files should now have been moved from the old HD to the new one.

Note: if you put the boot files to a new partition, remember to set your OS volume to active again.

Tweak your SSD’s performance and free up space

If you haven’t already bought an SSD for your system disk, you should. The speed is incredible!

I found a very good guide from Toms Hardware, this guide helps you tweak your SSD performance and also free up some precious space.

This is what the guide recommends:

  • Verify the SATA controller is set to AHCI Mode and Trim is enabled.
  • Disable System Restore
  • Disable drive indexing
  • Disable the page file (careful with this)
  • Disable Hibernation
  • Disable prefetching in the registry
  • Disable Windows’ write caching
  • Disable the SuperFetch and Windows Search services
  • Disable ClearPageFileAtShutdown and LargeSystemCache
  • Adjust power settings

10 Quick Steps To Securing Your WordPress

Securing your WordPress installation. WordPress is the most popular blog software, and this makes in vulnerable to many hackers. Here are 10 quick tips to keep your WordPress safe.

1. Do not use wp_ prefix in your database

When you are installing your WordPress, you get the option to choose your own prefix, choose something else than “wp_“.

2. Change the admin user name to something else or delete it

Every hackers first guess would be “admin”, rename the admin user!

3. Add another layer of security with .htaccess password protection for /wp-admin/ folder

Use .htaccess to password protect your /wp-admin folder. Example:

AuthName "WP Admin"
AuthType Basic
AuthUserFile /full/path/to/webhotel/password_protected_folder/htpasswd
require valid-user


# This is the whitelisting of the ajax handler used by some plugins
<Files admin-ajax.php>
Order allow,deny
Allow from all
Satisfy any
</Files>

Note: This can prevent some plugins to work (the easiest way is to test it and see if your site still works right).

There are lots of tutorials on how to set a password on a folder with .htaccess file, just search Google for “.htaccess password tutorial”.

4. Install WordPress security plugins
Check out these plugins:
- WordFence
- Secure WordPress
- WP Security Scan

5. Remove database Username and Password from your wp-config.php
If possible, create a file outside the web root and put your WordPress login details here.
If this is not possible, put the login details in a .htaccess password protected folder.

Use the PHP require function to include the WP database login details in the config file, like this:

//DB Login
require('full/path/to/root/login-details.php');

6. Protect wp-config.php and .htaccess
If you use a server with .htaccess, you can put this in your .htaccess (at the very top) to deny access to anyone surfing for it:

# Strong .htaccess protection
<Files ~ "^.*\.([Hh][Tt][Aa])">
order allow,deny
deny from all
satisfy all
</Files>

# Protect wp-config.php
<Files wp-config.php>
Order Deny,Allow
Deny from All
</Files>

7. Change File Permissions
It is very important that you have the proper file permissions to ensure your site’s security. I recommend that you restrict your file permissions down to the bare, CHMOD value of 644 for files and CHMOD value 755 for folders, which essentially makes it read-only to everyone except you.

Just open your FTP program and right click the folder or file and click on “File Permissions”. You should change the CHMOD value to at least 744, only giving the “owner” full access, but i recommend using 644 on files, and 755 on folders as said before.

8. Backup your files
Always keep a backup of all your WordPress files and also your database.

If something goes wrong, or your WordPress gets hacked, you got a backup.

Heres is a good guide for backing up your database.

9. Always keep ALL WordPress, plugins, themes etc. updated!

Maybe the most important tip. Always make sure the WordPress installation, and all plugins, themes, etc. are up to date.

10. Other good resources
Hardening WordPress

Dropbox

Quickly select all your contacts when inviting friends to Dropbox

If you want to get more free space using Dropbox, you have to invite friends. Each friend gives you 250 MB extra space, up to a maximum of 8 GB extra space.

If you have hundreds of contacts like me, checking each check-box will take ages.

With a little javascript you can quickly invite all your friends at once. Copy and paste this little javascript code into the adress bar and hit enter, while the invite box is open:

javascript: el = document.getElementById('contact-list').children; for(var i in el) { el[i].children[0].children[0].checked=true; }

If it does not work for you and you are using Firefox, try to install the Firebug plugin and execute the code from the commandline.

el = document.getElementById('contact-list').children; for(var i in el) { el[i].children[0].children[0].checked=true; }

Minecraft no sound problem [how to fix] Windows 7

I had a problem with no sound in Minecraft. It was very hard for me to find the solution on the internet, so I will post how I did here. This might work for you if your game crashes when you try to enable sound in game.

1. Download OpenAL from CreativeLabs

2. Go to Minecraft folder, press Start > Run and type in %appdata%/.minecraft/

3. Open bin > natives and delete the OpenAL32.dll file, also delete the other OpenAL64.dll (i think) file, just to be sure.

4. Go to C:/Windows/System32 and copy the OpenAL32.dll from System32 folder to %appdata%/.minecraft/bin/natives/

5. Now you have replaced the Minecraft OpenAL32.dll with the new OpenAL32.dll, open Minecraft and go to options and enable sound. This should work now. :-)

SimplePhysics iPhone solutions (blueprint walkthrough)

Previously I posted the solution to some of the levels in SimplePhysics (iPhone game). The game has been updated with new levels since, and I can now present my solutions to all of the levels (including Windy City this time).

Here is the walkthrough to all of the levels.

These solutions worked for me, when i made them. If they don’t work for you, either you are making it wrong, or the game may has been updated so the solutions don’t work anymore. :)

Tree house
Tree house blueprint

2 story tree house
2 story tree house blueprint

Staircase
Staircase blueprint

Snowy roof
Snowy roof blueprint

River dam
River dam blueprint

Bomb shack
Bomb shack blueprint

Submarine
Submarine blueprint solution

Truck crane
Truck crane blueprint

Ferris Wheel
Ferris wheel blueprint

Windy City
Windy city blueprint

Triple-Boot: Mac OS X, Windows 7 and Ubuntu Linux

In this post I will explain some of the issues i ran into using Mac OS X, Windows 7 and Ubuntu Linux in a triple-boot.

First, if you have a Mac, you should install rEFit before any other OS!

In short, here’s what you do:
- Install rEFIt
- Create partitions for the three operating systems
- Install Windows
- Install Ubuntu

Okay, so you have Mac OS X installed. The first thing you need to do is to install rEFit (http://refit.sourceforge.net/)

Now use the Disc Utillity in OS X to partition your Harddrive. You can also use the Boot Camp assistant to Install Windows. After you have installed Windows, you want to install Ubuntu Linux.

Go to Disc Utillity in Mac OS X, and make a new partition for Ubuntu, just format as “free space”, we will use the Ubuntu installer to format with the right file system later.

Now, I suppose you have burned Ubuntu to a CD that is now ready to install. Go through the installer, when it comes to “Allocate drive space” choose “Specify partitions manually”. Now, choose the “free space” partition you made before and make a 1 GB Swap partition. Use the rest of the free space to make a partition for Ubuntu. You do this by marking the free space and click change, in “Use as” choose Ext4 journaling file system, in “Mount point” choose “/”. Now be sure to install the Boot loader to your Linux partition you just made instead of installing it in the MBR (Master Boot Record). Now finish your installation.

Now, when you start up your Mac, rEFit should be the boot loader and you should be able to choose between MAC OS X, Windows 7 and Ubuntu Linux. Choosing Ubuntu Linux will then take you to Grub (Linux Boot Loader) where you have to choose Ubuntu again (or just wait some seconds) to boot from.

If you want to read a more detailed version, check out the Ubuntu documentation:
https://help.ubuntu.com/community/MacBook/TripleBoot

rEFit currently version 0.14, boot loader:
http://refit.sourceforge.net/

What if I already installed Ubuntu without installing fEFit ?
Okay, so you can’t boot Mac OS X from the Grub boot loader. You have to boot either from Ubuntu or Windows, and create a rEFit CD from the ISO disk image available at refit.sourceforge.net. Burn the CD (when you have burned the CD it appears empty because it’s for the Mac file system, dont worry). Just put the CD in, start your Mac and hold down “c”, this will boot from the CD, where rEFit is on. Now choose to boot from Mac OS X, download rEFit for Mac and install it. Boot 2 or 3 times, and rEFit should now be the default boot loader!

Get Ubuntu

http://www.ubuntu.com/

A good advice
Never use Windows’ own partitioning tools when you’ve installed it using a hybrid MBR, since it only “sees” the MBR side. Instead use Apple’s Disk Utility.