Configure Subdomains for Localhost under Debian

Angelegt von suung Wed, 22 Jun 2011 17:30:00 GMT

Our  Content Management Lite is great, but still requires domains or subdomains to seperate the different sites.

That's annoying, when you develop locally.

Here is a fix for debian linux, that will definetly be useful for you, if you are doing similar thing (developing websites) or just want to organize your machine better.

 

 

suung@q2:~$ sudo nano /etc/hosts

127.0.0.1       localhost       localhost.localdomain

127.0.0.1       bs.localhost    bs.localhost.localdomain

127.0.0.1       fv.localhost    fv.localhost.localdomain

127.0.0.1       ca.localhost    ca.localhost.localdomain

127.0.0.1       ad.localhost    ad.localhost.localdomain
 
 suung@q2:~$ ping bsa.localhost

ping: unknown host bsa.localhost
 
 suung@q2:~$ ping bs.localhost

PING bs.localhost (127.0.0.1) 56(84) bytes of data.

64 bytes from localhost (127.0.0.1): icmp_req=1 ttl=64 time=0.087 ms

64 bytes from localhost (127.0.0.1): icmp_req=2 ttl=64 time=0.058 ms

OneAim Content Management Released

Angelegt von suung Tue, 19 Apr 2011 20:31:00 GMT

Finally I released the Content Management used on OneAim.

OneAim is the following:

a) There is one aim

b) Projects having that one aim can be open or finished.

Great, what?
 

As the time goes by and the project becomes more and more old (Rails 2) I release it. 

https://github.com/suung/oneaim

The perfect CMS

Angelegt von suung Sun, 17 Apr 2011 20:08:00 GMT

Online Mini CMS von Heroku

Angelegt von suung Sat, 19 Feb 2011 01:18:00 GMT

Heroku laesst dich online mit Rendera ganz einfach Websites bauen :)

http://rendera.heroku.com/

Jekyll - a 'blog aware' static website generator

Angelegt von andi Thu, 20 Jan 2011 14:06:00 GMT

Within the next weeks i will have a closer look at existing ‘statig website generators’ / ‘static cms’ written in ruby. So far, i had brief looks at nanoc, Jekyll, webby, webgen and staticmatic.

Jekyll

The first one i had a closer look at, was jekyll. I recommend to start by having a look at the runtime dependency list, as it gives a first good insight in what jekyll actually does. It comes with an integrated Webserver, and auto-regenerates it’s sites, whenever new content is added. Basically you have a config file, some static html pages (if you need those), some layouts, and blog posts (or whatever content) that you can add in textile format. Once you’ve generated a site, you will find the static html results in it’s subfolder, e.g. _site.

Runtime Dependencies

Liquid: Templating system (Ruby) Classifier: Generating related posts (Ruby) Maruku: Default markdown engine (Ruby) Directory Watcher: Auto-regeneration of sites (Ruby) Open4: Talking to pygments for syntax highlighting (Ruby) Pygments: Syntax highlighting (Python)

I’ve linked some of the probably most interesting dependencies, at least for me.

  • ‘Directory Watcher’ is scanning a directory for changes, and sends events (changed, added, removed) to registered overservers (in this case jekyll, which reacts with a regeneration of the site.
  • Having a look at Liquid, gives a first overview over how jekyll templates and layouts look like. You might also have a look at the Jekyll-specific “Yaml-Front-Matters”.

Configuration

You should really have a look at the available configuration options as they give a good feeling about scope and capacity of jekyll. Besides configuring the webserver, you can turn syntax hilighting (with pygments), auto-regeneration and indexing of related posts on and off. You can also define the Style of your Permalinks.

Template Beauty

While liquid already provides some tags and filters to ease your life as a template designer, jekyll adds some extensions, such as counting words in a piece of text, adding Code Highlighting and including partial like html-snippets (from the _includes folder in your jekyll base).

Sites running Jekyll

If you need some inspiration, or just come usable code to look at, don’t miss out the list of existing jekyll sites. Most of them even put their sites source on github, so you can clone ready-to-use sites, run them locally and play a bit around, before you setup your own.