Relative Path for your Django Project

djangoSometimes you need to move your Django project (example:from local computer to production server) or you work as a team which don’t have the same path to your project. If you give absolute path then you always need to change the settings.py.

The trick is to give relative path to your project.
Continue reading »

How to Check if An Application is Installed in Django

djangoIf you have scenario where you need to check whether you have one Django application installed in your project or not, you can use this simple trick :

from django.conf import settings
 
if "app_name" in settings.INSTALLED_APPS:
    print "app_name install"

That’s it. Enjoy!

Web Development Tools in Linux

Switching to Linux is one great move, but sometimes as a web developer who familiar with GUI, you’ll find hard to find your tools. So here some GUI tools that can help you. It’s not complete list, but I’ll keep adding tools when I find them useful for web developer.

Text Editor

General text editor, with code highlighting capability, suitable for you who prefer light editor.

HTML Editor

If you need HTML editor, linux have some.

Continue reading »

10 Steps to Becoming a Great Web Developer

For those of us who are already web developers it may seem obvious but when you just getting started and don’t know what to do, it is nice to have guide where to start.

1. Learn HTML

HTML or Hyper Text Markup Language is the markup language for web pages, it is the heart of web pages, so this is what you should aim first. HTML is easy to learn, but it is also easy to misuse them. Learn it right, and you’ll get one of your fundamental as web developer.

Resources

2. Learn server side scripting

Learning server side scripting is fundamental for web developer, pick one of server side scripting language and try to master it. Here some of your choices :

3. Learn SQL

Building dynamic web pages will get you to learn about database. While there are so many database engine, most of them understand SQL language. If you want to speak with your database then learn this language.

Continue reading »

Ultimate Collection of PHP Libraries

Having a collection of php libraries in one places will help you get your job done faster. It help me, so I share my list. I’ll keep update the list with more libraries.

Continue reading »

Submitting Form and Progressive Enhancement

Most users nowadays familiar with AJAX, well they don’t really know the term.
What users familiar is the experience, such as of submitting form without reloading the page.

So when you build new website or your web application, don’t forget to include this experience. But you also have to remember, there are some people who turn off their javascript or maybe the javascript failed to load. That is why, you should consider to use progressive enhancement.

In progressive enhancement, you can make your web application work in condition where no javascript available or failed, and enhance them if javascript available.

Lets just go with example, we’re building a form that will submit and reload to new page, but when javascript is available the form will be submitted via AJAX without reloading the page.

Continue reading »

CodeIgniter Tutorial Compilation

I write small CodeIgniter tutorial compilation, it’s not finished yet. Really like to have more feedbacks. Tweet me at http://twitter.com/komunitasweb
Thank you for your feedback.

Showing the weather with PHP and Google Weather API

weather

If you need to show weather in your website, you can use weather widget such as weatherbug. It’s nice and simple, but maybe you need something more integrated with your website. So, take a look at Google Weather API.

http://www.google.com/ig/api?weather=[city name]

Example :

http://www.google.com/ig/api?weather=jakarta

It will give you xml data, and you can parse it easy in PHP. Take a look at sample code.

Continue reading »

4 Simple PHP RSS Parser

Sometimes you need to parse RSS from other website and integrate to your project. Well you can create your own library to parse that RSS, but before wasting your development time, please take a look these great libraries for parsing RSS.

SimplePie

simplepie

SimplePie is a very fast and easy-to-use PHP class to parse RSS.

Features :

  • Single file, no install.
  • Cache mechanism.
  • Has plugin for such as WordPress, Joomla, Drupal and others.

Continue reading »

PHP Tips and Tricks

php

After years use PHP, there is always a time where I find myself look back to PHP documentation.

PHP has many functions, if you’re new to PHP, you won’t note some of useful function to remember.

There are also some of technique that you couldn’t learn by just looking PHP documentation.

For a beginner, who just learning basic PHP programming, I have collect some of tips and trick to help you upgrade your skill.

Continue reading »