I was thinking about how facebook updates parse out the url, then construct a nice looking preview. I think what it takes is scanning the textarea for a url, and then using ajax to tell the server to fetch a summary of the page at the url. get the data back, and insert it into a template, and reveal it.
This is a republication of a post from January 2012. I would not write it this way today.
Continue reading Facebook-style Previews
Over here in Los Angeles, and the Southwest in general, there are a lot of people from who have Mexican or Latin American heritage, and have Spanish surnames.
The challenge with these names is twofold.
Continue reading Heuristic Hispanic Surname Extraction with Regular Expressions
I was working on a small “speech bubble” library, and needed to delay hiding of the bubble. It’s not that it was required, but it was a pain in the butt figuring out how to arrange the event handlers on the different elements so that you don’t end up with a situation where you get a flickering bubble because you hide the bubble, and that fires a mouseover event that, in turn, displays the bubble again. That fires a mouseout event that causes the bubble to be hidden.
An example of partial application in PHP, using closures to implement functional-style programming. This technique helps to collapse loops into functions, and shorten code.
This article is based on an older article that has been cleaned up and improved.
Continue reading PHP Partial Evaluation and Functional Style Programming for Nested Arrays
It’s been a few weeks since the last post in this series. I’ve spent some time making an interface in React. It’s simple, but also a decent demo. Here’s the demo.