Posts

Showing posts with the label Tutorial

New blog domain: kula.blog

It's still work in progress but new posts will be published on  https://kula.blog/ Thanks to 11ty base blog RSS is working from the start so it should be easy to add to your reader if you still use any :) If now then I hope you can sign up to the newsletter where I'll be publishing new posts and interesting articles to it from time to time. Please use  kula.blog  from now on.

How to install CyanogenMod on Galaxy Nexus on Ubuntu

Image
If you are disappointed that Galaxy Nexus is not going to get KitKat 4.4 you may think that CyanogenMod may be for you. First: it's not perfect! You will need to install Google Apps separately and from the start there is nothing like Gmail or Google Account in settings  (it' solvable but remember about it). My tutorial is post-mortem of following this one:  http://wiki.cyanogenmod.org/w/Install_CM_for_maguro Install Fastboot & ADB as stated here:  http://wiki.cyanogenmod.org/w/Doc:_fastboot_intro sudo apt-get install android-tools-fastboot android-tools-adb I have done it long ago and have it installed already so I'm not sure what was needed. If you have problems maybe something from  http://ferrancasanovas.wordpress.com/2014/01/30/adb-install-android-system/  can help: sudo add-apt-repository ppa:nilarimogard/webupd8 sudo apt-get update sudo apt-get install android-tools-adb android-tools-fastboot Download If you have adb and fastbo...

Promises in Code

Image
To see more general explanations of promises:  Promises and Deferreds - How I Stared To Like Them At a basic level what Promises do is the same thing as passing a callback to a function. function myFunc ( callback ) { . . . } myFunc ( alert ) ; var promise = myFunc ( ) ; promise . then ( alert ) ; But it is easy to get too many callbacks (if you work without promises), you need at least two, one for error and one for success. Functions need some arguments and you end up with a monster like: myUgly ( success , error , param1 , param2 , param3 ) or move to a config object: myBetter ( { success : success , error : error } ) ; When I want to add another success function it gets uglier: myBetter ( { successes : [ success1 , success2 ] , error : error } ) ; The same functionality with promises will be probably more verbose but I think this is a good thing. The code below is much more maintainable and extensible: var promise = my...

Promises and Deferreds - How I Stared To Like Them

Image
Lately I've started to believe that promises are really useful concept. I used to think of them as some mumbo-jumbo invented by folks who can't get the idea that a function can be stored in a variable and the problem they are trying to solve is easy enough to deal with without any libraries. My first step to understand them was to read:  You're Missing the Point of Promises After that I started to see something in them but couldn't find any real need for them. At that time I joined a new company and I was lucky enough to participate in the first HackDay where we started to implement mashup site that needed to get data from a bunch of urls and then start UI. It was a perfect use case for promises, when all data is downloaded ("when") we can call UI initialization. As we used jQuery to speed up hacking I used jQuery promises with ajax calls. We found really good post by Edwin Martin  Deferred and promise in jQuery  and I finally got the idea behind prom...

Learn Git in 15 minutes

Image
Github created Git Training that can be done in 15 minutes and make you familiar with Git. http://try.github.com/levels/1/challenges/1 Course is created by Code School and can be viewed also on  http://www.codeschool.com/courses/try-git Whole course is free, and you can learn most important things about Git, and I mean most of it. Really good work and I really can recommend doing it :)

Learn WebGL with Erik Moller

Image
A WebGL instructional video by Erik Moller. I think that this is awesome opportunity to learn WebGL! Watching video is really easy, and with just that you can learn basics of WebGL.  Of course WebGL is supposed to be low-level API and I suggest to use Library like THREE.js or J3D, but ability to know what this libraries are doing can be really helpful.

Game Audio without Flash?

New tutorial on HTML5 Rocks about HTML5 Audio for Games. http://www.html5rocks.com/en/tutorials/webaudio/games/

Learn Backbone with Code School

Image
Awesome course of Backbone:  http://backbone.codeschool.com/levels/1 Looks really impressive, added to my todo list. For now I must prepare slides for sunday meet.js barcamp :)

PHPUnit from sources in WAMPServer and NetBeans

Tutorial how to install PHPUnit in WAMPServer on Windows and how to make it working in NetBeans 7.1 Disclaimer: If You can use PEAR it would be much easier! :) 1: Install WAMPServer:  http://www.wampserver.com/ 2: Checkout repositories mentioned at the bottom of page:  https://github.com/sebastianbergmann/phpunit I created folder "includes" in PHP directory. mkdir phpunit && cd phpunit git clone git://github.com/sebastianbergmann/phpunit.git git clone git://github.com/sebastianbergmann/dbunit.git git clone git://github.com/sebastianbergmann/php-file-iterator.git git clone git://github.com/sebastianbergmann/php-text-template.git git clone git://github.com/sebastianbergmann/php-code-coverage.git git clone git://github.com/sebastianbergmann/php-token-stream.git git clone git://github.com/sebastianbergmann/php-timer.git git clone git://github.com/sebastianbergmann/phpunit-mock-objects.git git clone git://github.com/sebastianbergmann/phpunit-selenium.git git clon...

SVG Site Design

Image
http://webdesignerwall.com/tutorials/playing-with-svg-design Is a tutorial about creating site with SVG help. Original site:  http://vlog.it/ SVG relly can be used to create awesome looking sites without hundred of divs :) This is not for all sites of course, but this can be used to create additional features or promotional elements on site.

API Design: Boolean Trap

One of the best articles I read recently! This make me think that I don't know many important thing about API Design :( http://ariya.ofilabs.com/2011/08/hall-of-api-shame-boolean-trap.html Boolean API parameters destroy code readability. After reading it I can agree and I will try avoid it in my code.Fun to read, strongly recommend! API design principles are from Nokia QT library but as author explains they in the root are language agnostic, at least for similar to C languages. http://developer.qt.nokia.com/wiki/API_Design_Principles

PL: Wstęp Do Programowania w Linuxie (Ubuntu)

Bardzo ciekawy i wyczerpujący artykuł o podstawach programowania w Linuxie. http://czytelnia.ubuntu.pl/index.php/2008/07/30/wstep-do-programowania-w-linuksie-na-przykladzie-ubuntu/ Przegląd przez popularne języki i edytory. Wszystko czego potrzeba by zacząć programować w Ubuntu.

Learn JavaScript and jQuery for Free.

Interesting site with videos to learn from. http://learn.appendto.com/

JavaScript Tips and Tricks

http://code.google.com/p/jslibs/wiki/JavascriptTips#language_advanced_Tips_&_Tricks Good collection of JavaScript features that will make you like JavaScript and the ones that You should know if You want to like it for a longer ;)

Node.js Tutorial: Blog

Step by step guide to create blogging application. http://net.tutsplus.com/tutorials/javascript-ajax/node-js-step-by-step-blogging-application/

A successful Git branching model

Great post about using git to work in team, to develope new new features, fix bugs and support production. This is great post and in most parts can be used in SVN, Mercurial or Bazaar. http://nvie.com/posts/a-successful-git-branching-model/

webmaster.helion.pl

Ciekawa strona w wieloma artykułami na tematy webowe:  http://webmaster.helion.pl/ Z tego co widzę nie znajdziemy tam kompletnych kursów na dane tematy, ale najważniejsze pojęcia mają swoje krótkie omówienie. Szczegóły można wyszukać w wielu innych miejscach, ale zrozumienie działania jest najważniejsze. Co można znaleźć: HTML XHTML CSS CSS3 JavaScript MySQL Za minus można wziąć brak jakiejkolwiek wzmianki o HTML5 (jeśli po prostu nie znalazłem proszę o informacje)

Git Tutorials for Beginners

http://sixrevisions.com/resources/git-tutorials-beginners/

Three.js for beginners

http://aerotwist.com/lab/getting-started-with-three-js/

Google Chrome Hosted Apps Tutorial

Image
I have installed some Google Chrome Apps but most of them are simply Bookmarks to sites. Lets build that bookmark! How to build it:  http://code.google.com/chrome/apps/docs/developers_guide.html This is all You need to build it... but this is not the end... If You want to pay 5$ and host Your app on Google App Store go to  https://chrome.google.com/webstore/developer/dashboard  and upload zip file with Your app. I don't want to pay, at least yet so I will try to host it by myself...  Pack it Youself:  http://code.google.com/chrome/extensions/packaging.html After packaging put app.crx to your server and app.pem to some secure place (encrypted pendrive ?) My App: Interia.pl   Code:  https://github.com/krzychukula/interia Installation:  This is problematic because host is different than site that host app sot to install it You must download it to a file (right click) and later install it from downloaded file :) Download it from googl...

OpenGL ES for Android

Lesson 1:  http://blog.jayway.com/2009/12/03/opengl-es-tutorial-for-android-part-i/