background preloader



TooTallNate/node-weak FasterCGI with HHVM « HipHop Virtual Machine FasterCGI with HHVM Posted on December 17, 2013 by Juliusz Kopczewski Today, we are happy to announce FastCGI support for HHVM. FastCGI is a popular protocol for communication between an application server (e.g. running your PHP code) and a webserver. If you can’t wait to get your hands on the new feature, just jump to the Installation section. FastCGI was designed to solve one crucial problem that plagued its predecessor CGI, namely: performance. HHVM FastCGI server uses asynchronous I/O. A separate set of worker threads is used to execute PHP code. We conducted benchmarks using Nginx. WordPress The first test was performed using the WordPress example page. ab -c 50 -n 1000 Sadly the results were pretty bad for PHP. Requests per second: 23.17 [#/sec] (mean) Time per request: 2157.579 [ms] (mean) Time per request: 43.152 [ms] (mean, across all concurrent requests) Transfer rate: 275.42 [Kbytes/sec] received HHVM FastCGI Fibonacci Ubuntu 12.04 Ubuntu 13.10

Announcing Elasticsearch.js For Node.js And The Browser A few months ago we released client libraries for PHP, Ruby, Python, and Perl and today we add another to the family, JavaScript! This new client runs in Node.js and modern browsers, and aims to solve the same problems that the others do: provide access to the entire Elasticsearch REST APIplay nice with clustersautomatically discover nodes when desiredintelligently handle node failurebe easily extendable, so that you can really have it behave just the way you want If you didn’t know that we are developing our own clients you should check out this post from the first round of releases. In that post Clint explains why we decided to go down this road, as well as some of the goals of the project. Just like our other clients, Elasticsearch.js is licensed under Apache 2.0 and hosted on Github. Getting the Node.js module To install the module into an existing Node.js project use npm: npm install elasticsearch Getting the browser client Setting up the client Now you are ready to get busy!

Pub-sub with RabbitMQ and WebSocket - Blog - Vanbosse Aren't realtime updates great? Here's another way of implementing realtime into apps. Using RabbitMQ, PHP, Node.js and In this blog post I'll be using an example. Image you are at a train station, waiting for the next train heading towards Berserkistan. RabbitMQ First of all, we need RabbitMQ. Publish/subscribe The publish/subcribe pattern basically says that subscribers receive all updates a publisher sends out. The publisher needs to create a connection with the RabbitMQ server. The Node.js server is a subscriber. So, for our story this means, if a train sends out location updates to the RabbitMQ server on a regular basis, the Node.js server will receive these updates since it's a subscriber. WebSocket When the Node.js server notices a message has been added, it can send out that message to all of its connected websockets. Again, for our story this means that, when an update is received, an update can be sent out to all of the waiting passengers. Demo

dbg Version: 0.1 Date: 2013-11-21 Status: Voting Introduction phpdbg is a gdb-like PHP debugger. Implemented as a SAPI module, it is intended to be installed alongside CLI and other SAPI modules. Like CLI, and gdb, phpdbg is an executable intended to be executed at the terminal in an interactive way. Much power is provided to the user in order to control and inspect execution as it occurs, breaking execution is supported in the following ways: phpdbg> break [file] test.php:1 phpdbg> b [F] test.php:1 Will break execution on line 1 of test.php phpdbg> break [func] my_function phpdbg> b [f] my_function Will break execution on entry to my_function phpdbg> break [method] \my\class::method phpdbg> b [m] \my\class::method Will break execution on entry to \my\class::method phpdbg> break [address] 0x7ff68f570e08 phpdbg> b [a] 0x7ff68f570e08 Will break at the opline with the address provided phpdbg> break [lineno] 200 phpdbg> b [l] 200 Will break at line 200 of the currently executing file Remote Debugging:

Faster Workflow: Mastering Emmet, Part 1 Emmet is a free plugin for text editors to write HTML and CSS code faster. In this multi-part series, I will show you how to write HTML and CSS code faster then ever with Emmet, profiling all the features of Emmet and how to use syntax, abbreviation and keyboard shortcuts to save your time. Emmet is a must use web developer toolkit. With Emmet you can rapidly create your markup. If you make a lot of HTML templates with nav bars, tables and/or multi column layouts, you will find Emmet immensely helpful. You can install Emmet as a plugin available for many popular text editors. You can view the complete list of supported text editors at Many popular online services support Emmet. Why use Emmet? The answer to that is simple: to make your coding workflow faster. How Emmet Works? Let’s see another example. div#header>h1.logo>a{site Name} You will have following code: <div id="header"><h1 class="logo"><a href="">site Name</a></h1></div> Expand Abbreviation Function

LearnBoost/kue OriDomi - origami for the web krakjoe/phpdbg stickUp - a free jQuery Plugin Setting up stickUp in Wordpress is a breeze. I am also working on development of a Wordpress Plugin version of stickUp, which will allow for an easy backend to work with and include many features. Its exactly the same as setting it up on any other website, but here are exact instructions for Wordpress users. First, you must download the stickUp javascript file 'stickUp.min.js' and place it in a directory called 'js' in your theme's directory. Create this directory if it doesn't already exist. You can get the file from our GitHub. Visit GitHub Next, include the stickUp javascript file into Wordpress. Near the very bottom of the file above the '</body>' tag and below the '<? Finally, add the javascript code that enables stickUp on your Wordpress Theme. Directly below the code that we inserted in the last step, paste the following code snippit. Done! **Specifically look at the Extras feature 'marginTop' to add a margin for use with the Wordpress Toolbar, otherwise it may have a conflict.