Categories

Electron: how to configure NodeJS and runtime Chrome flags

Feb 03, 2019

Here is how to specify Node and Chrome flags as you would do when working in Chrome or NodeJS. appendSwitch API Electron allows you to configure the runtime environment as well as V8 specific flags...

Read More

Migrating a JavaScript project to TypeScript using webpack

Sep 24, 2018

While porting a little project from JavaScript to TypeScript I scratched my head on a lot of small problems. I wrote this article so that you don’t scratch yours ;) Prerequisite An existing JavaScript project...

Read More

webaudio: from scriptProcessorNode to the new AudioWorklet API

Sep 14, 2018

When it comes to manipulating sound, the webaudio API is really nice and allows any web developer to do almost any audio work. The legacy ScriptProcessorNode API It basically works using audio nodes that are...

Read More

Internet Explorer 5 still lives

Dec 29, 2017

There was a time when Chrome didn’t exist and IE was ruling the web world. Back in this day, it was common for browsers to take liberty and implement some shortcuts. For example, IE5 automatically...

Read More

Webpack: here are a few tricks that can boost your build performance

Nov 07, 2016

Webpack is a nice tool but the default configuration can be very slow at generating builds, even for small projects. Fortunately it takes only a few modifications to drastically reduce build times. I started switching...

Read More

Migrating from Jasmine 1.3 to Jasmine 2.0

May 22, 2015

If you just started a new JavaScript project with Jasmine, you likely started using Jasmine 2. But if you’re working on an existing project, it’s highly possible you’re using Jasmine 1.3 and maybe want, like...

Read More

Ping a server from a grunt task

Feb 27, 2015

I was working on a small project that sets up a proxy using grunt, and then starts a node server. Problem is that if the proxy wasn’t up and running, grunt would still start the...

Read More

Introduction to AngularJS

Feb 21, 2014

Lots of things are happening in the JavaScript world: it’s moving so fast it’s difficult to keep up with it! Angular-JS is an open-source MVC framework created by Miško Hevery and Adam Abrons in 2009...

Read More

A better time widget for mobile devices

Jun 06, 2012

While playing with various mobile (touch-enabled) OS I noticed that all were using the very same widget for setting time. Here is the one used in iOS: … and the one used in the latest...

Read More

Playing with 500px API & CSS3

May 24, 2012

Here is a little slideshow I did to see what could be done with the 500px API. I wanted to see how CSS 3 could be used to minimize server load so not a single...

Read More

Apple embraces HTML4

Jun 06, 2010

Back in 2010, Apple released a demo page supposedly demonstrating the power of HTML 5. The demo was restricted to webkit/safari although it did not use any webkit-specifics nor any HTML 5. Using the very...

Read More

Promises (aka Deferred): more efficient handling of async in JavaScript

Jan 21, 2010

JavaScript: a single-threaded language with many asynchronous calls JavaScript is a single-threaded language: it means that at a given time, only one script is being executed but a lot of things are asynchronous: you call...

Read More

Getting to know display:flex

Feb 18, 2015

I know I’m late, but I have finally been toying with the new CSS 3 display modes like flex and I’m already running into trouble. It seems there are a lot of inconsistencies across browsers...

Read More

A better time widget for mobile devices

Jun 06, 2012

While playing with various mobile (touch-enabled) OS I noticed that all were using the very same widget for setting time. Here is the one used in iOS: … and the one used in the latest...

Read More

Experimenting with box-shadow

May 24, 2012

Today’s browsers have very fast rendering engines: the above image is made of 26.000 different box-shadow. No canvas, no embeded image. And this is rendered instantly on today’s computers and take only a few seconds...

Read More

IE 10 Opacity bug with CSS transitions

May 24, 2012

While adding MS CSS prefixes to 500 photos slideshow, I noticed something was making the transitions blink. With some more tests I found out this was related to CSS transtions. It seems IE 10 (consumer...

Read More

Playing with 500px API & CSS3

May 24, 2012

Here is a little slideshow I did to see what could be done with the 500px API. I wanted to see how CSS 3 could be used to minimize server load so not a single...

Read More

Optimising the Canvas HTML5 element

Sep 19, 2014

While developing my own tile/sprite drawing engine, I stumble upon several problems related to the Canvas element: I thought it would be a good idea to share my experiences. Canvas clearing Since not all canvas...

Read More

Playing with 500px API & CSS3

May 24, 2012

Here is a little slideshow I did to see what could be done with the 500px API. I wanted to see how CSS 3 could be used to minimize server load so not a single...

Read More

Android KitKat: little details matter

Feb 06, 2014

With the latest iteration of Android, Google refined some little details. No big changes, but a lot of new small modifications that matter. In a previous experiment I wondered how could time widgets be improved....

Read More

Android: how to use slide transitions in activities?

May 15, 2014

Recently, I have been playing with Android development. Having already done some very basic Java development a long time ago, I was surprised how fast I came with my very first application. Development tools are...

Read More

Android KitKat: little details matter

Feb 06, 2014

With the latest iteration of Android, Google refined some little details. No big changes, but a lot of new small modifications that matter. In a previous experiment I wondered how could time widgets be improved....

Read More

Dealing with process signals with Node.js

Apr 13, 2018

JavaScript is asynchronous but we sometimes forget that it’s single threaded. This can be a problem when dealing with signals. Today I stumbled a problem while developping cat-hex, a small command line tool for Node.js....

Read More

Ping a server from a grunt task

Feb 27, 2015

I was working on a small project that sets up a proxy using grunt, and then starts a node server. Problem is that if the proxy wasn’t up and running, grunt would still start the...

Read More

Node.js: production management with PM2

Jun 16, 2014

It’s real easy to come with having your site running with Node.js: simply start it with “node server.js” and here you go. But what if you wanted to take advantage of the multiple cores of...

Read More

Finding a process using a specific network port with the lsof command

Mar 31, 2015

Today I could not launch a node server: the port my app was targeted was already in use. Fortunately Unix comes with very handy command line tools when it comes to finding which processes are...

Read More

How to set Content-Type header for specific URIs using Apache RewriteRule

Jan 24, 2017

I was working on an HTML 5 application that loads & plays MP4 files and noticed that some older version of Firefox simply refuse to load media files, although their codec is supposed to be...

Read More

Migrating a JavaScript project to TypeScript using webpack

Sep 24, 2018

While porting a little project from JavaScript to TypeScript I scratched my head on a lot of small problems. I wrote this article so that you don’t scratch yours ;) Prerequisite An existing JavaScript project...

Read More