background preloader

Tutoriels || Tutorials

Facebook Twitter

Offline Web Applications. You are here: Home Dive Into HTML5 Diving In What is an offline web application?

Offline Web Applications

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?

Ruby in Twenty Minutes

We need to define a method! Irb(main):010:0> def hi irb(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> hi Hello 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. Top 12 Ruby on Rails Tutorials. A former student asked me a few days ago how I learned Ruby on Rails.

Top 12 Ruby on Rails Tutorials

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 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.

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?

Django - BitNami documentation

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. Five Days To A Django Web App - The Daily Build. Installing Django On Windows. Python game programming tutorial.

The Django Book: Version 2.0 (English) Django by Example: Django Tutorials - Django by Example.