Posts tagged ‘javascript’

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…


Twitter’s shortened links

A few days ago Brett Terpstra tweeted a link to this post on the Twitter development blog. Changes to the way Twitter handles in-tweet links are coming, some in the indeterminate future of “eventually,” some in just a week. I needed to make some changes to Dr. Twoot to accommodate Twitter’s new ways. The changes…


The stones of my mind

In the post about Google Maps using the scroll wheel for zooming instead of scrolling, I mentioned that although I knew perfectly well that Google was doing this, I just couldn’t stop myself 1 from trying to scroll that way. Last night, as I was adding a spam detection function to Dr. Twoot, I ran…