Author Archive

Apple Push Notifications and Ad Hoc

// March 25th, 2011 // 1 Comment » // Objective-C, Programming

This will be very short. I learned something the hard way today. When you’re developing an iOS app, and you’re sending it out to testers as an Ad Hoc app, to use push notifications you have to use a Production certificate, not a Development certificate. If you don’t do this, you’re going to find yourself, the developer, the only person able to receive push notifications to your device. Everyone else on the Ad Hoc team will be left wondering what you’re doing wrong.

I’d been using Boxed Ice’s excellent guide on the subject, and they mention the developer identity instead of the production one. That guide is still tremendously useful, just make sure to go through the process of creating certs twice–once for Dev and once for Production!

I gave a talk!

// March 16th, 2010 // No Comments » // Thoughts

Wow. Someone trusted me with a microphone. Just gave a talk at SXSWi called Beyond Scifi, a look at high level natural user interaction concepts, then narrowed down to discuss communal computing. I gave the talk with Colombene Jenner, a fellow Schematic co-worker out in our LA office, and I think it went all right!
I’m going to work on getting the slides and supporting material posted, so keep an eye out for that.
So glad it’s over! I had a great time at SXSW this week, and I’m not looking forward to taking that flight back into the real world tomorrow. But until then, it’s off to the next party!

Expelled: No Intelligence Present

// August 23rd, 2009 // 1 Comment » // Thoughts

Because I apparently hate myself, I just spent an hour finishing up watching Ben Stein’s contemptible excuse for a documentary, Expelled: No Intelligence Allowed. It is a pathetic film told by a vile, dishonest weasel, all about this fabricated “war” between the “science establishment” versus the open minded researchers that are innocently interested in intelligent design. He randomly hops the fence on whether or not ID is about god or not, which he is free to do, I suppose, because he’s fascinatingly incapable of really even trying to define what ID is.

But I digress. After I wasted a part of my life watching this slop, I spent about an hour crafted a review (review, rant, whatever) to post up on Netflix, only to discover upon hitting Send that Netflix has a 2,000 character limit. This is most certainly longer than that. So instead of contain my rage to those bright red pages, I’ll share with my general readership instead. All two of you.

One star is an undeserved compliment to this filthy excuse for a documentary. Ben Stein is a dishonest, plodding, parody of a man seeking any sort of truthful understanding. I say this not to attack Ben Stein personally and baselessly, but to inform any potential viewer of the habits and intent of the film as propped up by the man placing himself in front of the camera and telling the story.

Defying his ridiculous claim to remain logical when Darwinian scientists cannot, Stein frequently relies purely on an appeal to emotion. Hell gleefully make a very strong connection between Darwin and Hitler, never wasting an opportunity to display Nazi footage when he speaks of the atrocities of Darwin’s successors. He questions what the world would be like if PZ Myers world of without religion were to occur. His immediate response is to remind us that it was Darwin that led directly to Hitler, heavily implying that it is Darwin’s (and by natural extension, all of science’s) fault that six million jews were exterminated by one man. The intent is to force the ignorant viewer into believing that Hitler was the puppet of the real “one man” that started it all, Charles Darwin. Let us not forget that religion has led directly to countless atrocities throughout all human history, and shows no sign of slowing down. (This isn’t the same ridiculously dishonest speculation in which Stein engages. Read your history. Read your religion! It’s pretty bloody! Good luck finding any of that in this unbiased documentary.) Yes, humans are violent, territorial, xenophobic things. Guess what? So are apes! So are most other animals! Evolution at work, giving the world better and better killing machines that are better and better at surviving! Its an ugly truth, sure, but there’s hardly any doubting it if one is able to take a real, honest look at the world.

It’s hard to discuss Ben Steins vile attempt at an unbiased portrayal of this one-sided, woe-is-the-creationist war between “Darwinians” and the open-minded in a calm and composed way because he so cheerfully ignores his own demand that we be logical and above the “establishment’s” bias. He appears utterly incapable of this, and he proves it time and time and time again. What he is capable of is making purely emotional claims, backed by his confidence that you will be frightened by what you see, because you are so stupid, so brainless that you will see all that Nazi imagery, see his forced tears, hear all about his “needing time to think,” hear all his holocaust tales, that you will forget the blatant logical inconsistencies of his argument (or never realize they’re there in the first place) and be convinced that science is some world-wide old boys network that will bar any sort of open minded inquiry. This also requires a willful ignorance of both the process and the history of science, a method of understanding nature that is steeped in self-doubt. That’s quite simply how science works, no matter what Stein’s monotone droning insists. It’s hard to discuss this logically because Stein so brazenly refuses to be logical. His arguments are rarely anything but emotional, so that is what he threatens to reduce me to. I’ll save that for another review, but take this from my ranting: If you are looking for a movie that takes an honest, balanced look at the idea of “intelligent design” and especially at Darwin’s theory of evolution (a theory that has itself continued to mature and evolve since it first hit the science scene), this is absolutely, one hundred percent, NOT your documentary. It’s offensive to even label it a documentary. This film is only good for the hopelessly religious, because it will certainly galvanize them in their institutional ignorance, and the logical-minded masochist (like myself apparently) who feels like watching something so shockingly evil that you’ll feel inspired to write your first-ever movie review.

Hopefully there aren’t many like the latter, because I feel filthy just adding one to the count of fools duped into watching this whole thing. Please, Ben Stein, stop doing what you’re doing. No more religious films dishonestly disguised as documentaries, and no more implying that a scientist is a closet Nazi. This film is an embarrassment.

VideoDisplay Improvements

// April 3rd, 2009 // 1 Comment » // Actionscript 3, Flash, Flex, Programming

VideoDisplay has no doubt been the source of many headaches and much wasted time for any developer that has touched it. A lot has been written about it, and here’s my contribution, which is an evolutionary improvement over others’ work. It’s a fix that adds video smoothing and a source propert setter that doesn’t break the component and still allow you to set autoPlay. (This will all make sense in a minute.)

(more…)

A Note on VideoDisplay in Flex

// March 6th, 2009 // No Comments » // Actionscript 3, AIR, Flash, Flex, Programming

I just wasted an hour trying to track down the cause of a VideoDisplay-related bug, and I’m posting the very simple solution here to hopefully save one or two people (including future Daniel) some headaches.

(more…)

Customizing FLVPlayback

// March 3rd, 2009 // 19 Comments » // Actionscript 3, Flash

Here’s a quick tutorial showing you how to beef up FLVPlayback’s SeekBar, adding in a play progress bar and a full-bar hit area to make scrubbing quite a lot easier than finding that little tiny arrow Adobe seems to think is enough.

(more…)

JVM and Flex Don’t Play Nice

// August 22nd, 2008 // No Comments » // Flex, Programming

I ran across an interesting problem today. I tried to create a new workspace with the intent of cleaning up my Flex environment. It’s getting pretty cluttered between client work and personal projects and random experiments. So I hit Switch Workspace / Other and type in the name of a location that doesn’t exist yet, assuming it would go ahead and create that Experiments folder for me. Which it did, right as Flex went down in flames.

Every time I try opening Flex Builder up again, I was immediately met with a daunting error. JVM Terminated! All from switching my workspace? Obviously this isn’t normal behavior. A week ago, I was required to change my machine’s version of Java SDK to work with a simulator required for my current project. The computer was using what seemed to be a special version of 1.5, and the simulator app required 1.6. In OS X, there is a sym link at /System/Library/Frameworks/JavaVM.framework/Versions called Current. Originally, that was pointing at something called A, and I don’t know what that means, because in the same directory there’s also the 1.5 sdk, and they look pretty much the same. That was switched to 1.6.0 and the simulator worked. I switched (and when I say “I” here, I mean our resident Java guy) that sym link from 1.6 back to 1.5, still getting the error. Then I switched it back to A, and all is well.

So! Lesson learned. Flex Builder will give me problems if I mess with Java. Seems like kind of a bad thing, though, if ever I want to do any Java programming, right?

Playing With Perspective.

// August 3rd, 2008 // 1 Comment » // Geekery

Browsing through some old photos, I noticed that there was a pair taken centimeters apart from one another, and flipping through them rapidly created that pseudo-3d effect (turns out that’s called wiggle stereoscopy). Which got me thinking about perspective, which got me thinking about stereoscopy, which got me to open Photoshop and start putzing around.

So here’s my first perspective test:

My first perspective test.

The cluster of two circles at the top is pretty straightforward. The two more subtle and uncertain things I spent more time playing with were the background and the sphere at the bottom. The background cloud has a bit of distortion that Should make the bottom clouds seem closer, but I’m not really sure if that’s happening. And for the sphere, I’m trying to play with lighting to make it seem like you’re looking at the same object from the perspective of each individual eyeball. Because the lighting is on the left side of the ball, your right eye should be seeing a little less of it. Playing with this has been weird, as the further I take the light from the same spot, the more confused the image gets. I’m not sure what I’m doing wrong yet.

Ok, so I got all into the wiggle stereoscopy idea after typing all this up, so I decided to go ahead and learn a little more about Photoshop. Yes, folks, I have clearly caught up with the rest of the internet. I’m coding like it’s 1997, and here I present you with my first ever animated .gif. Enjoy.

My desk! In wigglevision!

Hallelujah

// July 23rd, 2008 // No Comments » // Thoughts

Painfully good song.

And that is my emo moment for the month.

Resizing ViewStack

// June 25th, 2008 // No Comments » // Actionscript 3, Flex


Warning: array_keys() [function.array-keys]: The first argument should be an array in /nfs/c01/h13/mnt/12290/domains/themathiseasy.com/html/blog/wp-content/plugins/devformatter/geshi/geshi.php on line 3643

Warning: Invalid argument supplied for foreach() in /nfs/c01/h13/mnt/12290/domains/themathiseasy.com/html/blog/wp-content/plugins/devformatter/geshi/geshi.php on line 3643

Warning: array_keys() [function.array-keys]: The first argument should be an array in /nfs/c01/h13/mnt/12290/domains/themathiseasy.com/html/blog/wp-content/plugins/devformatter/geshi/geshi.php on line 3651

Warning: Invalid argument supplied for foreach() in /nfs/c01/h13/mnt/12290/domains/themathiseasy.com/html/blog/wp-content/plugins/devformatter/geshi/geshi.php on line 3651

Warning: array_keys() [function.array-keys]: The first argument should be an array in /nfs/c01/h13/mnt/12290/domains/themathiseasy.com/html/blog/wp-content/plugins/devformatter/geshi/geshi.php on line 3654

Warning: Invalid argument supplied for foreach() in /nfs/c01/h13/mnt/12290/domains/themathiseasy.com/html/blog/wp-content/plugins/devformatter/geshi/geshi.php on line 3654

Warning: array_keys() [function.array-keys]: The first argument should be an array in /nfs/c01/h13/mnt/12290/domains/themathiseasy.com/html/blog/wp-content/plugins/devformatter/geshi/geshi.php on line 3643

Warning: Invalid argument supplied for foreach() in /nfs/c01/h13/mnt/12290/domains/themathiseasy.com/html/blog/wp-content/plugins/devformatter/geshi/geshi.php on line 3643

Warning: array_keys() [function.array-keys]: The first argument should be an array in /nfs/c01/h13/mnt/12290/domains/themathiseasy.com/html/blog/wp-content/plugins/devformatter/geshi/geshi.php on line 3651

Warning: Invalid argument supplied for foreach() in /nfs/c01/h13/mnt/12290/domains/themathiseasy.com/html/blog/wp-content/plugins/devformatter/geshi/geshi.php on line 3651

Warning: array_keys() [function.array-keys]: The first argument should be an array in /nfs/c01/h13/mnt/12290/domains/themathiseasy.com/html/blog/wp-content/plugins/devformatter/geshi/geshi.php on line 3654

Warning: Invalid argument supplied for foreach() in /nfs/c01/h13/mnt/12290/domains/themathiseasy.com/html/blog/wp-content/plugins/devformatter/geshi/geshi.php on line 3654

Warning: array_keys() [function.array-keys]: The first argument should be an array in /nfs/c01/h13/mnt/12290/domains/themathiseasy.com/html/blog/wp-content/plugins/devformatter/geshi/geshi.php on line 1925

Warning: Invalid argument supplied for foreach() in /nfs/c01/h13/mnt/12290/domains/themathiseasy.com/html/blog/wp-content/plugins/devformatter/geshi/geshi.php on line 1925

Warning: Invalid argument supplied for foreach() in /nfs/c01/h13/mnt/12290/domains/themathiseasy.com/html/blog/wp-content/plugins/devformatter/geshi/geshi.php on line 2290

Warning: implode() [function.implode]: Argument must be an array in /nfs/c01/h13/mnt/12290/domains/themathiseasy.com/html/blog/wp-content/plugins/devformatter/geshi/geshi.php on line 3242

Warning: array_keys() [function.array-keys]: The first argument should be an array in /nfs/c01/h13/mnt/12290/domains/themathiseasy.com/html/blog/wp-content/plugins/devformatter/geshi/geshi.php on line 3265

Warning: Invalid argument supplied for foreach() in /nfs/c01/h13/mnt/12290/domains/themathiseasy.com/html/blog/wp-content/plugins/devformatter/geshi/geshi.php on line 3265

Warning: Invalid argument supplied for foreach() in /nfs/c01/h13/mnt/12290/domains/themathiseasy.com/html/blog/wp-content/plugins/devformatter/geshi/geshi.php on line 3306

Warning: array_keys() [function.array-keys]: The first argument should be an array in /nfs/c01/h13/mnt/12290/domains/themathiseasy.com/html/blog/wp-content/plugins/devformatter/geshi/geshi.php on line 3357

Warning: Invalid argument supplied for foreach() in /nfs/c01/h13/mnt/12290/domains/themathiseasy.com/html/blog/wp-content/plugins/devformatter/geshi/geshi.php on line 3357

Warning: array_keys() [function.array-keys]: The first argument should be an array in /nfs/c01/h13/mnt/12290/domains/themathiseasy.com/html/blog/wp-content/plugins/devformatter/geshi/geshi.php on line 3502

Warning: Invalid argument supplied for foreach() in /nfs/c01/h13/mnt/12290/domains/themathiseasy.com/html/blog/wp-content/plugins/devformatter/geshi/geshi.php on line 3502

This is simply a really quick note, and a reminder that whenever you’re starting to jump through hoops with code in Flex to accomplish something that should already be there, it probably is. Check the documentation.

So ViewStack lets you switch between different containers visually. By default, the ViewStack takes on the height of the first container within it and does not adjust height when it changes what it’s showing. Why this is the default behavior, I have no idea. But there’s a property that address this.

1
resizeToContent = "true"

Done. And duh.