I’ve updated my Character Justify Plugin. I could go into detail but to put it simply I’ve worked to improve the alignment on the right edge particularly when there are spaces between words in the same element. Previously I was trying to deal with the extra letter spacing caused by multiple words by subtracting an arbitrary percentage from the width that I’d stretch the letters to. Now I’m replacing the spaces with a character of fixed size (”_”) when calculating the width of the elements.
The example has been updated to show this and I’ve tweaked the animation example to so that the animations on each element don’t get out of sync.
Justification using pure CSS can be achieved by setting the text-align property to “justify”. This will tell the browser to attempt to line up the words so that left the and right edges of each line are aligned with those above and below. This effectiveness of this property can be enhanced by inserting hyphens where necessary to maintain the alignment using Hyphenator (here’s an example).
The “text-align: justify” technique is useless when applied to a list or similar column of text where each item or line only has one or two words in it. For example in a navigation menu. This is because the spacing that is added to achieve the justification is only added at the word boundaries. Justification based on characters will be available in CSS3 using the property text-justify with the value “newspaper”.
I had the requirement to build a navigation sidebar with justified text for Caragh’s still unfinished website so rather than wait for CSS3 cross browser support I decided to find a solution. One technique would be to use image replacement and insert images of the properly justified text. The main drawback of that is it doesn’t easily allow for dynamic content so I decided to try writing a JavaScript solution. The result is this Character Justification JQuery plugin. All you need to do is call characterJustify() on whatever JQuery object you want to be justified. The plugin will then insert the correct letter-spacing so that the letters are evenly spaced and the left and right edges more or less line up.
The text will be distributed to fit within the bounds of the element(s) you called the method on unless you pass an optional integer parameter to set a particular pixel width. I also added the regular JQuery animation parameters speed, easing and callback so you can also animate the process if you need to.
Perhaps I was wrong about the RSS widget being the culprit. My feed fouled up again, this time returning the HTML for the front page of my blog. My suspicions are now aimed at WP SuperCache. Disabling that seems to have fixed the issue.
Not sure why but I had a few problems with my RSS feed today since upgrading to WordPress 2.7. On inspection (Feed Validator) it seemed that the RSS feed being returned from my main Atom link was returning the feed of my Pownce messages. Very strange. Seems like an odd bug but the quick fix was to delete the RSS widget that displays my Pownce messages in my blog sidebar. If you’re having similar problems and use the RSS widget you might want to try doing the same. Go to select widgets from Appearance in the Dashboard side menu and click on any RSS Widgets you have and click Remove. Be warned I don’t think this can be undone, it suited me as my Pownce feed is pretty much useless now Pownce is closing down.
UPDATE: Don’t forget to clear your cache after doing this.
UPDATE 2: Perhaps it’s the cache and not the RSS widget after all.
Impressed by Dan’s decision to make a mixtape based around colours but not so impressed by all of his song choices I decided to have a go myself. Dan’s been using 8tracks, a website for creating playlists very much like the now deceased Muxtape except that they claim to be legal and so haven’t been hounded out of existence by the RIAA/major labels. They uphold this claim by imposing certain restrictions such as requiring a minimum of 8 songs in each “mix” that you create and they pay a license similar to more traditional online radio stations. You can search for songs you want to include in your mix that have been uploaded by others. Failing that, you can upload them yourself.
Anyway I created my own colour-based playlist as a way of trying it out. You can listen to it from this embedded flash player or from the 8tracks site here.
In shinyhappydan style here’s the rundown of my choices.
The Strokes - Red Light
Casablancas’ lyrics are often pretty oblique as he veers schizophrenically between elation and desolation. This one is no exception, starting with the sentimental and sweet “Two can be complete without the rest of the world” and ending with the ominous “Get yourself a lawyer and a gun“. I always felt that “First Impressions of Earth” is the album where The Strokes decided to try something new on each song. In this case Julian’s uncharacteristic staccato delivery lends a welcome spin to their familiar sound.
Other “Red” contenders:
Kings of Leon - Red Morning Light
Loretta Lynn - Little Red Shoes
The National - Pretty in Pink
I’ve long been a fan of the Psychedelic Furs, particularly their sophomore “Talk Talk Talk”. So when I noticed the National cover of their song that spawned that John Hughes movie in the track list for their Daytrotter session (sadly no longer available) I was eager to hear it. It doesn’t disappoint, substituting the Furs very’ eighties guitars for organs and Richard Butler’s Bowiesque sneer for Matt Berninger’s smouldering baritone.
Other “Pink” contenders:
Flaming Lips - Yoshimi Battles The Pink Robots
Johnny and the Moon - Green Rocky Road
Typical folk fare from the band fronted by Dante DeCaro; typical in that it sets traditional folk song lyrics to original music but still great fun. Who knew Dante had such an interesting voice when he was letting Steve Bays do all the singing in Hot Hot Heat.
“Hooka, tooka, soda cracker/ Does your mamma chew tobacco?”
Other “Green” contenders:
Baby Calendar - Green Tea
Dinosaur Jr - Green Mind
Bright Eyes - Gold Mine Gutted
Digital Ash in a Digitial Urn, Bright Eyes’ “electronic” offering, is one of the those great records where at a given time any of the tracks on it could be my favourite. If pushed I’d often choose this one though as Oberst sums up high school counter culture with Don Dellilo, whisky, smoking, “the sorrowful Midwest”, “grass stain jeans” and “a girl from class to touch”
Other “Gold” contenders:
Pretty Girls Make Graves - Bring It On Golden Pond
Yeah Yeah Yeahs - Gold Lion
The Crimea - Bombay Sapphire Coma
Sapphire’s are blue right? And so are the gin bottles. I couldn’t make my first playlist without something from this band formed from the ashes of the Crocketts.
Albert Hammond, Jr. - Blue Skies
The coolest Stroke singing one of his coolest songs. “Yours To Keep” is a sublime album, sounding somewhat like The Strokes themselves if they allowed more influence from the Beatles or the Beach Boys.
Other “Blue” contenders:
Band of Horses - Windows Blues
Mazzy Star - Blue Flower
Wilco - Sky Blue Sky
Joanna Newsom - This Side Of The Blue
The Walkmen - Blue Route
The Hey Chinaskis - Whitechapel
A band I used to be a member of (I was the lead guitarist) so I won’t talk this one up.
Other “White” contenders:
er … Bing Crosby - White Christmas?
Baby Calendar - Lemon Snaps
Again barely a colour but one of those small bands you can never remember how you stumbled onto but are forever grateful you did. Baby Calendar blend elements of some of my favourite bands such as the precocious riffs of early Death Cab and Pretty Girls Make Grave’s frenetic energy and guitar lines. Think Mates of State but charmingly naive and audacious rather than earnest and conservative.
Spoon - You Got Yr. Cherry Bomb
Whilstcherry is definitely more of a tone than a proper colour I could not resist including this. Singer Britt Daniel’s vocals always hold an air of casual aloofness without seeming snotty or conceited, his guitar lines are always on the right side of the hooky/cheesy spectrum and often they churn out little pop gems like this one from “Ga Ga Ga Ga Ga”.
Jenny Lewis - Black Sand
I had the pleasure of seeing Jenny at Austin City Limits this year and she sounded andlooked fantastic. Acid Tongue is definitely a record that comes across better live but this is a nice safe ballad that avoids the dodgy lyrics of some of the other tracks.
Other “Black” contenders:
Death Cab for Cutie - Blacking Out the Friction
The White Stripes - Black Math
Final Fantasy - Peach, Plum, Pear
Dan already snagged this Joanna Newsom song that covers three “colours” in one title so I went with the Final Fantasy cover.
Bright Eyes - Lime Tree
I also saw Conor Oberst at ACL performing with his Mystic Valley Band and this lead me to get back into an album I’d all but overlooked, his previous release “Cassadaga”. More of a fruit than a colour but this songs pensive, haunting charm rounds off the playlist well.
The nearest book to me was a cryptic crossword book. This is the fifth across clue from the 56th crossword. No idea what the answer might be. Any ideas?
There have been a fewmumblings on social media blogs, as there often is, about how Digg has been alienating it’s core user base, possibly in favour of attracting new users or appearing more saleable. I’m not sure how much of this is true but I do know that I am a fairly regular user of Digg and I don’t feel particularly alienated or disaffected. Perhaps this is because I don’t do anything as perverse as using scripts on the site or blindly digging friends stories.
Having said that there is one way that Digg is letting me down. I would consider myself a power user when it comes to computers, as I imagine many Digg users are given it’s tech news bias and history. I would say that one of the most valuable UI metaphors for a power user would definitely be keyboard shortcuts. I certainly used them heavily to write this blog entry. (Alt-Shift-A within the Wordpress editor is a good one for creating a link). For a long time though shortcuts were limited to the desktop as the web was not rich enough to support anything other than mouse navigation (with the exception of shortcuts for back or forwards and tabbing through endless links).
With richer and richer web applications there is now a good precedent for using keyboard shortcuts within the browser page. A shining example of this is Google Reader with over 20 commands covering pretty much everything you’d need to do with the application. There’s even a cheat sheet of the different combinations that you can access by simple typing ‘?’. Here’s a fairly old video from Tim Ferriss where Robert Scoble describes how he uses Reader with the keyboard to read over 622 feeds a day. (This is over a year old, so who knows how many feeds he reads now.)
Keyboard shortcut cheat sheet in Google Reader
Another great example is Socialthing!. Socialthing! is quite a simple app that aggregates feeds from sites such as Facebook, Twitter and Digg. When updates arrive, to prevent the UI from changing while you might be viewing it, a button appears that you can click when you’re ready to have the new items displayed. Scrolling to the top of the page and clicking this with the mouse got really tiresome, really quickly. Luckily the Socialthing! developers spotted this just as fast and allowed you to simply hit ‘E’ to import new items. They added a few other useful shortcuts as well.
I don’t need the mouse to do this
So why use the mouse to do this?
So how can the Digg experience be improved for regular, heavy users? The major peeve for me when using the Digg story page is the select field for sorting the comments. I often want to change back and forth between the modes that the comments are sorted on and having to switch back to the mouse every time I need to do this becomes a real drag. There are too many links on the Digg story page to tab to it so having a shortcut to focus this field would be nice. However I would propose having four key commands: ‘O’ to show oldest comments first, ‘N’ for newest, ‘C’ for the most controversial and ‘M’ for most dugg. Hitting ‘S’ or the spacebar to show the story that has been linked and, of course, ‘D’ to then digg it would complete the shortcuts for the story page.
o
Sort comments oldest first
n
Sort comments newest first
c
Sort comments most controversial first
m
Sort comments most dugg first
s
Show the story
d
Digg the story
What about the front page or any of the category sections that display a list of stories? How about taking a leaf out of Google Reader’s book and using ‘J’ and ‘K’ to cycle forwards and backwards through the list, and then perhaps ‘O’ to open them? Perhaps also hitting number keys 1-10 to select one of the top news stories from the list on the right.
j
Next story
k
Previous Story
1-10
Select corresponding top story
o
Open selected story
Making it easier to quickly Digg stories may not chime with the motivation behind Digg’s recent decision to ban those who are using scripts to automatically Digg stories. However these shortcuts could easily be mimicked with a simple Firefox extension so I hope that Digg will act to prevent it’s most loyal users succumbing to RDI: Repetitive Digging Injury.
Here’s a little tutorial on how to set up a checkbox in the header of an Altio list. The minimum requirements to complete this tutorial should only be that you have an Altio server instance installed, preferably version 5.1 or later. Why not take this opportunity to try out the 5.2 beta?
Daniel just Pownced a link to Wordle, a very slick application for generating clouds of words from a bunch of text where the most frequent words are displayed the largest. It has a nice interface for customizing the appearance of the resulting cloud with a good range of fonts and preset color schemes to tweak. Also it’s a Java Applet which actually features smooth animation and decent graphic design / typography. Definitely a candidate for the Cool Applets blog.
However anyone familiar with Twitter will know that each tweet, when listed on the Twitter site, will also tell you the source; the piece of software used to post it. In the case of Mike’s tweet, Twitter informs us that he used a service called BeTwittered, not the TechCrunch toolbar.