0

COMMENTS

A new layout easier and more spacious

In the last days we have spent a bit of our time to do a full redesign of our website and our blog.
The result is what you are looking while reading this article.
Specifically, the innovations we introduced in both the theme of the blog and the web site are:

Wider layout splitted into two columns also [...]

GO
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
8

COMMENTS

Ruby Enumerables: Operation on hashes

In my last post I talked about Ruby’s hash.
Today I will resume and complete the argument by describing some of the things you can do to manipulate the hash values.
1. How to iterate over Hash elements
The Ruby Hash class provides three different iterators: each, each_key, each_value.
There is actually a fourth iterator, each_pair but it is [...]

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

Copyright 2012 DevInterface s.n.c.

DevInterface Blog is proudly powered by WordPress