PhantomJS runs without a graphic interface. It can navigate as if it were Google Chrome or Safari without actually having to open a window. This is a great boon to JavaScript testing as it provides quick access to a browser-based environment with a simple API to automate page navigation and JavaScript interaction.
var page = require ( "webpage" ). create (); page . open ( "http://google.com" ); page . onError = function ( e ) { console . log ( "Something went …
Jake Luer is a Node.js developer and consultant focused on building the next generation of mobile and web applications. He is logicalparadox on GitHub and @ jakeluer on Twitter.
Node.js is a JavaScript platform built on Google Chrome's v8 runtime. Node's website states that it "uses an event-driven, non-blocking I/O model," but what does that mean? As an example, in the case of a web server, when a request is made, it will set up an asynchronous …
…many of the improvements to browsers that have come during the past couple years: Google released the Chrome browser, the number of useragents have exploded as mobile computing has increased in popularity, Mozilla, Google, and Apple have gotten into a browser performance war, and Microsoft has finally started making substantial improvements to Internet Explorer. It can no longer be assumed that a single rendering engine (such as WebKit or Trident, in Internet Explorer) will always …
…you can give it your SSL keys and launch a local instance. Now we just need to tell Google Chrome when to use our proxy. For that, we can create a proxy auto-configuration (PAC) file, which consists of a single JavaScript function:
function FindProxyForURL ( url , host ) { // Route all HTTP requests to our proxy if ( shExpMatch ( url , "http:*" )) return "HTTPS localhost:43000" ; // HTTPS requests go directly to the host (Amazon's Silk setup) // See: http://www.amazon.com/gp/help/customer/display.html/?nodeId=200775440 …
After browsing Hacker News yesterday, we came across a gem of a post that highlighted Facebook's unsupported browser (or Improve Your Experience) page. After an initial look, nothing really seemed to stand out. And then we took a second look.
Here's the page:
There's a glaring omission here: Apple's Safari and Google Chrome are absent — completely. On first thought, this doesn't make a whole lot of sense. Clearly, a "better experience" can certainly be had on these two browsers.
…JavaScript that it is easy to debug. Dart can be debugged natively using a version of Chromium that has Dart support built in.
CoffeeScript takes JavaScript and makes it "even more dynamic". Dart takes JavaScript and adds optional static typing in order to facilitate building larger projects.
Overall, the panel discussion was friendly and enlightening.
Cross Platform Mobile and Web
This was a talk from a guy at LinkedIn on how they handle developing for the web …
3. Open up Google Chrome (a recent version; I'm using 20.0.1132.3 dev) and type the URI for the web-simulator in the address bar, i.e.:
file:///home/user/tizen-simulator/index.html
(replace "user" with your Linux account username)
You should see the web-simulator UI with a blank "phone" in it.
4. You need a project to test against, so make one like this: $ mkdir ~/tizen-messaging-test
Then add two files to this directory.
~/tizen-messaging-test/index.html: …
5. Open up Google Chrome (a recent version; I'm using 20.0.1132.3 dev) and type the URI for the Simulator in the address bar, i.e.:
file:///home/user/tizen-simulator/index.html
(replace "user" with your Linux account username)
You should see the Simulator UI with a blank "phone" in it.
6. You need a project to test against, so make one like this: $ mkdir ~/tizen-messaging-test
Then add two files to this directory.
~/tizen-messaging-test/ …
Driving Google Chrome via WebSocket API
Ilya Grigorik demonstrates how to control a Google Chrome browser from Ruby using its remote debugging API.
Rails Internals: Mass Assignment Security
A look at Rails' defences against mass assignment issues by Oscar Del Ben.
Cucumber is the popular framework for executing feature documentation written in plain text in your BDD process. Pat Shaughnessy sits down …
…Webkit Inspector - Everything you could want to know about using the inspector in Google Chrome.
Squeel 1.0 Released - "write your ActiveRecord queries with fewer strings, and more Ruby, by making the ARel awesomeness that lies beneath ActiveRecord more accessible."
freightrain - Framwork for developing desktop applications in ruby.
Rails for API applications (rails-api) released - The trimmed down stack that was briefly in Rails…