Getting username from Facebook id

Posted: Sunday 17 March 2013

If you have a facebook id or username, you can get their username or facebook id respectively by appending it to the end of this link:
https://graph.facebook.com/

EWOULDBLOCK error code in Windows, c++

Posted: Friday 15 March 2013

You should be using WSAEWOULDBLOCK instead of EWOULDBLOCK if you're compiling c++ with
#include <winsock.h>

Redundant code‏

Posted: Thursday 14 March 2013

There's a few jokes going around on the internet poking fun at the fact that object-oriented syntax is redundant and a complete waste to implement on languages that aren't usually considered as objected oriented.


Take for example this project here: https://github.com/Herzult/SimplePHPEasyPlus


So basically, completing a simple arithmetic operation would be longer and more painful then what it should be.

$numericResult=1+1

Dynamically getting data from multidimensional JArrays

Posted: Friday 8 March 2013

JSON.net is an incredibly horrible library to parse through arrays. JArray.parse is one way JSON data can be parsed, but it cannot be accessed in a manner which other programming languages, like javascript can.
Here's JSON code from a project I'm currently working on:

{"game": {"turn": 0, "state": [["s9", "h0", "c10", "d11", "s4", "0"], ["s7", "s1", "d2", "c3", "s10", "0"]]}}
It's valid JSON, you can check it for yourself here: http://jsonlint.com/