Serve a Directory with Ruby
Quickly serving a directory using PHP, Node.js, or Python allows for quick testing with as little hassle as possible. Imagine having to stand up apache or another server just to serve a directory -- gross! Since I had touched the three important languages, I looked to Ruby, a language I have very little experience with.
It turns out that serving a directory with Ruby is as easy as the other languages:
ruby -run -e httpd . -p 8080
The -p
argument obviously represents the port, so hitting localhost:8080
will get you to the served directory!
My trip to Mozilla Summit 2013 was incredible. I've spent so much time focusing on my project that I had lost sight of all of the great work Mozillians were putting out. MozSummit provided the perfect reminder of how brilliant my colleagues are and how much...
In 2001 I had just graduated from a small town high school and headed off to a small town college. I found myself in the quaint computer lab where the substandard computers featured two browsers: Internet Explorer and Mozilla. It was this lab where I fell...
Thomas Fuchs, creator of script2 (scriptaculous' second iteration) and Zepto.js (mobile JavaScript framework), creates outstanding animated elements with JavaScript. He's a legend in his own right, and for good reason: his work has helped to inspire developers everywhere to drop Flash and opt...