Jamaica, April 2015

Create a New Topic / New Post.

ChangeLog » April 23 2015

written by owen, 3 days ago


Apparently coding multi file uploads is not without its fair share of problems. Found a bug in the on iPads which caused me to lose madbull's post. Fixed that in the dead of the night because I could not sleep. I had to check if the file name is the same and added a number to it make each file unique. Not too much work. Unfortunately MB's pictures could not be recovered.

Here is a snippet of php;

//4/23/2015 11:43 PM ipad bug with all the multi-upload files being the same 'image.jpg' name, security feature?
if($value['file_name'] =='' )  //I did not specify a file name 
if( file_exists($tdf) ) //test if file is already there
for($i=1; $i<20; $i++){
        $new_name= $i.'_'.$f['name'];
        $tdf = file_remove_end_slash($td) . '/'. $new_name;
        if(!file_exists($tdf)) {
                $f['name'] = $new_name;
                break; //file is not already there so use this

CSS and media queries

Also I spent a bit of time working on the image grid layouts for smartphones, huge screens and regular monitors. Big monitors still need some work. Everything really does look prettier on an iPad.
Pro tip; If you click on a thumbnail it will pop to full size. All pictures are now 900x900 unless they old.
For backward compatibility sake the CSS for the image galleries is stored in a separate file so that I would not have to update the 30+ old legacy style sheet files that I had previously created. Of course it all works and degrades well in IE 6 and Netscape. CSS is truly a mini language that requires thought and practice or bootstrap.


Screenshots below are from an IOS 8.1.2 ipad of blog posts 2157 and 2159 and the archive and home page.

post a comment or feature request

Pimp Juice » Publix Malta

written by owen, 3 days ago

I did not even know you could make malta from corn syrup. Someone invented a twist off pop cap to save the people from painfully watching someone try to pop a bottle cap with their teeth. Nothing but carbohydrates in this. I got so bored drinking it that I poured some in my corn flakes to give the milk a little flavor.


Logbook » Sober

written by owen, 4 days ago

‎Sometimes I feel that I should have given up by now. Moved on to something else. An apartment in outer space. I am older but basically the same as I was yesterday with a few more gray hairs. The weight of the things I know is growing. Love again, panteth.  Stranger danger. I miss comfort.  Old blossom in a new born flow. What is the point of anything at all?   If not to survive or be entertained  or to strive for some higher goal or suffer. Heights of great men and so forth. Forged in fire and brimstone.

It struck me as strange how familiar the entire place seems. It is as if I had been here 8 months before, died and returned in a dream. The city of endless highways and palm trees growing in the middle of parking lots. It is all very strange compared to everything else that I know. Grass and palm trees, grass and palm tree, super duty trucks. Endless parks, manicured lawns, perfectly round ponds full of ducks. Sidewalks all perfectly straight, grass perfectly cut as if by magic fairies in the night. Paradise.

It all begs to question whether this is all real or part of my imagination. Obviously the people exist is this present place, now and are alive like the trees and the bugs and the ducks so there must be a source of life. I personally have lost all track of time. The day breaks then the night falls. The fine measures of time that I have cultured over the years have been striped away and all I have left are cloudy skies and tired eyes. Sleep time.

make a comment

Lizard Bar, The Split - Caye Caulker, Belize

written by owen

Is it ever too early to have a beer?

posted: 9 days ago,  add comment

Pimp Juice » Tru Juice Guava Pineapple

written by owen, 11 days ago

It rarely disappoints. At frenchman's cove, Portland Jamaica.