Recently in Programming Category

January 3, 2011

Printing 1 to 1000 without loop or conditionals

Interesting question on Stack Overflow

The complexity of C++ still amaze me even after 10 years of study. And the solution given by a Guru Hacker is my favorite.

December 24, 2010

New IE Zero Day

October 12, 2010

Issue 9

Google closes Issue 9

The naming similarity is unfortunate. And "go", in my mind, is a 2.500 years old game.

September 20, 2010

Castle Wolfenstein Source Code Released

Grab the source from id FTP server

id is the last true software house (and it seems that they use a Mac OS X judging from the .DS_Store.)

September 11, 2010

GNU/Emacs Backup File

My hobby: append a ~ to the end of an URL (a real URL, not a fancy mod_rewrite) and see what I get.

Always (setq make-backup-files nil) when you work in a production server.

September 9, 2010

The Most Interesting App Store Rejection Reasons

Let's see what are the most interesting App Store rejection reasons:

Functionality
  • Apps that download code in any way or form: no custom App Store
  • Apps that install or launch other executable code: again, no containers
  • Apps that are not very useful or do not provide any lasting entertainment value: no crap games
  • Apps that are primarily marketing materials or advertisements: do not create an app that is the clone of your website only cause it's cool to be on the iPhone
  • Developers "spamming" the App Store with many versions of similar apps: please no more Angry Bird Cheats Guide
Metadata
  • Apps with metadata that mentions the name of any other mobile platform: we don't mind if your app has been ported to Android
  • Apps with app icons and screenshots that do not adhere to the 4+ age rating: no boobs
  • Developers who attempt to manipulate or cheat the user reviews or chart ranking in the App Store with fake or paid reviews, or any other inappropriate methods: we know that ★★★★★ stars reviews that are longer than a phrase are fake
iAds
  • Apps that are designed predominantly for the display of ads: no more iAd-powered flashlight
Media content
  • Audio streaming content over a cellular network may not use more than 5MB over 5 minutes: we don't want AT&T nextwork to explode
Scraping and aggregation
  • Apps that are simply web clippings, content aggregators, or a collection of links, may be rejected: no more RSS readers please
And obviously no porn. You know why? Cause the entire idea of a "porn app" is stupid. Have you ever seen a porn app on Windows? You can't live without porn? So open Safari, there are a million websites you can look at.

Round Rects Are Everywhere!

Steve Jobs on Round Rects

What has been seen cannot be un-seen
Yes, round rectangles are everywhere, even in Wingdi.h. I love folklore stories of Good Old Days when there were Real Programmers.

September 8, 2010

On Movable Type Template System

I've studied a bit Movable Type. I like it. I only the tags ate blank characters following. You know, the \LaTeXe{} way.