PageSpeed comes in two flavors : a Chrome extension, an Apache module and a NGINX module.
The first one provides you with a great analysis tool of your current sites. The second does almost all the optimization for you. It is pure voodoo. Google has done a tremendous job. Thanks a lot.
22 févr. 2014
21 févr. 2014
BASH Training Series #1 - History Manipulation
Some pretty useful reminders on Bash history manipulation from Shawn Biddle. Of course, il works perfectly with Zsh.
19 févr. 2014
Tutoriel NodeJS : NodeWebkit
Comme d'habitude, Grafikart nous apporte un tutoriel très bien fait. En moins de 30 minutes, il réalise une application compatible Windows, Mac et Linux.
Tout d'abord, parlons un peu de Node-Webkit. Node-Webkit est un peu l'Apache Cordova pour ordinateurs.
Grosso modo, on prend son application HTML5 et on l'intègre dans le conteneur natif. Plus précisément, le conteneur natif exécute un navigateur un peu déshabillé (WebKit dans ce cas). Si le dialogue avec le natif se fait via le
Ce framework étant disponible depuis 2012, il est sacrément stable et utilisable en production. Adobe, Twitter, Github, Intel l'utilisent pour certaines de leurs applications. Pour l'avoir utilisé, je vous le recommande sérieusement.
Tout d'abord, parlons un peu de Node-Webkit. Node-Webkit est un peu l'Apache Cordova pour ordinateurs.
Grosso modo, on prend son application HTML5 et on l'intègre dans le conteneur natif. Plus précisément, le conteneur natif exécute un navigateur un peu déshabillé (WebKit dans ce cas). Si le dialogue avec le natif se fait via le
bridge.js pour Apache Cordova, Node-Webkit privilégie une interaction via NodeJS. De fait, il offre la possibilité d'accéder à la multitude de bibliothèque que cette VM fournit. C'est d'une efficacité absolument incroyable.Ce framework étant disponible depuis 2012, il est sacrément stable et utilisable en production. Adobe, Twitter, Github, Intel l'utilisent pour certaines de leurs applications. Pour l'avoir utilisé, je vous le recommande sérieusement.
18 févr. 2014
17 févr. 2014
Meet Boris: PHP, too has its REPL
What? REPL? It stands for Read-Eval-Print-Loop. Basically, it is a form of a language interpreter that allows you to enter into a dedicated prompt, evals each commands that you pass in and prints out their results. Think of Bash, Zsh, SQlite, Redis, Coffee, NodeJS, iPython, ... You enter your commands, one at the time, and they prints out their results, one at the time. And then?
PHP on the CLI is only an interpreter. Thus, it is capable of evaluating commands and scripts. But, it can't let you pile up commands and spit out their results line by line. It has no REPL capabilities. And what?
REPL makes easy to check some aspect of a language. It lets you play with a language before coding your programs. Having this tool alongside prevents you from writing a ton of scriptlets just to check or enhance your development or improve your syntax.
Thankfully, here comes Boris. It is the REPL that PHP should have from its early days.
Installing it on OSX with Homebrew is easy as pie and is performed with these simple steps:
PHP on the CLI is only an interpreter. Thus, it is capable of evaluating commands and scripts. But, it can't let you pile up commands and spit out their results line by line. It has no REPL capabilities. And what?
REPL makes easy to check some aspect of a language. It lets you play with a language before coding your programs. Having this tool alongside prevents you from writing a ton of scriptlets just to check or enhance your development or improve your syntax.
Thankfully, here comes Boris. It is the REPL that PHP should have from its early days.
Installing it on OSX with Homebrew is easy as pie and is performed with these simple steps:
- Start by installing some new recipes (or formulas):
brew tap josegonzalez/homebrew-php
- Then, install a local PHP interpreter. I prefer installing the 5.4 release as it matches the one provided with OSX but you can experiment with other if you plan on mimicking one of your servers in production:
brew install php54
Note: If you haven't done it before, Homebrew may warn you that a zlib dependencies is not met. In this case, follow his advice by running the following command and re-running the former one:brew tap homebrew/dupes
- Now, you should have a local PHP available. It is time to add a decent package management for it, Composer:
brew install josegonzalez/php/composer
- And, now, let us invite Boris to the party:
brew install boris
Use
boris as any of your regular commands like any regular REPL in your Terminal or iTerm2 or whatever CLI you like.
Inscription à :
Articles (Atom)