Beefy Miracle for Fedora 16!

There are a lot of suggestions for Fedora 16’s codename, but Beefy Miracle is perhaps the best (at least the most interesting) I’ve seen on the list.

The campaign for Beefy Miracle is in full swing.

I wonder what that will do for naming Fedora 17 and beyond…

Beefy Miracle is a <blank>, and so is <new name>

Dealing with MCNP mesh data

MCNP mesh tallies generate a lot of numbers to deal with. It all gets written to a formatted text file. Depending on the size and resolution of your simulation, you can easily end up with GBs of data in a single text file.

The first simulations I did, I decided to stuff it all into a database and use Excel to pull out the bits I wanted. It’s a little clumsy and somewhat cumbersome but it works.

As I work with MCNP more, I’ll probably come up with better ways and find better tools to help deal with the data. For now, this is the snippet of PHP code I wrote to stick the data into my DB.


// Mesh simulation data format
// '   Energy         X         Y         Z     Result     Rel Error     Volume    Rslt * Vol'
// '  1.000E+36   -98.000   -98.000   -94.000 8.44128E-19 4.58915E-03 6.40000E+01 5.40242E-17';
// Open the file for reading
if ($fh = fopen($mesh_file,"r")) {
    // Read file line by line
    while ($mesh_line = fgets($fh)) {
        // Split the data and insert into the database
        if ($c=preg_split("/\s+/",$mesh_line)) {
            $x=(float)$c[2]; // x
            $y=(float)$c[3]; // y
            $z=(float)$c[4]; // z
            $result=(float)$c[5]; // result
            $rel_err=(float)$c[6]; // rel error
//          $vol=(float)$c[7]; // volume
//          $result_vol=(float)$c[8]; // result_vol
            $res =& $dbh->query("insert into MeshData 
                (sim_id,x,y,z,result,rel_err) values ($sim_id,$x,$y,$z,$result,$rel_err)");
            if (PEAR::isError($res)) {
                echo ($res->getMessage().' - '.$res->getUserInfo());
            }
        }
    }
}

Spam bots are back

After a year or so of relative peace, the spam bots are back hammering the comment script again. Almost all of them use IP addresses assigned to networks in China.

None of the comment spam is getting posted but it’s still a PITA. Maybe I should set up my own Great Firewall of Not-China.

bah

Bejeweled 2: Palm OS vs Android

I find it interesting that PopCap’s Bejeweled 2 by Astraware runs way way better on my Tungsten T3 than the EAMobile version of Bejeweled 2 on my Motorola Cliq.

Tungsten T3 – Intel XScale 400 MHz

Motorola Cliq – Qualcomm MSM7201A 528 MHz

On my T3, smooth animation, pretty graphics and colours, and very playable.

On the Cliq, it’s pretty darned near unplayable, giving perhaps 3-4 fps, even with killing off a bunch of apps before running. Looks prettier than the T3 though.

Oh, and with the Android version, EA Mobile made the game do a check for updates at launch. If you have no data signal, you have to wait a little bit for it to give up before playing.

Turkey!

The new turkey at in the Mountain Forest exhibit at the Aquarium just about scared the wits out of me today. Walking around the exhibit setting out the food pans as usual, and then there’s this giant black blob flying toward me!

SCATurkey01.jpg

It’s been a couple of months since my last volunteer shift, so the turkey is a new addition. Seems pretty friendly, and followed me around the exhibit.

SCATurkey02.jpg

The barn owl chick that hatched last month has gotten pretty big. Shouldn’t be too long before it’s either transported to a new facility or released into the wild.

BarnOwlChick.jpg