Author Archives: stevenbao

DebateNet Demo at BarCamp Boston 2

DebateNet was demoed at BarCamp Boston 2 by Steven Bao this weekend on Saturday, March 17, 2007. This is a picture of the demo.

BarCamp Boston 2 DebateNet Demo

Leave a comment

Filed under DebateNet

By Love of Math.

I have to say, I absolutely adore math. It is probably one of the most amazing things, well, ever. It is obviously applicable in the programming environment – but this is the first time I’ve messed around with math itself.

Debates (38% filled, 24 of 63 speaker positions filled, 39 available)

Here’s the quick ‘n’ dirty script to get it done. Place all of the UIDs inside their own array, and apply this.

<php
$countfilled = count($numfilled);
$countfree = count($numfree);

$total = $countfree + $countfilled;

if ($countfilled != 0 AND $countfree != 0) {
$filledfreeratio = floor($countfilled / $total * 100);
} else { // evade divide by zero
$filledfreeratio = '0';
}
?>
<h2>Debates <span style="color:#999999;">
(<?php echo $filledfreeratio; ?>% filled, <?php echo $countfilled; ?> of 
<?php echo $countfree + $countfilled; ?> speaker positions filled, <?php echo $countfree; ?> available)
</span></h2>

Leave a comment

Filed under General

Transitioning from Old Software

The release date of DebateNet for Northeast JSA is tomorrow, and we’re just putting the finishing touches on the system, adding a few nice icons, as well as transitioning from the old software. It’s simple, but it works:

PETE and DNet

Leave a comment

Filed under DebateNet, Development