Earthquake’s in MD, Mobile Rocks, and welcome to this brave new world, Alivia Rowan Page :-)

Jul 16
2010
VN:F [1.3.1_645]
Rating: 0.0/5 (0 votes cast)
0 months, 16 days, 17 hours, 53 minutes remaining.

Earthquake in MD?

A 3.6 scale earthquake hit western Maryland around 5 o clock this morning. Wow! If that’s not 2012ish! Won’t hear the end of this one for 2 years ;-) Doesn’t sound to have caused much harm? I called my mom, who lives in Hagerstown, MD – she’s A-OK. She did some of her growing up in California, and reminded me that a 3.6 is more like my entire family running through the house, but the damage is about the equivalent of whatever we knock down along the way. Still… my guess is the quake was headed for DC but got stuck in traffic.

I also read a few reports of people relating the vibration to a low hanging jet flying over houses from the air base outside Martinsburg, WV, just miles from where I grew up, in Harpers Ferry, WV – they do that sh*t all the time.

I suppose it’s nothing to fret over.

Mobile Technology Rules

In other news, I posted an article in April 2008 about my thoughts on what’s the next big wave of the internet. Just a few short years later… mobile apps are cool, mobile apps are fun, they make their money from… EVERYONE!

The concept of bringing the offline world online is taking off – and cell devices are a major player in the wave. Not just cell phones, but iPads, and Kindles ( I want one ), and Nooks too! I’ve wanted to explore this avenue for a long time, but haven’t really had the time. Though during my child-care leave recently ( call out to Lockerz for being so amazing in this department ), I got into a little reading and experimenting with iPhone + Android development, and DAMN is this stuff cool – and surprisingly, a lot simpler than you would think. Wish I had more time to learn and write about how exciting it is to be learning for the joy of learning – maybe I’ll get some opportunities when things settle with the kids.

My Baby Girl – Alivia Rowan Page

Last, and most importantly, I’d like to welcome my second daughter to the world – as a blog post for her has been overdue by 3 weeks now. Alivia Rowan Page, born June 24th, 2010 at 6 lbs and 3 ounces – our newest bundle of joy. Welcome to this brave new world – be strong baby girl, and don’t stop smiling for nothing, you have a big and bright life ahead of you!

A little bit of wisdom from your daddy:  “Always love, never stop learning, and never turn your back on anything or anyone – you can always make a difference – make many!”.  Gabi, Mommy, and Daddy will always be here for you. I love you — Daddy.

Life in Pittsburgh during the G20 Summit

Sep 24
2009
VN:R_N [1.3.1_645]
Voting Closed. Rating: 0.0/5 (0 votes cast)
Troopers in Lawrenceville

Troopers in Lawrenceville

What a strange day! This may be a tad ignorant, but I really don’t know what the G20 is truly all about. I’ve only caught bits and pieces from other people – needless to say, it’s a big event. The office is just a few blocks from the convention center where the meetings are being held, and there are more cops, S.W.A.T. teams, and state troopers marching the streets than a small army.

Driving around, we’ve been behind vehicles tagged “diplomat” more than once, hit a few road blocks, and she had the unfortunate event of protesters banging on the car down Penn Avenue. I’ve caught rumors of tear gas being used, our office building was on lock down towards the end of the day, and on the way home the radio said President Obama was making an appearance in Oakland, just around the area we were staying for the last 2 months!

So, WTF is going on?! Ha… something good better come out of this ( aside of the awesome food Lockerz provided today to keep it’s employees safe during lunch ). We had to drive through Wilkensburg to get home, and that’s just no treat – cab driver once told us that Wilkensburg doesn’t get city funding, so it’s falling apart… crack whores calling out to their suga daddies – no lie. Though, given my ignorance to the world changing event downtown, perhaps I’m no better, ha.

Attached is a picture Drew Zhrodague’s mom took on her way for coffee.

PHP Microtime Tutorial

Aug 28
2009
VN:R_N [1.3.1_645]
Voting Closed. Rating: 0.0/5 (0 votes cast)

Every once in awhile one has to write a script that is concerned with execution time. Consider the following snippet that utilizes epoch seconds to calculate execution time:

$start_time = microtime(true);
usleep(200000);  // sleep 2 seconds
$end_time = microtime(true);

echo 'Execution time:  ' . ($end_time - $start_time) . "\n";

Pretty straight forward and has many useful applications. By using built in php functions, `microtime` and `usleep`, it’s easy to benchmark operations, and even set time limits on operations. Consider the next snippet which will halt execution after 30 seconds:

$max_execution_time = 30;
$start_time = microtime(true);

while (1) {
    if ((microtime(true) - $start_time) > $max_execution_time)) {
        break;
    }

    //Do something
}

One more clever application, is to pace your scripts. Such may be useful when concerned with load:

while (1) {
     usleep(10000);  // sleep 1/10th of a second
    //Send a request... query a DB... do something
}

You can do quite a bit with these two functions. It never hurts to read up on microtime, and usleep. Enjoy!

Visit Other Sites!

Find me on other sites...

Archives

All entries, chronologically...

Pages List

General info about this site...