- Labnotes » Blog Archive » Scraping with style: scrAPI toolkit for Ruby — Wow. This totally comes in at my level of competence, and works pretty much how I’d want it to. Time to futz around with some prototypes…
Tagged as: code markup microformats parser programming ruby screenscraping script
- [giantJoystick] by Mary Flanagan (2006) | — "Inviting users to play classic arcade games by collaboratively moving on and controlling a 9-foothigh joystick (modelled after the 1980 Atari 2600 one), Mary Flanagan highlights the spatial and social role of the interface." Fun!
Tagged as: art games giant interface technology - SCIFI.COM | The Amazing Screw-On Head — Awesome – animated Mignola to watch.
Tagged as: animation free lovecraft mignola mikemignola scifi - MySpace parser — Tom Dyson writes a MySpace parser in Python out of Beautiful Soup. Delightful – and really, really useful.
Tagged as: html myspace parser python scraping
Beirut to Doha
18 July 2006
My former colleague Andy is in Lebanon right now and is keeping a blog whilst there. The writing there is top-notch; do check it out. I hope he makes a swift and safe return to these shores; until then, I hope he manages to keep writing. I know I’d be terrified.
- cookin’/relaxin’: On the nature of time-based media — "Fractals are common in nature and show a repeating, self-similar structure and there is a similar kind of structure here from schedules to programmes to music and speech." – some great visualisation from Tristan Ferne.
Tagged as: audio broadcast media music visulisation - Battleship:GoogleEarth (a 1st Life/2nd Life mashup) — Awesome – Julian starts building a game of Battleships played out in the real world and Google Earth, using a mobile phone as a geolocator. It’ll be interesting to see how this develops
Tagged as: battleships games locational maps research technology
Ze knows him some ugly
17 July 2006
“Ugly when compared to pre-existing notions of taste is a bummer, but ugly as a representation of mass experimentation and learning is pretty damn cool”
Ze Frank is so on the money. Good Show, go and watch it.
- thinglink blog: Design patterns for building with web APIs — MattB on fine form – an exceptionally clear explanation of the potential design patterns of building an API into your application
Tagged as: api application design development patterns thinglink web
- M@ McCray » Comatose, a Micro CMS Plugin — Comatose is a tiny CMS that you drop into other Rails apps as a plugin
Tagged as: cms plugin rails rubyonrails
Jakarta Velocity bundle for Textmate
13 July 2006
Problem: there’s no Velocity (VTL) bundle for Textmate.
Solution: write one yourself.
I’m currently working on a basic Velocity bundle for Textmate. We use it as a templating language at work, and, let’s face it, Textmate is an awesome editor with many, many ways to make your life easier. Given that it’s listed as a bundle people might be interested in… I’d better get started on it, right?
If you’re interested, leave a comment or drop me an email. So far I’ve got some basic function and syntax highlighting, along with autocompletion of some common constructs. Once it’s more finalised – and has been built in accordance to the VTL spec, not just the way I write it, I’ll start putting out releases.
(And if none of this makes much sense: Velocity/VTL is a templating language for Java web-apps. It’s one of the least sucky Java templating languages, apparently, but it’s not as mature of fully-featured as, say, Smarty.)
- Fast Company Now – Google, Innovation and the Web — What defines a project? Sometimes there are small projects. Google News took a team of 3-5 people. If you take a pool of engineers and put them in teams of three, you can actually do 100 projects.
Tagged as: business development google innovation process - Ruby Linguistics – Trac — Going beyond just pluralize. Cute.
Tagged as: gem language linguistics ruby - Interactive Fiction: First-Timer Foibles — A nice look at some common stumbling blocks in IF
Tagged as: design fiction game if interactive writing - Raph’s Website » 40 ways to be a better (game) designer — Matt B is right; it’s not just about game design, it’s about any system – code, rules, perhaps even mechanical. Really, really cracking.
Tagged as: design development games play
It’s a strong title for a post, I know, but having discovered that two friends didn’t know this at last night’s LRUG, I wanted to share it.
Let’s put this in bold for impact.
When you add <%= javascript_include_tag :defaults %>
to the top of your Rails layout, you’re adding 146kb to your page load.
And, being Javascript, that all loads serially. This is slowing page load down a lot.
Now, I’m sure if you’re building a whizz-bang AJAX app you need all that. But I reckon a lot of Rails projects don’t use anywhere near all that. So throw some out!
The Scriptaculous libraries are quite big: dragdrop.js
is 30kb, controls.js
is 29kb, effects.js
is 34kb. If you don’t need that lot, get rid of it. prototype.js
alone is 56kb. The case for the Prototype library is easier to make… but if all you’re doing is some simple DOM scripting – show/hide, for instance, do you really need 56kb of library functions to do it? Or can you do it in < 10kb with some home-made functions? If so, strongly consider doing that. And if you’re not using any Javascript in your application… why have you get any of it in there? It can all go – that’ll speed page load up no end!
I’m not saying there’s no place for this stuff – there is. Should it be included in Rails Core? Absolutely. I just don’t think that it should be called the “default” option; <%= javascript_include_tag :all %>
would make a lot more sense. And by sticking it into the basic scaffolding layout, it becomes a part of many people’s first experience with Rails – and they assume it’s default behaviour. And so I also think it should be left out of scaffolding – perhaps replaced with <%= javascript_include_tag "prototype", "application" %>
at the least.
User experience, usability, and accessibility aren’t just about the content or code of the page; they’re about how the user experiences the page. If it takes an age to load, it makes the app less usable. If you’ve got huge page size, you’re excluding anyone on a slow connection. So next time you’re skeletoning out a Rails app, take a moment to think if you really need any Javascript. If you don’t, <%= javascript_include_tag :defaults %>
can go straight in the bin. Then, when you come to progressively enhance your app at the end with Javascript (which is, let’s face it, how you should be doing it), you can include only the files you need – and keep your users happy at the same time.