Last Cigar

Last Cigar

The limited edition P.G.C. Hajenius Aemstelle year cigar is a slim corona made of a delicate Sumatra wrapper, its interior consisting of a blend of tobaccos from Brazil, Indonesia and Cuba.

I enjoyed these during my daily walks. It starts off mild with hits of spice. I found flavors start to intensify and crescendo especially towards the finish. I smoke ‘em to the stub. This cigar packs quite a punch for its petite size. It lasts for about 30 minutes then I usually find myself wanting to smoke another one immediately after LOL. Cheers to my good friends in Holland for helping me see the good things in life. :)

walking

Workaround to rewind HTML5 video on iPhone and iPod

If you’re reusing the same element and changing the “src” property, you’ll see videos won’t properly start from the beginning on iPhones and iPods with Mobile Safari and iOS 5/6. Setting “currentTime” also doesn’t work since it requires the native video player to be in full-screen mode. Sucks huh?

This should work for example (but doesn’t):

$('video')[0].src = "video.mp4";
$('video')[0].currentTime = 0;
$('video')[0].play();

The best workaround so far is to use <source> tags instead of the “src” property. For example:

$('video').html('<source type="video/mp4" src="video.mp4" />'); 
$('video').find('source').last().on('error', function() { alert('some error'); });
$('video')[0].play();

Give it a try.

Great Golfers who Putted from an Open Stance

Jack Nickalus

Jack_putting

18 major wins. Made crucial putts when he needed them the most. Need I say more?

Ben Crenshaw

Two-time Masters champion. Ben is regarded as one of the best putters ever with his long free-flowing stroke.

ben-crenshaw

Bobby Jones

One of the most celebrated golfers of all time. The only golfer to achieve a (pre-Masters era) Grand Slam, winning all four majors, U.S. Amateur, U.S. Open, The Open, The Amateur, in a single season.

In 1924, Walter Travis gave Bobby Jones a brief putting lesson in the locker room of the Augusta Country Club.  As reported in “The Life and Times of Bobby Jones”, by Syd Matthews, it was the putting lesson that “changed the course of Jones’s golfing history”. Travis instructed Jones to “get his feet so close together that the heels almost touch” and changed his grip to a reverse overlap.  Jones acknowledged the resulting improvement in his putting in his autobiography, “Golf is My Game”. -http://travissociety.com/who-was-travis/teacher/

bobby-jones

Dave Stockton Sr.

Two-time PGA Championship winner. Putting might but hard for some people, but it certainly isn’t for Dave.

dave-stockton

Bobby Locke

Coming out of South Africa, Bobby Locke is the winner of 4 Open Championships for a total of 72 career wins. The guy who coined the phrase, “Drive for show, Putt for dough.” Players on the PGA Tour wanted him banned because he was just too good. Gary Player said of him, “One six-foot putt, for my life? I’ll take Bobby Locke. I’ve seen them all, and there was never a putter like him. In the 100 or so competitive rounds I played with him, I saw him three-putt just once. … You had to see it to believe it.”

Bobby actually putts with a closed stance but I thought it worth including in this list. Different strokes for different folks!

Missing any? Leave a comment.

Ember.js – 5 Reasons You Should Avoid It

bug

Let me share with you 5 reasons why you should avoid this “ambitious” and “opinionated” framework.

Reason #1 – Ember Data is not production ready

The first thing you see at https://github.com/emberjs/data.

Screen Shot 2013-07-31 at 1.58.15 PM

Yikes, a cute little gopher holding a construction sign. They say it’s not production ready and won’t be until 1.0. The latest release is currently at 0.13 and there are 193 open issues. It’s supposed to support polymorphic sub-models, but we couldn’t get that working. We also weren’t able to customize foreign key relationships on some of our models. For example we needed to sideload an array of ids in comments (vs the standard comment_ids). The included REST adapter isn’t very customizable and only works for a limited number of use cases.

Reason #2 – Singletons, singletons everywhere

While not technically singletons, things are setup and behave in a very similar manner. You define and throw everything (models, views, controllers, the router, etc) into a single global App namespace. An instance of each object will be instantiated on startup and is retrievable by the name you gave it. For example, App.IndexController would be retrievable by this.get(‘controller.controllers.index’). This is the framework wanting to be opinionated. Dependencies must be defined using the “needs” API. Controller A needs Controller B, Controller B needs Controller C, and so on. If you’ve read about or used singletons before, I think you can see the danger. There is potential for things to get messy real fast where we’d end up with circular dependencies and tight of coupling.

circular-dependency

Reason #3 – Model-View-HUH?

Taken from: http://emberjs.com/guides/controllers/

In Ember.js, templates get their properties from controllers, which decorate a model.

This means that templates know about controllers and controllers know about models, but the reverse is not true. A model knows nothing about which (if any) controllers are decorating it, and controller does not know which views are presenting its properties.

embercoupling

In Ember.js, the views know about their controller. They assume properties on the controller exist in order to draw themselves. While I see how this might make it easier for designers to work on templates, it goes against my intuition as a programmer. Plus I’ve never seen this type of reversed coupling in any other framework. Ember views are even granted DIRECT ACCESS to other controllers within the app (via controller.controllers). Spaghetti anyone?

spaghetti

Reason #4 – Difficult to Test

Because of tight coupling and the many assumptions being made in a typical Ember.js app, it becomes increasingly difficult to test individual parts of your application. You also have to deal with the asynchronous nature of the Ember.js runtime (property bindings and automatic observer method calls) where it can be difficult to track down bugs caused by race conditions. It’s not really the frameworks fault when that occurs, but it does present a new set of challenges.

Reason #5 – Limited Flexibility

Making a single page CRUD app against a standard REST interface? You’ll probably be fine. Need to customize things? You might find you’ll quickly run into problems. If you need customizability, instead of fighting with the framework every step of the way, I recommend looking into other options such as Backbone.js and Require.js.

How to Hide Pond Liner

Ideally, pond liner should be hidden when installed properly. Pond liner is unsightly and can get damaged by the sun’s UV rays. It’s also quite difficult to redo a botched installation (especially after the pond is already filled with water and lots of little critters!).. The better alternative? Use brushwood screening to hide it.

Pond Before

Pond Before

Pond After Hiding Liner with Brushwood Screening

Pond After Hiding Liner with Brushwood Screening

I got a 15 foot x 5 foot roll of brushwood fence screen off eBay which was plenty. After cutting, I tucked them under those rock-shaped patio stones so they stay in place.

More info: http://www.spacefornature.co.uk/defaultb417.html?ftr=Features%5CProjects%5CPonds%5Clinerscreening.xml

Reclaimed Pallet Gardening Ideas

Recently, I’ve been doing a bit of pallet gardening. I find free pallets, break them apart, and put the reclaimed wood to good use. It’s free, eco-friendly, and quite addictive! Here’s a couple ideas that’ll help spruce up your garden:

Reclaimed Pallet Raised Bed

Reclaimed Pallet Raised Bed

Reclaimed Pallet Planter Box

Reclaimed Pallet Planter Box

Reclaimed Pallet Worm Composting Tower

Reclaimed Pallet Worm Composting Tower