Archive for September, 2009
Blog: September 19th, 2009I just finished up the first version of johnbintz.com, the page that aggregates together a bunch of the things I do on the Internet. It has some JavaScript goodness to drive it, too. Check it out!
Blog, Computers: September 11th, 2009I was working with a script that I was loading using the Script DOM technique talked about by Steve Souders, which looks like this:
<script type=”text/javascript>
var s = document.createElement(”script”);
s.src = “/path/to/script.js”;
document.getElementsByTagName(”head”)[0].appendChild(s);
</script>
Unfortunately, this was an older script and was using a document.write to put a <style> tag into the page when [...]
Blog, Computers: September 3rd, 2009sam2p doesn’t like taking a lot of PNGs exported from Inkscape as straight input. This works around that issue by using ImageMagick convert it to an RGB (not RGBA) PNM before piping it into sam2p:
convert ${input_file} -colorspace RGB pnm:- | sam2p -c:lzw -m:dpi:$(echo “scale=5;72*(72/${dpi})” | bc) – PDF:${output_file}
Yes, the strange DPI syntax is needed. [...]
|