Updates from June, 2013 Toggle Comment Threads | Keyboard Shortcuts

  • DerFichtl 5:18 pm on June 16, 2013 Permalink | Reply  

    Example UILocalNotification Objective-C 

    
    - (IBAction) buttonClick:(id) sender {
        [self scheduleAlarm];
    }
    
    - (void) scheduleAlarm {
        
        UILocalNotification *localNotif = [[UILocalNotification alloc] init];
        if (localNotif == nil)
            return;
        
        localNotif.fireDate = [NSDate dateWithTimeIntervalSinceNow:10]; // in 10s
        localNotif.timeZone = [NSTimeZone defaultTimeZone];
        
        localNotif.alertBody = @"WTF is going on?";     // Notification details
        localNotif.alertAction = @"View";               // Set the action button
        
        localNotif.soundName = UILocalNotificationDefaultSoundName;
        localNotif.applicationIconBadgeNumber = 1;
        
        // Schedule the notification
        [[UIApplication sharedApplication] scheduleLocalNotification:localNotif];
    }
    
    
     
  • DerFichtl 5:37 am on June 3, 2013 Permalink | Reply  

    How to learn C … and Why

     
  • DerFichtl 5:36 am on June 3, 2013 Permalink | Reply
    Tags: , rsync   

    rsync dry run (demo, simulation) returns only filenames:

    rsync -vnprae ‘/usr/bin/ssh -i id_rsa’ –exclude=.svn /var/www/. user@server.at:/var/www/ | sed ’2,$!d’ | head -n-3

     
  • DerFichtl 6:02 pm on May 27, 2013 Permalink | Reply
    Tags: , , phpunit, selenium, unit testing   

    Install a local selenium standalone server on mac osx … just two steps, just one jar file:

    http://damien.co/resources/how-to-get-started-selenium-2-mac-os-x-java-7403

    … by damien saunders.

    After that you need a browser driver like chrome driver … download the standalone mac osx binary and put it at the same location like the jar:

    https://code.google.com/p/chromedriver/downloads/detail?name=chromedriver_mac_26.0.1383.0.zip&can=2&q=

     
  • DerFichtl 4:51 pm on May 19, 2013 Permalink  

    another i2c on raspberry pi guide: https://blogs.oracle.com/acaicedo/entry/beyond_beauty_javafx_i2c_parallax

     
  • DerFichtl 4:54 pm on May 17, 2013 Permalink
    Tags: raspberry pi   

    install / activate i2c on raspberry pi … step by step guide http://www.skpang.co.uk/blog/archives/575

     
  • DerFichtl 5:17 am on May 6, 2013 Permalink
    Tags: ascii, ,   

    How to view images on linux command line (even via ssh shell) … use img2txt command, it creates ascii art from image … you can find it in caca-utils (install it with apt) …

     
  • DerFichtl 5:53 am on April 28, 2013 Permalink  

    Arduino Webserver Sketch with Parallax ColorPal 

    Works with Parallax ColorPal 28380 and Arduino ethernet board (or ethernet shield).
    More …

     
  • DerFichtl 7:17 pm on February 24, 2013 Permalink  

    Font Generator – icomoon.io 

    Create your own icon fonts with icomoon. You can upload svg images, create icons online or edit preset icon sets. After you have built your set you can download different versions like a woff file or eot.

    Bildschirmfoto 2013-02-24 um 20.14.00

     
  • DerFichtl 11:44 am on February 17, 2013 Permalink  

    My January Sideprojects: What, Why and How. 

    I am usually busy with my full time job at karriere.at and some smaller projects for clients besides. So for me, sideprojects are the only way to try new technologies and do fun things that have no place in real work.

    Over christmas days i had some time to start some new sites memes-generator.net and hackerjobs.at … after some weeks online, i can tell you what i have learned and why you should also do it.

    Bildschirmfoto 2013-02-17 um 12.13.11

    Bildschirmfoto 2013-02-17 um 12.12.34

    What i have done …

    hackerjobs.at is a API Implementation from karriere.at but only for IT and Tech jobs. It uses google translate widget to display the results in english too (it works surprisingly good). In the future i want to add a view for job details and more infos about “work and life in austria” for users abroad.

    memes-generator.net is a webapp for creating meme-pictures. The sort of: funny picture with captions.

    What i have learned …

    • As database i used redis only. I always wanted to do more with it and now i know much more about designing key-value stores and how to setup and configure redis. The site is programmed in php and with phpredis there exists a very strong, fast and well-documented client-library for php.
    • If you have to deal with images, ImageMagick is the weapon of choice, most times i just use it to create thumbnails. Now i know how to create and combine images with custom fonts and styles. It’s really easy to use ttf fonts with ImageMagick and you can get many fonts from google web fonts (yes you can download it as ttf).
    • It suprised me that the state of AJAX Uploaders is not so solid i considered … i wanted a library with drag&drop support and easy to use … after trying some other libs i used jquery fileupload, for my taste its to huge and complicated but i have nothing better.
    • The state and usage smaller components like Facebook comments, Google Translate widget and Twitter Like button. It sounds unimportant but especially the social network components evolves very quick. Eg.: I didn’t know the counturl or dnt params for the Twitter button.

    Why you should do it …

    • Starting a new project force you to think over things you usually dont think about. At work we have a big project and framework and we only change the foundation only once in some years. For memes-generator i had to think about routing, controllers and a simple framework, thats really different from a big zend framework project.
    • Try some new technologies like databases, apis or programming languages, it helps you to understand problems better and you will see things from other directions.
    • Do some other stuff besides your real profession. You can do some graphics or online marketing (adwords) and seo stuff that you don’t do usually because other persons are responsible for that in your company.
    • Change your mind on things. If you try new libs and tech you will get much deeper insights to it … so you can revert or maintain opinions you have built in past only from reading news or talking to friends.
    • Get some insights for your work but from another side. As a user of the karriere.at API i discovered things that aren’t so good as i thought they are when i developed it.



    Some questions to discuss …
    Do you do side-projects? Why or why not? How do you get inspiration for side-projects and what did you do in the last weeks?

    btw. we at karriere.at released a new version last friday: http://www.karriere.at … it features also some interesting new things like: LESS-based stylesheets, much more CSS3 and HTML5, Vimeo Videos and nearly vanilla js only client side scripting … you can check it out and give feedback (the site is in german).

     
  • DerFichtl 7:17 pm on February 8, 2013 Permalink  

    Launch Feed The Beast (Minecraft) on Mac OSX …

    export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

    java -server -Xincgc -Xmx2048M -Xms1024M -Xmn512M -XX:NewRatio=2 -XX:CMSFullGCsBeforeCompaction=1 -XX:SoftRefLRUPolicyMSPerMB=2048 -XX:+CMSParallelRemarkEnabled -XX:+UseParNewGC -XX:+UseAdaptiveSizePolicy -XX:+DisableExplicitGC -Xnoclassgc -oss4M -ss4M -XX:+UseFastAccessorMethods -XX:CMSInitiatingOccupancyFraction=90 -XX:+UseConcMarkSweepGC -XX:UseSSE=4 -XX:+UseCMSCompactAtFullCollection -XX:ParallelGCThreads=4 -XX:+AggressiveOpts -cp FTB_Launcher.jar -jar FTB_Launcher.jar

     
  • DerFichtl 6:29 pm on February 2, 2013 Permalink  

    mysql sort varchar by number …
    SELECT * FROM mytable ORDER BY column+0, column;

     
  • DerFichtl 6:47 pm on January 30, 2013 Permalink
    Tags: php math   

    PHP Math Libraries and Graph Theory:

    http://stackoverflow.com/questions/3102389/graph-theory-tutorial-in-php

    https://github.com/clue/graph

    http://odino.org/the-shortest-path-problem-in-php-demystifying-dijkstra-s-algorithm/

    https://github.com/kay/PHP-Dijkstra

    https://github.com/Flos/graph-php

    … and for javascript:

    http://www.graphdracula.net/de

     
  • DerFichtl 9:23 pm on January 22, 2013 Permalink  

    whats going on at karriere.at … something is finally coming … http://dev.karriere.at/post/41193870165/was-euch-mit-k3-erwartet-ein-kurzer-teaser

     
  • DerFichtl 8:10 am on December 27, 2012 Permalink  

    a new simple and free meme generator 

    http://www.memes-generator.net/

    (no adobe flash required)

     
  • DerFichtl 8:15 pm on December 18, 2012 Permalink  

    php skype wrapper class … https://github.com/fujimoto/php-skype

     
  • DerFichtl 9:02 pm on December 10, 2012 Permalink  

    _____ _       _      _      ____                           _             
    |  ___(_) __ _| | ___| |_   / ___| ___ _ __   ___ _ __ __ _| |_ ___  _ __ 
    | |_  | |/ _` | |/ _ \ __| | |  _ / _ \ '_ \ / _ \ '__/ _` | __/ _ \| '__|
    |  _| | | (_| | |  __/ |_  | |_| |  __/ | | |  __/ | | (_| | || (_) | |   
    |_|   |_|\__, |_|\___|\__|  \____|\___|_| |_|\___|_|  \__,_|\__\___/|_|   
             |___/                                                            
    

    http://www.lemoda.net/games/figlet/

     
  • DerFichtl 8:16 pm on December 10, 2012 Permalink  

    WP SuperCache or APC killed my blog 

    Error: “Fatal error: Internal Zend error – Missing class information for in … /wp-super-cache/wp-cache-base.php”

    fix in apc.ini:
    apc.filters = wp-cache-base

    @see
    http://wordpress.org/support/topic/plugin-wp-super-cache-error-zend-on-gandi-hosting
    http://wordpress.org/support/topic/supercache-internal-zend-error-wtf

     
  • DerFichtl 6:45 pm on September 25, 2012 Permalink
    Tags: ,   

    Developer blog from karriere.at the leading job board in austria: http://dev.karriere.at … posts about php, javascript, mysql and other web stuff.

     
  • DerFichtl 3:15 pm on September 22, 2012 Permalink  

    Modify screen resolution on Ubuntu server for VMware Fusion:

    change grub config:

    >> sudo vim /etc/default/grub

    insert/change the setting GRUB_CMDLINE_LINUX … add vga=0x31B … my line looks then so:

    GRUB_CMDLINE_LINUX=”find_preseed=/preseed.cfg noprompt vga=0x31B”

    >> sudo update-grub
    >> sudo reboot now

     
  • DerFichtl 5:50 pm on September 14, 2012 Permalink
    Tags: webfonts   

    Online Web-Font Generator: http://www.fontsquirrel.com/fontface/generator

     
  • DerFichtl 6:35 pm on September 10, 2012 Permalink
    Tags: ,   

    What is sudo bang bang: http://ubuntu-for-humans.blogspot.co.at/2011/03/what-is-sudo-bang-bang.html

     
  • DerFichtl 6:31 pm on September 10, 2012 Permalink
    Tags: ,   

    Benchmark of Python Web Servers:

    http://nichol.as/benchmark-of-python-web-servers

     
  • DerFichtl 6:55 pm on September 4, 2012 Permalink
    Tags: node.js   

    Monitor a node.js project for file changes and restart the server automatically:

    https://github.com/remy/nodemon

     
  • DerFichtl 7:49 am on August 23, 2012 Permalink
    Tags: drupal, themes   

    Render Custom Area Menu in Drupal 7 

     
    <?php
     
    $query = new EntityFieldQuery();
    $entities = $query->entityCondition('entity_type', 'node')
    	->propertyCondition('type', 'testimonial')
    	->propertyCondition('status', 1)
    	->range(0, 10)
    	->execute();
    $nodes = node_load_multiple(array_keys($entities['node']));
     
    ?>
     
    <ul id="paging">
    	<? foreach($nodes as $n): ?>
    		<li class="<? if($node->vid == $n->vid) { echo 'active'; }?>"><a title="<?=$n->title?>" href="<?=url('node/'.$n->vid)?>">&bull;</a></li>	
    	<? endforeach; ?>
    </ul>
     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
shift + esc
cancel