How to create a custom Unity launcher for a Java app (eg. SQuirreL SQL Client)

Take a look at the *.desktop file of jEdit (it's a text editor written in Java and ships in Ubuntu's universal repository). First of all: create a copy of jedit.desktop and modify all the relevant entries. Most of them are relevant. Smile
Now the problematic entry is StartupWMClass. If you don't set up this correctly, Unity won't be able to "identify" the process/window that is launched by the executable specified by the "Exec" entry.
You can start up SQuirreL and use xprop to get the correct value. I'll help you: it's "net-sourceforge-squirrel_sql-client-Main"

How to add an SSL certificate to Chrome's certificate list in Ubuntu

Update (2018.02.16): in recent Chrome for Linux versions (at least since 48.*, i.e. 2016 January ... I couldn't find an installer for older versions) you can manage SSL certificates using the GUI. Visit the chrome://settings/certificates screen and use the "Import" button on the proper tab.

First of all, you can view Chrome's certificate store here: "Settings" / "Show advanced settings..." / "HTTP/SSL" / "Manage certificates..."
The server certificates (you import) will show up on the "Servers" tab.
You've to install the libnss3-tools package and use certutil to manage the certificate store. It's location is: $HOME/.pki/nssdb.

Nmap simple stealth scan

The following example will do a comprehensive scan of all TCP+UDP ports without any pinging and including OS detection and version scanning and will produce verbose output:
nmap -Pn --disable-arp-ping -sS -sU -A -p- -v 192.168.0.13

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 Editor.app

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/PackageMaker.app.

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:
scp oldserver.ourcompany.hu:/mnt/
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.

Syndicate content Syndicate content