Posts

links for 2007-11-01

Even More Rounded Corners With CSS - Schillmania.com (tags: css ) CSS Mojo: Adding Polish To Your Pages (tags: css )

OpenSocial to Help With Cross Application Permissions?

Hopefully with Google's OpenSocial API launching Thursday , I'll finally be able to tell Flickr, "Just let anyone that is my friend on Facebook, or in my GMail address book, to view my photos." I'm tired of telling people, "Sure, you can view my photos. Just create an account at Yahoo, then login to Flickr, then let me know your username." I already know these people somehow, and that relationship is somewhere on the web (probably in my address book) so why can't I tell Flickr to use that? The idea of a portable set of relationships which enable cross site permissions is really, really important to the scalability of the web. Our data is spread out, it's in a web. Let's use it on the web!

Sorting By Multiple Conditions in Ruby

I recently had to sort by multiple conditions in Ruby, and had a hard time coming up with the Ruby way to do this. The Ruby Docs didn't have what I was looking for, either. Thankfully, #ruby-lang was very helpful (and confirmed that the docs were lacking here). Let's say you want to sort this array of arrays: a = [[1,2,3],[1,0,2],[2,3,2]] and you want to sort by both the 0 and 1 indexes of the inner arrays. You can write this: a.sort_by{|e| [e[0],e[1]]} You will get this: [[1,0,2],[1,2,3],[2,3,2]] The sort_by method is used when it's costly to do the comparison itself (for instance, if you need to sort File objects, which are costly to create during a normal call to sort ). sort_by creates another enumeration of keys, one for every element in your array to be sorted. In the above example, we are relying on the fact that Array implements the <&eq;> method. So we are creating a new array which contains the multiple elements corresponding to our multiple condi...

links for 2007-10-30

Facebook FOAF Generator Generate a FOAF file from your Facebook profile and friends. A step in the right direction. Now I need Flickr and my other services to understand FOAF and I can finally control access to all my info from one file. (tags: foaf facebook semanticweb ) VectorMagic Turns your bitmapped images into vector images. (tags: graphics )

Radar Networks Ties It All Up With Twine

Radar Networks has come out of stealth to announce Twine , their "revolutionary new way to share, organize, and find information." I've been waiting for these guys to release their application for a long time. Of course I just signed up to be a beta tester.

links for 2007-10-19

The Ultimate Rock, Paper, Scissors Chart I need to get practicing. (tags: humor )

links for 2007-10-15

Rails on the Run - Sexy charts in less than 5 minutes (tags: rubyonrails charts )