captainccs

pragmatic
adjective
dealing with things sensibly and realistically in a way that is based on practical rather than theoretical considerations: a pragmatic approach to programing JavaScript.

For a long time I avoided JavaScript as much as possible because it is simply daunting, it’s huge, it’s Object Oriented with hundreds of JavaScript Objects (or so it seems) each with a variety of Methods and Properties. Keeping it all in your head, which could be done with earlier, simpler languages, is just not practical, if it were even possible. Even that master archiver, Google, is not all that useful if you don’t know what you are looking for. Searching for JavaScript solutions on the web can easily turn into a needle in the haystack game.

More…

A lot has been written about zebra striping HTML tables when the table is built using the tag but I could not find any references to zebra striping tables built with CSS tables and I had to build my own.

More…

It is good practice to initialize all php variables and arrays. Until now there was no simple way of doing so. There is a 2003 solution by Amit Arora of digitalamit.com but which relies on GLOBAL variables which is not only a bad idea but supposedly GLOBALS will be deprecated in php version 6. My thanks to Amit for the inspiration!

The core problem is that variables cannot be called by reference. But arrays can and THAT is at the heart of the solution! 

More…

I’ve added a “Software download” section to Software Times. For now it has only two downloads:

The Ultimate PHP Error Reporter
Keeping track of the health of websites is more critical than ever.

Class Smiley php5
An open source smiley script

As time permits I’ll add some other bits of code I have elsewhere.

Enjoy!

Denny Schlesinger

Cream of Potato Soup My Caveman Diet is slowly accumulating recipes while slowly reducing my weight by two or three pounds a year. It might not sound like much but I can also pull the belt tighter meaning the weight is getting lost from the right place which is what counts.

The other day I overcooked potatoes which gave me the idea for a cream of potato soup. If you can make cream soup out of other vegetables, why not potatoes?

More…

MyTweets November 9, 2011

@CommentatorIntl You are tweeting too much, crowding out my other friends!

MyTweets November 8, 2011

EuroClown Sarkozy calls Bibi a liar. The shitty little frog is becoming a pest. http://st26.net/ofdofv Sarkozy tells Obama Netanyahu is a liar

@PeterSinger When will the US accept its responsibility to stop contributing to #ClimateChange? — Hopefully NEVER! AGW is a political scam

MyTweets November 7, 2011

@WBPubs Did you know women now live longer than men in all world regions? — ¿Do they have more fun? That is the question!

@montrose77 Maybe it’s a good sign when poppies are the overarching problem of the world.

Justices hear case of American born in Jerusalem http://st26.net/uwgm47 — If Jerusalem isn’t in Israrel, where is it? On Mars?

My palm tree seeds seem to be sprouting, four of them!

Daylight Saving Time ended Sunday, November 6, 2011. — No wonder the market opens late!

If “Daylight Saving Time ended,” are we now “Wasting Daylight time?” If so, where does that time go?

Palatschinken (Hungarian crêpes) for breakfast. Yummy! The thinner you make them the better they taste.

Sarkozy, why fret about that shitty little continent?

tim-berry:

Malcolm Gladwell in the New Yorker. The Tweaker.

I haven’t read it yet but Steve Jobs in Malcolm Gladwell’s pen must make good reading.

MyTweets November 6, 2011

Israel’s Peres warns attack on Iran getting ‘closer’ http://st26.net/57fiuo — Don’t forget to take out Qom, it’s full toxic mullahs.

@funnypic55 Old people tire… That’s supposed to be funny? Better get a new job buddy before you starve to death.