Warning: Declaration of GTranslate::widget($args) should be compatible with WP_Widget::widget($args, $instance) in /var/www/ninjatool.dk/blog/wp-content/plugins/gtranslate/gtranslate.php on line 0
Development | NinjaTool inc.

Development

BS Bingo app

Got this idea for an app, and since I never seem to get around to implementing any of my ideas outside work, I guess I’ll just post it here for anyone to grab and run with it. Assuming you know the concept of Bullshit Bingo; The ideal scenario could be a meeting or information / &hellip Continue reading »

Categories: Ideas | Tags: , , | 137 Comments

JS: Optional parameter default true

Just a short note: If you want to have an optional boolean parameter and have the default value to be false, you can use the property of a boolean to be false if it’s either undefined, null, 0 or false, so just evaluating opt_booleanParameter would evaluate to false it the parameter is omitted (I use that &hellip Continue reading »

Categories: Code | Tags: , , , , | 160 Comments

Subversion trust issues on OSX

[Ok, I read the headline, now just show me the solution] The problem As many other mac users, and developers using subversion on macs somewhere in their pipeline, I ran into this recently introduced issue (apparently introduced by Apple) where server certificates can no longer be trusted permanently. The problem is quite easy to fix, &hellip Continue reading »

Categories: Development | Tags: , , , , , , | 160 Comments

Fixing rendering for the Retina display

I recently bought the MacBook Pro with retina display. This seemed like a good idea at the moment, but I soon realised that the Apple approach to releasing new hardware without announcing it in advance have a downside in that nobody can prepare their applications to support the new “standards”. In the case of placing &hellip Continue reading »

Categories: Development | Tags: , , , , | 151 Comments

Game Block: One step closer

…continued from Touch game for the offspring. I had a naive thought that this would basically be the final rig, but then got to think  that I might want to add a power switch and a speaker / buzzer of sorts. But other than that I want everything to work by touch interaction. I’ve already &hellip Continue reading »

Categories: Code, Electronics | 153 Comments

Local Stores VS. The World!

I am currently power shopping electronic components for various planned (and indeed unplanned) projects. And one of the things I quickly realized is that it does matter from where you buy your stuff. Like with everything else there is a price tag to consider, but the little things should not be ignored; such as expedition &hellip Continue reading »

Categories: Electronics | Tags: , , , , , | 116 Comments

Touch game for the offspring

I thought about making a simple (bulky) touch game device for my daughter comprising an Arduino board, an LCD display and a replacement touch panel for a Nintendo DS. Sounds simple enough, but given that I am a complete electronics (and in any practical sense; a C++) novice, I believe it will be somewhat challenging &hellip Continue reading »

Categories: Code, Electronics | Tags: , , , | 148 Comments

Alternating directions

Just a quick thought :) If you want to alternate between -1 and 1 in a for-loop, say for the purpose of changing direction or something similar, and you don’t want to add an extra variable to manually alternate in each run-through, this works just fine: for (int i=0; i < something; i++){ dir = &hellip Continue reading »

Categories: Code | Tags: | 103 Comments

Randomly generated wallpaper on login

I got the idea from my “new” s10 because I wanted to keep the desktop clean, simple but with a touch of personality. For this reason I thought it would be cool with a stylish wallpaper and a simple picture frame on it showing a new picture chosen at random from a defined photo folder. &hellip Continue reading »

Categories: Art, Graphics, Personal | Tags: , , , | 133 Comments

HTML5 and canvas

Like many others I have gained some interest for HTML5 and especially the new canvas element. I have initially made a little interactive sandbox with a red, pokable ball. Nothing fancy, but somewhat interesting base for further dabbling into JavaScript and the canvas possibilities. I will keep this blog updated as I dig further into &hellip Continue reading »

Categories: Development | Tags: , , , , | 120 Comments

Fatal error: Uncaught Error: Call to undefined function fetch_rss() in /var/www/ninjatool.dk/blog/wp-content/plugins/wp-cron/wp-cron-dashboard.php:18 Stack trace: #0 /var/www/ninjatool.dk/blog/wp-includes/class-wp-hook.php(298): wp_cron_dashboard('') #1 /var/www/ninjatool.dk/blog/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters('', Array) #2 /var/www/ninjatool.dk/blog/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /var/www/ninjatool.dk/blog/wp-content/plugins/wp-cron/wp-cron.php(62): do_action('wp_cron_hourly') #4 /var/www/ninjatool.dk/blog/wp-includes/class-wp-hook.php(298): wp_cron_hourly_exec('') #5 /var/www/ninjatool.dk/blog/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #6 /var/www/ninjatool.dk/blog/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #7 /var/www/ninjatool.dk/blog/wp-includes/load.php(677): do_action('shutdown') #8 [internal function]: shutdown_action_hook() #9 {main} thrown in /var/www/ninjatool.dk/blog/wp-content/plugins/wp-cron/wp-cron-dashboard.php on line 18