Jim Lawless' Blog


Preserving my Favorite HN Links

Originally published on: Sun, 27 Dec 2009 14:18:05 +0000

One of my favorite web sites is the HackerNews / YCombinator site: http://news.ycombinator.com

The site name may be a bit misleading as the term hacking relates more closely being innovative than the more negative connotations that have been associated with the word.

This particular site acts as a collector for links which may be of interest to the indepedent / start-up software author and/or business-owner. I like the site because of the mix of really good technology links and links about business strategies.

The most worthwhile part of the site for me is the area for comments about each submitted link. I find the conversations there very intelligent and worth reading. Often, I skip the original link and read the comments first.

The question came about today about the rise in posted links which deviate a bit from the site's original themes. ( See: http://news.ycombinator.com/item?id=1016946 )

As the community grows, I'm sure that some links are very important to part of the HN members but not all.

I suggested that we might think about listing our own favorite links. As like-minded members of the HN community locate each other, it's more likely that posts of interest won't be missed as they scroll off to the bottom of the site's list.

For a couple of years, I've kept a simple text file containing the original link with the HN link underneath, followed by some brief, descriptive commentary if necessary.

A sample of the file looks like this:

I wrote an AWK script that will format the above text file into a static HTML file.

hnfaves.awk


# Build static HTML page for HN favorites.
#
# License: MIT / X11
# Copyright (c) 2009 by James K. Lawless
# jimbo@radiks.net http://www.radiks.net/~jimbo
# http://www.mailsend-online.com
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to use,
# copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following
# conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.

BEGIN {
   printf("<html><head><title>HN Faves</title></head></body>\n");
   printf("<font face=\"Comic Sans MS\">\n");
   printf("<h2>Favorite HN links for jim_lawless</h2>\n");
}
NF==0 { printf("<p />") }
NF>0 {
   for(i=1;i<=NF;i++) {
      if(substr($i,1,4)=="http") {
         printf("<a href=\"%s\">%s</a><br />\n",$i,$i);
      }
      else {
         printf("%s ",$i);
      }
   }
}
END {
   printf("</font></body></html>\n");
}

I then constructed a script that will apply the AWK script against my text file of favorites producing an HTML file called hnfaves.htm

The script then FTP's the favorites page to my web site here: http://www.mailsend-online.com/hnfaves.htm

I'll now link to this in my HN profile so that anyone interested can look at the bookmarks that I specifically list for the HN site.

Unless otherwise noted, all code and text entries are Copyright ©2009 by James K. Lawless



Views expressed in this blog are those of the author and do not necessary reflect those of the author's employer. Views expressed in the comments are those of the responding individual.

stumbleupon Save to StumbleUpon
digg Digg it
reddit Save to Reddit
facebook Share on Facebook
twitter Share on Twitter
aolfav More bookmarks


Previous post: FIF Isn't Forth
Next post:A Simple Parser for a Small Command Line Interface


About Jim ...


Click **here**
to try out MailWrench;
a command-line SMTP /
SMTPS (Google Gmail)
mailer for Windows.


Follow me on Twitter

http://twitter.com/lawlessGuy


Recent Posts

A JavaScript REPL for Android Devices

MailSend is Free

My Blog Engine

The October 10th Bug

A Review of Kevin Mitnick's Book Ghost in the Wires

Spellbound by Web Programming

Backlinks to my Blog Posts

Play MP3 Files with Python on Windows


Random Posts

TAP : A Command Processor Library

RSS feed processing with AWK

Book Review : Using Google App Engine

My Blog Engine

Spellbound by Web Programming

Mad Schemes : Learning Lisp via SICP

Play MP3 Files with Python on Windows

My Journey Began with BASIC

Auto Save Images from the Clipboard

Extracting URL Addresses from Text in C


Full List of Posts

http://www.mailsend-online.com/bloglist.htm


Recent Posts from my Other Blog

Remembering Dr. San Guinary

Why Some Web Sites will go Dark on Jan 18th

SNL Superhero Skit

More Ruby Games

My Ruby Game Challenge Entry

Steal this Bookmarklet

Nerd Toys

Learn New Jargon, You Must

Spot the Wiebe

Tech Magazine Glory Days

Book Review : Paull Allen - Idea Man

A 90's Experiment in Online Systems - The U.S. West CommunityLink Service