Re: [MacRuby-devel] MacRuby challenge

2011-12-22 Thread Alan Skipp
I'm glad things are now working as expected. My young cousins should be entertained by it during the Xmas holiday – I'll have to look for some extra disguises; Samuel L. Jackson would certainly be good, though Peppa Pig might be more appropriate. Thanks to Matt, Pavlos and Sean – definitely a g

Re: [MacRuby-devel] MacRuby challenge

2011-12-21 Thread Jordan K. Hubbard
Also confirmed to work on my MacBook Air! Nice Job, Alan! A great example of what can be done (in very few lines at that) in MacRuby! Now I'm off to find the right hairpiece and mustache to turn this into a Samuel L. Jackson-ificator. ;-) - Jordan On Dec 20, 2011, at 7:00 PM, Matt Aimonetti

Re: [MacRuby-devel] MacRuby challenge

2011-12-20 Thread Matt Aimonetti
Confirmed to work on my recent MacBook Pro. - Matt On Tue, Dec 20, 2011 at 11:19 AM, Alan Skipp wrote: > The version below supports 640x480 and 1280x720 resolutions. > > https://gist.github.com/1501766 > > I've also added support for multiple live video Santas. > I'm not keen on my use of class

Re: [MacRuby-devel] MacRuby challenge

2011-12-20 Thread Alan Skipp
The version below supports 640x480 and 1280x720 resolutions. https://gist.github.com/1501766 I've also added support for multiple live video Santas. I'm not keen on my use of class variables to store images, but it was the only way I could think of to prevent repeatedly downloading the same ima

Re: [MacRuby-devel] MacRuby challenge

2011-12-20 Thread Jordan K. Hubbard
Yeah, I figured as much and was able to fix it by making that change right after reporting the bug, but shouldn't we be able to some how make this camera resolution independent? I'm no expert on the AvCapture class, but AVCaptureSessionPresetHigh is another preset which at least does not hard-c

Re: [MacRuby-devel] MacRuby challenge

2011-12-20 Thread Paul Vinieratos
oh.. I changed the preset. replace all 1280 with 640 and all 720 with 480 and check again. On 20 Δεκ 2011, at 15:20, "Jordan K. Hubbard" wrote: > > On Dec 20, 2011, at 11:34 AM, Pavlos Vinieratos wrote: > >> https://gist.github.com/1501117 >> how is that? :) > > Now broken on the MacBook Ai

Re: [MacRuby-devel] MacRuby challenge

2011-12-20 Thread Jordan K. Hubbard
On Dec 20, 2011, at 11:34 AM, Pavlos Vinieratos wrote: > https://gist.github.com/1501117 > how is that? :) Now broken on the MacBook Air. :-) 2011-12-20 14:19:52.115 macruby[4131:60b] *** Can't add because the device does not support AVCaptureSessionPreset1280x720. Use -[AVCaptureDevice sup

Re: [MacRuby-devel] MacRuby challenge

2011-12-20 Thread Pavlos Vinieratos
https://gist.github.com/1501117 how is that? :) On Tue, Dec 20, 2011 at 11:32 AM, Pavlos Vinieratos wrote: > yep. that fixed it for me. > > > 2011/12/20 Alan Skipp > >> OK folks, I think I've fixed the problem. Though I've only got the one >> mac here, so can't be certain. Those interested in an

Re: [MacRuby-devel] MacRuby challenge

2011-12-20 Thread Pavlos Vinieratos
yep. that fixed it for me. 2011/12/20 Alan Skipp > OK folks, I think I've fixed the problem. Though I've only got the one mac > here, so can't be certain. Those interested in animated superimposed > moustaches, please find the code at: > > https://gist.github.com/1469659 > > To attempt a hi-defi

Re: [MacRuby-devel] MacRuby challenge

2011-12-19 Thread Alan Skipp
OK folks, I think I've fixed the problem. Though I've only got the one mac here, so can't be certain. Those interested in animated superimposed moustaches, please find the code at: https://gist.github.com/1469659 To attempt a hi-definition facial appendage, use the following settings (appropri

Re: [MacRuby-devel] MacRuby challenge

2011-12-19 Thread Pavlos Vinieratos
there is something fishy here.. imac 27 with the isight of 2011 here, and the hack you posted still isn't fixed. 2011/12/20 Steve Clarke > Sounds like a good idea. How about screen size for starters? > > Steve > > On 19 Dec 2011, at 21:34, Jordan K. Hubbard wrote: > > > On Dec 19, 2011, at 8:3

Re: [MacRuby-devel] MacRuby challenge

2011-12-19 Thread Steve Clarke
Sounds like a good idea. How about screen size for starters? Steve On 19 Dec 2011, at 21:34, Jordan K. Hubbard wrote: > > On Dec 19, 2011, at 8:37 PM, Matt Aimonetti wrote: > >> When I tried the live video script, the items weren't properly located >> either. > > Given that "it works on m

Re: [MacRuby-devel] MacRuby challenge

2011-12-19 Thread Jordan K. Hubbard
On Dec 19, 2011, at 8:37 PM, Matt Aimonetti wrote: > When I tried the live video script, the items weren't properly located either. Given that "it works on my machine" and obviously Alan's as well, maybe people should start posting their hardware configurations along with the "it doesn't work

Re: [MacRuby-devel] MacRuby challenge

2011-12-19 Thread Matt Aimonetti
When I tried the live video script, the items weren't properly located either. -m Sent from my iPhone On Dec 19, 2011, at 12:34, Alan Skipp wrote: > Hmm… curious. > The positioning code could certainly do with some refinement, but from my > testing it's close enough for rock 'n' roll, as they

Re: [MacRuby-devel] MacRuby challenge

2011-12-19 Thread Jordan K. Hubbard
FWIW, it works great for me on a MacBook air of fairly recent vintage. The stash even tilts as you tilt your face! Beauty. Sent from my iPhone On Dec 19, 2011, at 16:34, Alan Skipp wrote: > Hmm… curious. > The positioning code could certainly do with some refinement, but from my > testing i

Re: [MacRuby-devel] MacRuby challenge

2011-12-19 Thread Pavlos Vinieratos
no matter which preset i try, the mustache is off by the same distance. could you show me how it's showing up on your mac? or even better, could you add a layer over each eye and mouth, with a bit of color and alpha, like matt's original gist? On Mon, Dec 19, 2011 at 6:37 PM, Alan Skipp wrote:

Re: [MacRuby-devel] MacRuby challenge

2011-12-19 Thread Alan Skipp
The only thing that I can think of which could account for the wrong positioning is the resolution of your webcam/isight. A resolution of 640x480 is assumed in the code, if your webcam is higher resolution then that could explain the discrepancy. Try adding the following line (after initialisin

Re: [MacRuby-devel] MacRuby challenge

2011-12-19 Thread Pavlos Vinieratos
this is what i mean. http://dl.dropbox.com/u/349788/Screen%20Shot%202011-12-19%20at%2017.56.35.JPG On Mon, Dec 19, 2011 at 5:34 PM, Alan Skipp wrote: > Hmm… curious. > The positioning code could certainly do with some refinement, but from my > testing it's close enough for rock 'n' roll, as they

Re: [MacRuby-devel] MacRuby challenge

2011-12-19 Thread Alan Skipp
Hmm… curious. The positioning code could certainly do with some refinement, but from my testing it's close enough for rock 'n' roll, as they say. Perhaps you added the code to an existing project which set-up the window/view/layer slightly differently? If not, then I'm confused also… Al On 19

Re: [MacRuby-devel] MacRuby challenge

2011-12-19 Thread Pavlos Vinieratos
the mustache is off even in your original gist. am i right? or is this some kind of weird setup where its works on your mac and not on mine.. On Mon, Dec 19, 2011 at 4:22 PM, Alan Skipp wrote: > Hi, > Could you create a new gist with your additions and post a link to it. > I'll then take a look

Re: [MacRuby-devel] MacRuby challenge

2011-12-19 Thread Alan Skipp
Hi, Could you create a new gist with your additions and post a link to it. I'll then take a look and see if I can discover the problem. It could be something to do with setting the anchorPoint on the CALayer, but that's just a wild guess at the minute. Al On 19 Dec 2011, at 13:42, Pavlos Vini

Re: [MacRuby-devel] MacRuby challenge

2011-12-19 Thread Pavlos Vinieratos
hello alan. i was playing around with your gist, but the glasses and all the extra layers are off. i positioned the layers over the face, but they always stay to the right of the face, and the distance they are to the right, is not even fixed. it comes closer to the face when i move to the left. i

Re: [MacRuby-devel] MacRuby challenge

2011-12-13 Thread Pavlos Vinieratos
cool! i'll check those out. i've couldn't proceed, i had no time this week. but i will try tomorrow. ps: loving the macruby mailing list. i learn new stuff with each question and answer from matt and the rest of the elites! On Tue, Dec 13, 2011 at 4:21 PM, Sean Mateus wrote: > On my gist account

Re: [MacRuby-devel] MacRuby challenge

2011-12-13 Thread Sean Mateus
On my gist account I have a lot AVFoundation examples, I have one on how to record the isight image! https://gist.github.com/1427886 by the way! Pavlos and me tried to make a live moustafication, but we still need some time! ;-) so maybe we can use yours as bases :-) look pretty cool! and from

Re: [MacRuby-devel] MacRuby challenge

2011-12-12 Thread Alan Skipp
A bit late to the moustachioed party. But here is an attempt at the live moustachification problem. The effect is perhaps more like being pursued by a persistent tache, rather than wearing a tache. Those with more powerful hardware (or less inclination to move around in front of the camera) may

Re: [MacRuby-devel] MacRuby challenge

2011-12-08 Thread Sean Mateus
Hi Pavlos, as we talked yesterday on twitter; I hope we can use this code https://gist.github.com/1427886 as basis for the video version your mustachification-script! you can ping me on twitter @seanlilmateus -- Sean Mateus ___ MacRuby-devel mailing

Re: [MacRuby-devel] MacRuby challenge

2011-12-08 Thread Sean Mateus
the bases for the video version are already out there; I hope I will be working with @pvinis the next time to make a video version; I'm quite new on Cocoa & ruby; so I still figuring out how to make a NSBitmapImageRep make out of a CALayer; example on how to use the iSight and record a video w

Re: [MacRuby-devel] MacRuby challenge

2011-12-07 Thread Pavlos Vinieratos
thanks! will work on it tomorrow :) It also happened to one of my pics. I will fix it. see you around. On Wed, Dec 7, 2011 at 11:13 PM, Jordan K. Hubbard wrote: > > On Dec 7, 2011, at 6:01 AM, Matt Aimonetti wrote: > > Congrats to @pvinis for his mustachification script which works quite well

Re: [MacRuby-devel] MacRuby challenge

2011-12-07 Thread Jordan K. Hubbard
On Dec 7, 2011, at 6:01 AM, Matt Aimonetti wrote: > Congrats to @pvinis for his mustachification script which works quite well > and does more than simply mustachify your pics: > https://img.skitch.com/20111207-k74i8ih5191xgstus4tk9ps3qq.jpg > Source code: https://gist.github.com/1442573 That

Re: [MacRuby-devel] MacRuby challenge

2011-12-07 Thread Paul Vinieratos
iSight mustachifiation.. sounds fun :p On 7 Δεκ 2011, at 16:01, Matt Aimonetti wrote: > Congrats to @pvinis for his mustachification script which works quite well > and does more than simply mustachify your pics: > https://img.skitch.com/20111207-k74i8ih5191xgstus4tk9ps3qq.jpg > Source code: h

Re: [MacRuby-devel] MacRuby challenge

2011-12-07 Thread Matt Aimonetti
Congrats to @pvinis for his mustachification script which works quite well and does more than simply mustachify your pics: https://img.skitch.com/20111207-k74i8ih5191xgstus4tk9ps3qq.jpg Source code: https://gist.github.com/1442573 I know others are still working on it, and I even heard of someone