{"id":35531,"date":"2004-10-09T17:59:00","date_gmt":"2004-10-09T16:59:00","guid":{"rendered":"http:\/\/pw201.livejournal.com\/35531.html"},"modified":"2004-10-09T17:59:00","modified_gmt":"2004-10-09T16:59:00","slug":"sanctioned-parts-list","status":"publish","type":"post","link":"https:\/\/www.noctua.org.uk\/blog\/2004\/10\/09\/sanctioned-parts-list\/","title":{"rendered":"Sanctioned Parts List II"},"content":{"rendered":"<p>Some while ago, <a href=\"http:\/\/diveintomark.org\/\">Mark Pilgrim<\/a> did a post on cool software tools he couldn&#8217;t do without. In the absence of any pending rants about religion, here&#8217;s mine. Probably only of interest to fellow geeks, so cut for length.<BR><B>&lt;lj-cut&gt;<\/B><BR><strong>Mail:<\/strong> <BR><BR>I&#8217;m still using <a href=\"http:\/\/www.washington.edu\/pine\/\">Pine<\/a>, that staple from university days. As it&#8217;s terminal based, I can use it to read my mail by logging in to my machine from wherever I happen to be. It supports multiple incoming folders for mailing lists and the like, and multiple roles. It&#8217;ll invoke an external editor, so I can use Vim to write email. The address book is nice. It keeps mail in flat text files, which, despite being a <a href=\"http:\/\/www.jwz.org\/doc\/content-length.html\">somewhat broken format<\/a>, is easily understood by <kbd>grep<\/kbd> and the like. What more do you want? I hear good things about <a href=\"http:\/\/www.mutt.org\/\">Mutt<\/a> and also Apple&#8217;s own Mail.app, but nothing which compels me to change.<BR><BR>I run <a href=\"http:\/\/www.exim.org\/\">Exim<\/a> as a mail transport agent, and use its nice <a href=\"http:\/\/www.exim.org\/exim-html-4.40\/doc\/html\/filter_toc.html\">filtering lanuage<\/a> to handle sorting stuff into folders, ditching HTML mail sent to my Usenet posting address, and that kind of thing. <a href=\"http:\/\/www.catb.org\/~esr\/fetchmail\/\">Fetchmail<\/a> gets the mail to Exim. Exim calls <a href=\"http:\/\/www.rhyolite.com\/anti-spam\/dcc\/dccproc.html\">dccproc<\/a>, which checks for bulkiness, and rbfilter, which checks for blacklisted senders. <BR><BR>My pobox.com forwarding address has been around since 1998 and so gets a tonne of spam, but since I used their spam filtering options to block China, Korea, and Brazil; and also turned on their cunning &#8220;looks like a consumer broadband machine&#8221; test (which looks for bytes from the IP address in the machine&#8217;s hostname, as that&#8217;s a common naming convention for broadband addresses), spam is a solved problem for me.<BR><BR><strong>News:<\/strong><BR><BR>I was using trn, but gave that up after failing to compile it for OS X. <a href=\"http:\/\/www.slrn.org\">slrn<\/a> is a worthy replacement, with colour highlighting and a useful scoring language. As well as using that to killfile people, I can increase the score of posters or threads which interest me and sort by score in the thread view. slrn shares trn&#8217;s handy habit of doing the right thing when you just keep hitting space, which is handy for eating and reading news at the same time.<BR><BR>I use <a href=\"http:\/\/leafnode.sourceforge.net\/\">Leafnode<\/a> to fetch news from a variety of servers (NTL groups from their server,  <a href=\"http:\/\/news.individual.net\/\">news.individual.net<\/a> for everything else). A tip for Mac users: Leafnode creates directories full of lots and lots of small files (one per article, in fact). HFS+, the native OS X filesystem, is dog slow at accessing these. Make a UFS disk image and put your news spool on there.<BR><BR><strong>Editing:<\/strong><BR><BR>I use <a href=\"http:\/\/www.vim.org\">Vim<\/a>, which combines the usability of the old Unix <kbd>vi<\/kbd> with the startup time of Emacs. It does all the usual good stuff like syntax highlighting every language known to man (including quoted text in mail messages, which is nice), indenting automatically and all that jazz. A killer feature is the function which will complete words from occurrences in the same file, or from a tags file (a list of all the names defined in a program). Helpful for not getting variable names wrong and also in rants where you find yourself writing &#8220;evangelical&#8221; a lot. The interface to <a href=\"http:\/\/cscope.sourceforge.net\/\">cscope<\/a> is also very useful when writing C code (and more importantly, trying to understand other people&#8217;s C code).<BR><BR><strong>Browsing:<\/strong><BR><BR>Since I started using OS X, I&#8217;ve been happily using Safari as my web browser. When writing long comments here on LiveJournal, I occasionally miss the text entry box editing facility of <a href=\"http:\/\/mozex.mozdev.org\/\">Mozex<\/a>, since I could then edit the comments with Vim, but since no-one&#8217;s ported Mozex to the Mac yet, I&#8217;ve not switched to Mozilla or Firefox. You Windows users should so switch, of course, because Firefox is nicer and a lot more secure than IE.<BR><BR><strong>Uploading:<\/strong><BR><BR>I maintain my websites with <a href=\"http:\/\/www.lyra.org\/sitecopy\/\">sitecopy<\/a>, which replaces that Perl or Python script which everyone seems to have written at least once to FTP stuff to their provider&#8217;s web space. sitecopy is works with both NTL&#8217;s and Gradwell&#8217;s servers and can do useful stuff like uploading based on hash values rather than modification times.<BR><BR>I post to LiveJournal using <a href=\"http:\/\/www.speirs.org\/xjournal\/\">Xjournal<\/a>, a pretty and featureful client for OS X. If I want to post from the command line, I use <a href=\"http:\/\/ljcharm.sourceforge.net\/\">Charm<\/a>.<BR><BR><strong>Scripting:<\/strong><BR><BR>I prefer <a href=\"http:\/\/www.python.org\/\">Python<\/a> to Perl for scripting tasks. As <a href=\"http:\/\/www.python.org\/doc\/Humor.html#yoda\">Yoda says<\/a>, you will know Python is better than perl when your code you try to read six months from now.<BR><BR><strong>Mudding:<\/strong><BR><BR>I use <a href=\"http:\/\/mudwalker.cubik.org\/\">Mudwalker<\/a> when I have the OS X GUI available, mainly because I&#8217;ve <a href=\"http:\/\/www.livejournal.com\/users\/pw201\/33648.html\">made it talk<\/a> using the Mac&#8217;s speech synthesis stuff. I&#8217;d also recommend <a href=\"http:\/\/www.evilmagic.org\/crystal\/\">Crystal<\/a>.<BR><BR><strong>Coding:<\/strong><BR><BR>From within Vim, I make heavy use of <a href=\"http:\/\/ctags.sourceforge.net\/\">ctags<\/a> and <a href=\"http:\/\/cscope.sf.net\">cscope<\/a> for browsing around code and jumping to declarations and references to a symbol. You can do it with <kbd>grep<\/kbd>, but it&#8217;s not as nice (and a lot slower on big projects).<BR><BR>I&#8217;ve also used <a href=\"http:\/\/smatch.sourceforge.net\/\">Smatch<\/a> to write customised static checkers for C code. Smatch is a modified version of GCC which outputs an intermediate language which is readily processed by your scripting language of choice. If you&#8217;ve ever found yourself writing Perl or Python code to parse C directly, you probably should have used this instead. There are some scripts which come with it which can do useful things like attach state to particular code paths as your script parses the code, and allow you to describe what happens to that state when the paths merge (so you could check that all paths free anything they&#8217;ve allocated, say).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some while ago, Mark Pilgrim did a post on cool software tools he couldn&#8217;t do without. In the absence of any pending rants about religion, here&#8217;s mine. Probably only of interest to fellow geeks, so cut for length.&lt;lj-cut&gt;Mail: I&#8217;m still using Pine, that staple from university days. As it&#8217;s terminal based, I can use it&hellip;<\/p>\n <a href=\"https:\/\/www.noctua.org.uk\/blog\/2004\/10\/09\/sanctioned-parts-list\/\" title=\"Sanctioned Parts List II\" class=\"entry-more-link\"><span>Read More<\/span> <span class=\"screen-reader-text\">Sanctioned Parts List II<\/span><\/a>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"Layout":"","footnotes":"","_links_to":"","_links_to_target":""},"categories":[19],"tags":[41,98,146,200],"class_list":["entry","author-paul","post-35531","post","type-post","status-publish","format-standard","category-blog","tag-computers","tag-internet","tag-programming","tag-tools"],"_links":{"self":[{"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/posts\/35531","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/comments?post=35531"}],"version-history":[{"count":0,"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/posts\/35531\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/media?parent=35531"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/categories?post=35531"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.noctua.org.uk\/blog\/wp-json\/wp\/v2\/tags?post=35531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}