Boiledbeans

Drama! Intrigue! Geekiness!

April 1, 2010

So what’s this all abou>X

srikanth @ 12:34 pm, GMT +0000 ( 1270125294 ) Play

Simple one for today, identif—–<!–*Wordpress – comments go here. Theme update might be necessary, please report issues to #!DG+++?>

<?php

require("../../core/bbwikiconn.php");
require("../../core/bbscripts.php");
require("../../core/bbems_ai.php");

$wiki = wikiconn_new_connection("http://en.wikipedia.org");
$keywords_rankup = "h2g2 google nintendo anime perl php python ibm nasa doom rsa meme scifi linux linus game";
$keywords_rankdown = "microsoft";
$desperation_index = 3;  //0 to 11

$script = bbscript_init(3); //Parallel spiders to spawn
$ems = ems_ai_init(EMS_MARKOV, "MapReduceEnh"); //ooh la la
$ems->cluster1.add("66.21.3.42");
$ems->cluster1.add("66.21.3.451");
$ems->cluster1.add("66.21.1.138");
$signal = bbscript_signal_init(3); //exit condition

$keywords_rankup = $ems->grow_related($keywords_rankup);
$keywords_rankdown = $ems->grow_related($keywords_rankdown);

$script->start_spiders(spiderfunc, 3);  //Major black magic, don't bother understanding
$script->wait($signal, 3);

//Does the major search
function spiderfunc()
{
    $found = FALSE;

    while($found == FALSE)
    {
        $article = $wiki->random_page();
        $rank = $ems->analyze($article, $keywords_rankup, $keywords_rankdown);
        if($rank >= 11 - $desperation_index)
        {
            $found = TRUE;
            break;
        }
    }

    if($found == TRUE)
        emit($signal);
}

//Create post
$post = create_post($script->signal);

//Add something to make it look a bit human? -- Is this needed? Utter cruft, remove ASAP.
pad_post($_INTROSPEECHES, $post);

$wp->schedule_post($post, $last_post_date_gmt + 24*60*60);
//$wp->schedule_answer($post, $last_post_date_gmt + 2*24*60*60); - this still doesn't work.
?>

April fools, folks :-)
<?php

require(“../../core/bbwikiconn.php”);
require(“../../core/bbscripts.php”);
require(“../../core/bbems_ai.php”);

$wiki = wikiconn_new_connection(“http://en.wikipedia.org”);
$keywords_rankup = “h2g2 google nintendo anime perl php python ibm nasa doom rsa meme scifi linux linus game”;
$keywords_rankdown = “microsoft”;
$desperation_index = 3;  //0 to 11

$script = bbscript_init(3); //Parallel spiders to spawn
$ems = ems_ai_init(EMS_MARKOV, “MapReduceEnh”); //ooh la la
$ems->cluster1.add(“66.21.3.42”);
$ems->cluster1.add(“66.21.3.451”);
$ems->cluster1.add(“66.21.1.138”);
$signal = bbscript_signal_init(3); //exit condition

$keywords_rankup = $ems->grow_related($keywords_rankup);
$keywords_rankdown = $ems->grow_related($keywords_rankdown);

$script->start_spiders(spiderfunc, 3);  //Major black magic, don’t bother understanding
$script->wait($signal, 3);

//Does the major search
function spiderfunc()
{
$found = FALSE;

while($found == FALSE)
{
$article = $wiki->random_page();
$rank = $ems->analyze($article, $keywords_rankup, $keywords_rankdown);
if($rank >= 11 – $desperation_index)
{
$found = TRUE;
break;
}
}

if($found == TRUE)
emit($signal);
}

//Create post
$post = create_post($script->signal);

//Add something to make it look a bit human? — Is this needed? Utter cruft, remove ASAP.
pad_post($_INTROSPEECHES, $post);

$wp->schedule_post($post, $last_post_date_gmt + 24*60*60);

?>


9 Responses to “So what’s this all&nbsp;abou>X”

  1. udupendra
    4
    4
    7

    … this is how qns are actually set on bb, while Srikanth and Devadutta pretend to be doing a lot of research for the questions.

    … this is also an April Fools prank


  2. Aparna
    1

    Random boiledbeans question generator?


  3. Logik
    1
    5
    3

    April fools’ prank?


  4. the question isn’t visible, i’m getting some weird html garbage


  5. shrik
    10
    7
    9

    You folks automated question posting algo that uses Wikipedia as a source, and that tries to look down its nose at Microsoft-related topics.

    Tweak desperation index as required. Automated answer posts don’t quite work.

    Apri 1st etc..


  6. sandesh

    Is this to fool everyone??


  7. Logik
    1
    5
    3

    The process that goes behind a BB question. although, it ignores the guest questions.


  8. Rogi
    48
    10
    5

    Is it all about Microsoft bashing?
    Googlebombing?


  9. Is that garbage or a trick question?


« Previous « Real Touch « | » Connect me also » Next »