{"id":119,"date":"2004-04-09T11:03:00","date_gmt":"2004-04-09T17:03:00","guid":{"rendered":"http:\/\/www.mooreds.com\/wordpress\/?p=119"},"modified":"2004-04-09T11:03:00","modified_gmt":"2004-04-09T17:03:00","slug":"three-tech-tips","status":"publish","type":"post","link":"https:\/\/www.mooreds.com\/wordpress\/archives\/119","title":{"rendered":"Three tech tips"},"content":{"rendered":"<p>Here are three items that I&#8217;ve found useful in the past, but aren&#8217;t worth an individual post because of their triviality.<\/p>\n<p>1.  Sometimes file archives are only available in .zip format.  There are unix programs out there that can unzip such archives, and linux often ships with one. But sometimes it&#8217;s not installed.  Lately, I&#8217;m almost always doing some kind of java development, in which case, you can use the <a href='http:\/\/java.sun.com\/products\/javabeans\/jar.html'>jar<\/a> command to extract the archive.<\/p>\n<p>2.  I generate an html page of all my rss feeds, using a custom perl hack (I wouldn&#8217;t go so far as to term it a script).  (No <a href='http:\/\/www.newsgator.com\/'>newsgator<\/a> for me!  Did I mention I still use <a href='http:\/\/www.washington.edu\/pine'>pine<\/a> for email?)  This can produce quite a big file, since I&#8217;m querying around 80 feeds.  In an effort to reduce my bandwidth, which I pay for, I now gzip my rss feeds page, using CPU that I don&#8217;t pay for (well, not directly).  And, while <a href='http:\/\/www.gzip.org'>gzip<\/a> may <a href='http:\/\/jeremy.zawodny.com\/blog\/archives\/001842.html'>not be the most efficient<\/a> of compressors, files in gzipped format can be transparently read in all the browsers I cared to test: Mozilla, Firefox, IE, and even <a href='http:\/\/lynx.browser.org'>lynx<\/a>.<\/p>\n<p>3.  Sometimes you just want the data from a mysql query in an easy format that you can pull into a spreadsheet and manipulate further.  In the past, I would have written a quick perl script, using <a href='http:\/\/dbi.perl.org'>DBI<\/a>, but after investigating the <a href='http:\/\/dev.mysql.com\/doc\/mysql\/en\/mysql.html'>client options<\/a>, I found another way.  <code>mysql -u user -B -ppass -e 'select * from my_data' databasename<\/code> gives you nice tab delimited output.  I&#8217;ve used this with the mysql 4 client; since I couldn&#8217;t track down the mysql 3 manual, I&#8217;m not clear what version of the mysql client supports these features.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here are three items that I&#8217;ve found useful in the past, but aren&#8217;t worth an individual post because of their triviality. 1. Sometimes file archives are only available in .zip [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-119","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts\/119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/comments?post=119"}],"version-history":[{"count":0,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts\/119\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/media?parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/categories?post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/tags?post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}