Posts

Mirroring a website where you need to log in first

Mirroring a website where you need to log in first

I needed to make an complete offline copy of a website the other day but was having difficulties as you needed to login to the site to get the content.  Luckily, an firefox add-on plus the wonderful wget came to the rescue.

Export cookies (https://addons.mozilla.org/en-US/firefox/addon/export-cookies/?src=api) is a firefox add-on that lets you export cookies in a format that wget understands.

So here is the procedure:
1) Log in to the website
2) Export the cookies into a cookies.txt file
3) Run wget
wget --load-cookies cookies.txt -mkEp  http://website.com
4) Hey-presto
https://addons.mozilla.org/en-US/firefox/addon/export-cookies/?src=api

This script works really in letting me scrobble to last.fm what I am listening to in google music.

This script works really in letting me scrobble to last.fm what I am listening to in google music.
http://www.danielslaughter.com/projects/google-music-with-lastfm/

Factcheck: How to make bad charts in 7 simple rules | Full Fact


http://fullfact.org/factchecks/top_bad_infographics_charts-29075

I like this. Shame I'm stuck on my iphone 3GS.

I like this.  Shame I'm stuck on my iphone 3GS.

Originally shared by niko pfeifer

3D Tiles Free Parallax Android Live Wallpaper

https://play.google.com/store/apps/details?id=de.nik0laus.tiles3d
http://www.youtube.com/watch?v=ClrK8EywJ4w

"BananaBread is a 3D first person shooter that runs on the web.

"BananaBread is a 3D first person shooter that runs on the web. It takes the Cube 2: Sauerbraten engine, which is written in C++ and OpenGL, and compiles it using Emscripten into JavaScript and WebGL so that it can run in modern browsers using standards-based web APIs and without the need for plugins."

Wow that's amazing.
https://developer.mozilla.org/en-US/demos/detail/bananabread

This is a great illustration of collective phenomena.


Originally shared by Yonatan Zunger

This is a great illustration of collective phenomena. If you look closely, each dot is just moving around in a regular circle; but because the different circles are out of phase with each other, when you back away you see waves steadily moving across the screen. It's a simple demonstration of how large-scale, collective phenomena can emerge from very simple small-scale behavior. Things like this happen all over the place: water waves and sound waves, for example, work in basically the same way, with the small back-and-forth motions of individual molecules leading to compression patterns moving through the air. 

Originally from http://i.imgur.com/ckxfccq.gif , and found via Jane Shevtsov and W Younes.

Painless upgrading of R and bioconductor

Painless upgrading of R and bioconductor

I keep forgetting how to do this, so I thought I would write it down.

* Install new version of R
* Copy old library to new directory e.g. cp -R ~/Library/R/2.15   ~/Library/R/3.0
* Run R
* update.packages(checkBuilt=TRUE, ask=FALSE)
* source("http://bioconductor.org/biocLite.R")
* biocLite(ask=FALSE)