grep --color=always some_text * | less -R
/me like! (more)
Comments Off
Dell’s Enhanced Multimedia USB Keyboard
Last week wasn’t one of my most productive weeks. Instead of working on my thesis, I created a small utility to make it possible to use the volume knob on Dell’s Enhanced Multimedia USB Keyboard under Linux. Not because I needed it, but because it didn’t work (and my other option was writing).
Anyway, if you’d like to check out the program (it’s named knob btw), you’ll find it on my self-entitled wiki WikiErik (yeah I know, the name sucks. But that’s how far my imagination goes when it comes to names).
Update:
As some of you have noticed, WikiErik is no longer available. But the code is still available. Point your browser to git.ejohansson.se and the project dellknob.git. Or clone it by running
git clone git://git.ejohansson.se/dellknob.git
Update 2:
Added a README with the contents from WikiErik.
Interesting data from Google trends: linux distributions and xfree86 vs xorg.
Comments OffA backport of DSPAM for Debian stable (Sarge) is now available in my repository. No changes have been done compared to the version in unstable, just a recompile.
For those of you that don’t know what DSPAM is:
DSPAM is a scalable and open-source content-based spam filter designed for multi-user enterprise systems. On a properly configured system, many users experience results between 99.5% – 99.95%, or one error for every 200 to 2000 messages.
If anybody is interested in my setup (Exim4+DSPAM+MySQL), let my know and I’ll publish my configuration files.
4 comments so far, add yours ▶If you speak swedish and use konqueror you might be interested in lexin.desktop and lexen.desktop. Download and place them in ~/.kde/share/services/searchproviders/ and you’ll be able to translate from swedish to english by entering lexin:katt in the location field and from english to swedish with lexen:cat.
2 comments so far, add yours ▶I’m pleased to announce the first public version of my plugin for KDE text editors: ktexteditor-yankbuffer. It gives you emacs-like kill line (C-k) and yank (C-y) behaviour. For non-emacs users: this means that you can delete (kill) lines and then paste (yank) them in at another place in the document (or in another document). The default keybindings for kill line is Ctrl+Alt+K and for yank Ctrl+Alt+Y, but they can of course be reconfigured to suit your needs.
As an extra feature the plugin supports multiple yank buffers. By pressing Ctrl+Alt+Shift+K you create a new yank buffer (that all future kill line and yank operations will use) and then moves the current line to that buffer. If you press Ctrl+Alt+Shift+Y the current buffer is first inserted in the document, then removed and the previous buffer is made current. (The buffers are ordered as a stack with the “non-shift” operations operating on the top buffer and the “shift” operations pushing and poping a buffer on the stack.)
The kill line feature works as it does in emacs: it deletes the current line starting at the cursor and only includes the end of line (\n) if the cursor is at the end of the line. And if you kill a text segment, all lines are saved in the same buffer.
Download ktextedior-yankbuffer v0.2 and install it the usual way.
./configure --prefix=/usr make make install
If you are using debian unstable you can install the plugin by adding the following to your sources.list and apt-getting ktexteditor-yankbuffer.
deb http://eddie.ejohansson.se/debian/ sid main deb-src http://eddie.ejohansson.se/debian/ sid main
If you like to be on the bleeding edge, the source is also available from my subversion repository.
svn co http://svn.ejohansson.se/repos/src/projects/ktexteditor-yankbuffer
To end this rather long post, I’d like to give two examples on how to configure the keybindings. Me, I use these settings (C = Ctrl, S = Shift):
This is what I would call an explicit push but an implicit pop.
A friend of mine instead uses these settings:
Which would then be implicit push and pop.
If you like to see the stack depth you can turn on the Yank Buffer Toolbar in the Settings menu.
I know I said I would end this post which the examples, but I’d like to add this as well: if you have any problems, suggestions, etc. leave a comment or drop me a mail. Now, that was the last thing. I promise.
3 comments so far, add yours ▶Read about social bookmarking with Scuttle and got enough interested to actually install it.
Scuttle is a web-based social bookmarks manager that enables you to:
- Store all your favourite links in one place, accessible from anywhere.
- Share your bookmarks with everyone, with friends on your watchlist or just keep them private.
- Tag your bookmarks with as many labels as you want, instead of wrestling with folders.
Scuttle is an open-source project licensed under the GNU General Public License.
i.e. Scuttle is an open-source implementation of del.icio.us.
My installation can be found on bookmarks.ejohansson.se. I will use it as my personal “bookmark collection”. Feel free to register and add your own links. The more the merrier.
Comments OffSarge r2 is out. Time to put your up alias to work. You do have an up alias now, don’t you? If not, time to add this to your ~/.bashrc and save a few keystrokes.
alias up='aptitude update && aptitude upgrade'
Now, up and enjoy the beauty of apt. Being a Debian administrator is sooo easy.
Comments OffWe all know the following facts: Qt is good; Lisp is good. So when I found the Lisp Qt4 bindings I knew it had to be good. I have – of course – not tried it (yet), but I like the concept. And there’s nothing like judging by appearance. Plus, good + good must equal good. Just look at milk and beer… or umm… *cough*
While on the subject, I have to remember to try Korundum when I get back to Linköping.
One comment so far, add another ▶