Blog Posts

  • All wrong

    In responce to Dalai Lama's post
  • Once I didn't know

    There was a time way back when I just plain didn't know.
  • HowTo install Google Earth on Debian

    The Google Earth .deb still depends on ia32-libs, but ia32-libs has been removed
  • Sometimes I fall in love with code

    The things you can do, in this case with the Go programing language
  • Hugo, a static website generator

    Hugo is a static website generator written in the Go programing language
  • Go jkl

    Go JKL a static website generator
  • Messenger Laravel Framework

    A Messenger (error, info, ...) for the Laravel Framework
  • Google, the most dangerous monopoly ever

    I use almost all Google services ranging from search engine, over Gmail, Calendar, Android and Google Voice all the way to Webmaster Tools and Google Analytics. If you combine all that data, I think that Google may know me better then I know my self, and that is starting to make me nerves. Don’t get me wrong, I think that Google is a great company, the services provided are excellent, and I don’t have a reason to believe that my data has been compromised.
  • Live without pretending ...

    Live without pretending ……. Love without depending ……. Listen without defending ……. Speak without offending ……. by Drake
  • Need PHP 5.3 Hosting Recommendations – Who Hosts Yours?

    I have been looking for a host that offers php 5.3 hosting, however all those hosting compare sites don’t seam to be quite as honest as one would expect. I would also need ssh access, so if you have a recommendation you could share with me, I would appreciate it.
  • msmtp install, config and test

    Why have more then one mail server? Or why even have a mail server at all, if you can use gmail? Well there are many reasons to have at leased one mail server, but having one on each server doesn’t make sense at all. I tried both ssmtp and msmtp, and decided on msmtp. <!– more –> msmtp is an SMTP client. In the default mode, it transmits a mail to an SMTP server, which takes care of further delivery.
  • git branch on bash line

    This little code, if placed in to your ~/.bash_profile file will reveal what git branch you are working on. parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* (.*)/(1)/' } if [[ $EUID -ne 0 ]]; then PS1="w$(parse_git_branch) $ " fi
  • It is not the critic who counts

    It is not the critic who counts; not the man who points out how the strong man stumbled, or where the doer of deeds could have done better. The credit belong to the man who is actually in the arena; whose face is marred by dust and sweat and blood; who strives valiantly; who errs and comes short again and again. Who knows the great enthusiasms, the great devotions, and spends himself in a worthy cause.
  • fixing php's gettype function

    <?php public static function getType($value, $max_length = 50){ $type = gettype($value); if($type == 'NULL' || $type == 'boolean' || $type == 'integer' || $type == 'double' || $type == 'object' || $type == 'resource' || $type == 'array' ) return array('type'=>$type,'value'=>$value); if($type == 'string' && empty($value)) return array('type'=>'NULL','value'=>$value); if($type == 'string' && strlen($value) > $max_length) return array('type'=>'blob','value'=>$value); if($type == 'string' && substr($value, 0,1) === '0') return array('type'=>'string','value'=>$value); if($type == 'string'
  • HTC Kaiser / TyTN II Android Froyo Rom

    This is a Kernel and a Rom to convert your HTC Kaiser from Microsoft to Android Froyo Everything seems to be working, except the camera is blurry, but that seams to be the norm. Included is the rom, radio and kernel ROM: 2.2.1 Kernel: 2.6.25 Radio: KAISER Panel: 2 Key Map: US Normal Resolution: 240x320 Storage: Nand & Nand Most everything is installed in userspace and can be uninstalled or upgraded.
  • num_row with PDO

    There is no num_row() function for PHP PDO Here are my two solutions: One with prepare & execute: db->prepare($sql); $sth->execute(array($key)); $rows = $sth->fetch(PDO::FETCH_NUM); echo $rows[0]; One with query: db->query($sql); $row = $result->fetch(PDO::FETCH_NUM); echo $row[0];
  • Load functions and array's

    This class is used to load functions and array’s. It also can copy functions and array’s to the linux memory drive and load them from there to speed thinks up. <?php if(!defined('DROOT')) trigger_error("Please define data location (DROOT)"); /** * * This class loads stuff * * 1) Functions * 2) Array's * * @todo Load array's * @category Data * @package TaMeR * @copyright Copyright (c) 2010 - 2011 Dennis T Kaplan * @license * @author Dennis T Kaplan **/ class Load { protected $type; protected $path; public function __construct(){} public function __destruct(){} public static function a($array_name) { if( !
  • Linux backround process

    Running as background process with nohub nohup scp & > nohup.out 2 > &1 nohup scp -r -p /var/www/ & >nohup.out 2>&1 nohup scp -r -p /var/www/ & >nohup.out 2>&1
  • Linux find & replace HowTo

    Find and chmod files or folders find . -type d -exec chmod 755 {} ; find . -name "*.php" | xargs grep -niP 'thingy' Find a directory and display on screen find . -type d -name 'linux' 2>/dev/null Find/Grep for a string across multiple files with different extensions find ( -name "*js" -o -name "*jsp" -o -name "*jspf" ) | xargs grep -niP 'thingy'
  • e() for echo

    echo, print, print_r(), and var_export() replacement
  • Sliding-Headstock Machines

    Sliding-Headstock Machines, also known as Swiss-Type or Swiss-Style Machines, are a special type of Lathe / Machine tool. All Sliding Headstock Machines use a Barfeeder or a Barloader, they machine usually round bar stock In a Sliding-Headstock Machines, the cutting tools are close to the Guide Bushing, while a sliding headstock feeds rotating stock, from behind through a Guide Bushing. This system eliminating overhang and deflection of the material during the cutting process.
  • Justice isn't justifiable

    The time, effort and money it takes to get justice isn’t justifiable! Dennis T Kaplan (June 2nd, 2010)
  • Creating models for the Zend Framework from command line via phpcli

    This is a php cli script that will create a database model from the database provided Download via git from github -> phpcli php zend/model.php -h This is a command line PHP script. Set table Options: -path=[ ] -table=[ ] Usage: php zend/model.php -arg=value Database Structure: CREATE TABLE users ( Alias TEXT UNIQUE, Password TEXT, eMail TEXT, Avatar TEXT, Timezone TEXT, IP TEXT, count INTEGER, cookie TEXT, vars TEXT, status
  • PHP goto statement

    I just discovered that the goto statement is available since php 5.3 I love the guys from php for that. I am a hobby programmer and unlike the processionals, I learned OOP via php, which is great but having goto available like back in the Amiga days made my day.
  • Netbeans error

    Solved: java-common: Package updates entail "Network is unreachable" in Java programs
  • Zend ACL

    Zend ACL plugin with sqlite backend