When you want to take screenshots with PhantomJS, you probably need to wait before your page is completely loaded. I mean all resources are loaded and scripts executed. Use the following code to delay your screenshot : var page = new WebPage(); page.open(‘http://stackoverflow.com/’, function (status) { just_wait(); }); function just_wait() { setTimeout(function() { page.render(‘screenshot.png’); phantom.exit(); …
Web
About Instagram
Some interesting links about Instagram: Instagram Engineering What Powers Instagram: Hundreds of Instances, Dozens of Technologies The Instagram Architecture Facebook Bought For A Cool Billion Dollars Mike Krieger, Instagram at the Airbnb tech talk, on Scaling Instagram Secrets to Lightning Fast Mobile Design 8 Things Instagram Did Right
Ubuntu 11.10: setting up Apache2 and SSL with self-signed certificate
Create a self-signed certificate: $ make-ssl-cert generate-default-snakeoil –force-overwrite It creates the following files: /etc/ssl/private/ssl-cert-snakeoil.key /etc/ssl/certs/ssl-cert-snakeoil.pem Activate Apache SSL module: $ a2enmod ssl Activate Apache default ssl virtual host: $ a2ensite default-ssl Restart Apache: /etc/init.d/apache2 restart You should now see the following page on your webserver: It works! This is the default web page for this …
About user agent strings
I was surprised when I saw the length of the Chrome user agent string last week: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.X.Y.Z Safari/525.13 And in our logs: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.2.149.29 Safari/525.13 a user agent string of 119 characters. It looks …