I learned about the HTML5 Boilerplate library today. It’s a template for creating a HTML5 website.
Monthly Archives: November 2012
Get The Email Addresses Of All Your Facebook Friends!
I was trying to write a facebook app that grabbed the email address of all of my friends, but it turns out permission isn’t granted in the facebook api to do that. If you’re looking for another way to do this check out this video.
How To: Create a Self-signed SSL Certificate for IIS6
Working through a howto about How To: Create a Self-signed SSL Certificate for IIS6, which hopefully works on Windows XP!
Facebook Graph API
Learning about the User in the Facebook Graph API. One disappointing thing I learned today is that you can’t automatically download the email addresses of your friends via a facebook app.
Raphaël—JavaScript Library
Learning about the Raphaël—JavaScript Library. This can be used to do animations and drawing in HTML documents.
Facebook App Development
I’m getting interested in Facebook App development and have found a few things to read:
Adding an app/page to a Facebook Page
I found this article which said to add a page/app to a Facebook Page you need to hit this URL with your two parameters:
https://www.facebook.com/dialog/pagetab?app_id=YOUR_APP_ID &display=popup&next=YOUR_URL
Update: I was trying to add an ‘app’ rather than a ‘page tab’ and it turned out I needed this:
https://www.facebook.com/add.php?api_key=YOUR_APP_ID&pages
GeoIP with MaxMind’s GeoLite in PHP
You can download the GeoLite Country database from GeoLite Free Downloadable Databases and you can grab the MaxMind GeoIP PHP API.
Once you have the GeoIP.dat file and the geoip.inc PHP file you’re good to go. E.g.:
require_once __DIR__ . '/geoip/geoip.inc';
$gi = geoip_open( __DIR__ . '/geoip/GeoIP.dat", GEOIP_STANDARD );
$country_code = geoip_country_code_by_addr( $gi, $host );
$country_name = geoip_country_name_by_addr( $gi, $host );
geoip_close( $gi );
Apache2 NameVirtualHost Directive
Needed to use the Apache2 NameVirtualHost directive to enable virtual hosts on an IP address for one of my servers. Not entirely sure where the best place to put this configuration directive was I elected to put it in /etc/apache2/httpd.conf — which was empty before hand.
favicon.ico generator
When I need a favicon.ico for my site I use the favicon.cc generator.