Friday, April 27, 2012

Main St. Fort Worth Arts Festival was a lot of fun and very inspiring.

Spend an hour trying to get window.resize, scrollWidth, Height, etc. to work. Then, jQuery light went off - $(window) cured all.

Once again, I was looking for a solution that jQuery plugins didn't seem to easily solve. I needed popup window in the "lightbox" style that would contain content of different types, and that lightbox layer could be called directly from another function. It was easy as pie to call it from an event (click,load, etc.). Well, to be clear, it was the removal of the layer that needed to be called from another function. The creation of the layer would be called by a click, but the lightbox would need to show a "loading" animation until a certain AJAX function was complete, and then the layer would need to go away.

I started to write it from scratch and got real far with it, but "lightbox" had already done all the dirty work. I just didn't know how to call the "_finish()" function without using some kind of a click type of event. Just calling that function directly didn't work.

I then tried to just removed all the layers created by the lightbox script by dynamically changing of the DIVs to "display:none". This worked as far as removing the layers, but when I clicked to show the layers again, then were all jacked up.

I went by to my home-grown script. First I was having trouble with Safari. It didn't want to extend my popup background layer. I had go through a series of browser specific checks to get the right code for FF, IE, Sarari, etc. Finally, it was working in all browsers. But wait....

I noticed that if I resized the window, it didn't reposition the content and the background did not fill in if I extended the height of the browser window.

First off, jQuery took care of the getting the browser dimensions: $(window).width();, $(window).height();.

Then, it took care of the reizing issue: $(window).resize.

So I created a function that on the resizing of the window, it removed the layers, then recreated them off of the new dimensions. Pretty slick.


Wednesday, April 25, 2012

I'm not a Google hater by any stretch, but they need to fix this: Google Drive -- do they own your files?

How far do Google Drive's terms go in 'owning' your files?

By | April 24, 2012, 5:52pm PDT
Summary: Google Drive’s terms of service allows you to still own your own files, but grants the company a license to do ‘as it wants’ with your uploaded content.
Within hours of Google launching its new online storage service, the terms and service have come under heavy fire by the wider community for how it handles users’ copyright and intellectual property rights.

After Dropbox and Microsoft’s SkyDrive — the two most popular online storage services on the web — Google was late to the party by a number of years. While Google needed no advertising to drum up support, what may hold back uptake is that as per the company’s terms and conditions, the rights to the files you upload to Google Drive will be passed on to the search giant.
A quick analysis of Google’s terms of service shows how far the search company goes in ‘owning’ your files, and how it can do anything it wants with them.
But there is a small catch. Here’s what the terms say:
Dropbox — terms can be found here:
Your Stuff & Your Privacy: By using our Services you provide us with information, files, and folders that you submit to Dropbox (together, “your stuff”). You retain full ownership to your stuff. We don’t claim any ownership to any of it. These Terms do not grant us any rights to your stuff or intellectual property except for the limited rights that are needed to run the Services, as explained below.”
Microsoft’s SkyDrive — terms can be found here:
5. Your Content: Except for material that we license to you, we don’t claim ownership of the content you provide on the service. Your content remains your content. We also don’t control, verify, or endorse the content that you and others make available on the service.”
Google Drive — terms can be found here:
Your Content in our Services: When you upload or otherwise submit content to our Services, you give Google (and those we work with) a worldwide licence to use, host, store, reproduce, modify, create derivative works (such as those resulting from translations, adaptations or other changes that we make so that your content works better with our Services), communicate, publish, publicly perform, publicly display and distribute such content.
The rights that you grant in this licence are for the limited purpose of operating, promoting and improving our Services, and to develop new ones. This licence continues even if you stop using our Services (for example, for a business listing that you have added to Google Maps).”
The last sentence makes all the difference. While these rights are limited to essentially making Google Drive better and to develop new services run by Google, the scope is not defined and could extend far further than one would expect.
Simply put: there’s no definitive boundary that keeps Google from using what it likes from what you upload to its service.
Having said that, it also states:
“Some of our Services allow you to submit content. You retain ownership of any intellectual property rights that you hold in that content. In short, what belongs to you stays yours.”
According to its terms, Google does not own user-uploaded files to Google Drive, but the company can do whatever it likes with them. ZDNet’s Ed Bott has more.
The chances are Google’s terms will never be an issue — and it is likely over-zealous lawyers making sure Google doesn’t somehow get screwed in the long run by a lawsuit — but it may be enough to push away a great number of entrepreneurs and creative workers who rely on holding on to the rights to their own work.
It always pays to read the fine print.
I asked Google to see if they can shed light on how its terms of service translates in comparison to other, rival services. Google did not respond at the time of publication.

Saturday, April 14, 2012

Nice little bass caught on my trusty Rooster Tail


took the kayak out for a few hours today. it was very windy but I did manage to get across the pond and catch a nice little bass.

Sent from my Droid Charge on Verizon 4G LTE

Friday, April 13, 2012

Lamar Odom Leaves Dallas Wearing a Lakers Tshirt. What a jerk.

After a week full of arguments, getting shut down by the Mavs, removed from Team USA contention and still being married to the biggest Kardashian, Lamar Odom is seen heading “home” at the Dallas airport with a very interesting T-Shirt.  The shirt is a Laker’s championship one.

 1895 391share0share2290

}); }; (function() { var e = document.createElement('script'); e.async = true; e.src = document.location.protocol '//'; document.getElementById('fb-root').appendChild(e); }());

Wednesday, April 11, 2012

Hit LB Houston at lunch, but the trails are still too muddy. It was fun, but couldn't really get going.

I took my mountain bike to the shop yesterday and my back rim was worst
than I though, so I went ahead and purchased a new one ($$$). I also had
the front hub overhauled.

For the first few feet the bike felt awesome. It was gliding along like it
was new again. Then I hit the mud. It was mud flinging for the next few

It wasn't the ride I was expecting, but still fun to get out there.