Posts tagged ‘javascript’
Dr. Twoot and Twitpocalypse II
December 23rd, 2010 at 11:00 pm by Dr. Drang
Back in mid-October, Twitter warned developers that another integer overflow problem was looming and that they should prepare their code to deal with it. I didn’t heed the warning, and for the past couple of weeks, Dr. Twoot has been behaving strangely. I think I have things fixed now. The original Twitpocalypse occurred back in…
New syntax highlighting for Markdown
December 17th, 2010 at 11:49 am by Dr. Drang
In this post from a couple of weeks ago, I introduced a new feature to the blog: syntax highlighting for included source code. I still like the idea, but have decided I didn’t like the implementation, so I’m making a change. The change should be almost invisible to readers, but it’s a significant improvement for…
Smart quotes in JavaScript
November 18th, 2010 at 8:55 pm by Dr. Drang
With my Twitter client Dr. Twoot back on its feet, I wanted to add a smart quotes feature that would give my tweets typographically correct quotation marks and apostrophes. I figured someone would have a JavaScript library or function just waiting for me to download and plug into my code, but alas, I ended up…
Son of the Return of Dr. Twoot
November 16th, 2010 at 9:44 pm by Dr. Drang
I’ve spent three months in the Twitter wilderness, but now I’m back home. I finally fixed Dr. Twoot, my HTML/CSS/JavaScript/JQuery/Fluid-based Twitter client, so it works with the dreaded OAuth. The fix didn’t go the way I planned, and Dr. Twoot has, unfortunately, become more complicated. I thought I’d be able to do all the OAuth…
Popup footnotes in a Safari extension
October 14th, 2010 at 3:00 pm by Dr. Drang
I wanted to learn a little about building Safari extensions, and I didn’t want my deficiencies as a JavaScript programmer to get in the way, so I took Lukas Mathis’s code for adding popup footnotes to Daring Fireball—which he had implemented as a bookmarklet—and turned it into “my” first extension. I wrote about the popup…
Blogging tweets with AppleScript
October 11th, 2010 at 8:37 am by Dr. Drang
More and more, I’m finding myself wanting to refer to tweets in my blog posts. I like to both link to the tweet and include a screenshot of the tweet itself from it’s Twitter page. In the past, this had been a two step process: Grab the screenshot and upload it to the images directory…
Embedded Google maps
July 14th, 2010 at 11:52 pm by Dr. Drang
I’m my company’s default webmaster, and I spent a few hours today learning how to embed Google maps into our web pages. I figured I’d write up an example before I forget. There’s a whole family of Google Maps APIs, covering JavaScript, Flash, static images, Google Earth images, and more. The JavaScript API makes the…
A new Twitter SSB
June 12th, 2010 at 9:13 pm by Dr. Drang
With the coming requirement to use OAuth to sign on to Twitter, I’ve had to abandon my Dr. Twoot client program and have shifted to a new Fluid-based SSB of the Twitter home page. I’m using a userscript to reformat the page and make it narrower. Two reasons I couldn’t adapt Dr. Twoot to OAuth:…
Relative links in PNotes
May 31st, 2010 at 4:13 pm by Dr. Drang
In the last big change to my no-server wiki system—which I now call PNotes—I added the ability to categorize notes by subdirectory. This made PNotes more organized, but because I took some shortcuts in the programming I lost some of the portability of the system. In the last few days I’ve fixed the code to…
18th-century bookmarklet
May 24th, 2010 at 1:10 pm by Dr. Drang
Following up on this post, in which I tweaked my homemade Twitter client to display certain tweets in an old-fashioned font, I decided to create a JavaScript bookmarklet that would do the same when reading tweets in a regular web browser. This opens up 18-century rendering to everyone. The bookmarklet uses JavaScript to show @DrSamuelJohnson’s…




