I use Vim as my main IDE for C/C++-related development (as well as for almost all other development). If you use (or are thinking about using) Vim as an IDE, you better get some good autocompletion functionality. This kind of autocompletion is provided by OmniComplete, which has been available since Vim 7.0. Just having OmniComplete is a nice thing, but it’s much more helpful if it’s configured properly to work with the libraries you use, such as wxWidgets. In this post, I will show you how to get OmniComplete working for wxWidgets. However, the procedure I will show can be easily adapted to almost all libraries.
Continue reading Setting Up OmniComplete (Autocompletion) for wxWidgets in Vim
Month: February 2008
Fixing the Home Link in the Telem System (OpenU)
This post can be helpful for students of the Open University of Israel. As a student there, I found it very annoying that the link to the courses’ homepage in the Telem system is a JavaScript link. This prevents it from opening in a new tab and thus requires various workarounds to get back to the homepage in a different tab. So, a little while ago, I wrote a little Greasemonkey script to fix it.
// telem.user.js
// version 0.1
// 2008-01-01
// Copyright (c) 2008, Guy Rutenberg
// Released under the GPL license
// http://www.gnu.org/copyleft/gpl.html
//
// ==UserScript==
// @name OpenU's Telem - Fix Home Button
// @namespace http://www.guyrutenberg.org/
// @description Fixes the home button link in the telem system of the OpenU.
// @include http://maagar.openu.ac.il/opus/*
// ==/UserScript==
home = document.getElementById('home');
if (home) {
re = /javascript:find_home_page('(.*?)','(.*?)',/
match = re.exec(home.href)
home.href = 'http://telem.openu.ac.il/courses/'+match[2]+'/'+match[1]
}
This script changes the link to a regular, non-JavaScript link. I’ve tested it for more than a month now without finding any bugs. However, if you find something or have any suggestions, please comment.
Update: See A Greasemonkey Fix to the Top Menu in Sheilta (Open University); it has a fix for the top menu bar in the Sheilta system.
Activating Guarddog Settings on Startup
Like many Linux users, I use Guarddog as a frontend to my iptables firewall. At some point, I noticed that Guarddog started acting strangely. Every time I restarted my computer, all internet traffic was blocked (both incoming and outgoing). The only way to fix this situation was to open Guarddog and press “Apply” (without making any changes). While it was annoying, it didn’t bother me much because I used to restart my computer about once a month. But a few days ago, I decided to solve this problem once and for all.
Continue reading Activating Guarddog Settings on Startup