Getting started with (Mule ESB) Anypoint Studio and Maven

mule-esbRecently I started to work with Mule ESB, in my opinion one of the best Enterprise Service Bus on the market. It’s easy, fresh, modern and does not give you the impression of a Big Monster that will eat you like products from Oracle or IBM :-).

It is really a good product but is not immune to some little defects that could let you waste some time, especially at the beginning when you are not confident with it.

In the following tutorial I will describe how to configure Anypoint Studio with Mule ESB runtime embedded on a local machine and the initial setup to work with Maven.

I assume that you already have a Anypoint Studio with an Enterprise/Community run-time installed, if not you can always download AnyPoint Studio from MuleSoft official website.

Another prerequisite is a local Maven installation and some confidence with the tool.

Read more

Hundreds Scoops of Django 1.6

twoscoopsI consider myself an Advanced/Expert Django developer but I also think that there is always something new to learn and that’s exactly what you expect from a book coming from Daniel and Audrey (authors will forgive me if I call them by name to help the conversational nature of this post). The book Two Scoops of Django 1.6 meets the expectations and in most cases it exceed them. There is a great layout and a great use of convention that makes the read really easy and also fun thanks to the nice Ice Cream related examples.

Read more

Amazon AWS 3D cubes with Impress.js

Screen Shot 2013-10-07 at 4.39.22 PM

After a while I’m back on my blog to post about my small experience with Impress.js

Some time ago I was involved in a hiring process with Amazon AWS and a part of the interview process consists in preparing a 30 minutes presentation on an Amazon service. So what I did is using Impress.js to try to impress them, designing the Amazon AWS logo with impress.js and navigating through it in a cool 3D way.

Read more

Celery centralized logging

As someone of you that is already using celery already know extend the celery logger was a bit tricky until the last version, mainly because the logger object is not unique, the same handler is added to different logs object (Main Process logger, PoolWorker logger, TaskLogger).
For this reason the command logging.getLogger(“Celery”) give you back only the Main Process logger.
From the version 2.2.7 of Celery is possible to extend all the logs object by using two new signals after_setup_logger and after_setup_task_logger.

Read more

Boto Mturk Tutorial: Fetch results and pay workers

This is another tutorial of the mturk series, in this one I will explain how to fetch the ready results from mturk trough python boto and how to approve or reject payments to the workers.
Before continue I suggest you to read my first tutorial about boto and mturk if you didn’t it already.

Well, before continuing for have a good test case I suggest you to publish some hits on the mturk sandbox and do it trough the workers sandxbox, in this way you will have some results ready to be fetched.Read more

Boto Mturk Tutorial: Create hits

This tutorial will be the first of many about mturk and Boto, a python interface to Amazon Web Services.
When I started to develop python tasks for automate some process by using amazon mturk was a little bit difficult found enough information about the usage of Boto and about mturk, for this reason I want to make those things easy for others developers that, like me some time ago, are starting to deal with Amazon Mturk.
Let’s start from the origins what you need is:

Boto library (2.0b4): you can install it with easy_install or download the package from the github page.
Amazon Web Services keys: create an account or login if you already have one on aws.amazon.com, after that go to you account admin panel and than security settings.
In the page scroll to the section Access credentials and keep note of the Access Key ID and Secret Access Key.

Read more

History Timeline wp plugin: now it support before Christ dates

Hi all, today I finally release the new version of my history timeline plugin.
I understand that a plug-in called “History timeline” have to allow you to use before Christ date too, I know, I’m a little bit in late but now is published the version 0.7 that give you also more option for post discrimination.
Here a list of functionalitiesRead more

A simple python sandbox for Celery and not

At the end of this post you will find the source code of a python sandbox that I write for have a general sandbox that work for all my celery tasks.
Anyway this is a general python code and you can use it also without Celery but here I will give you also some example to how to use it in easy and fast way with Celery.Read more

Sony VAIO brightness control script for Ubuntu (Geforce cards)

This evening I want to share with you this little script that I wrote for my personal use.
This script need the module “smartdimmer” (Change LCD brightness on Geforce cards), you can found it on the Ubuntu repository, than it’s enough to write on console

$ sudo apt-get smartdimmer

For test if the module works just try to set a new brightness value by typing

$ smartdimmer -s 50

If the module works for your laptop you can use the following script for change brightness directly from your keyboard.

Read more