Facebook PHP SDK 5.0 Tutorial

As a guy who prefers to use modern stuff like Node.js instead of crappy old PHP, I´m not really a fan of the Facebook PHP SDK. But sometimes you just need to use it – so here´s a basic tutorial for the current Facebook PHP SDK, they bumped it up a major version so i had to try it. It´s a bit weird that they call it “v4-5.0” though. I knew it would be a problem to use the tag “facebook-php-sdk-v4” on github…

Continue reading

Raspberry Pi for N00bs – Minecraft Server

While the older Raspberry versions (A/B/B+) may not be up for the task, you can easily use the Raspberry 2 for a Minecraft server. At least 5 concurrent users are no problem at all, depending on your bandwidth. My Raspberry 2 did not use more than 300% CPU in a test, which is actually 75% – most of the time it was even below 200% (=50% on the Raspberry 2). It seems that Minecraft scales well over the 4 cores, at least with the version i am using.

Continue reading

Extended Page Access Tokens with CURL

This is a follow up to my article about Access Tokens for Facebook. It is quite easy to generate an Extended Page Access Token with the PHP SDK, but being a big fan of the Facebook JavaScript SDK i try to avoid using the PHP SDK. So this is how you create an Extended Page Access Token with CURL only. Just in case you don´t know about those Tokens: They can be used to post to a Page (as the Page, not a User) or get the Page Insights – but the most important thing is that they don´t have an expiration date! You generate it once, store it in your database and use it forever.

Continue reading

Raspberry Pi for N00bs – Scripting with Python

Although I prefer other languages, here´s a small tutorial to get you started with Python on your Raspberry Pi. The latest Rasbpian distribution already comes with Python so you don´t even need to install anything else. Actually, i even found 2 versions on my Raspberry, 2.7.3 when i just run “python” in the terminal and 3.2.3 with “python3”. Obviously, we will use python3 here.

Continue reading