Posts Tagged “hacks”

  • A guided tour of brettterpstra.com

    I tend to spend a couple hours every weekend hacking new features into this website. A lot of them are convenience features on the back end that really have no visible effect on the user experience, but some of them do. I think a lot of them fly under the radar. In order to make myself feel a little better about the time invested, as well as helping me to remember what all I've done, I thought I'd point out a few of the prominent, front-facing "tricks."…

  • PopClip hacking

    I've obviously been on a PopClip kick lately. I run a lot of my little scripts through Services, but there are only so many shortcut combinations on a keyboard (and in my memory) and right clicking to run a Service is cumbersome. PopClip streamlines it for me, so I'm exploring...…

  • Scripting TaskPaper, mind maps, outliners and other fun

    I did some hacking on the excellent "Extra Info" script from Pedro Lobo. I wouldn't say I greatly improved it, but I did make a fine mess of the code. My goal was achieved, though: special tags create new files from templates with things like subject, source link, date, etc. all ready to go. Trigger it with FastScripts and you can add extended notes to any task using MindNode, Mindjet MindManager, OmniOutliner, iThoughtsX and nvALT.…

  • Web excursions: Twitter Hacking Edition
  • GVoice command line SMS revisited

    Thanks to a comment from Evaryont on the original SMS from the command line with Google Voice post, a problem that was causing Error 500s in the script has been solved.…

  • Quick Tip: Extracting Mac App Store reviews as text

    Quick tips are random posts regarding something I discovered on my way to something bigger. They usually get longer than "quick" would imply, for which I refuse to apologize.…

  • Notational Velocity alternative MultiMarkdown version

    After my experiment last night, and finding DivineDominion's already-awesome fork of Notational Velocity, I decided to port my changes over to his fork and work from there. So here's the current version of the final product, with the intial visual changes, CSS styling, and quick access to HTML source for copy/paste. The preview is now in a HUD instead of a third pane, which I'm finding I like better. There's more room for editing and the HUD hides on deactivation, so it's not in the way if you…

  • SMS from the command line with Google Voice

    I needed a script send an SMS today, and I found a very handy post at sudocode to send one via Google Voice, using PHP. I wanted to make it a little more command-line-friendly, so I rewrote it (ham-handedly) in Ruby and added some options parsing to it. It's designed for --- and only tested on --- OS X, but may work fine elsewhere.…

  • Edit your WordPress QuickTags the right way

    You may have cause, at some point, to modify the behavior of the QuickTags in the HTML editor of WordPress (the non-WYSIWYG, non-"Visual" editor). There are a lot of tutorials available for editing the quicktags.js file in the WordPress wp-includes folder, but they all seem to want you to edit the file directly. That's a Bad Idea because the next time you upgrade, your changes are kaput. Here's how to make your own quicktags.js and do whatever you want with it.…

  • Better WordPress security through comment filters

    I have an admin username (it's not admin) which I use to manage my WordPress blog, and an editor user with which I write posts and leave comments. Sometimes, though, I get confused, lazy or both, and end up leaving comments as my admin user. This rather defeats the purpose of using a non-default admin username, which is generally done for security purposes (if they can't guess the admin's username, it makes it that much harder to hack the admin account).…

  • Antique 1.6, final release

    For a quick "how-to" on using the Antique (or any) Safari Reader hack, see the related article in the HowTo section.…

  • Antique 1.5 for Safari Reader

    * jQuery: added the jQuery library via Google's Ajax API to make some of the other additions much easier to implement. * Colorbox: links to images are automatically opened in a "lightbox" so you don't have to leave the page. Uses jQuery Colorbox and automatically applies the effect to links ending in '.jpg' or '.png'. * Widon't: headlines and paragraphs have a widon't function applied to them, preventing "widows" (short words alone on a line). This was mostly annoying me in the top-level…

  • Antique Safari Reader hack update with Evernote goodness

    Evernote web clipper functionality is now complete in the style, and the button in the HUD will open the floating frame, let you add tags and extra text, then clip just the visible text in Reader to your main Evernote notebook without ever opening a new page. Exactly what I wanted. Now I just have to add the same thing to Instapaper Beyond!…

  • Safari Reader Antique hack

    I was thrilled when it was first announced that someone had located the HTML/CSS for the new Safari Reader functionality in Safari 5, which happened the day it was released. I've been toying around with some ideas in the days since, and this hack is the result of a little too much effort. Click the screenshot thumbnail to see a full version.…