Posts

Showing posts with the label Tutorial Series

Android ChatHead Tutorial - (1) Setup ChatHead

Image
Source code: Github (branch "step-1") Step 1: Setup an Android Project Android ChatHead requires " SYSTEM_ALERT_WINDOW " permission which is available since  API level 1 , so minimum API 7 is fine. Just next, next next... and create a blank activity :) Step 2: Add ChatHead Service If you want to know more details about ChatHead service. Read this article by Pierre-Yves Ricau . Create a ChatHead Class that extends Service . /java/com/ gbinghan /androidchathead/ChatHeadService.java Create ChatHead layout file. /res/layout/service_chat_head.xml Add ChatHeadService to AndroidManifest.xml <service android:name="com. gbinghan .androidchathead.ChatHeadService" ></service> Add SYSTEM_ALERT_WINDOW to AndroidManifest.xml <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> Your AndroidManifest.xml should look like this . Step 3: Add a button to launch the service :) ...

Bootstrap Tools

Image
Biggest Mistakes The biggest mistakes for new (or inexperienced) developers, like me, is to jump straight into coding a website. There are so many bootstrap tools (or so caller boilerplates) out there for you to start, without falling into the pitfalls of bad (really bad) designs. I'm speaking from my personal experience, with Lunchsparks . Along the way of "designing" and coding, both at the same time, I poorly designed the elements in the website, from layouts (grids, containers, tables) to buttons (color, states). The Tools These are two tools that I came across recently, which I think its awesome! These tools encapsulated the almost (if not all) the elements for designing a great (responsive) website. Bootstrap, from Twitter Bootstrap, from Twitter A very clear demo site that demonstrate what the tools (javascripts, and css) does. Recommended for new learners. HTML5 Boilerplates HTML5 Boilerplates By Paul Irish . A very cool Googler that I fo...

[Tutorial] Getting Started Zend Framework 1.11

Note: This guide is still at the initial writups. This tutorial is intended to guide beginners through the basic steps to setup a database driven website (without using Zend_tools command). Prerequisites : Zend Framework 1.11.10+ Full PHP 5.3+ (Optional)  Zend Eclipse Plugin / Zend Studio  (30-days trial)   The tutorial is divided into the following sub-sections :  1. Download and Zend Framework setup. 2. Modularize directory structure 3. Database(s) setup 4. Account component 5. Helpers Optional 1. Setting up Subversion SVN References: [1]  http://akrabat.com/zend-framework-tutorial/ [2]  http://framework.zend.com/manual/en/zend.controller.modular.html [3]  http://www.zfforums.com/zend-framework-general-discussions-1/resources-developers-37/setup-multi-modules-zend-framework-v1-9-13-steps-3737.html []  http://framework.zend.com/manual/en/project-structure.project.html []  http://zfsite.andreinikolov.com...