KBD

Keith Devens .com

Wednesday, December 3, 2008 Flag waving
Fools ignore complexity. Pragmatists suffer it. Some can avoid it. Geniuses remove it.... – Alan Perlis

Archive: November 17, 2005

← November 15, 2005November 18, 2005 →

Daily link icon Thursday, November 17, 2005

Rojo - new feed reader

Just found out about Rojo, a web-based feed reading service like Bloglines, from this comment on Anne's weblog. Trying it out now. I like it so far. May switch.

Update: Not a fan. The interface is too cluttered, and I really have no use for the social features. The tagging input box between the title and content for each post is particularly irritating. Also, for some reason they emphasize only the post title and deemphasize the blog the post came from. It's important for me to know who's writing a post so I can put the post in context of what I already know about the author. Also, when posts from different authors are interspersed like Rojo does it it's hard for me to context switch, particularly because the author is deemphasized, not appearing on the page until after the post title.

So, I'm sticking with Bloglines, but I did just notice that Feedlounge just added a "river of news" view, which is probably what they're calling the type of view that Bloglines has. I've never liked the type of reader that treats RSS like e-mail, where each post is an item. I like Bloglines' view where I can see everything unread for a particular category or a particular feed in one page without having to click on every item. Scrolling is key. I may sign up for the beta test.

  1. New Media Hack: Google Labs: Sawzall & MapReduce (via):

    Thanks to Greg Linden's careful eye on Google Labs one can start to see some of the value of all those PhD's at Google. First, PLDI (amongst other things) expert Jeff Dean, along with Sanjay Ghemawat, cooks up a domain specific programming model and implementation that allows J. Random Hacker at Google to easily crunch lots of data across many machines. Next UNIX legend Rob Pike and team take the baton and start sloshing around petabytes of data at a time by building a new language on top of Dean's work... High end toolmakers are major force multipliers in military speak.

    Sigh, it's really too bad that Google will be dead soon (sorry, inside joke).

       (0) Tags: [Programming]
  2. Lemonodor: Short Course of Lisp.

       (0) Tags: [Programming]
  3. Check out Peter Norvig's review of the Deitels' "Python: How to Program". ALL of the Deitel books are like that. Never ever ever buy a Deitel book.

       (3) Tags: [Programming]
  4. Sun's new filesystem, ZFS, has been on my radar for a while, and it seems it was just released yesterday. Via Tim Bray, Bryan Cantrill's post on ZFS seems like the best place to start reading about it. And Wes has some questions.

       (0) Tags: [Programming]

"Clip words" function in PHP

I've found this simple clipWords function I wrote to be really handy. I use it for my quotes thing to generate page titles and such. Check your browser bar on this page, for example.

<?php
function clipWords($str$word_count){
    
preg_match('/^\W*(\b\w+\b\W*){0,'.$word_count.'}/'$str$matches);
    return 
trim($matches[0]);
}
?>

You can use code like this to generate an elipsis:

<?php
$short 
clipWords($full7);
if(
strlen($short) < strlen($full))
    
$short .= '...';
?>

Update: Or, alternately:

<?php
function clipWords($str$word_count){
    return 
join(' 'array_slice(preg_split('/\s+/'trim($str)), 0$word_count));
}
#or
function clipWords($str$word_count){
    return 
join(' 'array_slice(preg_split('/\s+/'trim($str), $word_count+1), 0, -1));
?>
  1. Are you sure you want to keep saying we were fooled by Ahmad Chalabi and the INC? By Christopher Hitchens (via Glenn Reynolds) (to finish reading) and Did Clinton Lie?, a video of Bill Clinton from 1998 (also via Glenn Reynolds).

       (4) Tags: [Opinions/Politics]
  2. Monterey Bay Aquarium: Live Sea Otter Cam (via Simon Willison). Aww. I was there and saw them live a few months ago.

       (0)
  3. Jerry Kindall: C'etait un Rendezvous (via the Something Awful forums). Or, the way the guy on the forum described it, see a "Ferrari 275 GTB driving 140 MPH through the streets in Paris" :o Via Michael.

       (0) Tags: [Random]
  4. First monads in Perl, now monads in Ruby (via Keith Gaughan, via The Farm), both still to read.

       (0) Tags: [Monads, Perl, Programming, Ruby]
← November 15, 2005November 18, 2005 →
December 2008
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
28293031 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 4 posts

Recent comments XML

Perl 6 1.0 in March?

Doh, my mistake. I'm aware of the​relation between Parrot and Rakudo​but I'...

Keith: Dec 2, 1:03am

Free image hosting sites

Well, TinyPic has this in its​FAQ:

> Images and videos is in​your accoun...

Keith: Dec 1, 1:13am

Join a NameValueCollection into a querystring in C#

Well with a lamba expression, this​is what I came up​with:

?!code:csharp...

Gustaf Lindqvist: Nov 30, 4:38pm

Why no generic OrderedDictionary?

Check​http://www.codeproject.com/KB/recip​es/GenericOrderedDictionary.aspx?d...

Gabrielk: Nov 27, 6:57am

Generated in about 0.067s.

(Used 7 db queries)

mobile phone