• Home
  • Archive
  • RSS

MacLovin

An Apple a day keeps the doctor away

  • SyntaxHL Editor
  • BriefWizzard
You are here: Home
How to patch binary files with Java

How to patch binary files with Java

By Dennis on February 18, 2010

Recently, I wanted to create an “intelligent” binary patcher, which not only replaces some chunk of binary data at a file’s predefined offset, but instead performs search and replace. Here is the Java class I came up with. import java.io.*; import java.math.BigInteger; public class BinaryPatcher { private String content; private final String filename; private final [...]

Posted in Programming | Tagged java, snippet | 3 Responses
Robust HTML parsing the Groovy way

Robust HTML parsing the Groovy way

By Dennis on February 11, 2010

With Groovy, it’s very easy to parse XML data and extract arbitrary information. This works great as long as the input data is well-formed, but you can’t always guarantee that in real-world scenarios. Think of extracting data from HTML pages. They are very often a mess when it comes to XML validity and that’s where [...]

Posted in Scripts | Tagged groovy, script, web | 7 Responses
WordPress Plugin SyntaxHL-Editor officially released

WordPress Plugin SyntaxHL-Editor officially released

By Dennis on October 25, 2009

I’m proud to announce the official release of my first WordPress plugin: SyntaxHL-Editor. It offers an easy to use graphical user interface for Syntax Highlighter and Code Colorizer for WordPress. You can easily enter and modify source-code highlighted in your posts as well as specify options for every single snippet. The plugin is also hosted at [...]

Posted in Main | Tagged plugin, syntaxhl-editor, wordpress | Leave a response
Access OS X keychain from Terminal

Access OS X keychain from Terminal

By Dennis on February 25, 2010

At everyday scripting, you often need to access sensible information like passwords. A common practice is to just write them plain text into your script, but at least on a Mac, we can do better. OS X ships with a tool called keychain. It is a central database where tools can store sensitive information like [...]

Posted in Scripts | Tagged mac, script, security, shell | 4 Responses
Launchbar: Dialing phone numbers with Fritz!Box Part 2

Launchbar: Dialing phone numbers with Fritz!Box Part 2

By Dennis on February 4, 2010

This is a follow-up article of Launchbar: Dialing phone numbers with Fritz!Box, where I explained how to use Launchbar for dialing phone numbers via FritzBox. Meanwhile, AVM has changed the login procedure and the original script no longer works. With the help of this example, it’s finally doing its job again. Special thanks go to [...]

Posted in Scripts | Tagged launchbar, mac, script | 3 Responses
Make Time Machine backups bootable

Make Time Machine backups bootable

By Dennis on September 18, 2009

Time Machine is a great backup application shipped with Mac OS X Leopard and Snow Leopard. You can either restore single files in your running OS X or do a full system restore by booting the OS X install DVD. Using the latter method, it would be nice to boot directly from your backup drive [...]

Posted in Tips | Tagged backup, mac | 1 Response
Using WordPress as URL redirection service

Using WordPress as URL redirection service

By Dennis on August 23, 2009

Redirection is a WordPress plugin that let’s you add URL redirections to your blog. This is very useful if the addess of some or even all of your blog posts changed. The setup is straight forward: just enter source and target URL and the redirection is set up. The more advanced users can even add redirections [...]

Posted in Tips | Tagged plugin, web, wordpress | Leave a response

Logitech G5 Laser mouse on Mac OS X (updated)

By Dennis on August 22, 2009

I recently bought Logitech’s G5 Laser mouse. It’s meant to be a gamer mouse but is also great for daily work. The only problem for us OSX users is that Logitech in contrast to most of its devices doesn’t offer drivers. The mouse works just fine out of the box without any proprietary driver, but [...]

Posted in Main | Tagged config, hardware, mac, tools | Leave a response
My Top 3 Finder Toolbar Scripts

My Top 3 Finder Toolbar Scripts

By Dennis on July 29, 2009

With Leopard’s Finder, you can not only add applications to the toolbar, but also scripts. That’s an extremely useful feature I use every day and so I put together an introduction to my favorite three. But let’s first talk about the installation. That’s pretty easy. Just extract the downloaded archive, copy the script to an [...]

Posted in Main | Tagged finder, mac, script | 1 Response

Batch renaming files in shell

By Dennis on June 20, 2009

Did you ever have to rename a lot of files using a similar pattern? And did you end up sitting in front of Finder or whatever your favorite file manager is and stripped of a certain prefix from the file-name or changed the extension? Well, I did. But as long as you have a terminal [...]

Posted in Tips | Tagged shell | 2 Responses
1 2 3 Next »

Copyright © 2012 MacLovin.

Powered by WordPress and Prototype.