So I had an issue with KCachegrind where I would open a cachegrind profile file and “nothing happened”. The status bar said the file had loaded, but the user interface widgets were all empty. Turns out clicking Settings -> Sidebars -> Function Profile loaded the part of the UI I needed to get started… everything is easy when you know how!
Author Archives: Jay Jay
Monitoring NetBeans
Today I learned you can watch the NetBeans memory utilisation by: View -> Toolbars -> Performance.
Disable middle mouse button (paste) on Debian KDE
Every now and again I will accidentally click the middle mouse button when I go to grab my mouse, and KDE will dump my clipboard buffer into a BASH shell. Not good. Could run something damaging if I’m unlucky. So see here for the solution. Basically run this to get the mouse device ID:
xinput list | grep 'id='
Then to edit e.g. device 10 to disable middle mouse button:
xinput set-button-map 10 1 0 3
To persist the changes add the set-button-map command to e.g. ~/.xstartup.
Or you can add a pointer configuration to ~/.Xmodmap like this:
pointer = 1 0 3 4 5 6 7 8 9 10
And make sure xmodmap is applied at start-up with an autostart file like e.g. ~/.config/autostart/mouse-config.desktop:
[Desktop Entry] Type=Application Name=mouse-config Comment=Disables middle mouse button. Exec=xmodmap /home/jj5/.Xmodmap
Disabling F6 ‘Run Main Project’ hot key in NetBeans because of G15 keyboard
I have a G15 keyboard, and I love it (but not as much as the old model!), but it occasionally causes a problem for me when I’m programming in NetBeans on Debian GNU/Linux.
The issue is that on a newer G15 the G6 key is right near the Ctrl key, and from time to time my pinky hits the G6 key which seems to be by default programmed to be the F6 key.
By default in NetBeans the F6 key is the ‘Run Main Project’ hot key, so when I accidentally press it, it fires up a Firefox window and tries to run my web app! I never configure my web apps in NetBeans, but even if I did, I don’t want to accidentally run anything due to an accidental key press.
So my solution was to disable F6 in NetBeans, and for that:
Tools -> Options -> Keymap -> Click ‘Search in Shortcuts’ -> Press F6 -> Click on the ‘…’ in the Shortcut cell for ‘Run Main Project’ (should be F6) -> Clear -> Apply -> And you’re done!
Everything is easy when you know how!
How to allow a restricted port in Firefox
By default Firefox complains about access to non-standard ports and blocks access. You can override this behaviour by following these instructions. Basically add the comma separated list of allowed ports to the network.security.ports.banned.override string via about:config.
Using ssh-add with ssh-agent for unattended ssh
Easypeasy:
eval "$(ssh-agent)" ssh-add ~/.ssh/id_rsa
Overworked and underpaid
We need to talk


Firebug DOM panel colour-coding/legend
Found out (over here) that the colour codes in Firebug are:
Format Description Bold Black Objects Black DOM objects get in gray "Getter" functions Bold green User functions Green DOM functions Bold Red Constructor functions
Native HTML5 Drag and Drop
Found an article on Native HTML5 Drag and Drop…