Seem to be running into a few corner cases today. Qgit is a really nice viewer for git repositories, but it would crash each time I attempted to open the settings dialog. After some hours of debugging I traced the problem to the presence of newlines in the branch description. Full details can be seen in the bug report on launchpad.net
Thursday, September 12, 2013
Octave PDF print error
Spent a while debugging a mysterious error with exporting PDF plots from Octave. To test if you have the same bug run the following commands on an octave prompt:
1. Did you get an error saying epstool binary not found?
Solution:
Install epstool from your package manager (synaptic or equivalent)
2. Did you get an error from Ghostscript?
e.g. GPL Ghostscript X.XX: Unrecoverable error, exit code 1
and/or
Is the EPS file unreadable?
Try to convert the EPS to pdf using ps2pdf temp.eps. If you get an error like "Error: /limitcheck in /fontfont" then there is a problem with the installed fonts. Try the diagnostic test described here [3]:
octave:1> set (0, "defaultaxesfontname", "Helvetica")
Solution: remove the package font-pagul. [1,2]
Links:
[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=662892
[2] http://octave.1599824.n4.nabble.com/3-6-1-produces-eps-files-that-are-unusable-on-Debian-wheezy-td4438420.html
[3] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=710272#17
clearNow check for the following errors/warnings:
close all
sombrero
print -deps temp.eps
print -dpdf temp.pdf
1. Did you get an error saying epstool binary not found?
Solution:
Install epstool from your package manager (synaptic or equivalent)
2. Did you get an error from Ghostscript?
e.g. GPL Ghostscript X.XX: Unrecoverable error, exit code 1
and/or
Is the EPS file unreadable?
Try to convert the EPS to pdf using ps2pdf temp.eps. If you get an error like "Error: /limitcheck in /fontfont" then there is a problem with the installed fonts. Try the diagnostic test described here [3]:
octave:1> set (0, "defaultaxesfontname", "Helvetica")
Solution: remove the package font-pagul. [1,2]
Links:
[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=662892
[2] http://octave.1599824.n4.nabble.com/3-6-1-produces-eps-files-that-are-unusable-on-Debian-wheezy-td4438420.html
[3] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=710272#17
Friday, January 11, 2013
Syntax highlighting for SPICE in gedit
Ever viewed a SPICE netlist in gedit, and struggled to make sense of it? One thing that makes life easier is Syntax highlighting.
We first need the .lang file for spice, which has been which can be downloaded here. Then copy this file (as root) to the relevant directory, which is : /usr/share/gtksourceview-3.0/language-specs/
(You may have 1.0 or 2.0 etc. instead of 3.0)
Restart gedit,open a netlist file, and click on highlighting scheme (probably "plain text" by default, and select SPICE)
Ref: Ubuntu Forums
We first need the .lang file for spice, which has been which can be downloaded here. Then copy this file (as root) to the relevant directory, which is : /usr/share/gtksourceview-3.0/language-specs/
(You may have 1.0 or 2.0 etc. instead of 3.0)
Restart gedit,open a netlist file, and click on highlighting scheme (probably "plain text" by default, and select SPICE)
Ref: Ubuntu Forums
Subscribe to:
Posts (Atom)