Friday, December 9, 2011

Using Ibus with Skype on 64-bit Arch Linux

Adding the following lines to my /etc/environment file, along with installing ibus-qt and running qtconfig to set the default input method, allows Skype and Ibus to work together on my Arch 64-bit system running Gnome 3.2..


Tuesday, November 15, 2011

Landscape printing in LibreOffice

LibreOffice insisted on printing everything in Portrait orientation, no matter how I configured the document or the printer. I discovered the following setting on the Arch Linux forums that fixed the problem.

Set File -> Printer Settings -> Properties -> Device -> Printer Language type to PostScript and create new default templates so the settings stick.

Wednesday, August 24, 2011

Installing the Brother DCP-7030 in Arch Linux

Running Arch Linux I had to create the following udev rule in
in order for the printer to be recognized.

ATTR{idVendor}=="04f9", ATTR{idProduct}=="01ea", MODE:="0664", GROUP:="lp", ENV{libsane_matched}:="yes"

Then I was able to use the driver in the AUR to install it in CUPS.

This entry in the Arch Forum helped me figure it out.

Tuesday, August 23, 2011

Install Ruby 1.8.7-p352 on Arch Linux

I'm returning to Arch Linux for my trusty laptop. After installing RVM and all of the requirements listed in the notes page, I would get compilation errors when trying to install ruby 1.8.7-p352.

callback.func:78:33: error: expected ')' before '(' token
callback.func:79:3: warning: data definition has no type or storage class [enabled by default]
callback.func:79:24: error: 'proc' undeclared here (not in a function)
callback.func:79:39: error: 'argc' undeclared here (not in a function)
callback.func:79:45: error: 'argv' undeclared here (not in a function)
callback.func:82:1: error: expected identifier or '(' before '}' token

I was able to find a patch in the AUR version of ruby that fixed the problem.

diff -urB ruby-1.8.7-p352/ext/dl/depend ruby-1.8.7-p352.patched//ext/dl/depend
--- ruby-1.8.7-p352/ext/dl/depend 2007-02-12 23:01:19.000000000 +0000
+++ ruby-1.8.7-p352.patched//ext/dl/depend 2011-07-26 18:25:12.512525291 +0100
@@ -32,15 +32,15 @@

call.func: $(srcdir)/mkcall.rb ./dlconfig.rb
@echo "Generating call.func"
- @$(RUBY) $(srcdir)/mkcall.rb > $@
+ @$(RUBY) $(srcdir)/mkcall.rb | cat > $@

callback.func: $(srcdir)/mkcallback.rb ./dlconfig.rb
@echo "Generating callback.func"
- @$(RUBY) $(srcdir)/mkcallback.rb > $@
+ @$(RUBY) $(srcdir)/mkcallback.rb | cat > $@

cbtable.func: $(srcdir)/mkcbtable.rb ./dlconfig.rb
@echo "Generating cbtable.func"
- @$(RUBY) $(srcdir)/mkcbtable.rb > $@
+ @$(RUBY) $(srcdir)/mkcbtable.rb | cat > $@


Wednesday, August 17, 2011

A little VIM tweak to make the world go round

...or at least make me stop screaming at my computer. Adding

set vb t_vb=

to my .vimrc and .gvimrc files made all the visual (and audio) bells stop going off. When I would hold down the J or K keys and scroll away I would hit the end sooner than I realized and by the time I lifted my finger from the key I was forced to watch my editor flicker for untold eons of time before I could keep working.


I can see where I am.

I'm sorry I don't have computer-like reflexes.

Please just let me type!!

Monday, January 31, 2011


My favorite part is that there's no "yes" option for "Does it taste good?" Haha!

Wednesday, January 26, 2011


Protect me from knowing what I don't need to know. Protect me from even knowing that there are things to know that I don't know. Protect me from knowing that I decided not to know about the things that I decided not to know about. Amen.
- Douglas Adams, Mostly Harmless

Lord, lord, lord. Protect me from the consequences of the above prayer. 
- Douglas Adams, Mostly Harmless


Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, you're a mile way and you have their shoes.

-Jack Handey

Tuesday, January 25, 2011

Delete files on NTFS partition

After a recent update on my Arch Linux system I was no longer able to delete items from my NTFS drive that was being mounted from /etc/fstab on boot. Thunar gave me an error stating "Unable to find or create trash directory". I don't know why it used to work, but the fix was to allow my user account to have sufficient permissions to the drive in the fstab file.

/dev/sda2 /mnt/Data ntfs-3g defaults,umask=007,uid=1000,gid=100 0 1

After this change and remounting the partition I was once again able to delete files and a .Trash-1000 folder was created on the partition. Perhaps the problem wasn't due to an update, but I aggressively deleted the .Trash-1000 folder and didn't realize it...

Tie your shoes!

Replacing long ingrained habits can be a rewarding exercise for keeping the mind nimble. There are so many things that we do automatically, and trying to adjust or replace these behaviors requires us to concentrate on what we are doing instead of allowing our minds to run on autopilot. Of course, the brain's ability to automate frequent tasks is certainly a strength, since it allows us to focus on more important matters. But forcing your mind to learn a new way of doing something and replacing an ingrained behavior with a demonstrably improved one reminds the cerebellum who's in charge!

I've been tying my shoes the same way since I was a child, the same probably goes for you. It's not something we have to think about doing... as a matter of fact thinking too much about it will probably mess up the "muscle memory" that processes the task and give you a useless knot. So how about retraining that behavior with a more efficient bow-tying method? My goal is to retrain my muscle memory with the Ian Knot, the world's fastest shoelace knot. Which means every time I tie my shoes for the foreseeable future I will have to stop and concentrate on what I'm doing, just like when I was a child learning for the first time. And every time I forget and automatically tie the old style of knot it must be undone and retied correctly twice!

Time to see if I can teach an old dog new tricks...