I love Satellite Eyes. I’ve been using it for the last few years(?) to beautify my desktop with local Stamen Watercolor Maps.
When I saw these Flickr heatmap tiles by Eric Fischer, I immediately wanted them as my desktop. Here’s how to do it.
Head to the Satellite Eyes preferences.
Click “Manage Map Styles…”
Add a new map style, set the source to:
http://trafficways.org/cgi-bin/tile.cgi?map=flickr-apr10&opt=-cFFFF00%20-M%2037%20-B12:0.0066:1.0119%20-G0.5&z={z}&x={x}&y={y}
Set Satellite Eyes to use the new map.
I’m a big fan of using virtualenv to create isolated environments for Python projects. Here’s how I set everything up on Ubuntu 12.10.
Install pip
sudo apt-get install python-pip
Install virtualenv
sudo pip install virtualenv
Create a dir to store your virtualenvs (I use ~/.virtualenvs)
mkdir ~/.virtualenvs
At this point you are all set to use virtualenv with the standard commands. However, I prefer to use the extra commands included in virtualenvwrapper. Lets set that up.
Install virtualenvwrapper
sudo pip install virtualenvwrapper
Set WORKON_HOME to your virtualenv dir
export WORKON_HOME=~/.virtualenvs
Add virtualenvwrapper.sh to .bashrc
Add this line to the end of ~/.bashrc
so that the virtualenvwrapper commands are loaded.
. /usr/local/bin/virtualenvwrapper.sh
Exit and re-open your shell, or reload .bashrc with the command . .bashrc
and you’re ready to go.
Create a new virtualenv
mkvirtualenv myawesomeproject
to exit your new virtualenv, use deactivate
.
Switch between enviornments with workon
To load or switch between virtualenvs, use the workon
command:
workon myawesomeproject
You can read more about virtualenv here and virtualenvwrapper here. You might also want to look at this very similar (and probably better) python guide post.
Questions?
I love hack days. I usually go into these things with either no idea, or an idea that’s been bubbling in my head and will almost certainly be too ambitious for a day of hacking. Today is the latter, this should be fun.
A few months ago Cal built http://thisismyj.am, a parody of http://thisismyjam.com. This triggered the domain-buying lever in my brain and I wound up with http://thisismycam.com, which has been parked ever since. The sliver of an idea that inspired the domain purchase is a site that hooks up to Flickr, looks at a user’s photos, and builds a profile of all the cameras that they’ve used. Simple, right?
The plan, pull in photos, check exif, pull in camera info from amazon, build some pretty pages to display it all. Keep an eye on http://thisismycam.com for progress.
sudo cp -R /Volumes/MenuCracker\ 2.2/MenuCracker.menu /Library/PreferencePanes/MenuMeters.prefPane/Contents/Resources/
# Close/(re)Launch System Preferences, and enable MenuMeters. Boom.
$ldconfig -v | grep wkhtml
(just to make sure it's loaded)
PHP Bindings:
# Grab php-wkhtmltox "from github":https://github.com/mreiferson/php-wkhtmltox
# Install
Installation:
If development tools aren't installed:
$apt-get install build-essential php5-dev
(ubuntu)
$phpize
$./configure
$make install
Add extension=phpwkhtmltox.so
to php.ini.
P.S. These instructions are for Ubuntu. If you're on centOS, things are more difficult, good luck.
$su
, the password is also "alpine"
# $rm /usr/bin/animate
That's it, on the next reboot you'll only see the standard apple logo, yay! If you want to keep SSH installed on your phone, you should change the default password using passwd, right now.
$curl -o /
Make sure that whatever you chose to name the video ends with the same extension as the original file, in this case .flv
Here's what it would look like for the "Happy Feet" video:
$curl http://int1.fp.sandpiper.net/reuters/t_assets/20061127/a72e...f2943.flv -o ~/Desktop/HappyFeet.flv
This would save the video to my desktop and name it HappyFeet.flv
sudo cat /Library/QuickTimeStreaming/Config/qtgroups
You will see something like:
admin: yourQTSSuser
Now to change the password enter:
sudo qtpasswd yourQTSSuser
You may now go to http://localhost:1220 with your new password and carry on.
©2014 Chris James Martin