Tags
android apache awstats beans clearcase clearquest dev dreamhost dvb eclipse ffmpeg gradle htaccess html http java javascript jni licensing linux mac macfuse mpeg mysql mythtv network networking openoffice php random root ruby samba scripting soap spring sshfs ssh linux sudoers requiretty touch tr ubuntu vpn vsftp WOL xmltv
Tag Archives: javascript
Cesium 3D model translation
If you’re using the primitive API rather than the entity API then you do not have easy access to the orientation parameters. It’s possible to do all this from scratch, but it’s hard work…. var getModelMatrix = function(lon, lat, rotationZ) … Continue reading
Responsive 2D table
For WeatherSupermarket I need to layout a grid forecasts for five days for up to six providers, Met Office, AccuWeather etc. I have the providers vertically, each with the location, and a dropdown box to change the location. The days … Continue reading
Assorted IE8 polyfills: forEach, trim, placeholders
I ended up using all of the following during recent development of weathersupermarket 2.0 and another site. Array.prototype.forEach() implemented using a for loop and fn.apply if (typeof Array.prototype.forEach !== ‘function’) { Array.prototype.forEach = function(callback, context) { for (var i = … Continue reading
Jasmine 2.0 + RequireJS + Blanket + Backbone
Jasmine 2.0 provides a JavaScript unit test framework, RequireJS provides a dependency modelling/loading and Blanket provides native in-browser JavaScript code coverage – no need for a coverage server etc. So why not use all three together, well, it’s kind of … Continue reading
JavaScript debug with Chrome / Eclipse
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome –user-data-dir=$(mktemp -d /tmp/chrome-profile-XXXXX) –remote-debugging-port=9222 Add this update site http://chromedevtools.googlecode.com/svn/update/dev/
Scrolling waterfalls in HTML5
A number of technical domains use scrolling data displays, like the COTS octopus-760 sonar system. A typical implementation would involve a cyclic buffer (BufferedImage, pixmap etc) and two paint operations for efficiency. The means data can be inserted cheaply without … Continue reading
Full javascript debugger built into Safari
What an awesome feature. defaults write com.apple.Safari IncludeDebugMenu 1