You are here


Adding a custom (service) menu to KDE's Dolphin (to queue a folder in VLC)

Submitted by Druss on Sat, 2015-08-29 22:07

I was looking for a way to add a custom context (right-click) menu to KDE's Dolphin (in Kubuntu 14.10, Utopic) that (much like in Windows) would allow me to enqueue an entire folder/directory in Videolan. Many of the examples that I looked at were rather sketchy or incomplete. Here's a simple working example that might be of help to someone else out there. You can modify it appropriately to get it working for other applications as well.

Unity3D: InputField caret position bug workaround

Submitted by Druss on Sat, 2015-07-04 02:06

If you, like me, have the (off and on) pleasure of working with Unity3D (5.1.1f1), you are probably familiar with implementing cute li'l workarounds to get around the pesky li'l niggles that seem to plague the otherwise fun package. Today, I ran into an issue with the Inputfield nGUI component. From the looks of things, it doesn't like you playing around with its font size.

C# error: InvalidOperationException: Collection was modified; enumeration operation may not execute.

Submitted by Druss on Sat, 2015-05-16 23:54

I was fiddling around with Unity3D (and C#) and I ran into the following error messages:

InvalidOperationException: Collection was modified; enumeration operation may not execute.
System.Collections.Generic.List`1+Enumerator[UnityEngine.UI.Toggle].VerifyState () (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Collections.Generic/List.cs:778)


SVN: Deleting removed/missing files

Submitted by Druss on Mon, 2011-11-07 22:56

I currently work with an SVN checkout which tracks a separate GIT checkout (for reasons of managerial short-sightedness). When I update my git checkout, I find that the SVN checkout does not like the fact that files deleted by the git update have effectively been removed from the SVN checkout without the use of svn rm. Consequently, it is impossible to commit the updated checkout into the SVN repository.

SVN: changing the URL of the repository in a checkout

Submitted by Druss on Mon, 2011-11-07 22:13

Earlier today, I found myself working with an SVN checkout. As it happened, the repository that the files had been checked out from was no longer responding and upon enquiry, I found out that it had been moved to a different URL. Now, while I could have just as easily created an entirely different checkout of the files using the new URL, considering the local customisations, I looked to see if I could just do something like a live switch. As I found out after some mucking about, switch is certainly the operative word.

Vim/Gvim and missing line numbers in the interface

Submitted by Druss on Sat, 2011-09-24 00:32

I'm not sure whether it was something I did, something that the Vim developers did, or an anomaly with the Windows 7 binary, but I could no longer see the line number and cursor position tracker in the bottom right of my interface. Looking at the menus, I could find nothing. I could turn on a line number prefix for each bleeding line, but this is not what I was after.

Configuring Vim/Gvim to use spaces instead of TABs for indentation

Submitted by Druss on Wed, 2011-08-10 03:00

Some people like to indent their code using TABs. I used to like doing this. I still think that it's a good idea. But circumstances have dictated for the past several years that I need to indent using spaces instead. My favourite command-line editor in Linux and text editor in Windows is VIM / Gvim (where Gvim is basically Vim with a GUI). To configure this editor to override its default and use spaces instead of TABs for indentation, perform the following steps:

git-receive-pack not permitted error on pushing upstream

Submitted by Druss on Fri, 2011-07-08 22:53

If you ever run into a git-receive-pack not permitted error when using Git, chances are that it's a configuration issue on your end. In my case, I had cloned the repository using via https (which required authentication). However, pushing failed with the aforementioned error. This was due to the fact that I was only allowed to push via SSH. Therefore, once I changed the protocol in the configuration for my checkout, all was well again.

Uninstalling plugins from Eclipse 3.6 (Helios)

Submitted by Druss on Sat, 2011-03-19 01:56

I had to do a clean install of Eclipse today and found myself stuck with a dodgy plug-in (subversive). However, when I went to the Help menu, I did not find any option to uninstall software. IIRC, there was something along the lines of Manage configuration here where you could go to makes changes and uninstall plug-ins.


Subscribe to RSS - Programming