Consumed by @fieg

As a web developer I almost daily come across interesting stuff. This tumblr serves as a long term memory for quick discoveries and thoughts.
Rather have some interesting in depth articles? Head over to my official blog at www.fieg.nl.

function get_facebook_cookie() { $CI =& get_instance(); $app_id = $CI->config->item(‘facebook_app_id’); $application_secret = $CI->config->item(‘facebook_app_secret’); if(isset($_COOKIE[‘fbsr_’ . $app_id])){ list($encoded_sig, $payload) = explode(‘.’, $_COOKIE[‘fbsr_’ . $app_id], 2); $sig = base64_decode(strtr($encoded_sig, ‘-_’, ’ /’)); $data = json_decode(base64_decode(strtr($payload, ‘-_’, ’ /’)), true); if (strtoupper($data[‘algorithm’]) !== ‘HMAC-SHA256’) { return null; } $expected_sig = hash_hmac(‘sha256’, $payload, $application_secret, $raw = true); if ($sig !== $expected_sig) { return null; } $token_url = “https://graph.facebook.com/oauth/access_token?” . “client_id=” . $app_id . “&client_secret=” . $application_secret. “&redirect_uri=” . “&code=” . $data[‘code’]; $response = @file_get_contents($token_url); $params = null; parse_str($response, $params); $data[‘access_token’] = $params[‘access_token’]; return $data; }else{ return null; } }

Ipod Nano watch 

Sweet!

Announcing jQuery Mobile 1.0 | jQuery Mobile 

jQuery Mobile 1.0 Final released. Nice!

Add Facebook Contact Photos to your iPhone 4S | Maciverse 

How to update your iPhone Contact with Facebook profile pictures.

http://htpcmacmini.blogspot.com/2011/04/switching-mac-audio-output-with.html 

Setting up PHP & MySQL on OS X 10.7 Lion – Rob Allen's DevNotes 

Damnit, we just bought a new thermostat a few months ago. I like this one way more!

(Source: nest.com)

Simple Modal - Another window modal 

Absolute beautiful window/overlay library. I love it!

T(ether) is a novel spatially aware display that supports intuitive interaction with volumetric data. The display acts as a window affording users a perspective view of three- dimensional data through tracking of head position and orientation. T(ether) creates a 1:1 mapping between real and virtual coordinate space allowing immersive exploration of the joint domain. Our system creates a shared workspace in which co-located or remote users can collaborate in both the real and virtual worlds. The system allows input through capacitive touch on the display and a motion-tracked glove. When placed behind the display, the user’s hand extends into the virtual world, enabling the user to interact with objects directly.

How to get the Lexmark x4550 to work of wifi 

scribbledehobble:

Instead of selecting LPD/LPR Host or Printer, I selected AppSocket/HP JetDirect, then the address I entered was: “socket://ip.address”; after that, the rest was straightforward and that got the printer working.

More Information