ubuntu on macbookpro

My late 2010 Macbookpro cannot handle the newest OS-X (yosemite) anymore. So here we go Ubuntu. The installation is quite smooth until the WIFI part.

This is for Ubuntu 14.04. The Macbookpro has Broadcom bc43xx chipsets.

First you need to install/remove some  packages for the driver:


sudo apt-get remove bcmwl-kernel-source

sudo apt-get install firmware-b43-installer b43-fwcutter

Then you need to UN-block the bcm43xx driver:

sudo gedit /etc/modprobe.d/blacklist.conf

# blacklist bcm43xx

You will get some error messages, ignore them.

Finally, do this so when you restart your computer, WIFI is still there. Following this page:


sudo su

echo b43 >> /etc/modules


What happened to 24theory?

Some of you guys might wonder what happened to 24theory.com, why am I on this “4nums.com”.

Well, long story short, lawyer happened.

About two months ago, I got a  cease and desist letter from a lawyer representing a company that claims to own “24” on all mathematical software/game related things. The lawyer claimed that I cannot have 24 anywhere when naming my game.

I contacted an IP lawyer friend and was told that if I don’t want to put up a fight which cost money and time, I better just change the name. Well, I don’t want to waste money and time on a hobby website, so I changed all 24theory related stuff to 4 numbers (4nums.com).

Here you go, the same old math 24 game we all played even before that company existed, but with a different name (4 numbers) on this new website (4nums.com).

Have fun!

ios stuff

(1) new Cordova folder, new cordova.js in /www/

(2) remove old google_A files(references) then add new, remove it from Library search path (building settings – > Search paths)

(3) bundle version / string, short in -info.plist needs to be the new one (1.1 instead of 1)

(4) add build phase -> link binary with libraries : storekit.framework   Coretelephony… AVfoundation….

(5) change loadURL () in game.js and strings

(6) TO add icon files, drag and drop then go to .info file and add the file names

<key>CFBundleIconFiles</key> <array> <string>icon@2x.png</string> <string>icon.png</string> <string>Icon-Small.png</string> <string>Icon-Small@2x.png</string>


(7) http://stackoverflow.com/questions/15790067/a-valid-provisioning-profile-for-this-executable-was-not-found-only-on-iphone-5


I once thought developing mobile apps insurmountably hard. Not true, especially for simple apps that looks and feels like webpages. I pickup phonegap as the platform and wrote the apps like writing web-games.

I put my hands on mobiel app development in March 2013, and by September, all 12 apps are int the market. That is 3 core apps X 2 X 2, where the first X2 is English/Chinese, the second X2 is android/IOS. So check it out. It’s all free.

The apps are on this page:


List of all math 24 games on 24theory (II)

This is the second part of “what’s new with 24theory”.

1024test: you want to know how good a math 24 player you are against other players? Take this test. We will give you 10 math 24 puzzles (hence 1024 the name), each of a different difficulty levels. We’ll give you a score telling you how good a mathlete you are. It has been recently incorporated into our solo game. After finishing each solo game, we give you a “1024 score”, 100 being the greatest player ever and 1 being the worst.

Live game: you want to play math 24 game in real time with people from around the world? Try this. We send out a new game at the beginning of every minute. You solve it, we record the time. And at 45 seconds of that minute, we rank all submissions. And you can see your rankings in a real time fashion. The live game has rapidly become the most popular game on 24theory. It’s truly addictive.



List of all math 24 games on 24theory (I)

In the past year, I developed several new games in addition to the original solo game.

Math 24 challenge mode: in this game, you can play 5, 10 or 20 puzzles then send the resulted link to your friends. Your score is encrypted in the link. After your friends finish the same puzzles, they can see both scores and know who wins. If you choose to, you could get an instant email with the results. This is great for teachers to assign math 24 puzzles to students.

Kids’ 24 game: in this game, we only allow puzzles  that can be solved without divisions and/or multiplications. It’s a great beginner game for kids to learn basic additions, subtractions and multiplications.

Alexa top 1,000,000

Started www.24theory.com a year ago. First, just the solver, then the single-player game, then the challenger game, twitter/facebook daily game.

Now it’s one of the top 1 million sites on the internet according to Alexa. I know it’s a small step, but still. Quite happy about what has been achieved.  Alexa top 100,000, here we come!

Check out the stats: http://www.alexa.com/siteinfo/24theory.com


After several weekends’ of work. Now you can play 24 the math game here.

Have fun and make it to the record books!

Hopefully I will collect enough data to rank the difficulties of the 1362 puzzles.


now go play!