Category: quick tip

Two-step verification with php and Google Authenticator

A security feature in system authentication that has become quite popular recently is 2-step verification. The main banking and brokerage applications use their own apps to generate tokens that are dynamic (they are constantly updated in low cycles of time), and used as a 2nd factor for system access (the 1st factor is the traditional username/mail and password ).

However, if you do not want to implement your own token generator, you can use Google Authenticator, an application with the mentioned features (available for Android and IOS) and that can be easily integrated into your application or web system. In this post, I’m going to show you how to integrate your php application with Google Authenticator.

Continue lendo

Guzzle: a HTTP client to php

At a time when interoperability between systems has become increasingly important and the creation/use of APIs is increasingly ascending, it is always important to think about the consumption of third party services within our projects.

In php, although it is relatively simple to make requests “http” with the native resources of the language itself, it is recommended that a library be used for this purpose, since this way we have more security and resources that facilitate and make this process more agile procedure.

Continue lendo

How to define EventListener for dynamic elements created in javascript

JavaScript makes it possible to execute functions when a certain event occurs within the DOM of our HTML. This event can be a “click” on a certain element (usually a button), the selection of an “option” within a combo, or even the loading (load) of the page.

In addition, another interesting and widely used feature in JavaScript is the possibility of creating elements (inputs, divs, links or any other type of HTML component) dynamically (also through events).

Continue lendo

BitBucket – Free Git Repository

The git is great “face” in fashion now days when it comes to version control. This tool, created by Linus Torvalds (creator of Linux too), is based on the philosophy of distributed system, focused on speed. With this, each working directory of git , becomes a repository with complete history of the codes and their revisions (perhaps this is its great advantage over the decaying SVN).

To host git versioned projects , the most famous and used is GitHub ( ). Several open source projects are available on GitHub and anyone can clone and use them. The registration on GitHub is free, but in the free account , your personal projects are public, that is, anyone can follow and use their codes. If you’re looking to create private repositories, you’ll have to shell out a few dollars a month.

Continue lendo

Codeanywhere: your code editor in the cloud

Have you ever thought about having a code editor in the clouds (online) that you can access from home, from work, from the cafeteria using your pc, notebook, tablet or cell phone? Well then I come to introduce you to codeanywhere (

Codeanywhere is a platform that allows you to access and edit the files on your website or your customer’s website in an instant and uncomplicated way.

Continue lendo