I used to play a Pokémon MMO.
I would walk around with only a Pidgey in my party. Noobs would then check my party and seeing that I only had a Pidgey with me, thought that I was a super easy target, so they would challenge me in a fight. Little did they know that my Pidgey was actually over level 30 and would totally wipe their ass, which it did, every single time. They only had level 3-15 pokémons.
Tuesday, November 22, 2011
Sunday, November 20, 2011
Calcium carbonate hoax
I made this blog entry in case someone googles "calcium carbonate hoax" or something similar in an attempt to know more about this omg awful conspiracy.
Someone posted this on facebook : http://www.angioprim.com/Learnmore/Toxiccalcium.asp?RepID=33732 telling everyone to be careful not to eat anything that contains calcium carbonate and that calcium bicarbonate is the good and healthy stuff you should look for.
Turns out they are full of shit. (Whowoudathought)
Someone posted this on facebook : http://www.angioprim.com/Learnmore/Toxiccalcium.asp?RepID=33732 telling everyone to be careful not to eat anything that contains calcium carbonate and that calcium bicarbonate is the good and healthy stuff you should look for.
Turns out they are full of shit. (Whowoudathought)
Thursday, November 10, 2011
How do YOU wipe?
I just had a revelation.
Blind people cannot know when they are done wiping.
O_O
I was reading the website of a restaurant where meals are served in complete darkness. One of the questions in the FAQ was whether the bathrooms are lit or not. Then it came to me. Blind people cannot see when they are done wiping. So it got me wondering... HOW DO BLIND PEOPLE KNOW WHEN THEY ARE DONE WIPING?
So I googled away... what I found out was... disturbing. o_o
Blind people cannot know when they are done wiping.
O_O
I was reading the website of a restaurant where meals are served in complete darkness. One of the questions in the FAQ was whether the bathrooms are lit or not. Then it came to me. Blind people cannot see when they are done wiping. So it got me wondering... HOW DO BLIND PEOPLE KNOW WHEN THEY ARE DONE WIPING?
So I googled away... what I found out was... disturbing. o_o
Sunday, November 06, 2011
IRC - Get the user count of a channel in plain text with Denora/PHPDenora/
You need to have Denora and PHPDenora installed and running on your IRCd for this to work.
It works like this : http://stats.yournetwork.net/usercount.php?channel=%23youchannel
In PHP, you will probably want to use something like this :
The great thing with this is that you can now use some PHP to serve your users a user count badge for their channel.
See also : http://whatnwhat.blogspot.com/2011/11/irc-get-user-list-of-channel-in-json.html
<?php
define("_VALID_PARENT", 1);
require ("libs/phpdenora/init.php"); //You have to provide the proper path to the file here
$link = sql_db_connect();
$channelcount = sql_fetch_array(sql_query("SELECT currentusers FROM ".$denora_chan_db." WHERE channel LIKE \"".mysql_real_escape_string(trim($_GET["channel"], '"'))."\";"));
if ($channelcount[0] == "") {
$channelcount[0] = 0;
}
header("Content-type: text/plain");
echo $channelcount[0];
sql_db_close($link);
?>
define("_VALID_PARENT", 1);
require ("libs/phpdenora/init.php"); //You have to provide the proper path to the file here
$link = sql_db_connect();
$channelcount = sql_fetch_array(sql_query("SELECT currentusers FROM ".$denora_chan_db." WHERE channel LIKE \"".mysql_real_escape_string(trim($_GET["channel"], '"'))."\";"));
if ($channelcount[0] == "") {
$channelcount[0] = 0;
}
header("Content-type: text/plain");
echo $channelcount[0];
sql_db_close($link);
?>
It works like this : http://stats.yournetwork.net/usercount.php?channel=%23youchannel
In PHP, you will probably want to use something like this :
$usercount = file_get_contents("http://stats.yournetwork.net/usercount.php?channel=%23yourchannel");
The great thing with this is that you can now use some PHP to serve your users a user count badge for their channel.
See also : http://whatnwhat.blogspot.com/2011/11/irc-get-user-list-of-channel-in-json.html
IRC - Get the user list of a channel in JSON with Denora/PHPDenora
You need to have Denora and PHPDenora installed and running on your IRCd for this to work.
It works like this : http://stats.yournetwork.net/userlist.php?channel=%23yourchannel
In PHP, to get the file content and parse it into an array, you will need to do something like this :
To loop through the array, you will need to follow this logic :
If you want to access only a single attribute per user, like for example, if you only want to list the nicknames, you can access the attribute directly by its name by doing something like this :
See also : http://whatnwhat.blogspot.com/2011/11/irc-get-user-count-of-channel-in-plain.html
<?php
define("_VALID_PARENT", 1);
require ("libs/phpdenora/init.php"); //You have to provide the proper path to the file here
$link = sql_db_connect();
echo json_encode(denora_who_in_channel(mysql_real_escape_string(trim($_GET["channel"], '"'))));
sql_db_close($link);
?>
define("_VALID_PARENT", 1);
require ("libs/phpdenora/init.php"); //You have to provide the proper path to the file here
$link = sql_db_connect();
echo json_encode(denora_who_in_channel(mysql_real_escape_string(trim($_GET["channel"], '"'))));
sql_db_close($link);
?>
It works like this : http://stats.yournetwork.net/userlist.php?channel=%23yourchannel
In PHP, to get the file content and parse it into an array, you will need to do something like this :
$userlist = json_decode(file_get_contents("http://stats.yournetwork.net/userlist.php?channel=%23yourchannel"), true);
To loop through the array, you will need to follow this logic :
foreach ($userlist as $userinfo) {
foreach ($userinfo as $infokey => $infovalue) {
//echo $infokey . " : " . $infovalue . ", ";
}
//echo "\n";
}
}
//echo "\n";
}
If you want to access only a single attribute per user, like for example, if you only want to list the nicknames, you can access the attribute directly by its name by doing something like this :
foreach ($userlist as $userinfo) {
echo $userinfo["nick"];
}
See also : http://whatnwhat.blogspot.com/2011/11/irc-get-user-count-of-channel-in-plain.html
Subscribe to:
Posts (Atom)