Skip to content

Categories:

Dynamic, Search-based RSS feeds, and thinking_sphinx + HAML

Dynamic, Search-based RSS feeds

“Users have the ability to search for a lot of different information, and I needed to provide them with a way to save that search via an RSS feed. To see how I went about performing basic search, see here.

In my controller, I started by adding the ability to respond_to rss…”

Posted in Development, Server. Tagged with .

A few extremely cool things…

Mibbit is an awesome example of a guy who found a niche, really thought about what it was missing, and filled it expertly. Every time I see this app, I’m secretly jealous I didn’t write it.

Github — social media meets coding. Instantly makes rubyforge look like tucows.com circa 1996. A good example of filling a need you didn’t know existed. Getting insight into others’ development projects via ‘following’ developers and projects — or via RSS — turns out to be oddly addictive, and turns up neat little things like this and this, which couldn’t have really existed before the github model except as a fractured melodramatic irc log somewhere. I don’t have a pressing need for any private repos anytime soon but am compelled to upgrade my account out of sheer gratitude.

Lastly, I’ve finally checked out jQuery, and can now say: I get why all the fuss.

Posted in Random. Tagged with .

Rails Controller params[:fu]

Boost your Rails Controller params[:fu]

“In the next few blog posts, I intend to show you that if you take the time to assemble your params the way Rails likes it, you can dramatically reduce the amount of code you have to write in your controller actions and models, simply because Rails takes care of it for you.”

Posted in Development. Tagged with .

Sequencing Dependencies

Sequencing Dependencies

Now for the hard part. We now have to execute a loop. On each pass of the loop we are looking for all items whose dependencies have all been sequenced. We will do this over and over until the command is not affecting any rows. It is important that we cannot exit the loop by testing if all rows are sequenced, because a circular dependency will prevent this from happening and we will have an infinite loop.

Posted in Development. Tagged with .

Document Matching In Ruby

oldmoe: Document Matching In Ruby

Posted in Development. Tagged with .

Bayesian spam classifier: spammers vs humans

Distinguishing potential spammers from regular humans by using their profile data as a blob of indicators.

Continued…

Posted in Development. Tagged with , , .

A greasemonkey script

Very basic script to fix up some usability issues with work’s call-tracking…

  • Adds favicon, to make it easy to find your place with lots of tabs open.
  • App name snipped from item title, so title is visible in toolbar and in tabs.
  • Some aesthetic touch-ups: font change, coloring, cruft of legacy frameset layout minimized.

Favicon was retrieved by bookmarking a site with a good favicon in Firefox, then snipping the binary data out of Firefox’s bookmark file. This one’s a big black star.

TODO: Highlight my name in posts so I can easily scan the page. This would rely on CSS3’s content selectors, which section of the draft I now see is ominously blank.

Continued…

Posted in Development. Tagged with .

XML in Python: What screen is that section on?

This is an important pattern and comes up infrequently enough I’d better save a snippet…

Continued…

Posted in Development. Tagged with , .

XML in Python: Move seats, add links, merge labels

More automated massaging of venue XML.

Continued…

Posted in Development. Tagged with , .

The Thing About Git

Everyday Git in 20 commands explores Git as used by folks in varying roles.

Gitcasts

The Thing About Git — One man’s workflow with some debate in the comments about the utility of the index.

Another man’s git workflow.

git awsome-ness [git rebase --interactive] — All about git rebase –interactive.

Git merging by example.

Posted in Development. Tagged with .