multimedia

PIXMA 100 setup

this is a cheap and apparently old printer.  Important points:

no sound on ipad games

check rotation lock, it is the same switch for mute, which can stop game sounds

hotas joystick

pressing mapping&preset together, then the home light will flash. then reboot. you can test whether the driver is working from settings

copy audio cd

mkdir wavdir cdparanoia -B cdrecord -v -audio *.wav

Bye bye flash, hello gnash

This afternoon I was finding my computer really bogged down. I was averaging 1.5 loads or so. After a bit of poking, I found the culprit (again), xulrunner. Killed it, was thinking Firefox was junk. Tried out midori and epiphany, they’re nice, but I can’t survive without vimperator anymore. Sad but true.

ALSA and Flash

I’ve long wanted to do this, and I don’t know how it was so simple all along. I have 2 external USB DACs, which go to 2 amps for 2 rooms. there’s also the multichannel audio on the Dell 9300 itself, and for a while I was trying to get Skype working (I’ve given up, though it would be nice to run off of Linux it just doesn’t work reliably enough so I’ve gotten the Belkin Desktop Internet Phone which is working out rather nicely for now.

Back to Top ↑

bash

latex -> text

$ catdvi -e 1 -U file.dvi sed -re “s/\[U\+2022\]/*/g” sed -re “s/([^^[:space:]])\s+/\1 /g” > file.txt

copying hardlinked backups

have 2 external drives, and i use backintime to backup my main hd to one of these drives.  now i want to copy the 1st external usb drive to the 2nd, but backintime uses hardlinks, and i need to preserve these.  rsync can do it, but evidently takes a long time, so easier to use

How to keep less from clearing the screen

I was finally getting desperate with R’s history() command clearing my screen after showing me my history, totally useless. After some puttering around, i found that history() just ends up calling $PAGER, which for me was less. Typing h into history() confirmed that I was looking at less. So then googling how to get rid of less’s behaviour turned up this page:

beeps

i hate beeps of all kinds. the new install was beeping when gdm started, then it was beeping for no reason when i hit capslock in the empty space, when man pages over the beginning or end of a manpage, etc. i needed this fixed. found a few things on the internet, but i feel my solution so far is incomplete:

cryptsetup and quickfix

2 unrelated things which I fixed up today. First, a few days ago my Fujitsu P7320, which I am very fond of, had its HD fail. So it’s off being repaired, presumably returning with a fresh HD. I used it often to transfer files between my various machines using git - although git is a dvcs, i was also using it to sync machines, leading to lots of illogical commits, which I’m sure some purist would say is appalling, but it works and works fast, and so far I haven’t had trouble. But now that the Fujitsu is out, I needed to use a thumbdrive. Last time I used one for syncing, i lost it for some time, then weeks later found when the snow in my driveway melted. (Amazingly, it still worked.) But while it was lost I was always worried about whether there were any important passwords cc’s etc on the drive. I determined to never use an unencrypted thumbdrive again. So today I had to get it encrypted in a hurry, and I found the relevant commands and they were simple, so here they are: [sourcecode lang=”bash”] cryptsetup luksFormat /dev/sdX cryptsetup luksOpen /dev/sdX thumbdrive # enter password mkfs.ext2 /dev/mapper/thumbdrive mount /dev/mapper/thumbdrive /media/thumbdrive # do whatever [/sourcecode]

bash scripts for using git to sync laptops

I have 3 Debian laptops which I use daily. One at home, one at school, and one which I carry in my backpack. I’m also a backup nut. I have 4 external drives totaling 3.25T of storage which are for storing and backing each other up. For years I used rsync with linked files, which was alright but always had issues – sometimes the links wouldn’t propagate back properly for no apparent reason. I’d have the impression that things were working well when … really there was just the latest snapshot available.

Back to Top ↑

vim

git is tricky - be trickier like a fugitive = vim + git

Git is one of the most widely used tools of the modern programmer, and vim is one of the classic editors. Programmers choose git and vim because they each give tremendous value in working with files, including both data and source code.

beeps

i hate beeps of all kinds. the new install was beeping when gdm started, then it was beeping for no reason when i hit capslock in the empty space, when man pages over the beginning or end of a manpage, etc. i needed this fixed. found a few things on the internet, but i feel my solution so far is incomplete:

cryptsetup and quickfix

2 unrelated things which I fixed up today. First, a few days ago my Fujitsu P7320, which I am very fond of, had its HD fail. So it’s off being repaired, presumably returning with a fresh HD. I used it often to transfer files between my various machines using git - although git is a dvcs, i was also using it to sync machines, leading to lots of illogical commits, which I’m sure some purist would say is appalling, but it works and works fast, and so far I haven’t had trouble. But now that the Fujitsu is out, I needed to use a thumbdrive. Last time I used one for syncing, i lost it for some time, then weeks later found when the snow in my driveway melted. (Amazingly, it still worked.) But while it was lost I was always worried about whether there were any important passwords cc’s etc on the drive. I determined to never use an unencrypted thumbdrive again. So today I had to get it encrypted in a hurry, and I found the relevant commands and they were simple, so here they are: [sourcecode lang=”bash”] cryptsetup luksFormat /dev/sdX cryptsetup luksOpen /dev/sdX thumbdrive # enter password mkfs.ext2 /dev/mapper/thumbdrive mount /dev/mapper/thumbdrive /media/thumbdrive # do whatever [/sourcecode]

delicious and vimperator

I’ve been trying to figure out how to use delicious with vimperator. I installed the delicious vimperator plugin and now I have the :delicious command, which doesn’t seem to do anything as far as I can tell. I asked a couple of times on the freenode/#vimperator channel, which is very nice, but nobody seemed to know.

bash completion for vim and latex

I want bash to complete .tex whenever I type vim file. and there’s a file.tex in the directory. This was driving me nuts since it was completing all the LaTeX aux files etc whenever I did it, but I found (again) /etc/bash_completion which has the line

Back to Top ↑

wireless

PIXMA 100 setup

this is a cheap and apparently old printer.  Important points:

wireless on debian toshiba satellite

  1. lspci, look for wireless network
  2. the drivers are proprietary, non-free so google for the driver and install.  in this case it was firmware-iwlwifi.
  3. wireless-tools
  4. wicd (networkmanager also may have been helpful at some time, but i think its best to have only 1 of them installed.)
  5. reboot and check the hardware wireless switch is on.  (removed something called avahi-auto ipd because i wasnt getting connection and i thought it was interfering, turned out to be the wireless switch, doesn’t seem to have messed anything up either way and i don’t know what it  does.)

adding wireless epson workforce 633 printer

  1. add yourself to the lpadmin group using sudo usermod -a -G lpadmin tom /etc/init.d/cups restart
  2. printer should see router so connect them and get the confirmation printout which has the IP
  3. go to http://localhost:631/
  4. add printer, give 1 word for printer name. URL will be socket://IP from printout. cups already has the driver, add Epson Workforce 630
  5. lp -d printername whatever.pdf
  6. debian wiki on printing
  7. cups printing documentation

wicd-client –no-tray for ion3

i use ion3 as my window manager, and it doesn’t have a tray, and wicd-client assumes you have a tray… couldn’t get wireless working until i saw a post somewhere where someone mentioned you could do

wicd vs NetworkManager

spent the better part of an hour wrestling with wicd to try to get it to connect to my linksys WPA2. but it kept saying “incorrect password” even though i could see both passwords and i could see they were the same. tried password versus preshared key, no luck. pulling my hair out, then i had the thought to try nm-applet. it saw the networks, and then it said it connected, though i couldn’t ping google – immediately did a aptitude purge wicd and rebooted, ran nm-applet and voila, here i am posting over WPA2. something is wrong with wicd.

Back to Top ↑

latex

latex -> text

$ catdvi -e 1 -U file.dvi sed -re “s/\[U\+2022\]/*/g” sed -re “s/([^^[:space:]])\s+/\1 /g” > file.txt

smbclient, beamer, and pgfpages

Today’s problem is that I need to print slides for a poster session that I’m going to. I’ve never printed to the color printer, so I don’t know the share name. Simple:

bash completion for vim and latex

I want bash to complete .tex whenever I type vim file. and there’s a file.tex in the directory. This was driving me nuts since it was completing all the LaTeX aux files etc whenever I did it, but I found (again) /etc/bash_completion which has the line

Back to Top ↑

syntax

Back to Top ↑

firefox

Bye bye flash, hello gnash

This afternoon I was finding my computer really bogged down. I was averaging 1.5 loads or so. After a bit of poking, I found the culprit (again), xulrunner. Killed it, was thinking Firefox was junk. Tried out midori and epiphany, they’re nice, but I can’t survive without vimperator anymore. Sad but true.

Firefox Instability Fix

I’ve been having fun with vimperator, but then my firefox on one of my (Debian) laptops became unstable. I’d rightclick on a field, and it would crash. I ran it from the commandline to see if there’s any error messages, it would just say Segmentation fault. I didn’t have time to get a tracer and see where it’s crashing, and I did need to to work again quickly. I tried aptitude reinstall firefox, but that doesn’t seem to do anything useful, since it reinstalls the same binary and it was still crashing; the problem wasn’t in the binary or system-wide configuration (which I didn’t touch). Then I had some intelligent instincts; I already guessed that the problem wasn’t there, and so it had to be in my add-ons, like vimperator. But I didn’t know which one. I’ve always tried to keep the number of addons that I use down; and the answer was simply

delicious and vimperator

I’ve been trying to figure out how to use delicious with vimperator. I installed the delicious vimperator plugin and now I have the :delicious command, which doesn’t seem to do anything as far as I can tell. I asked a couple of times on the freenode/#vimperator channel, which is very nice, but nobody seemed to know.

Back to Top ↑

microsoft

Outlook locks up, “Research Pane”

Once every couple of weeks, my Outlook 2010 freezes up.  Whatever I click, I get “Research Pane,” and nothing I type shows up.  I wondered if it was a keyboard issue, but other MS applications worked.  So after some Googling I found a solution.  Need to open VB (Alt-F11) and then the immediate window (Ctrl-G), and then type:

vimperator and Outlook Web Access Light

So one feature of vimperator which has made it indispensable to me is Ctrl-I on a web form textbox. When vimperator receives Ctrl-I, it opens a gvim instance on the textbox, you can edit in gvim, and then vimperator puts your result back into the textbox. Amazingly useful; it’s let me write better emails than I did when I was just typing into a textbox and trying to send off the email without any editing ability. Some websites use Flash or some other kind of textboxes though (such as Google Docs), but now I deal with them manually by opening gvim myself and pasting a tmpfile because I’m so used to the advantage of having gvim on textboxes.

Back to Top ↑

concurrency

Back to Top ↑

pandas

Back to Top ↑

rum

Need a decently priced rum?

Hamilton 86 is Guyanese rum without added sugar. Sipping, it opens a clean, straight slight burn, smooth, then we find the caramel, tobacco, smoke, really a nice rum and well priced.

Back to Top ↑

alcohol

Need a decently priced rum?

Hamilton 86 is Guyanese rum without added sugar. Sipping, it opens a clean, straight slight burn, smooth, then we find the caramel, tobacco, smoke, really a nice rum and well priced.

Back to Top ↑

nvim

git is tricky - be trickier like a fugitive = vim + git

Git is one of the most widely used tools of the modern programmer, and vim is one of the classic editors. Programmers choose git and vim because they each give tremendous value in working with files, including both data and source code.

Back to Top ↑

git

git is tricky - be trickier like a fugitive = vim + git

Git is one of the most widely used tools of the modern programmer, and vim is one of the classic editors. Programmers choose git and vim because they each give tremendous value in working with files, including both data and source code.

Back to Top ↑

rebase

Author name wrong in Git repo?

The Author name is wrong, or we need to change it, fast. To fix the Author Name etc on all commits in a github repo, an easy way is

Back to Top ↑

rename

Author name wrong in Git repo?

The Author name is wrong, or we need to change it, fast. To fix the Author Name etc on all commits in a github repo, an easy way is

Back to Top ↑

notes

Back to Top ↑

sql

Back to Top ↑

operating system

Back to Top ↑