I’ve been looking for a nice web Javascript spell checker, and came across a great implementation by Emil that he named LiteSpellChecker. It mimics the spell checker in MS Word by underlining misspelled words and presenting a nice substitute word selection menu. The javascript takes a standard <textarea> element, erases the background, and inserts a shadow <div> underneath that holds the redline segments.
The current implementation on his site has some bugs, so I’ve started to tackle some of them:
Since many of my users will be working with long documents, performance is key.
SPELL_CHECK_DELAY variable.Download my source code. Important: read Emil’s demo page before attempting to do anything with these files.
RSS feed for comments on this post. TrackBack URI
I wish this map of current US gas prices factored out the taxes included in the pump price. It seems like what the map mostly shows is the differences in taxes between states (PDF map) and not, for instance, how the distance from shipping ports or local demand affects prices. (via what i learned today)
(link)One could imagine a Powers of Ten video with drawer pulling instead of zooming.
(link)[Part four of a recurring series...part one, part two, part three.]
According to the Indian National Crime Bureau, there were 6,787 dowry deaths in India in 2005. A dowry death occurs when a woman is killed or commits suicide due to coercion by her husband or her husband's family in order to secure a larger dowry. [Indian National Crime Bureau]
As of August 2005, the poverty rate in Mississippi was 21.1%, the highest in the nation. The state also ranks first in senior poverty and second in child poverty. Despite being surrounded by states with relatively low poverty rates, Washington DC ranks first in child poverty and is second in overall and senior poverty. [USCCB]
Buddhist teachers Michael Roach and Christie McNally haven't been more than 15 feet from each other in the ten years since they took an oath to that effect. They also read the same books at the same time. [NY Times]
NYC's alternate-side parking rules will be suspended in Park Slope for a few months so that workers can replace parking signs. Residents are overjoyed because they don't have to move their cars every few days. [NY Times]
There are at least 3 escalators in Wyoming. [Metafilter]
Velcro is 50 years old. (At least the trademark is.) [mental_floss]
The Golden Gate Bridge is younger than John McCain. [Things Younger Than John McCain]
In Oklahoma City, the interstate will be moved five blocks from downtown to an old railroad line. The new 10-lane highway, expected to carry 120,000 vehicles daily, will be placed in a trench so deep that city streets can run atop it, as if the highway weren't there. The old highway will be converted into a tree-lined boulevard city officials hope will become Oklahoma City's marquee street.
Several other cities have done (or are planning to do) similar highway tear downs.
"Highways don't belong in cities. Period," says John Norquist, who was mayor of Milwaukee when it closed a highway. "Europe didn't do it. America did. And our cities have paid the price."
No mention of Boston's Big Dig, perhaps the most high-profile example of this trend.
(link)The Wii Fit, the new exercise peripheral for the Nintendo Wii, was reviewed favorably by a number of people for the New York Times. A fitness professional at the Sports Center at Chelsea Piers gave it pretty high marks:
"Actually I think it's pretty good," she said. "You can definitely get a workout. When I started doing it, I realized all the activities were pretty much on point. There were some things I didn't like, like the alignment in a couple of places. But over all, I thought they did a good job and this will be a good tool for people who can't make it to the gym."
The Wii Fit will be released in the US and Canada early next week.
Update: Joel Johnson has a nice round-up of exercise-themed video game accessories, from the unreleased Atari Puffer to the Wii Fit.
(link)A list of ways to get yourself excused from the jury pool in the R. Kelly child pornography case.
I (heart) R. Kelly. Nothing gets prospective jurors booted faster than telling the prosecution they are a fan of Kelly's. Just ask the woman who called him a "musical genius." When prodded to say something negative about Kelly, the best she could come up with was: "He and [rapper] Jay-Z don't get along?" Prosecutors bounced her soon after.
Another potential juror was excused for suggesting that Kelly "led the Taliban in attacking us on 9-11".
(link)A collection of photos of a cleaning crew washing Seattle's Space Needle with high pressure washers (scroll down a bit).
Even though the sprayers use half the flow of a garden hose, the water shoots out at 3,000 pounds per square inch -- more than enough power to send the guy behind the hose flying. "One thing we say is, it doesn't necessarily have to be fun to be fun. There are definitely times when I'm spinning in free space and I'm like, holy cow this is terrifying and I can't believe this is my job," said Matt Henry, rope technician.
The company doing the work, Karcher GmbH & Co., has done similar high-profile jobs around the world, all at no cost...their web site says that these projects are good publicity for their cleaning products. Here's a sampling of some other projects they've done, including the Statue of Liberty and Berlin's Brandenburg Gate. (via girlhacker)
(link)Here's an update on the effort to solve the Pioneer anomaly, the unexplained deviation in motion of deep space probes from what Newton and Einstein's theories predict.
As it sped through space, a specialist in radio-wave physics named John Anderson at NASA's Jet Propulsion Laboratory noticed an odd thing. The spacecraft was drifting off course. The discrepancy was less than a few hundred-millionths of an inch per second for every second of spaceflight, accumulating year after year across billions of miles. Then Pioneer 11, an identical probe escaping the solar system in the opposite direction, also started to veer off course at the same rate.
Ordinarily, such small deviations might be overlooked, but not by Dr. Anderson. He monitored the trajectories six years before calling attention to the matter. "I'm a little like an accountant," Dr. Anderson said. "We have Newton's theory and Einstein's theory, and when you apply them to something like this -- and it doesn't add up -- it bothers me."
The researchers, using data recovered from recently discovered Pioneer records and funded by sources outside of NASA, have figured out part of the problem but the rest remains a mystery.
(link)Greg Allen still has his bottle of Suck Cola from when the now-defunct web site Suck was handing them out at a trade show in 1996. He's building a registry of Suck Cola bottles...if you've got one, send in the details.
After your Cola information is reviewed and validated, you will be issued a Suck Cola Registry Number. I have designated my bottle SC0005, having reserved the first four Registry Numbers, SC0001-SC0004, for Suck.com co-founders Joey Anuff and Carl Steadman.
Suck the web site has now been dead for as long as it was active, but the Cola lives on.
(link)Video of designer John Gall, who shares his five rules for book cover design.
(link)The other great source of inspiration is the deadline.
A look at how portion sizes have changed in the US over the years.
(link)We don't have to eat those extra 360 calories in the tub of popcorn, but that's easier said than (not) done. Studies indicate that when given food in larger containers, people will consume more. In a 1996 Cornell University study, people in a movie theater ate from either medium (120g) or large (240g) buckets of popcorn, then divided into two groups based on whether they liked the taste of the popcorn. The results: people with the large size ate more than those with the medium size, regardless of how participants rated the taste of the popcorn.
Links provided by kottke.org.
Hello,
Great news. There is a site where you implemented all these changes and we can test the spell checker without bugs?
bye
Comment by Paul — August 1, 2006 @ 10:31 am
cool
Comment by mel — September 20, 2006 @ 12:41 pm
Here’s a commercial quality Ajax spell checker that my company has been working on for almost a year. It integrates with FCKEditor, TinyMCE and others also, check it out at http://www.thesolutioncafe.com/ajax-spell-checker.html
Later!
Comment by Cliff Helsel — September 21, 2006 @ 4:16 am
I think this is just like”Google Suggest”,right?
Comment by anish — October 16, 2006 @ 5:09 pm
Is there a place where I could test this out?
The best free spell checker I have found so far has been http://www.spelljax.com - but I can’t figure out how to embed it into my own website, so I’m looking for alternatives.
Comment by Mike — June 28, 2007 @ 9:14 am