Posted on 10/5/11 by David Stinemetze
Cleverbot is an artificial intelligence conversation bot. It can have somewhat “intelligent” conversations with you. If you’ve never tried it, do it now.
Today I decided to combine the amusement of Cleverbot with GreaseMonkey for FireFox to make it have a conversation with itself. GreaseMonkey allows you to run local JavaScript on top of any site. In this case, we’re doing it on Cleverbot.com. Since Cleverbot provides a “Think for Me” button that will automatically start a conversation, I just created a JavaScript timer to press that button every 2 seconds. For whatever reason, I decided to use jQuery instead of pure javascript to find the button. It’s not a big deal either way.
|
|
// ==UserScript==
// @name Cleverbot - Auto Conversation
// @namespace cleverbot-auto-conversation
// @description Make Cleverbot have a conversation with itself
// @include http://cleverbot.com/
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js
// ==/UserScript==
jQuery(document).ready(function($) {
setInterval(function() {
$("#pass").click();
}, 2000);
}) |
This was done purely for my own amusement and is no means useful for any purposes other than that. Feel free to tweak it as you see fit.
Download the script
Continue Reading »
Posted on 7/7/11 by David Stinemetze
I was recently working on a WordPress site that needed HTML5 video. While researching plugins, I came across the Degradable HTML5 Audio and Video plugin. According to the developer, the plugin does the following:
- If the user has an HTML5 support for video and audio, it will play the media natively in an appropriate format.
- Otherwise, if the user hasĀ Flash, it will play the media in lightweight Flash players.
- Otherwise, there will be a link for the audio or video files so that the user can still play them using their installed software players.
Continue Reading »
Posted on 5/25/11 by David Stinemetze
Using the og:image meta property tag, Facebook allows you to manually set the thumbnail for the page. For example:
<meta property=”og:image” content=”http://www.widgetsandburritos.com/wp-content/uploads/154349_182859125063635_118277658188449_731837_4043510_n-300×231.jpg” />
This code would set the thumbnail to:

Resulting in:
Continue Reading »
Posted on 5/23/11 by David Stinemetze
***NOTE: This post was about a specific error within the Facebook Commenting IFrame System on external websites that Facebook had in May 2011. That specific bug has been fixed by Facebook. If you are seeing the CAPTCHA within Facebook itself, this is not the same error I was referring to. This usually indicates there is a problem with your specific Facebook account, not a bug in the Facebook Commenting API.***
Today I noticed an error with the IFrame version of the Facebook Commenting System. When commenting (only on certain domains), it popped up a “Require CAPTCHA – Unknown Error” message:
Continue Reading »