November 2007 archive
After writing last week about how I missed the Windows-only Tortoise(CVS|SVN) in GNU/Linux and sharing my simple scripts for running Subversion commands from Nautilus, I found Nautilus Svn by Jason Field, an Extension written in Python. (And available under the GPL v2.) It’s very nice, and adds (among other things) a major feature that you want in a graphical source control tool integrated with your file manager: visual cues of file status via icons. It uses Nautilus’s Emblems:
Those are what I have by default with the “Human” theme in Ubuntu 7.04/Feisty Fawn. So what are emblems? I’ve previously noticed the house emblem on my home dir and the lock emblem on system directories (hard to miss them). There is also a tab in file …
by Scott Carpenter on 6 November 2007 at 8:40 pm
Permalink |
Comments (4) | filed under gnome, graphics, python, svn
|
Displaying code on a web page can be tricky, and even trickier if you use WordPress. You may have noticed in WordPress that straight quotes turn in to curly quotes, multiple dashes turn in to en dashes and em dashes, and so on. While this may make our posts look prettier, it does ugly things to code formatting.
(See my post from yesterday on HTML Character Entity References for a table of related characters and encodings.)
Hyphen prettification is one example of where you’ll get in to trouble when trying to show some code. Your decrement –i; may get converted to –i;, breaking your code and causing would-be users to hate you. Or String s = "oops"; will become String s = “oops”;, with similarly unhappy copy-and-paste results.
Using the <pre> tag will take care of …
by Scott Carpenter on 4 November 2007 at 11:26 am
Permalink |
Comments (2) | filed under java, wordpress
|
character ref #ref name
curly left single quote‘‘‘
curly right single quote’’’
curly left double quote“““
curly right double quote”””
en dash–––
em dash———
ellipsis………
left angle quote«««
right angle quote»»»
single quote (apostrophe)'''
double quote"""
hyphen--
backslash\\
forward slash//
period (dot)..
space  
non-breaking space  
ampersand&&&
less than<<<
greater than>>>
I was going to include this table as part of a longer, related entry, but then I thought it might be better posted as a stand-alone reference.
The first several items are things that WordPress will create for you to make your posts prettier. For example, WP will convert normal quotes into curly quotes …
by Scott Carpenter on 3 November 2007 at 11:44 am
Permalink |
Comments (1) | filed under reference, wordpress
|
Originally published 17 October 2007 in Free Software Magazine.
I’m working on Guns, Germs, and Steel, by Jared Diamond. Good book so far, although I’ve ground almost to a halt halfway through. (I’d probably make better progress if it showed up in blog-sized chunks in my feed reader every day.) I like sweeping accounts of history, and this one presents many new ways to look at things. It also gets me thinking about the current sorry state of the patent system, with these excerpts:
All this is not to deny that Watt, Edison, the Wright brothers, Morse, and Whitney made big
…
by Scott Carpenter on 2 November 2007 at 6:22 am
Permalink |
Comments (0) | filed under books, excerpts, patents
|
As seen from the Hanalei Valley Overlook near Princeville.
1600 x 1200
Self service wallpaper: 1280×1024 1280×960 1152×864 1024×768 800×600 640×480
Shared with: Creative Commons Attribution-ShareAlike License
Shot with: 2 mega-pixel Olympus D-520 camera
by Scott Carpenter on 1 November 2007 at 4:00 am
Permalink |
Comments (4) | filed under hawaii, photos
|