Welcome to Spaghetti.io

The blog that drives you to the cloud.

AngularJs crAcl component focus on directive and test

What we are going to do in the next lines is sharing a small section of crAcl componet: the crGranted directive. First at all, what can we use this for? Well, I usually use this directive to compile or not section of pag...

read more by Gianluca Arbezzano in Developers

Meter objects, Php Design Pattern

Long running operations are not necessarily a bad thing, for example to slowly import or export data on the boundary between two systems without causing a huge load on one of them

read more by Giorgio Sironi in Developers

AngularJs test directive with Karma and Jasmine

Any AngularJs application, needed to create re-using procedures for DOM manipulation, implements dedicated directives: they are code parts capable to execute actions inside a page, once called via classes, new attributes, ...

read more by Gianluca Arbezzano in Developers

Git history merge with Subtree

While developing an application, it may be the case that, what in the beginning seemed an external module, perfect to be used independently on the application being developed, may become part of the business logic and can ...

read more by Gianluca Arbezzano in Developers

Write your first PHP Class in C

To write a PHP Class in C you need to deal with the zend_class_entry, a data structure that will contain your object methods, properties and so on. To declare a class you have to declare it in your file and registe...

read more by Lorenzo Fontana in Developers

Bisecting your code with Git in order to identifies regressions with PHPUnit

It is often the case when an application shows a Bug, not present in previous revisions, involving a function not really new but quite used. So it may be useful to own the code revision history to search the exact moment, ...

read more by Walter Dal Mut in Developers

File minification in AngularJS

Minification is a very important tool to reduce transmission time of code pieces. There is a wrong and diffused use not to apply code minification and to concatenate code, obliging clients to download all JavaScript depend...

read more by Antonello Pasella in Developers

Creation of a unit test for an AngularJS filter

With reference to the filter created in a previous article, now we want to create a test. The test can be used both to check the proper filter working and as a function specification document

read more by Antonello Pasella in Developers

Esxplose your translation to javascript client

This article discusses how to expose the translation system of symfony, so that it is made  available to your javacript scripts.   For translation handling purposes in symfony, we suggest to install JMSTranslat...

read more by Alessandro Nuzzo in Developers

Symfony Accesss Control made easy by route tagging ad voters

Symfony 2 ships with a powerful Security Component that can be used to manage user authorization and authentication, handling all the common facilities from the user login to the access control

read more by Giorgio Cefaro in Developers

Event scheduler in MySql

Since Mysql version 5. 1. 6, the system supports the option to schedule the execution of some events, without need to use external software (cron, at, Task Scheduler, etc

read more by Antonio Pessolano in DevOps

Partitioning on MySql

Imagine you need to execute one ore more queries on a big size table, containing the history of the sales of an e-commerce point. If your hardware resources are limited, scanning the whole table could require several minut...

read more by Antonio Pessolano in DevOps

Vagrant and AWS provisioning in Cloud

The spreading of Vagrant application is rapidly increasing, especially owing to the rising number of available plug-ins, capable to extend the tool's native behaviour and to satisfy most users' needs

read more by Gianluca Arbezzano in DevOps

5-minute MongoDB profiling

MongoDB has a bundled query profiler that can be run in a development environment or even on production databases. As it is customary for MongoDB, the API exposed by the profiler is a collection, which is composed of o...

read more by Giorgio Sironi in DevOps

Docker and its remote API's

Docker expands the concept of Linux Container, adding to such mechanism an high-level API, used for isolation of processes via CGROPS. Another important function, added since version 0

read more by Antonio Pessolano in DevOps

Vagrant provisioning with Salt

Vagant supports many provisioning systems, ranging from the classic bash to more famous systems, such as Chef and Puppet.  Saltstack was designed as an external plug-in, but, since Vagrant version 1

read more by Gianluca Arbezzano in DevOps

SaltStack cloud and OpenStack

Salt cloud is a provisioning tool that can be integrated with a Cloud Provider. The purpose of this tool is to deploy a minion on a new instance created in the cloud. So the creation of new nodes in your infrastructure i...

read more by Walter Dal Mut in DevOps

AngularJs crAcl component focus on directive and test

What we are going to do in the next lines is sharing a small section of crAcl componet: the crGranted directive. First at all, what can we use this for? Well, I usually use this directive to compile or not section of pag...

read more by Gianluca Arbezzano in Developers

Meter objects, Php Design Pattern

Long running operations are not necessarily a bad thing, for example to slowly import or export data on the boundary between two systems without causing a huge load on one of them

read more by Giorgio Sironi in Developers

AngularJs test directive with Karma and Jasmine

Any AngularJs application, needed to create re-using procedures for DOM manipulation, implements dedicated directives: they are code parts capable to execute actions inside a page, once called via classes, new attributes, ...

read more by Gianluca Arbezzano in Developers

Git history merge with Subtree

While developing an application, it may be the case that, what in the beginning seemed an external module, perfect to be used independently on the application being developed, may become part of the business logic and can ...

read more by Gianluca Arbezzano in Developers

Write your first PHP Class in C

To write a PHP Class in C you need to deal with the zend_class_entry, a data structure that will contain your object methods, properties and so on. To declare a class you have to declare it in your file and registe...

read more by Lorenzo Fontana in Developers

Bisecting your code with Git in order to identifies regressions with PHPUnit

It is often the case when an application shows a Bug, not present in previous revisions, involving a function not really new but quite used. So it may be useful to own the code revision history to search the exact moment, ...

read more by Walter Dal Mut in Developers

File minification in AngularJS

Minification is a very important tool to reduce transmission time of code pieces. There is a wrong and diffused use not to apply code minification and to concatenate code, obliging clients to download all JavaScript depend...

read more by Antonello Pasella in Developers

Creation of a unit test for an AngularJS filter

With reference to the filter created in a previous article, now we want to create a test. The test can be used both to check the proper filter working and as a function specification document

read more by Antonello Pasella in Developers

Esxplose your translation to javascript client

This article discusses how to expose the translation system of symfony, so that it is made  available to your javacript scripts.   For translation handling purposes in symfony, we suggest to install JMSTranslat...

read more by Alessandro Nuzzo in Developers

Symfony Accesss Control made easy by route tagging ad voters

Symfony 2 ships with a powerful Security Component that can be used to manage user authorization and authentication, handling all the common facilities from the user login to the access control

read more by Giorgio Cefaro in Developers

cloudparty

Follow Us