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. How can you download when you’re offline? Of course, you can’t. 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. The first line of every cache manifest file is this: Here is a valid manifest file. Network sections Fallback Sections. 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 next line is the body of the method, the same line we saw earlier: puts "Hello World". Finally, the last line end tells Ruby we’re done defining the method. 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. 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. Rolling with Ruby on Rails, Part 2 – The sequel to Curtis Hibbs excellent series of articles.3. Four Days on Rails (PDF) – a great tutorial that is broken down into simple tasks that you can do over a four day period.
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. If you are using a Virtual Appliance or AMI, you can run the commands below directly. 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?
$ python manage.py runserver ip:port The other way is strongly recommended for production environments. Five Days To A Django Web App - The Daily Build. Installing Django On Windows | #if debug. Python game programming tutorial. The Django Book: Version 2.0 (English) Django by Example: Django Tutorials - Django by Example. W3Schools Online Web Tutorials.