Posts tagged ‘javascript’

Tweaking Bigfoot footnotes

Like a lot of people, when I saw Chris Sauvé’s Bigfoot footnotes system, I knew it was just what I was looking for. A few years ago, I installed a modified version of Lukas Mathis’s popup footnotes and have been using it ever since. The systems are similar in that they both pop up the…


Quadratic practice sheet

My younger son could use some algebra practice. There are only so many problems in his book and making up new ones that have simple integer answers is harder and more time-consuming than you’d think. So, as with elementary math, I made up an HTML/JavaScript page that generates a new set of problems every time…


AppleScript syntax highlighting again

The AppleScript language rules for the Highlight.js syntax highlighting package have made a big leap forward and have reached a state where people other than Nathan Grigg and I can use them. As before, virtually all the credit goes to Nathan. He extended and cleaned up my initial ideas on how to handle multi-word commands…


AppleScript syntax highlighting (finally)

I added syntax highlighting to the source code posted here back in late 2010. After a brief time using Pygments on the server, I switched to Highlight.js. I liked it the best of the JavaScript-based highlighters because it was cleanly written and easy to understand. The only problem with Highlight.js was that it didn’t support…


Good embedded tweets

This morning I made a little funny on Twitter: Another thing that’s so 2006: Using screenshots instead of live embedded tweets. buzzfeed.com/mjs538/tweets-…  — Dr. Drang (@drdrang) Thu Jul 12 2012 9:11 AM CDT The linked article at BuzzFeed, 30 Tweets That Are So 2006, is a hipper-than-thou post—broken into two parts, the better to serve you…


One-button Twitter spam reporting

Last year, I added some elementary spam detection and reporting to Dr. Twoot, my homemade Twitter client. It worked well enough at the time, but Twitter spammers have changed the format of their tweets and the detection algorithm just isn’t catching the bulk of the spam I get anymore. So I’ve updated Dr. Twoot by…


Blackbird.py and background images

In his comment on last night’s post about that fraction with the interesting decimal representation, Matthew McVickar pointed out a bug in my system for displaying tweets: I’m curious about the background in that embedded tweet of mine. My Twitter profile background is solid blue, and I don’t have a background image set. Looking up…


New Blackbird.py for embedding tweets

If you have access to the NewNewNew Twitter (as I did for about a day several weeks ago, but haven’t since), you’ll find a button that’ll give you the HTML code necessary to embed any given tweet in your blog or webpage. This is a big improvement on the common way of showing a tweet,…


Regexes, BBEdit, and Twitter screen names

I found another bug in Dr. Twoot today. A pretty embarrassing one, given the context in which I found it. Here’s what my Twitter timeline looked like when I opened Dr. Twoot this morning: For some reason, the screen name for @bbedit_hints wasn’t turned into a link, only the @bbedit part was. It wasn’t too…


Twitter replies and JavaScript filtering

According to its Git history, I added a Reply to All button to Dr. Twoot back in September. Because I’m all clever and mathy and shit, the button I added for this looks like an upside-down A, which is the math symbol that means for all. It works like the Reply to All feature of…