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 working
on a real time video mustachification script!
Keep on sending your scripts.

- Matt


On Thu, Dec 1, 2011 at 5:27 PM, Matt Aimonetti wrote:

> Hey guys,
>
> In case you missed the tweet
> http://twitter.com/macruby/status/142271489058672640 here is a quick
> MacRuby challenge:
>
>- modify this face detection script http://gist.github.com/1417463 to
>make it "mustachify" passed images.
>
> The exercise is interesting since it makes you work outside of Xcode and
> with some low level APIs to create something hopefully cool.
> Bonus points for creative changes of the challenge (use glasses instead of
> a mustache or both or whatever you come up with).
>
> - Matt
>
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


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: https://gist.github.com/1442573
> 
> I know others are still working on it, and I even heard of someone working on 
> a real time video mustachification script!
> Keep on sending your scripts.
> 
> - Matt
> 
> 
> On Thu, Dec 1, 2011 at 5:27 PM, Matt Aimonetti  
> wrote:
> Hey guys,
> 
> In case you missed the tweet 
> http://twitter.com/macruby/status/142271489058672640 here is a quick MacRuby 
> challenge:
> modify this face detection script http://gist.github.com/1417463 to make it 
> "mustachify" passed images.
> The exercise is interesting since it makes you work outside of Xcode and with 
> some low level APIs to create something hopefully cool.
> Bonus points for creative changes of the challenge (use glasses instead of a 
> mustache or both or whatever you come up with).
> 
> - Matt
> 
> ___
> MacRuby-devel mailing list
> MacRuby-devel@lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Noob q: Press any key to cancel

2011-12-07 Thread Rob Ista
Thx Terry, that might be an idea .. the calculations are not that diff so i 
could rewrite them in Obj-C to keep  the task object small … or the other way 
around: i'll create a task with a panel and pipe the cancel to the process
Rob 


Could you wrap the process into an NSTask and use pipes to communicate?


Terry
On 6/12/2011, at 11:43 AM, Rob Ista wrote:


 Hi, i have broken my braincells while trying to find a simple solution for 
interrupting a potentially long running calculation loop. 
 A key event seems to wait until the app gets back to the main loop, a 
system("stty raw -echo") just hangs, gets and read.non-block either wait or 
want a enter to follow any character. I couldn't get it working with a 
notification either. I just can't find it :) .. Any help appreciated .. tnx, Rob

 ___

 MacRuby-devel mailing list

 MacRuby-devel at lists.macosforge.org
 http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

• Previous message: [MacRuby-devel] Noob q: Press any key to cancel
• Next message: [MacRuby-devel] #welovemacruby
• Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the MacRuby-devel mailing list
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Noob q: Press any key to cancel

2011-12-07 Thread Daniel Westendorf
Just throwing this out there in case you haven't found it yet: GCD via
Dispatch.

https://github.com/gunn/Dispatch

dw

On Wed, Dec 7, 2011 at 8:56 AM, Rob Ista  wrote:

> Thx Terry, that might be an idea .. the calculations are not that diff so
> i could rewrite them in Obj-C to keep  the task object small … or the other
> way around: i'll create a task with a panel and pipe the cancel to the
> process
> Rob
>
>
> Could you wrap the process into an NSTask and use pipes to communicate?
>
>
> Terry
> On 6/12/2011, at 11:43 AM, Rob Ista wrote:
>
>
>  Hi, i have broken my braincells while trying to find a simple solution
> for interrupting a potentially long running calculation loop.
>  A key event seems to wait until the app gets back to the main loop, a
> system("stty raw -echo") just hangs, gets and read.non-block either wait or
> want a enter to follow any character. I couldn't get it working with a
> notification either. I just can't find it :) .. Any help appreciated ..
> tnx, Rob
>
>  ___
>
>  MacRuby-devel mailing list
>
>  MacRuby-devel at lists.macosforge.org
>  http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
>• Previous message: [MacRuby-devel] Noob q: Press any key to cancel
>• Next message: [MacRuby-devel] #welovemacruby
>• Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> More information about the MacRuby-devel mailing list
> ___
> MacRuby-devel mailing list
> MacRuby-devel@lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Noob q: Press any key to cancel

2011-12-07 Thread Maik Kempe
Nice, thanks for the link.

On Dec 7, 2011, at 5:08 PM, Daniel Westendorf wrote:

> Just throwing this out there in case you haven't found it yet: GCD via 
> Dispatch.
> 
> https://github.com/gunn/Dispatch
> 
> dw
> 
> On Wed, Dec 7, 2011 at 8:56 AM, Rob Ista  wrote:
> Thx Terry, that might be an idea .. the calculations are not that diff so i 
> could rewrite them in Obj-C to keep  the task object small … or the other way 
> around: i'll create a task with a panel and pipe the cancel to the process
> Rob
> 
> 
> Could you wrap the process into an NSTask and use pipes to communicate?
> 
> 
> Terry
> On 6/12/2011, at 11:43 AM, Rob Ista wrote:
> 
> 
>  Hi, i have broken my braincells while trying to find a simple solution for 
> interrupting a potentially long running calculation loop.
>  A key event seems to wait until the app gets back to the main loop, a 
> system("stty raw -echo") just hangs, gets and read.non-block either wait or 
> want a enter to follow any character. I couldn't get it working with a 
> notification either. I just can't find it :) .. Any help appreciated .. tnx, 
> Rob
> 
>  ___
> 
>  MacRuby-devel mailing list
> 
>  MacRuby-devel at lists.macosforge.org
>  http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
> 
>• Previous message: [MacRuby-devel] Noob q: Press any key to cancel
>• Next message: [MacRuby-devel] #welovemacruby
>• Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> More information about the MacRuby-devel mailing list
> ___
> MacRuby-devel mailing list
> MacRuby-devel@lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
> 
> ___
> MacRuby-devel mailing list
> MacRuby-devel@lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Maik Kempe
Br∑αkíηg £ímíτs | impossible = POSSIBLE

 -- 

Br∑αkíηg £ímíτs
  r...@breaking-limits.com
  breaking-limits.com

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


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 is quite possibly the most awesome application of MacRuby I have ever 
seen.   The hat needs to be scaled a bit (I passed it a picture of Mr. Spock 
and the hat was too small) but otherwise...  Perfect!   This HAS to be enhanced 
to handle video next, it just has to! :-)

- Jordan

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


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
> and does more than simply mustachify your pics:
> https://img.skitch.com/20111207-k74i8ih5191xgstus4tk9ps3qq.jpg
> Source code: https://gist.github.com/1442573
>
>
> That is quite possibly the most awesome application of MacRuby I have ever
> seen.   The hat needs to be scaled a bit (I passed it a picture of Mr.
> Spock and the hat was too small) but otherwise...  Perfect!   This HAS to
> be enhanced to handle video next, it just has to! :-)
>
> - Jordan
>
>
> ___
> MacRuby-devel mailing list
> MacRuby-devel@lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
>


-- 
Pavlos Vinieratos
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] Single Column Table View with Core Data backed Custom Cell View?

2011-12-07 Thread Haris Amin
Hey Guys,

I have a Core Data entity called Email all set and ready to go. Following
Matt's example from the book, I was able to create a regular old
NSTableView and bound the Core Data Email entity's values to each column in
the tableview. This works great. What I'm now trying to do is make a single
column tableview where each row will display a custom cell view constructed
from my Core Data Email object.

With me so far? :) Basically, if you look at the Mail app from OS X Lion,
I'm trying to create that side bar single column tableview where each email
message has a custom table cellview showing the from, to, subject, and
summary for each Core Data email values. With a regular old tableview this
is easy, I'm just a little lost as to how to get a single column table view
to render a custom cell view that uses Core Data binding to match my Email
NSArray Controller.

This is a symbolic representation of what i'm trying to achieve:

NSTableView ( 1 column)
  > NSColumn (bound to my CoreData Email entity)
 > NSTableCellView ( I want this to show the actual text fields for the
bound coredata object for that row i.e. email.to, email.from,
email.subject, etc.)

A little lost and any help would be much appreciated. Thanks :)

Haris
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Single Column Table View with Core Data backed Custom Cell View?

2011-12-07 Thread Terry Moore
I think you nspredicates.… depending on the columns in the table. Think SQL.…

Terry Moore

On 8/12/2011, at 8:31 PM, Haris Amin  wrote:

> Hey Guys,
> 
> I have a Core Data entity called Email all set and ready to go. Following 
> Matt's example from the book, I was able to create a regular old NSTableView 
> and bound the Core Data Email entity's values to each column in the 
> tableview. This works great. What I'm now trying to do is make a single 
> column tableview where each row will display a custom cell view constructed 
> from my Core Data Email object.
> 
> With me so far? :) Basically, if you look at the Mail app from OS X Lion, I'm 
> trying to create that side bar single column tableview where each email 
> message has a custom table cellview showing the from, to, subject, and 
> summary for each Core Data email values. With a regular old tableview this is 
> easy, I'm just a little lost as to how to get a single column table view to 
> render a custom cell view that uses Core Data binding to match my Email 
> NSArray Controller.
> 
> This is a symbolic representation of what i'm trying to achieve:
> 
> NSTableView ( 1 column)
>   > NSColumn (bound to my CoreData Email entity)
>  > NSTableCellView ( I want this to show the actual text fields for the 
> bound coredata object for that row i.e. email.to, email.from, email.subject, 
> etc.)
> 
> A little lost and any help would be much appreciated. Thanks :)
> 
> Haris
> ___
> MacRuby-devel mailing list
> MacRuby-devel@lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel