Tumblr tag list

In two of my tumblr blogs, Type Nesting and Looking For Glove there is a list of all the tags used in that blog. Tumblr offers a way to generate such list via its api, but the api is very slow and there is always a need for more then one call.

Below is a PHP script that makes crates a js file that has all the tags in a sorted array that looks like this

var tagsArray=new Array("BLACK","BLUE","CAPITAL A","CAPITAL B");

I have a cron that runs it every couple of hours on my server.


$myblog="lookingforglove"; //     modify this line     http://myblog.tumblr.com
$filename=$myblog.".js";
$stack = array();
$done=false;
$postsCounter=0;
$chunk = 50;
while (!$done)
{
	$url="http://".$myblog.".tumblr.com/api/read/json?callback=json&num=".$chunk."&start=".$postsCounter;
	$ch = curl_init($url);
	curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,5);
	curl_setopt($ch, CURLOPT_HEADER, 0);
	curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
	$buffer = curl_exec($ch);
	curl_close($ch);
	if (empty($buffer))
		{
    	$done=false;
		}
	else
		{
		$buffer= substr($buffer, 5,-3);
		$json_o=json_decode($buffer,true);
		$jpost= $json_o['posts'];

		foreach  ($jpost as $jpostItem)
			{
			$jtags=$jpostItem['tags'];
			foreach  ($jtags as $jtagsItem)
				{
				array_push($stack,strtoupper($jtagsItem));
				}
			}
		}
	$postsCounter=$postsCounter+sizeof($jpost);
	if (sizeof($jpost)< $chunk)   ///no more posts
		{ $done=true;}
}
$stack=array_unique($stack);
asort($stack);
$longString="var tagsArray=new Array(\"";
$longString.=implode("\",\"", $stack);
$longString.="\");";

$fp = fopen($filename, 'w');
fwrite($fp, $longString);
fclose($fp);

The javascript used in the theme where I want to have the tags.

 

Sir John Lithgow

Nation, it is not a secret that am a big fan of the Colbert report. As a matter of fact I professed that fandom in a form of a graphic. There is a comment in clip below that made me laugh very hard, Stephen Colbert is referring to the actor John Lithgow as sir John Lithgow. I like the fact that writers of the show choose to knight him because it worked well with the comic bit.

Last week the knighthood of a banker was stripped. He was not accused of a crime, He just made some bad business decisions that led to a loss of jobs. This odd incident reminded me of the clip above. For some reason in other times when John Lithgow was mentioned in the colbert report he was not referred to as Sir which made me sad. I think it fits with the shows hyper patriotic sentiment to mock the English monarchy. I wonder why the writers did not call him sir again. My wild guess is that John Lithgow objected. Why do I think that? Gut feeling.

 

A flow of people.


This is a variation on the videos I have done with motion trails.What is different here is that the length of the “trail” varies over time.

 

Meme Revival

In October 30, 2008 I took this photo and added it to the then popular flickr group called money shots where it got a lot of views.

lill_prince
Recently that meme got a pseudo political spin in the form of a tumblr blog called The 99% Behind The Money and I noticed that the image was getting more traffic.

 

Thrill the world 2011

A million years ago learned about an attempt to to break the world record of the most people participating in the same dance. The dance is thriller by Michael Jackson and it is a global annual event called Thrill The World. I tried to organize a local contingent at the time.
This year the good people of the Happy Collaborationists are organizing it. It should be cool.
This year the good people of the

 

My response to spam from China

I have a passive-aggressive response. I let the Chinese police take care of the spammers for me. When I get spam in Chinese, I reply:

Thank you for sending me the encoded message about how you are planning to overthrow the Chinese government and assassinate top communist party officials.

P.S. Mao sucks.

I originally wrote this few months ago. A friend commented on Facebook how annoyed she is by Chinese spam that is not even in English. I put it here as a public service.

 

The Rahm Emanuel portrait stays in Andersonville

As I walking to take down the Lego portraits show in Sunburst Flowers, I passed by a toy store that had Lego in the window. Of course it caught my attention. The sign next to it read “Toys Et Cetera wants your creations for its 3rd annual Lego window display.” There is a theme for the display and it is Chicago of the future. The portrait of the future mayor is perfect for it.

The display will be unveiled on April 12th and will go on until May 13th. Toys Et Cetera is at 5311 N. Clark map.

 

Shows

1) My Lego portraits are on display at Sunburst Flowers in Andersonville at 5337 N. Ashland map. It is going on until April 1st.
2) I am taking part in the Bike Winter Art Show at CUAS at 2229 S. Halsted map. I am showing the bike salute photos I took at the World Naked Bike Ride last June. The closing event is on March 25th.

 

Elysees Champs

Here is the song Champs Elysees by Joe Dassin edited backwards. I found a better way to streamline the process using ffmpeg and a simple bash script. The ideal way would be a script for audacity. I am working on it.
Elysees Champs by Dubi Kaufmann. Other SoundCloud works by Dubi Kaufmann.

 

Bike Salute installation in The Loop

Photos from my Bike Salute project are on display in a storefront in The Loop. They will be on display until mid-December. The display is part of Pop-Up Art Loop.

 
 
 
© 2012 Dubi Kaufmann’s Blog