Aug 31

I’ve looked through a lot of flash detection scripts and have found none that allow you to do inline flash detection (ie. test the browser and display either a piece of flash or a substitute graphic on the same page without redirecting the user). Flash 8 will supposedly come bundled with scripts to do this but in the meantime I found some javascript code that did the trick. I’ve finally got around to cleaning it up and wrapping the whole thing in a simple custom tag I call FlashIfYouCan. If you want to see it in action you can check my company homepage here (note that it only plays on the first visit and you’ll have to use the replay button after that). Unfortunately I don’t remember where I got the original javascript from or who the author was (it looks like it might have been generated from Dreamweaver because it uses the “MM_” prefix). There were no copyright notices so hopefully it’s cool to pass it along. Big thanks to whoever it was the created the original source. This is the syntax for calling the custom tag:

<cfmodule template=“FlashIfYouCan.cfm”
pathToNonFlashFile=“/images/headerHome_nonFlash.jpg”
pathToFlashFile=“/images/fishheader.swf”
AltTag=“When searching for a technology consultant, you’ll find there are a ton of fish in the sea.”
width=“785”
height=“183”
bgcolor=“##AFAFAF”
usemap=“##imagemap”
flashVersion=“7”>

It lets you specify the minimum version of Flash you require and will allow you to have an imagemap on the static graphic to emulate the flash controls. The only problem I can see with using this method w/ js is that in the unlikely event that the viewer has flash but has disabled javascript, this tag will display a placeholder graphic instead of the swf which the user COULD play. The likeliehood of this scenario seems pretty rare to me though and the value of not having to do the wacky redirect technique outweighs the downside of having a few people that will falsely fail the flash detection.

On another note, the Arizona CFUG had Greg Rewis from Macromedia at Monday’s meeting talking about Studio 8. We had about 75 people attend in person and another 50 via breeze. The archived meeting is here if you missed it- it was a three hour tour of the features in the new Studio. Flash 8 looks promising, they really improved the video codec and the enhancements for doing encoding from within Flash are nice. Honestly, I don’t get very excited about the alphachannels, live dropshadows via actionscript, and designer-centric enhancements. The most powerful addition to me seems like the CSS support in Dreamweaver. Supposedly MACR had a dedicated team working just to ensure that CSS renders correctly in all browsers and in Dreamweaver and the demo proved that they nailed it. I just hope that team got a fat Maui vacation at the end of that process because that sounds like gruelling work. Apparently MACR is en fuego sales-wise w/ Studio 8- they beat their stated goal within 4 days of accepting preorders. Way to go out w/ bang guys!

© 2005 Lights Out Production – All Rights Reserved Worldwide

Tagged with:
Aug 28

So my creosote bush in my front yard is out of control. Apparently it’s found some untapped source of groundwater and doubled in size enveloping my mailbox. The postman is not happy with this situation and seems to be in silent protest of my shrubbery encroachment because about a week ago he stopped delivering snail mail (no explanation of any kind for the cesation of mail delivery, just an empty mailbox for the past week). The funny thing is, what surprises me most about this incident is not the postman’s silent protest nor the failure to leave notice about the but… the fact it’s had exactly zero impact on my daily life- the only thing that’s really changed is that now I don’t have to stroll to the end of the driveway when I get home to clear out the coupons and creditcard offers to make room for tomorrow’s batch (and the junkmail I get now is still a fraction of what I received before doing the NewDream.org postcards). If it wasn’t for the fact that the new WIRED just came out, I wouldn’t be cutting back my shrub this morning. This little mishap w/ the bush actually IMPROVED the quality of life both for myself and my postman this past week.

So I got to thinking more about this situation. A few months ago I ditched my physical fax machine in favor of using MyFax.com for all fax transmissions. It’s great because in keeping with my desire to be entirely mobile as a consultant, I am now no longer leashed to a physical fax machine – I can go in over a web interface from anywhere and send, receive or call up an old fax. Having this kind of flexibility along with a digital timestamped archive of all fax correspondence is priceless to me – $13/mo is a no-brainer (not to mention I have one less communication device to check since I get faxes emailed as pdf to my gmail and simplicity is always a good thing). My question is this: "Does the equivalent of MyFax exist for snail mail" Please tell me somebody has developed a service where I can get a PO Box w/ Virtual SnailMail of Arizona and direct all my paper crap there. They scan it and give me an RSS feed of what’s clogging my inbox (now their physical inbox). I can setup intelligent SPAM filters (since it’s just another message to me at this point) and minimize the white noise I deal with daily. Does exist, and if not, ummm hello-potential-business-idea…

 

© 2005 Lights Out Production – All Rights Reserved Worldwide

Tagged with:
Aug 23

I recently finished a book called “Object Technology: A Managers Guide” that my friend Max Porges recommended to me. In all it was a very nice high-level overview of what OO technology is and does. It certainly was not a nuts & bolts, syntax-level book (as the name probably confirms) but I still think it has value for programmers in that it reels in all the relevant concepts in a nice summary. I won’t summarize the content of the book as you can get that from amazon, but one example really gave me an “aha” moment and I wanted to cover that here.

I have always been awed by how UPS can successfully route millions of boxes each day to where they need to be. That feat alone is stunning but add ontop of that all the constraints they deal with limitations like physical volume of the various shipping vessles, the weight limitations on their airplanes, the fluctuating price of gasoline, right down to the changing road and weather conditions and blockages that affect their vehicles – how on earth do they seem to roll with the punches so effortlessly and choose optimal routes for each package? If you think about it, it’s an interesting challenge because there are infinite permutations of how to group the boxes and choose the routes and there may be multiple “right answers.” The amount of engineering that must be involved a system that accomodates this level of complexity and variance from that many unpredictable, real-world circumstances is incredible and I’ve had trouble conceiving of where I would even begin if I had to design such a system. That is until I read the above book… It’s actually a mind-blowingly simple concept made possible via OO design once you consider all the packages objects. Here is the key:

Each box is a greedy, self-serving object operating under freemarket conditions and abiding by a predetermined set of rules and priorities as far as tradeoffs with respect to price/speed/reliability. I think of it in terms of that one reality show that seems to be so popular (The Great Race?) -they give ten couples $100 and tell them each that they need to get themselves from starting point A to destination B in 12 hours and await instructions there. The couples have a ruleset they must abide by (both from the show’s producer and from society if you think about it – ie. carjacking should not be a viable option). They come up with the most effective strategy of getting from A to B given their resources at any given moment and this can change, they can even partner with other teams if the circumstances provide that such arrangement would be self-serving and mutually-beneficial. But it’s crucial that all decision-making capability is distributed to the level of the couples. If there were to be one central authority trying to call out the plan for best strategy for every couple at every given moment, first it wouldn’t be interesting but most importantly it would be a completely unmanageable mess.

According to the OO book above, UPS undoubtedly employs a similar strategy in how they route their packages. They make them into greedy, self-serving individuals trying to get to where they need to be as cheaply as possible and as quickly as possible. Let the packages figure out what route is best given the paramters and the conditions. If you expand this concept further, their planes are probably simultaneously calculating tradeoffs for optimal weight loading and space management given the destinations of the packages that have chosen them. And one level further, if UPS is like Southwest Airlines, there is some forethought and forecasting going into their purchase and allocation of fuel and they’ve probably done monte carlo simulations on the value of buying oil futures at any moment. Especiall w/ oil at $60/barrel and with a fleet of gas-guzzling machines as large as theirs, there is no doubt in my mind that they’ve invested considerable resources into building intelligence into the “selfish” fuel reserve object that determines the most effective way to buy and distribute their gas. Of course these are all just speculations on my part and I don’t actually even know anyone who works at UPS- I’m just a big fan of how smoothly their operation always seems to run given the complexity of what they juggle.

Read that book if you get a chance. There are some other examples in there which are equally as inspiring, that one just stood out for me as being the “aha” of the month.

© 2005 Lights Out Production – All Rights Reserved Worldwide

Aug 22

wow. you never realize how much you rely upon services until they’re both down simultaneously…


© 2005 Lights Out Production – All Rights Reserved Worldwide

Tagged with:
Aug 21

I always thought recovering deleted files from harddrives was something left up to forensic specialists you see on CSI and 24. It really is no more difficult than downloading this free program called PC Inspector and walking through their recovery wizard. I had the opportunity tonight to put this little app to use. My friend Tracy recently had her SD memory stick for her digital camera crap out on her during vacation. The flash memory apparently got corrupted when she tried accessing it from her computer. I used a USB SD reader and hooked it up to my PC. The card itself showed only 5 pics on it but after running PC Inspector and stepping through a few screens it was able to identify all 70 missing pics. Unfortunately the way it tries to piece them back together, only about half come out looking pristine. The others look like a mish-mash collage of duotoned photos like a crazy art major would do for a thesis. It would take a bit of photoshop work to restore them all but the data is all there. For a piece of freeware, not a bad little program to keep in mind of you hose your files. You can see below the interface and all the corrupted directories alongside the recovered files (circled in red).

© 2005 Lights Out Production – All Rights Reserved Worldwide
© 2005 Lights Out Production – All Rights Reserved Worldwide

preload preload preload