Pages

Wednesday, December 9, 2015

Colored output from Bash

Problem:
I've got colored output from bash (mostly git diffs) which I need to save *with* the coloring intact.

Solution:
- Pipe the output (*with coloring enabled - use --color switch or equivalent*) to a file.
- Get ansifilter
Download source , compile and install.
- Convert input to latex, compile the tex, save the PDF

Friday, August 21, 2015

Inkscape Latex render improvement

This little fix by KaKiLa allows passing of packahe options to the latex renderer (TexText) in inkscape.
To use, back up and then patch your source file eqtexsvg.py (usu. located in /usr/share/inkscape/extensions). Backup and delete the compiled bytecode (eqtexsvg.pyc), then restart Inkscape!

Tip: Remember that python is "indentation space" sensitive. So when you patch the script pay attention to the leading whitespaces.

Saturday, February 14, 2015

Nexus Un-Lollipop-ping

So Android Lollipop 5.0 was a fairly disappointing experience, as reported by many other Nexus 7 users. 5.0.1 and 5.0.2 were better, but significantly worse than KK 4.4.4, so I'm back to on KitKat using the instructions provided on the Android Developers' site. In brief the steps are:

  1. Download image for your device from the link above and extract the . Enable developer options on your device
  2. Go to Settings > Developer options > Enable USB debugging
  3. Connect USB Cable to a computer where adb is installed (On Ubuntu 14.04 you can install android-tools-adb package from synaptic)
  4. Click "allow" on device to always allow connections from that computer (useful incase you ever get locked out of the device)
  5. Reboot the device into bootloader. Use the device specific instructions or, in a terminal, run: adb reboot bootloader
  6. Unlock the bootloader (CAUTION:this wipes the device)
    fastboot oem unlock
  7. Flash the new image by executing flash-al script in the image directory
  8. Reboot into Bootloader as in step 5, then lock the bootloader using  fastboot oem lock