기본 콘텐츠로 건너뛰기

1월, 2014의 게시물 표시

[Sencha Touch] How to install Sencha Touch Cmd on Ubuntu, Linux

source:  http://www.icodeya.com/2012/12/installing-sencha-touch-201-on-ubuntu.html I change a few confusing and wrong parts. (Thanks anyway, you-who-wrote-this-great-post) For this tutorial, I used the following  Ubuntu 11.10 (Oneiric) Sencha CMD v3.0.0.250 Sencha Touch 2.0.1-gpl Apache Tomcat (I'm using Apache/2.2.20 with Tomcat 6) Be sure to download the Sencha Touch SDK and the Sencha Touch CMD, and be sure to download the ones for linux! According to some sources, Sencha Touch 2.1 is no longer using Sencha SDK Tools but using Sencha CMD instead as of writing time. You might want to  read about it ! :D  After downloading the 2 files. They're gonna look something like the screenshot below. The Sencha Touch SDK is a simple zip file, while the CMD is a runnable zip file. Step 1  Unzip Sencha Touch 2.0.1-gpl.war to /var/www/ folder. If you get a permission error, simply unzip it in it's current folder and do a sudo cp like the one below:  sudo cp -r sencha-to

[python] Understanding Python Decorators in 12 Easy Steps!

source:  http://simeonfranklin.com/blog/2012/jul/1/python-decorators-in-12-steps/ Blog  :: Understanding Python Decorators in 12 Easy Steps! 1 July 2012 Ok, perhaps I jest. As a Python instructor, understanding decorators is a topic I find students consistently struggle with upon first exposure. That’s because decorators are hard to understand!  Getting  decorators requires understanding several functional programming concepts as well as feeling comfortable with some unique features of Python’s function definition and function calling syntax. *Using* decorators is easy (see  Section 10 )! But writing them can be complicated. I can’t make decorators easy - but maybe by walking through each piece of the puzzle one step at a time I can help you feel more confident in understanding decorators [1] . Because decorators are complex this is going to be a long article - but stick with it! I promise to make each piece as simple as possible - and if you understand each piece, you’ll und