YUI Compressor - JavaScript minification
In my current Silverlight project the amount of JavaScript is growing exponentially. Everything that I took for granted in Flash which took years to build and “perfect” now needed to be converted to JavaScript.
For the first beta release which is looming next week, the amount is about 130k. “Compressing” it with JSMin yields a file of 75kb in size. Yesterday I tried YUI Compressor which managed to squeeze it down to 65kb.
I’m very happy I no longer have to look at JSMin code which induces gag reflex and makes my eyes bleed. The amount of effort and self restraint it took not to rewrite it can not be described in words.
RIO - wrong number of arguments on rmtree, mkpath etc
It’s nice to do some Ruby once in a while. Lately I’ve been involved in a Silverlight project and haven’t touched Ruby in 2 months (hence the lack of activity on my Ruby blog). However, I’m making a build script in Ruby.
I have run into a weird exception when using my favorite IO gem RIO (btw, Noobkit page got beaten with the ugly stick and parser needs a spanking).
Exception occur when calling rio(...).rmtree or rio(...).mkpath or rio(...).mkdir. It reads as follows: “wrong number of arguments (0 for 1)”. I know for a fact that these methods don’t take any arguments, but just for kicks, passing a single random argument results in an ironic “wrong number of arguments (1 for 0)”.
Basically the problem came down to the fact that RIO doesn’t like Rake. I can live without Rake, but not without RIO.
Morning Brew #89
Another cup of fresh Rails and not so Rails brew. If you’d like to send in a link, please use this page.
Rails
- Rails 2.0: Release Candidate 2
- Attachment_fu updated!
- Installing Mingle with Capistrano/Deprec
- RSpec and Inline RJS
- Master/Slave Databases with Ruby on Rails
Ruby
- Measuring your test coverage with Heckle and RCov
- How To Start Playing With Ruby 1.9 Right Now!
- Ruby DSL Blocks: A Common Pattern For Developing DSL
- RDDB: RESTful Ruby Document-Oriented Database
- Sinatra: Classy web-development dressed in a DSL
- RubyInject - a Mac OS X framework that allows you to inject at runtime the Ruby interpreter into any running application.
- RubyGems 0.9.5
Web Development
Previous Articles
Welcome friend!
Thank you for taking the time to visit my blog! Take a second to peek around and check out some of my previous posts. Of course, I would love to find out what you think as well, so make sure to comment. See you around!


