Tag: Pro-Tip

Fixing Kate’s Instance Behavior

August 27, 2010 » Geek

I’ve been a KDE user for a long time now, and I love all the new changes (except the Aero snap thing, you can turn that off though). One thing I love is Kate. I usually have two or three Kate sessions open at once, borrowing code across projects or changing things in different modules.

My problem is that Kate now defaults to only one instance, so if I call Kate from the command line with a file name, it gets added to a running instance, not a new one. If I use the KRunner to start a session, it loads in place of the current session in a running instance. I understand the reasoning here, but I want to use it the way I always have.

Easy fix! Just always make sure it is called with kate -n

You can do this with a BASH alias,

or more thoroughly with a wrapper script like this one from a forum post:

Easy fix!

Tags: , , ,

Wine Missing MFC420.DLL? Try winetricks.

January 6, 2010 » Geek

I’ve been firing up my old copies of Sim Tower and Yoot Tower to, um, research for pyTower. It’s been a while since I used wine, so when Yoot Tower borked because of a missing dll ( MFC420.DLL, natch ) I hit the Google and found this great little ditty: winetricks. It’s a little script that will install all kinds of DLL’s on demand from all over the net.

It even has a GUI!
It even has a GUI!

It did the trick really fast, so I’d recommend it net time you get stuck.

Tags: , , ,

Sending Arbitrary Arguments to a pyQt4 Slot

January 5, 2010 » Geek

Okay, so you can’t send extra arguments through a slot when you connect it in pyQt4. What I mean by that is if you are connecting to a button’s clicked() signal it has zero arguments, so you don’t get to send anything to your slot.

This was a really big annoyance, I wanted to send arbitrary arguments defined at connect time. So I looked, and I looked and eventually, I found this treasure. Awesome.

And for usage…

It’s just what I needed, this is going into my stash of helpful hints.

Disable Gnome Keyring for SVN

October 28, 2009 » Geek

Although I am personally switching over to git for my projects, we still use Subversion here at work.

Something I’ve noticed recently is that SVN now stores my passwords in gnome-keyring. This appears to be a feature in version 1.6 and I am running 1.6.5. It seems from that article that it can also use KDE’s Wallet system.

However, I do not use Gnome, and I don’t like KDE wallet. Plus, sometimes it seemed that gnome-keyring would stick on me during a transaction. The only way to fix it was to run another transaction (svn update usually) in another shell.

I finally got sick of it today and Google’d around. Here is the fix I found, edit ~/.subversion/config and add one key.

Easy enough, and once I did everything was a-okay. Hope this helps someone else!

Handy Beryl Trick For Web Developers

March 1, 2007 » Geek

I found a handy trick for making sure things are lining up. You can zoom in on the screen by holding the super key (windows key) and scrolling in/out with your mouse. It gets a little fuzzy, but you can get a good view of about how many pixels off your layout is, then fix it up.

Likewise, windows has an accesibility tool that zooms nicely. It’s a lot crisper, pixelated view, but you have to open a seperate app for it.

Tags: , ,