Food for the brain

Fill all empty circles so that the numbers 1 to 4 (for 4x4 puzzles), 1 to 5 (for 5x5 puzzles) etc. appear exactly once in each row, column and chain (More here)

Paint squares as you solve the puzzle and discover a beautiful pixel-art picture: This widget serves B&W Pic-a-Pix puzzles which are updated each week. Also available are code for interactive tutorial installation and text for rules and interactive playing.

Discover by logic alone where the battleships fleet is hidden in the sea: This widget serves Battleships puzzles which are updated every day. Also available are code for interactive tutorial installation and text for rules and interactive playing.

Labels

edit post

Flash ON / Flash OFF on MacBook Air with zsh

Labels: , ,

Wax on, Wax Off. Daniel san. Just got my new shiny MacBook Air, which as part of Steve's escalating War On Flash, comes without a Flash plugin preinstalled. After some googling i was fairly informed of the claims, which I find very easy to believe, that Flash shaves 2 hours of the battery life on typical web browsing, probably due to disregarding the existence of a GPU and being utilized mostly for epileptic seizure inducing advertisements. Being an Ad blocking fanatic, and not having my fine tuned squid proxy when on the go, I decided that living without Flash might not be such a bad idea...

Alas! living entirely without flash means no google analytics and sometimes no other things that i do need occasionally :(

So i whipped up two zsh aliases for flashing ON and flashing OFF.

All you need to do is move the files:

/Library/Internet Plug-Ins/Flash Player.plugin
/Library/Internet Plug-Ins/flashplayer.xpt
to, say:
~/.flash/Flash Player.plugin
~/.flash/flashplayer.xpt
add to your ~/.zshrc :
alias flashon="ln -s ~/.flash/Flash\ Player.plugin ~/Library/Internet\ Plug-Ins/ 2>/dev/null; ln -s ~/.flash/flashplayer.xpt ~/Library/Internet\ Plug-Ins/ 2>/dev/null"
alias flashoff="rm ~/Library/Internet\ Plug-Ins/Flash\ Player.plugin 2>/dev/null; rm ~/Library/Internet\ Plug-Ins/flashplayer.xpt 2>/dev/null"

Now typing flashoff or flashon in your shell (and restarting the browser...) will toggle the flash plugin loading. Flash ON Flash OFF... Daniel San.

2 comments

permalink Delete Comment jan.jungnickel at June 10, 2011 8:24 AM
Have you considered http://clicktoflash.com/?
permalink Delete Comment moonwatcher at June 10, 2011 4:29 PM
I have considered clicktoflash, in fact it was my first attempt. But it fills the pages with it's controls and its browser specific. plus the flash plugin is still loaded just not instantiated on every tag.

My way, you can completely disable it for all browsers. I realize its not exactly a solution for everyone, but for the hackers among you it should be quit elegant.