background preloader

Offline Web Applications

Offline Web Applications
You are here: Home Dive Into HTML5 Diving In What is an offline web application? At first glance, it sounds like a contradiction in terms. Web pages are things you download and render. Downloading implies a network connection. At its simplest, an offline web application is a list of URLs — HTML, CSS, JavaScript, images, or any other kind of resource. From there, most of the work is up to you, the web developer. The Cache Manifest An offline web application revolves around a cache manifest file. <! Your cache manifest file can be located anywhere on your web server, but it must be served with the content type text/cache-manifest. AddType text/cache-manifest .manifest Then make sure that the name of your cache manifest file ends with .manifest. Ask Professor Markup Q: My web application spans more than one page. OK, so every one of your HTML pages points to your cache manifest file, and your cache manifest file is being served with the proper Content-Type header. Network sections Standards:

PHP: The Right Way Ruby in Twenty Minutes What if we want to say “Hello” a lot without getting our fingers all tired? We need to define a method! irb(main):010:0> def hiirb(main):011:1> puts "Hello World!"irb(main):012:1> end=> :hi The code def hi starts the definition of the method. It tells Ruby that we’re defining a method, that its name is hi. The Brief, Repetitive Lives of a Method Now let’s try running that method a few times: irb(main):013:0> hiHello World! Well, that was easy. What if we want to say hello to one person, and not the whole world? irb(main):015:0> def hi(name)irb(main):016:1> puts "Hello #{name}!" So it works… but let’s take a second to see what’s going on here. Holding Spots in a String What’s the #{name} bit? irb(main):019:0> def hi(name = "World")irb(main):020:1> puts "Hello #{name.capitalize}!" A couple of other tricks to spot here. Evolving Into a Greeter What if we want a real greeter around, one that remembers your name and welcomes you and treats you always with respect. The new keyword here is class.

Top 12 Ruby on Rails Tutorials | Learning Ruby On Rails A former student asked me a few days ago how I learned Ruby on Rails. The answer was that I simply read alot of great tutorials. So in the spirit of sharing, here are the 12 tutorials that I found most useful: Rolling with Ruby on Rails – Curtis Hibbs of ONLamp.com offers his first excellent introduction to Ruby on Rails. This is the article that got me really excited about RoR.2. Hey, Ruby on Rails Fans! UPDATE, JUNE 2009: Want more up-to-date tutorials on Ruby programming? Happy Rails developing and if you have any other tutorials that you’d like to share, please leave them in the comments! Tagged as: ruby on rails, tutorial

Django - BitNami documentation - GeoDjango with PostGIS quick start guide How to create a new Django project? To start a project with Django, it is necessary to start the BitNami Console. You should create your new project inside Django projects folder located at: On Linux: installdir/apps/django/django_projects On Windows: For 2000, XP and 2003 Server: C:\Documents and Settings\user\Bitnami DjangoStack Projects For Vista, 7 and 2008 Server: C:\Users\user\Bitnami DjangoStack Projects On OS X: /Applications/djangostack-version/apps/django/django_projects Run the following command to create a new project: $ django-admin.py startproject my_new_project If you wish to create a new applicaction inside the created project execute the following commands as well: $ cd my_new_project $ python manage.py startapp my_new_app How to start a Django project? There are two ways to start a Django project depending of if it is a development or a production environment. $ python manage.py runserver ip:port How to configure Django with Aptana or Eclipse?

Related: