Craig Ferguson is leaving CBS’ “Late Late show” in December

IMDb reports:

Craig Ferguson will step down as host of CBS’ “The Late Late Show” in December when his contract with the network expires after nearly a decade asDavid Letterman‘s companion in the 12:35 a.m. slot.

Ferguson broke the news to his studio audience at the 5 p.m. Pt taping of Monday’s edition of “Late Late Show.” In a statement issued by the network he quipped: “CBS and I are not getting divorced, we are ‘consciously uncoupling,’ but we will still spend holidays together and share custody of the fake horse and robot skeleton, both of whom we love very much.”

These are sad news indeed.  Of all the late night shows that are easily reachable (so, Jon Stewart is off limits), I enjoyed the “Late Late Show” the most.   Gladly, at least, the previous episodes are available on their YouTube channel.

Only 90s Web Developers Remember This

Only 90s Web Developers Remember This

Have you ever shoved a <blink> into a <marquee> tag? Pixar gets all the accolades today, but in the 90s this was a serious feat of computer animation. By combining these two tags, you were a trailblazer. A person capable of great innovation. A human being that all other human beings could aspire to.

You were a web developer in the 1990s.

There are more nostalgic examples of how we used to do things back in the day …

Searching CakePHP pages

CakePHP framework comes with the default PagesController which is an awesome out of the box way to build a website of mostly static pages.  There is one rather annoying limitation though – no search option.  If you need a website of mostly static pages with search functionality, you are out of luck.  I spent a good chunk of time Googling (searching, eh?) for a solution and even talking to people in #cakephp IRC channel.  The best alternatives, it turned out are listed in this StackOverflow answer:

There is no built in way to search static pages as they are just files on disk.

You have three options

  • Build a model to hold the data somewhat like a CMS so you can use mysql search.
  • google search for sites
  • the more hacky approach of reading the contents of all the pages and using preg_match() or similar on the contents to find matches.

The first option is probably the best depending on your use case. The second option is the easiest if its public facing content. The third option is a horrible idea

Since I need the solution for a public facing website, it looks like I’m gonna go with Google Custom Search Engine option.