Code Samples – Preventing simultaneous web updates 3

Code Samples - Preventing simultaneous web updates
Below are some interesting problems and solutions that I have come accross. Problem: In a web based system how to you prevent simultaneous web updates (aka overwrites) to the same record by different users seeing potentially different data. This is a play on the old airline reservation problem you find in older computer science text books. If ...

My first visit to Dominican Republic

My first visit to Dominican Republic
I recently traveled to Dominican Republic (D.R.) . I had previously been to the Bahamas, Cancun and Puerto Rico, so I was curious to visit D.R. as I have several friend who are from there.  It was a fun trip and I had a good experience.  There were a few hiccups, like my gms phone didn’t work with the ...

Open Water Swimming 2012

Open Water Swimming 2012
I took up swimming in earnest at the end of last year. Knowing I had wanted to take part in a couple of triathlons this season, I figured I better work on my swimming. Never having swum as a kid , I was pretty much self taught. Even though I had swum before my freestyle ...

Triathlon Season 2012

Triathlon Season 2012
2012 Triathlon… a return So 2012 was an interesting year for me. After more than 15 years of not competing in any kind of athletics I decide to take up running, swimming and biking and take part in a bunch of races all in one year.. . Crazy .. for sure.. but sooo .. much ...

Sample Code: Quick and Dirty PHP Cache 4

Sample Code: Quick and Dirty PHP Cache
Here’s a variation of a PHP caching script. One of the things I frequently find myself doing for page(s) that take a long time to render, especially if they are a long running process, is to generally save a recent cached page (or more specifically) cached content and serving that up, when I need to have an immediate page ...

Running 2012

Running 2012
So trying to get back into shape I started running in 2011 and continued into 2012.  I had been hoping to lose a few pounds, and restore myself to some sort of decent running shape. S’tarting slowly 5K then 10K   Cherry Blossom 10k .. The “A” race that wasn’t My favorite race has to ...

Improving Distance per Stroke: Me vs. Lil Miss Swim Camp

Improving Distance per Stroke: Me vs. Lil Miss Swim Camp
As I learn more and  improve my freestyle swimming technique, I’ve quickly realized that distance per stroke is a very important concept, that one should focus on and strive to improve. Distance per stroke (DPS for short) is how far each arm stroke propels you through the water. The actual distance is mostly related to ...

Race Report: My first 70.3 Triathlon, Providence RI

Race Report: My first 70.3 Triathlon, Providence RI
This is my race report of the 2012 Amica 70.3 Ironman in Providence, Rhode Island. It was my first attempt at the 70.3 distance, and it was an interesting experience to say the least.  Below is my race report. Pre-race I partly choose this 70.3 because it was one of two (the other is Eagleman which I’m doing this ...

What happens when robots do ALL the work?

What happens when robots do ALL the work?
Everyone is complaining about China and how all of our jobs are going overseas, But the real concern may not be China or any other Asian country, it’s likely to be the inevitable march of technology , automation and how modern civilization in  making the world a “better” place is going to bring a lot ...