Secure public Wi-Fi from your iPad

Even though the chances of having someone stealing your login information or hijacking your sessions are low, you should still consider some security measures to protect any sensitive information you may be sending unencrypted over a public Wi-Fi connection. We all seldomly or frequently use free open Wi-Fi connections available at our local coffee shop, public library or airport terminal. But are you really sure you're safe? These places are playgrounds and test labs for many out there. So next time you're out there with your iPad, consider using an SSH tunnel to encrypt your online activity.

How to handle /var/www permissions

I found this nice solution worth of sharing on how to handle /var/www or /srv/www folder permissions. This setup will make things easier for multiple users uploading content to www. You will avoid having to chmod your file and folder permissions all the time. It will also provide you with a more secure setup, in case you've been too lazy to configure your permissions, setting everything to 777...

Javascript: prototype-based programming

As a developer coming from an object-oriented programming background (e.g. C++, Java, etc.), you're probably wondering how to create classes in Javascript. But Javascript is a prototype-based language, a style of object-oriented programming in which there are no classes. If there are no classes, how exactly is this a style of object-oriented programming?

Implementing user comments

So, you would like to invite your readers to leave a comment or remark to that wonderful blog post you just wrote? Django's Comment Framework makes it really easy to attach comments to any Django model.

Adding support for RSS feeds

Implementing a feed for your blog is actually pretty straightforward. Django comes with a high-level syndication-feed-generating framework that makes creating RSS and Atom feeds easy.

Implementing code highlighting

If you want to post that cool snippet of code you just wrote, you probably want code highlighting. In Django, this is actually very easy to do with Markdown and Pygments (a syntax highlighter). Markdown includes an extension called CodeHilite that adds code/syntax highlighting to standard Python-Markdown code blocks using Pygments.

Adding a categories box

Now that your blog app supports post categories, you probably want to be able to showcase them. You could update all your templates to show the categories list, but you want to avoid repeating yourself, right? (DRY). This is where template tags come in handy.

Adding categories to blog posts

A typical blog engine gives you the ability to organize your blog posts into categories, making them easier to find. In this post we'll go over adding support for post categories to our Django blog app.

Not Another Django Blog! (cont. 1)

I'm no design guru, and quite honestly, I'm just not in the mood to design a site from scratch. So, to jump start our new blog and give it a nice simple look, we can get ourselves a clean customizable template from initializr.com. Initializr generates templates based on HTML5 Boilerplate, allowing you to choose which parts you want or don't want from it.

Not Another Django Blog!

Yes, there are a zillion other Django blog apps out there. Yes, thou shalt not repeat yourself. There are many reasons not to, however, I just thought it would be fun. So, I decided to write my own blog engine and document the process. Hopefully, someone will find it useful.