How to batch convert documents to other formats using a VB macro in Microsoft Office

The linked page contains a Visual Basic macro that you can use with Microsoft Office (Word) to convert all files in a directory to a selected format (TXT, RTF, HTML and PDF are supported by the script). I've modified the script to support conversion to DOC and DOCX as well, and support embedding images into the document if you are converting to something else than HTML (this comes handy eg. in HTML->DOC(X) conversions). For the modifications I took advice from Rick Strahl, Calle Arnesten and Jouni Heikniemi.

How to change the default JRE/JDK order without the Java Preferences app

If you execute a java -version or javac -version command, the output depends on what you've set up as the JRE/JVM order in the Java Preferences app (which is in /Applications/Utilities). The question is: how does this app work, where does it store it's settings?

How to install Property List Editor (PLE) from the Mac OS X install DVD (Snow Leopard, 10.6)

I worked with the 10.6.3 install DVD and opening "/Optional Installs/Xcode.mpkg" with Pacifist revealed a bit different layout than described in the linked blog post. For me Property List Editor was here: Contents of Xcode.mpkg / Contents of DevToolsHIDDEN / Contents of Developer Tools.pkg / Applications / Utilities / Property List

How to install java jdk 7 on Snow Leopard

The problem is that Oracle ships the Mac version of the JDK 7 installer with a builtin restriction: it'll only install on Mac OS X 10.7.* and above. It's fairly easy to work around this. You can do it either with Pacifist (a 3rd party shareware app) or the PackageMaker app which is installed with (some versions of) Xcode Tools into /Developer/Applications/Utilities/

Building strace from AOSP sources

Apparently some version of strace is part of AOSP. So checking out the necessary subtrees from the AOSP repository should let you compile your own binary. Of course this strace will always be at least a few versions behind the original strace project, so you might give a try to cross-compiling a statically linked version of the latest strace.

Cool commandline completion in Ubuntu 10.04 with the default bash shell

I'm setting up my company's new servers (installing Ubuntu 12.04, the current LTS release) and since a lot of configuration/features have to be "mirrored" from our old servers, I've set up SSH public key authentication so I can simply copy stuff with scp (and without entering the password each time) from the old server(s) to the new one(s). And I just got amazed by this: entered the start of the command specifying the server like this:
then I hit (accidentally) tab ... and voala! The builtin (out-of-the-box) command completion listed all the contents of the /mnt directory on the other server! Brilliant. That's what I call user (or admin Smile ) experience.

How to disable services in Ubuntu (using Upstart)

Ubuntu has been transitioning to Upstart for a long time now. In the early days one could disable a service only by renaming the job config file in /etc/init (to something that does not end in .conf) or modify the file so it won't start the job automatically.

How to install syslog-ng on Ubuntu solving the conflict with ubuntu-minimal

One of the problems with Ubuntu is its stubbornness. This bug is 7 years old now. It's pretty obvious that it's a bug and no Canonical employee ever disputed this in the bug's comments. The only progress they made so far was to replace the dependency of sysklogd with rsyslog (which was only to make Ubuntu's dependency system work since sysklogd was dropped/replaced with rsyslog over the years). It's a shame that Ubuntu doesn't provide more attention to the details. Sad

How to view the changelog of APT packages

Manually for each package:
aptitude changelog package-name

Automatically for each upgrade (and of course also manually):
sudo apt-get install apt-listchanges
sudo dpkg-reconfigure apt-listchanges

Syndicate content Syndicate content