my life

day to day

Archive for October 11th, 2006

The American Affordability

Wednesday, October 11th, 2006

http://health.msn.com/reports/obesity/default.aspx

The presentation on this link prompted an interesting discussion with my friend Jamie. I really think she pinpointed a core value in America that contributes to our obesity complex. I agree with it so much, I’m gonna pass her words off as my own. In America, we give way too much credence to affordability. The Walmarts and Mcdonalds have taken this concept and perfected it–sucking out every ounce of value and replacing it with high-calorie fructose bs and every other cheaper alternative Americans live for. America is so affordable that even our homeless are plump. Affordability at the cost of poor quality is actually high-cost in disguise. Sure you save 2 bux, but you pay for it with your health.

 

add to del.icio.us    add to technorati favs   email this

PHP Lesson Learned

Wednesday, October 11th, 2006

PHP’s reference implementation is flat out broke. Running their latest release 5.1.6, my server application segfaults randomly all over the place. Using references seemed like the best way to accomplish C/C++ style pointers (think Search Trees, DLinkedLists/LRU Cache, etc..), but at a cost way to high. As previous posts indicate, I’ve spent a great deal of time trying to resolve these conflicts. Ultimately, my solution has been to rely on the implicit refrence-like properties of objects. Objects are passed in a way similar to PBR, but not identical. That is, you can access the object and modify properties of the object, but you can’t modify the object itself. What I mean by that is you can’t change an object of type Foo to an object of type Bar. Using explicit & style references, however, you can….. but you can also blow your leg off like I found out.

add to del.icio.us    add to technorati favs   email this

Image Maddness

Wednesday, October 11th, 2006

javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A(){for(i=0; i<DIL; i++){DIS=DI[ i ].style; DIS.position=’absolute’; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval(’A()’,5); void(0);

add to del.icio.us    add to technorati favs   email this