Making toolbar buttons that respond to longpress in Titanium for iOS

Turns out making a toolbar button that responds to longpress is not as straighforward as you'd think. Just making a button, and listening for longpress event doesn't work once the button is put in a toolbar.  The trick turns out to be you need to put the button in a view. Here's the example code:

The only drawback to using this method is you can't use 'systemButton' styles.

 

Metafield tip: don't bother with Modify when updating Products

Been spending some time looking into metafields.

Here’s something worth knowing to make your life easier.

When updating metafields on a product, turns out Create acts like Modify or Create if it doesn’t exist. As long as the namespace and key match an existing metafield on the product, the value will be updated, otherwise it will be created.

If you know of a good case when to use the Modify call, I’d love to hear it.

Shopify Meet/Drink Up

Do you work with the Shopify e-com platform? You in Montreal? Then join us (myself and Dave Lazar) for a meet & drink! We’ll be talking shop, trading tips, and other general silliness. All are welcome.

Where: The Irish Embassy - 1234 Rue Bishop

When: 6PM, Thursday September 1, 2011

RSVP’ing is not necessary, but a quick note @meeech on twitter or via email to let me know you’re planning to come will be helpful (to gauge how much space we need)

(Should note this is in no way an official Shopify event. Just some local users having a meetup.)

new project: MailChimp TextMate Bundle

Started a project a back in Feb - a MailChimp TextMate bundle.

Overall, it's gone pretty well - I levelled up in bundle making.

the project also couldn't have come at a better time - i'm working a lot with MailChimp on the campaign side, so I will be using the bundle a fair bit day-to-day. 

This post up on the MailChimp blog has some good getting started instructions.

Anyone interested in writing a textmate bundle with php should have a look at the code - I'm pretty happy with the structure of this one.

I already begun using some of the code & lessons on the shopify tmbundle. :)

 

update

Just a little update. Been a bit silent over here, since pretty deep in Happy Stuff these days.

Happy Stuff is based around the idea that many of us have things we're done with, but they still work, so we don't want to throw them out. Someone else could use that stuff, you just don't know who. Happy Stuff is the easiest way to connect you to people in your area that want that stuff.

Come on over and check it out. We're in closed testing right now, but sign up and we'll let you know when we letting people in your area in. You can also follow @happystuff for updates.

my leaving godaddy strategy

I've decided on how I will leave godaddy, and spread out the pain.

While initially, I thought I would just transfer everything in one shot, that's actually pretty inconvenient.

So in the end, I'm just turning off auto-renew, and will transfer each one as they come due. I'll be using Domainsatcost.ca, who have been working out well for me.

Lost on how to transfer from godaddy? When you looking at your domains detail page, you need to click Manage next to the Locked status, and unlock it, then Send By Email for the Authorization code.

encyclopedia brown and the case of the opus card that stopped working like normal

A few days ago, my opus card stopped working while in my wallet. I started having to take my card out, and for the life of me, couldnt figure out why.

This has been going on a few days now, and was driving me crazy. At first I thought it was the opus card. Even though i only take it out once a month, it was somehow degrading. 

I realized today the problem was a new credit card. It must have some sort a chip in it that the turnstiles are picking up, so they get confused.

I just turned my cc 180º and it seems to have resolved the problem - the chip in the cc was overlapping the position of the opus card, and even though the cc was further away from the turnstile, it was still being picked up.

case closed.