Author Archive

4

COMMENTS

How to send email asynchronously using Devise and Rails3

Hello everyone.

I’d show a workaround to send email asynchronously using Devise and Rails3.

Suppose we have already up and running our application with Devise and delayed_job correctly installed.

A first attempt was to add in config/initializers the following file (devise_async.rb):

12345678910111213141516#devise_async.rb
module Devise
  module Models
    module Confirmable
      handle_asynchronously :send_confirmation_instructions
    end

    module Recoverable
      [...]


GO
5

COMMENTS

How to implement two dropdowns dependent on each other using Django and jQuery

Hello everyone.
With today’s article I want to show how to implement two dropdowns dependent on each other using Django and jQuery.
Suppose we have a 1-N relationship between car brands and car models: we want to show the list of brands in the first dropdown; then once you have selected a brand, the second dropdown will [...]

GO
2

COMMENTS

How to create a custom feed in Django using the Syndication Feed Framework

Hello everyone.

In this article I will show you how to create a custom feed in Django, using the Django Syndication Feed Framework 1.2 or higher.

I’ve had to create an XML with some more tags for each item in the feed.
In particular, in addition to the usual tags present in an RSS feed, I’ve added [...]

GO
4

COMMENTS

How to install PostgreSQL and psycopg2 on Osx Snow Leopard

Hello everyone.

In my last post I showed how to install MySQL from source on Osx.
Among the many comments received, some of them suggested me to use homebrew

I recommend everyone to use this tool in order to easily install several unix packages on OSX.

Among the packages that can be installed there’s also PostgreSQL, the subject of [...]

GO
14

COMMENTS

How to install MySQL and Rails on Osx Snow Leopard

Hello everyone.

These days I’ve bought a MacBook Pro with Osx Snow Leopard 64-bit pre installed.

Having to develop mainly in Rails and Django on MySQL and PostgreSQL, I’ve found some difficulties to install and properly configure all packages.

The main problems were due to the presence of 32bit libraries and other at 64bit. For example, Python or [...]


GO

Copyright 2012 DevInterface s.n.c.

DevInterface Blog is proudly powered by WordPress