Monday, June 11, 2012

HP Laserjet 1022n under Windows 7

Use the 1020 driver, but turn off bidirectional support, to avoid a page job printing repeatedly.  See:
  http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02205132&tmp_track_link=ot_faqs/top_issues/en_us/c02205132/loc:10&lc=en&dlc=en&cc=us&lang=en&product=4110396

Also suggestions on installing driver:
http://www.w7forums.com/drivers-hp-laserjet-1022n-printer-t5048p2.html


Install HP LaserJet 1022n on Windows 7
(You DONT have to connect it to USB)

  • Download LaserJet 1022n driver from HP
32 bit - lj1020-HB-pnp-win32-en
64 bit - lj1020-HB-pnp-win64-en

  • Run your downloaded driver
HP driver install window opens asking you to connect the USB cable
  • CANCEL installation
IMPORTANT NOTE: This extracts the needed driver to your Hard Drive. Your driver will be extracted to folder:
(64 bit) C:\Program Files\HP\HP LaserJet 1020 Driver
(32 bit) C:\Program Files (x86)\HP\HP LaserJet 1020 Driver

  • Add your printer manually - START > Devices and Printers > Add a Printer
  • Add a Local Printer > Create a new port > Standard TCP/IP Port > NEXT
  • Enter the IP address > NEXT
If you dont know the IP, have you 1022n ON, hold the diamond shaped button down for 10 seconds. A configuration page will print with the IP on it .

  • "Install a printer Driver" screen opens, click HAVE DISK
  • Browse to the folder where your driver was extracted (shown above)
  • Choose the "HPLJ1020" file > OPEN > OK > NEXT
  • Select your printer name > NEXT > FINISH

Wednesday, November 02, 2011

emacs --daemon

Good blog post about running Emacs in daemon mode:
  http://emacs-fu.blogspot.com/2009/02/emacs-daemon.html

Also a thread on how to cleanly shut the daemon down:
  http://stackoverflow.com/questions/1167484/how-to-gracefully-shutdown-emacs-daemon

Windows 7: startup items

Can get to these by Running "msconfig.exe".

Friday, October 28, 2011

disconnecting iPod from Linux

When I plug in an iPod into a machine running Ubuntu, the iPod auto-connects, but is not actually mounted.  This is especially problematic when I am running under i3 or other window manager which does not have a system tray or other mechanism for listing connected devices.

Turns out it is easy to disconnect:
  sudo eject /dev/sdb1

Season the device path as appropriate for your system.  I typically find the device name by looking through /var/log/messages for the USB messages for when I connect the iPod.

Wednesday, October 26, 2011

clonezilla (disk imaging) quickstart

[NOTE: I have found Paragon Backup & Recovery tool to be better fit for me, and really like it:  http://www.paragon-software.com/home/br-free/]

Steps for setting up Clonezilla an a USB thumb drive:
  • go to http://tuxboot.org/download.php
  • click Files on SourceForge
  • download tuxboot*.exe (or other, depending on your currently booted OS)
  • run tuxboot
  • the defaults are good usually:
    • clonezilla_live_stable chosen
    • no Pre Downloaded images selected
    • MD5 Check selected
    • Type: USB
    • Drive should be already the USB drive you have plugged in
  • hit OK

Monday, October 24, 2011

checking USB thumb drives

In my experience USB "thumb" drives are notoriously unreliable, but that's something you find out only once you attempt to read back the data you've "written" to the device.  Always check your medium before use.

Great tool that I found for such drive validation: "Check Flash": http://mikelab.kiev.ua/index_en.php?page=PROGRAMS/chkflsh_en

Saturday, October 22, 2011

Totes "Doorman/Gentleman" umbrella

I recently broke my favourite umbrella, the Totes classic black "Doorman" or "Gentleman" stick umbrella, and had a hard time finding a place to buy a replacement from.

Naturally, Totes online has it, but they don't ship to Canada, and their Canadian store is only going to come online next year.  Amazon.com does not ship to Canada.  Sigh.

Finally, success!  Someone that has it AND ships to Canada:
  http://www.beltoutlet.com
It can be found here:
  http://www.beltoutlet.com/meaustumbto.html

Now let's see how fast they can get it here.

Friday, October 21, 2011

Monday as first day of week in GNOME

A lot of approaches on the Net specify hacking the locale files; e.g.:
  http://ubuntuforums.org/showthread.php?t=813945

However, a far simpler and certainly less intrusive procedure is to simply modify default LC_TIME:
  http://askubuntu.com/questions/6016/how-to-set-monday-as-the-first-day-of-the-week-in-gnome-calendar-applet

Specifically:
  • in /etc/default/locale add:
    LC_TIME="en_GB.UTF-8"
  • log out, then log back in

Monday, October 17, 2011

fixing broken Ubuntu Unity

I must have clicked something naughty in Compiz Config Settings Manager, because I lost the top and left side panels, and generally there was not much more than just the desktop background.  I was stumped on how to fix this.

Then I found:
  http://www.tuxgarage.com/2011/04/missing-top-and-side-panels-in-unity.html

Very good walkthrough for fixing Unity.

In the end, I executed the "Reset Compiz" section, and things are back to normal.

Sunday, October 16, 2011

setting static IP in Ubuntu

By default recent Ubuntus (e.g., 11.10) use Network Manager, which makes things simple:

  • click network icon in system tray
  • Edit Connections
  • select the one entry that you see there (unless your network is not working)
  • Edit...
  • IPv4 Settings
  • From Method drop-down select Manual
  • the rest should be straight forward
If not using Network Manager to manage network connections, you need to edit /etc/network/interfaces and add (adjust to own network parameters):

auto eth0
iface eth0 inet static
        address 192.168.0.100
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.1

cloning a github repo

Steps needed to download my repo from github to a new computer:
  • install git
  • generate SSH key
    ssh-keygen -t rsa -C "your_email@youremail.com"
  • add public key to github keys associated with my identity
  • have ssh-agent forget identies
    ssh-add -d 
  • now reread new ones
    ssh-add
  • verify ssh setup is working (see http://help.github.com/ssh-issues/)
    ssh -vT git@github.com
  • clone repo
    git clone git://github.com/maciekk/emacs.git
Note that did not have to do a "git init" or "git remote add".

Sunday, October 02, 2011

Recommended book on Mathematics

This book has been highly recommended to me, I should check it out soon:

Mathematics: A Human Endeavor
Harold R. Jacobs

http://www.amazon.com/Mathematics-Endeavor-Harold-R-Jacobs/dp/071672426X

A nice cup of tea (by Orwell)

http://www.booksatoz.com/witsend/tea/orwell.htm

Sunday, September 11, 2011

configuring grub for auto-selecting Windows

Typically "Windows" is one of the last options in the GRUB menu, and thus rather brittle to selecting by static index.  Instead, one can specify default GRUB choice by using the full option name.  Here are the steps I followed last to update this on a recent Ubuntu (11.x) install:

  1. edit /etc/default/grub
  2. change GRUB_DEFAULT to FULL name of the Windows menu entry (best to copy-paste from your own config)
  3. save
  4. to propagate the change, run 'update-grub'
Note that, aside from the static integer index and the full menu item name, one can also use special string 'saved'. However IIRC in the past I was not fully happy with this option (did not stick maybe?).