Posted by Jonas Elfström
Wed, 03 Feb 2010 22:48:00 GMT
I don't live on that same continent as Ira Glass and because of that I can't listen to the wonderful This American Life on the radio so instead I subscribe to the podcast. Every time a new episode shows up that is the first thing I listen to. There are a lot of great podcasts out there but if I had to choose only one, I think I would go for This American Life (sorry RadioLab, I love you). Recently I learned that the host and producer of the show, Ira Glass, can be found on YouTube talking about storytelling.
It's amazing how he covers how he thinks you should tell a story for a radio/TV show. I recognize how the show executes that narrative but it also doesn't take anything away from the fact the show is excellent and that there are a lot of workmanship and talent put into it.
Ira Glass on Storytelling #1
Ira Glass on Storytelling #2
Ira Glass on Storytelling #3
Ira Glass on Storytelling #4
Posted in Blogging | no comments
Posted by Jonas Elfström
Mon, 19 Oct 2009 19:55:00 GMT
I run this blog on a 9 year old laptop hidden in a cabinet in the living room. It's not a powerful machine but it has been up to the job since I turned it into a web server 7 years ago. This could maybe be one of the last HP Omnibook 4150b still in use, at least it has to be in a very exclusive club of laptops being switched on for the past 7.5 years. Recently I've seen an increase in traffic and especially from Feedfetcher-Google. It so happens that Feedfetcher also shows the number of subscribers.
[19/Oct/2009:22:01:19 +0200] "GET /xml/rss20/feed.xml HTTP/1.1" 304 0 "-" "Feedfetcher-Google; (+http://www.google.com/feedfetcher.html; 4 subscribers; feed-id=7686756599804593322)"
The above is only one out of five different feed-ids because I have both atom and rss and for a short while this blog was at another address. The fifth feed is actually myself subscribing to the comments.
I'm not using FeedBurner so I can't get my statistics from there but I still wanted to be able to see the number of Google Readers of my blog (as far as I can see I only have one other type of subscriber).
Usually I script anything more advanced than a grep in Ruby but this time I made an exception and stayed in Bash.
1
2
3
4
5
6
7
8
9
|
tail -1000 /www/logs/access.log |
grep Feedfetcher |
cut -d ";" -f 4 | sort -u |
while IFS= read -r line
do
tac /www/logs/access.log | grep -m 1 $line
done |
sed 's/^.*html; \([0-9]*\) subscribers.*/\1/' |
awk '{tot=tot+$1} END {print tot}' |
Most certainly this can be optimized in a number of ways. Don't be shy, just tell me!
So what's going on there? Well, first I get the last 1000 rows from my access log and right now my traffic is so low that that is way more than I really would have to. Then I get all unique feeed-ids from the rows containing Feedfetcher. I pipe those to a loop that gets the very last access for each one of them. Then I parse out the number of subscribers with a regexp in sed and count them with awk .
It turns out that I have a whopping number of 14 15 subscribers and I am one of them.
Posted in Blogging | Tags Bash | no comments
Posted by Jonas Elfström
Sat, 15 Nov 2008 01:21:00 GMT
I'm sorry to admit that this blog has died from lack of content and I have absolutely no guarantees to give you that it will ever come alive again.
At least I'm still alive and last night I had some fun with C, Code::Blocks and SDL.
Posted in Blogging | no comments
Posted by Jonas Elfström
Mon, 09 Jul 2007 21:37:00 GMT
Three weeks ago lightning struck nearby. Today my ISP finally tried to change the switch in the central even though I reported back to them that my VSDL modem worked just fine at a friend’s house only a couple of days after my connection died.
Posted in Blogging | no comments
Posted by Jonas Elfström
Fri, 30 Mar 2007 04:59:00 GMT
Now I've got a .com domain, you can reach this blog at http://alicebobandmallory.com/.
Posted in Blogging | no comments