Today everything worked fine until I added new CCLayer subclass. When trying to build compiler showed error at #include <cassert> in libs/Box2D/Common/b2Settings.h. The reasons is simple – new […]
Quick tip: Multiple build commands for output file
Today I had such strange warning when compiling cocos2d project in XCode: Warning: Multiple build commands for output file And result was even stranger – for even builds […]
Quick tip: Looping movie in iOS 5.1 on iPad1
Strange thing happens on iPad 1 – seems that using just: moviePlayer.repeatMode = MPMovieRepeatModeOne; is not enough, movie loops on simulator, as on iPad 2 and above, but […]
Quick tip – how to generate MySQL random date/time in given range?
Just use: SELECT DATE_FORMAT( FROM_UNIXTIME( RAND() * (UNIX_TIMESTAMP(‘2012-11-13 16:00:00’) – UNIX_TIMESTAMP(‘2012-11-13 23:00:00’)) + UNIX_TIMESTAMP(‘2012-11-13 23:00:00’) ), ‘%Y-%m-%d %H:%i:%s’) where first param UNIX_TIMESTAMP(‘2012-11-13 16:00:00’) is start value, second UNIX_TIMESTAMP(‘2012-11-13 23:00:00’) is […]
Quick tip – working with dates with ADODb and MSSQL 2000
Yes, it can be really painfull – MSSQL (at least instance I’m using) is saving date in format “d/m/Y H:i:s” but in every part of code I had […]
Quick tip – how to get specific posts/page by their ID?
At first look it was simple, just: $args = array(“post__in” => array(1,2,3)); $posts = new WP_Query(); $posts -> query($args); while ($posts -> have_posts()){ $posts -> the_post(); echo the_title().'<br/>’; […]
Real Ball for free (Mac)
Real Ball (was 6,99USD) This is an original breakout game, which is made in an unusual space style. The game field is full of iron multicolored bricks. Your […]
How to hide menu in own WordPress plugin?
Sometime you want to restrict parts of your plugin using additional permissions management, since this is quite easy, hiding menu items can be a bit tricky – you […]
Some fresh free apps for ya
Saving Private Sheep 2 (was 2,99USD) The war is over. After fierce combat, those damned wolves have gone back home with their tails between their legs… The sheep […]