[MacRuby-devel] My new MacRuby Apps are now available in the App Store

2012-10-19 Thread J Silver

Hi MacRuby!

GlobalChat2, client and server, are now available in the Mac App Store

https://itunes.apple.com/us/app/globalchat-2-pro/id566614902?ls=1&mt=12
https://itunes.apple.com/us/app/globalchat-server/id566163288?ls=1&mt=12

Source code is available here: https://github.com/jsilverMDX/GlobalChat2

iOS version coming to the iOS App Store. (gc2-ios)

Windows and Android versions planned.

Everything's in Ruby, MacRuby and Rubymotion so far.

Thanks,
Jonathan Silverman
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macruby-devel


Re: [MacRuby-devel] My new MacRuby Apps are now available in the App Store

2012-10-19 Thread J Silver
Yes. Exactly. Hopefully they are far enough along when I get there that 
it is an easy port.


On 19/10/2012 11:45, Mark Villacampa wrote:

Thats so cool!

Do you plan on using Ruboto and IronRuby for Android and Windows? That would be 
pretty epic :)

Sent from my iPhone

On 19/10/2012, at 20:22, J Silver  wrote:


Hi MacRuby!

GlobalChat2, client and server, are now available in the Mac App Store

https://itunes.apple.com/us/app/globalchat-2-pro/id566614902?ls=1&mt=12
https://itunes.apple.com/us/app/globalchat-server/id566163288?ls=1&mt=12

Source code is available here: https://github.com/jsilverMDX/GlobalChat2

iOS version coming to the iOS App Store. (gc2-ios)

Windows and Android versions planned.

Everything's in Ruby, MacRuby and Rubymotion so far.

Thanks,
Jonathan Silverman
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macruby-devel

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


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


Re: [MacRuby-devel] My new MacRuby Apps are now available in the App Store

2012-10-19 Thread J Silver

thank you @colinta! :D

On 19/10/2012 11:42, Colin Thomas-Arnold wrote:

congratulations!  I remember when you first started this project.  It's great 
to see it taken to completion!



@colinta
colinta.com
github.com/colinta




On Oct 19, 2012, at 12:22 PM, J Silver wrote:


Hi MacRuby!

GlobalChat2, client and server, are now available in the Mac App Store

https://itunes.apple.com/us/app/globalchat-2-pro/id566614902?ls=1&mt=12
https://itunes.apple.com/us/app/globalchat-server/id566163288?ls=1&mt=12

Source code is available here: https://github.com/jsilverMDX/GlobalChat2

iOS version coming to the iOS App Store. (gc2-ios)

Windows and Android versions planned.

Everything's in Ruby, MacRuby and Rubymotion so far.

Thanks,
Jonathan Silverman
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macruby-devel

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


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


Re: [MacRuby-devel] My new MacRuby Apps are now available in the App Store

2012-10-19 Thread J Silver
True true. I hope on using native Ruby technologies to create a smarter 
Chat protocol that is less annoying but well prepared to displace IRC 
usage by coders. For example, the new version allows multi-line saying, 
which is what it sounds like: You can pretty much Ctrl+V any amount of 
code or text. Other main feature is the staple of GlobalChat, which is 
the default server side log-saving and auto scrollback.


On 19/10/2012 11:45, Mark Villacampa wrote:

Thats so cool!

Do you plan on using Ruboto and IronRuby for Android and Windows? That would be 
pretty epic :)

Sent from my iPhone

On 19/10/2012, at 20:22, J Silver  wrote:


Hi MacRuby!

GlobalChat2, client and server, are now available in the Mac App Store

https://itunes.apple.com/us/app/globalchat-2-pro/id566614902?ls=1&mt=12
https://itunes.apple.com/us/app/globalchat-server/id566163288?ls=1&mt=12

Source code is available here: https://github.com/jsilverMDX/GlobalChat2

iOS version coming to the iOS App Store. (gc2-ios)

Windows and Android versions planned.

Everything's in Ruby, MacRuby and Rubymotion so far.

Thanks,
Jonathan Silverman
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macruby-devel

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


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


Re: [MacRuby-devel] My new MacRuby Apps are now available in the App Store

2012-10-19 Thread J Silver
Thank you Mark. I hope that the openness of it will truly help it topple 
IRC once and for all and encourage modability and usage and other 
programming fun.


On 19/10/2012 14:52, Mark Rada wrote:

Congratulations on shipping! The idea of a new TCP level chat protocol is neat.


On 2012-10-19, at 2:22 PM, J Silver  wrote:


Hi MacRuby!

GlobalChat2, client and server, are now available in the Mac App Store

https://itunes.apple.com/us/app/globalchat-2-pro/id566614902?ls=1&mt=12
https://itunes.apple.com/us/app/globalchat-server/id566163288?ls=1&mt=12

Source code is available here: https://github.com/jsilverMDX/GlobalChat2

iOS version coming to the iOS App Store. (gc2-ios)

Windows and Android versions planned.

Everything's in Ruby, MacRuby and Rubymotion so far.

Thanks,
Jonathan Silverman
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macruby-devel

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


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


[MacRuby-devel] New Version of GlobalChat2 Pro on App Store

2012-11-08 Thread J Silver

GlobalChat

https://itunes.apple.com/us/app/globalchat-2-pro/id566614902?ls=1&mt=12

https://itunes.apple.com/us/app/globalchat-server/id566163288?ls=1&mt=12

Written in 100% MacRuby!

Source code: https://github.com/jsilverMDX/GlobalChat2

Bonus: RubyMotion version

Definitely planned and in the works: Android Ruboto version

Not yet planned or in the works: Windows, Linux

Reporting in on IronRuby, it feels like a huge dead end. Takes ages to 
get anywhere and there's no toolchain support in OS X, though it builds 
under Mono. It's incredibly frusterating because it seems that the 
language they built is actually 99% of what it needs to be to be a great 
Ruby next to MacRuby. But there doesn't seem to be an interest (?) even 
by Xamarin, Mono developer, so I've given up on it. Shoes may be used to 
make the Windows or Linux versions. If anyone knows any other cross 
platform Ruby solutions, please let me know!


Thanks and MINASWAN !

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


Re: [MacRuby-devel] New Version of GlobalChat2 Pro on App Store

2012-11-08 Thread J Silver

Thanks Mark! I will have a look.

On 08/11/2012 21:20, Mark Villacampa wrote:

Nice!! Good work.

Looking forward to the report on the current status of Ruboto :)

Another possible windows-linux cross platform could be QtRuby 
http://en.wikipedia.org/wiki/QtRuby




--
Mark Villacampa
Twitter: @MarkVillacampa

On Friday, November 9, 2012 at 6:16 AM, J Silver wrote:


GlobalChat

https://itunes.apple.com/us/app/globalchat-2-pro/id566614902?ls=1&mt=12

https://itunes.apple.com/us/app/globalchat-server/id566163288?ls=1&mt=12

Written in 100% MacRuby!

Source code: https://github.com/jsilverMDX/GlobalChat2

Bonus: RubyMotion version

Definitely planned and in the works: Android Ruboto version

Not yet planned or in the works: Windows, Linux

Reporting in on IronRuby, it feels like a huge dead end. Takes ages to
get anywhere and there's no toolchain support in OS X, though it builds
under Mono. It's incredibly frusterating because it seems that the
language they built is actually 99% of what it needs to be to be a great
Ruby next to MacRuby. But there doesn't seem to be an interest (?) even
by Xamarin, Mono developer, so I've given up on it. Shoes may be used to
make the Windows or Linux versions. If anyone knows any other cross
platform Ruby solutions, please let me know!

Thanks and MINASWAN !

Jonathan Silverman
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org 
<mailto:MacRuby-devel@lists.macosforge.org>

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




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


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


Re: [MacRuby-devel] Cannot compile RJB using MacRuby nightly

2012-11-13 Thread J Silver
MacRuby is an objective-C packaging system. Objective-C + Ruby yes, Java 
no. You won't be able to bundle the jvm in your app. Seek a non-java 
solution to accomplish whatever the gem is trying to do. What is the gem 
called? Perhaps there is an alternative?


On 13/11/2012 00:02, Eduardo G. Melguizo wrote:

Hi all,

I installed macruby-nightly from RVM, installed a few gems such as Nokogiri and 
modified a test XCode project scheme accordingly to get the gems to be known by 
XCode and it was a success!

Now, one additional gem I would like to use have a dependency on RJB, as it 
contains a jar file. But the installation of RJB fails. It has a dependency on 
dl.h, a header that I have seen in MRI 1.9.2 and 1.9.3 inside a 1.9.1 folder 
(/Users/tnarik/.rvm/rubies/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/dl.h), but 
not in MacRuby.

I'm trying to identify it this file is needed at all of it it's part of some 
future MacRuby release. Or if what I'm trying to do here it's impossible and I 
should find an alternative without RJB dependencies.
Any thoughts?

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


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


Re: [MacRuby-devel] Cannot compile RJB using MacRuby nightly

2012-11-13 Thread J Silver
Got it. I am also aware that Nokogiri will compile/install with MacRuby. 
However, this is a poor indicator. Most other stuff seems to not work. 
This is definitely a part of MacRuby that needs work, the C API 
Interface. If you find anything out, please keep us informed.


Thanks,
jsilver

On 13/11/2012 01:25, Tnarik Innael wrote:

Hi,

It's a wrapper to the Saxon XSLT2 processor, which is the only XSLT2 free 
implementation I've been able to find. I'm building it to avoid triggering 
command line processes and to get access to the full API.

RJB in MacRuby is a test to see how much can I reuse and modularize code.

RJB, in reality, it's mostly C, not Java, and there is no problem pacakging 
that along with JAR files for MRI, but I gather that MacRuby maybe have some 
issues compiling native code from gems if they are not coded targeting 
Objective-C specifically. The thing is, as Nokogiri compiled and installed 
successfully, I assumed it would be the aame for RJB.

Regards,
  Eduardo

On 13 Nov 2012, at 08:11, J Silver  wrote:


MacRuby is an objective-C packaging system. Objective-C + Ruby yes, Java no. 
You won't be able to bundle the jvm in your app. Seek a non-java solution to 
accomplish whatever the gem is trying to do. What is the gem called? Perhaps 
there is an alternative?

On 13/11/2012 00:02, Eduardo G. Melguizo wrote:

Hi all,

I installed macruby-nightly from RVM, installed a few gems such as Nokogiri and 
modified a test XCode project scheme accordingly to get the gems to be known by 
XCode and it was a success!

Now, one additional gem I would like to use have a dependency on RJB, as it 
contains a jar file. But the installation of RJB fails. It has a dependency on 
dl.h, a header that I have seen in MRI 1.9.2 and 1.9.3 inside a 1.9.1 folder 
(/Users/tnarik/.rvm/rubies/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/dl.h), but 
not in MacRuby.

I'm trying to identify it this file is needed at all of it it's part of some 
future MacRuby release. Or if what I'm trying to do here it's impossible and I 
should find an alternative without RJB dependencies.
Any thoughts?

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

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

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


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


Re: [MacRuby-devel] Core Dump When Importing 3rd Party gems

2012-11-14 Thread J Silver
Not sure if this will fix, but I see you are running 0.12. That's way 
old. You should upgrade to nightly latest 0.13. Still, don't hear many 
reports of C extensions working beyond the initial Nokogiri, so this is 
something I too would like to see fixed.


Thanks,
jsilver


On 14/11/2012 10:10, Joshua Ballanco wrote:

Hi Jason,

The gems you reference include C extensions, which are *mostly* 
supported by MacRuby, but there are bound to be a few bugs. Do you 
have crash logs for these failures? If so, would you mind filing a 
Github issue with the crash logs attached (or linked as a Gist)?


Thanks,

Josh

On Sunday, October 28, 2012 at 10:22 AM, Templeton Jason wrote:


I've been having some problems importing 3rd party gems.

Basically, this is what happens

#!/usr/local/bin/macruby
framework 'Foundation'
framework 'ScriptingBridge'
framework 'cocoa'

puts "Hola"
require "rubygems"
puts "Imported rubygems"
require "mechanize"
puts "Imported mechanize..."

I will get a Segmentation Fault when I import mechanize, this also 
happens if I replace the import of mechanize with 'nokogiri'. I can 
import sqlite3, but I just can't refer to SQLite3::Database.new, 
otherwise, I get another Segmentation Fault


In other words, I will see from the above code:
Hola
Imported rubygems
Segmentation fault

This is my setup
[ jtempleton macruby_client(master) 01:11 ] macruby -v
MacRuby 0.12 (ruby 1.9.2) [universal-darwin10.0, x86_64]

Mac Version 10.6.8, 2Ghz Core i7, 8GB RAM
$ macgem list

** LOCAL GEMS **
-
mechanize (2.5.1)
nokogiri (1.5.2, 1.5.0, 1.4.3.1)
sqlite3 (1.3.5)
sqlite3-ruby (1.3.3)
--

I was also having the same thing occur on macRuby 0.11

Any suggestions would be greatly appreciated. Thank you!!!

Jason

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org 


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




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


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


Re: [MacRuby-devel] New Version of GlobalChat2 Pro on App Store

2012-11-14 Thread J Silver
Thanks Josh ! Btw, Work on GC2-QtRuby has started and it is looking good 
once I get signals and slots implemented properly I'll post it here. 
BTW, for people interested in working with QtRuby, the correct gem is 
"qtbindings". This will cause QtRuby to work again in Win/Mac/Lin. I am 
hoping to create more documentation for this as I find out more, but 
everything seems to work if you use that gem.


jsilver

On 14/11/2012 12:42, Joshua Ballanco wrote:

Awesome job! Congrats!

On Friday, November 9, 2012 at 7:52 AM, J Silver wrote:


Thanks Mark! I will have a look.

On 08/11/2012 21:20, Mark Villacampa wrote:

Nice!! Good work.

Looking forward to the report on the current status of Ruboto :)

Another possible windows-linux cross platform could be QtRuby 
http://en.wikipedia.org/wiki/QtRuby




--
Mark Villacampa
Twitter: @MarkVillacampa

On Friday, November 9, 2012 at 6:16 AM, J Silver wrote:


GlobalChat

https://itunes.apple.com/us/app/globalchat-2-pro/id566614902?ls=1&mt=12

https://itunes.apple.com/us/app/globalchat-server/id566163288?ls=1&mt=12

Written in 100% MacRuby!

Source code: https://github.com/jsilverMDX/GlobalChat2

Bonus: RubyMotion version

Definitely planned and in the works: Android Ruboto version

Not yet planned or in the works: Windows, Linux

Reporting in on IronRuby, it feels like a huge dead end. Takes ages to
get anywhere and there's no toolchain support in OS X, though it 
builds

under Mono. It's incredibly frusterating because it seems that the
language they built is actually 99% of what it needs to be to be a 
great
Ruby next to MacRuby. But there doesn't seem to be an interest (?) 
even
by Xamarin, Mono developer, so I've given up on it. Shoes may be 
used to

make the Windows or Linux versions. If anyone knows any other cross
platform Ruby solutions, please let me know!

Thanks and MINASWAN !

Jonathan Silverman
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org 
<mailto:MacRuby-devel@lists.macosforge.org>

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




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


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org 
<mailto:MacRuby-devel@lists.macosforge.org>

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




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


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


[MacRuby-devel] A QtRuby Version of The GC2 Client has Been Created

2012-11-22 Thread J Silver

http://cl.ly/image/2w0P1X3H1v3T
http://cl.ly/image/3Q3j260q1s1F

Want to report success using QtRuby library with the qtbindings gem.

Internally, Able to use Signals and Slots through the advanced 
techniques described around the web.


Now have a working version of the chat available in the GlobalChat2 
repository.


https://github.com/jsilverMDX/GlobalChat2/tree/master/gc2-qtruby

It runs on 1.8.7 and 1.9.3. It lacks many of the features of the 
advanced MacRuby client coming soon to App Store.


It uses QtDesigner for the GUI files with the UI loader and should run 
natively on Mac, Windows and Linux.


However, one thing. The MacRuby client is DAYS faster getting a big log 
back from the server than QtRuby, and the signal is obviously not to 
blame. This happens on both 1.9 and 1.8.7. Any ideas?



HAPPY TURKY DAY!

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


Re: [MacRuby-devel] A QtRuby Version of The GC2 Client has Been Created

2012-11-23 Thread J Silver

Thanks Josh !

I can see how this would be a problem with GVL. I was able to get it 
acceptable by limiting log size to 20 messages instead of sending entire 
log mandatorily. Small change allowed the server not to choke the client 
as much. Only reason I read every 1 byte is to try to allow n-sized 
multi-line messages. Not sure how I would add message sizes to the 
protocol, though it could be in like a LENGTH message, then sending the 
longer one and using #read to get the size of the buffer. I think that 
you're right in saying that can speed it up to 100% of the MacRuby and 
RubyMotion speed ( fast ).



On 23/11/2012 05:11, Joshua Ballanco wrote:

On this line:

https://github.com/jsilverMDX/GlobalChat2/blob/master/gc2-qtruby/global_chat_controller.rb#L90

you're reading in a byte at a time. That, combined with the GVL, can 
seriously slow things down. You can either increase the number of 
bytes you're reading each loop or, ideally, use TCPSocket#read with a 
buffer. It's a bit more work to get right, but it should resolve your 
performance issues.


Cheers,

Josh

On Thursday, November 22, 2012 at 11:23 PM, J Silver wrote:


http://cl.ly/image/2w0P1X3H1v3T
http://cl.ly/image/3Q3j260q1s1F

Want to report success using QtRuby library with the qtbindings gem.

Internally, Able to use Signals and Slots through the advanced
techniques described around the web.

Now have a working version of the chat available in the GlobalChat2
repository.

https://github.com/jsilverMDX/GlobalChat2/tree/master/gc2-qtruby

It runs on 1.8.7 and 1.9.3. It lacks many of the features of the
advanced MacRuby client coming soon to App Store.

It uses QtDesigner for the GUI files with the UI loader and should run
natively on Mac, Windows and Linux.

However, one thing. The MacRuby client is DAYS faster getting a big log
back from the server than QtRuby, and the signal is obviously not to
blame. This happens on both 1.9 and 1.8.7. Any ideas?


HAPPY TURKY DAY!

jsilver
___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org 
<mailto:MacRuby-devel@lists.macosforge.org>

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




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


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


Re: [MacRuby-devel] A QtRuby Version of The GC2 Client has Been Created

2012-11-23 Thread J Silver

I've created a ticket about this, 4.0 support planned.

Thanks !

On 23/11/2012 05:11, Joshua Ballanco wrote:

On this line:

https://github.com/jsilverMDX/GlobalChat2/blob/master/gc2-qtruby/global_chat_controller.rb#L90

you're reading in a byte at a time. That, combined with the GVL, can 
seriously slow things down. You can either increase the number of 
bytes you're reading each loop or, ideally, use TCPSocket#read with a 
buffer. It's a bit more work to get right, but it should resolve your 
performance issues.


Cheers,

Josh


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


Re: [MacRuby-devel] A QtRuby Version of The GC2 Client has Been Created

2012-11-23 Thread J Silver
Yes QtRuby works great. I didn't have any success bundling on OS X. I 
tried Platypus but it didn't work. QtRuby doesn't seem to have any 
packager. However, there are reports that it works with Ruby-OCRA on 
Windows to make an exe. I think that when used with OCRA it will make an 
exe with all gems and a Ruby.


Jon

On 23/11/2012 13:35, Mark Villacampa wrote:

Cool! :)

I'm glad you found QtRuby useful, I might actually be the best option for 
cross-platform ruby GUI apps :)

BTW, how big is the executable on each OS? Does it bundle ruby? This is my main 
concern about MacRuby :/

Sent from my iPhone

On 23/11/2012, at 18:54, J Silver  wrote:


I've created a ticket about this, 4.0 support planned.

Thanks !

On 23/11/2012 05:11, Joshua Ballanco wrote:

On this line:

https://github.com/jsilverMDX/GlobalChat2/blob/master/gc2-qtruby/global_chat_controller.rb#L90

you're reading in a byte at a time. That, combined with the GVL, can seriously 
slow things down. You can either increase the number of bytes you're reading 
each loop or, ideally, use TCPSocket#read with a buffer. It's a bit more work 
to get right, but it should resolve your performance issues.

Cheers,

Josh

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

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


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


[MacRuby-devel] GlobalChat Gem

2012-11-24 Thread J Silver

gem install globalchat

https://rubygems.org/gems/globalchat

Should work on Mac, Windows and Linux. On Linux you need a lot of 
dependencies but it will work.


sudo aptitude install build-essential bison openssl libreadline5
  libreadline-dev curl git-core zlib1g zlib1g-dev libssl-dev vim
  libsqlite3-0 libsqlite3-dev sqlite3 libreadline5-dev libreadline6-dev
  libxml2-dev git-core subversion autoconf xorg-dev libgl1-mesa-dev
  libglu1-mesa-dev cmake libqt4-dev


If you're really crazy to try it

And I was able to achieve a degree of success in Windows with Ruby OCRA 
bundler, the EXE can be found here:


https://github.com/downloads/jsilverMDX/GlobalChat2/GlobalChat2-Windows.zip

Sources are in the main GlobalChat2 repository on GitHub

Domo

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


Re: [MacRuby-devel] MacBacon problem

2012-11-30 Thread J Silver

Wow, didn't even know 1.9 required "rubygems" by default! Thanks!

On 30/11/2012 10:22, Joshua Ballanco wrote:
Do you have a "require 'rubygems'" in your script? Unlike Ruby 1.9, 
MacRuby doesn't automatically load RubyGems by default.


On Friday, November 30, 2012 at 8:11 PM, stephen horne wrote:

Thanks Daniel, you were right - I'd gem installed it. I've now gem 
uninstalled it and tried with macgem, but whilst that claims to 
install it, I get a Gem::LoadError when I try to use it:


$sudo macgem install mac_bacon
Successfully installed mac_bacon-1.3
1 gem installed


and then try:

$macbacon my_class_test.rb


I get:

/usr/local/bin/macbacon:18:in `': Could not find mac_bacon
(>= 0) amongst [ParseTree-2.1.1, RubyInline-3.11.3,
ZenTest-4.8.2, addressable-2.2.8, autotest-4.4.6, bacon-1.1.0,
bouncy-castle-java-1.5.0146.1, bundle-0.0.1, bundler-1.0.22,
cheat-1.3.0, choice-0.1.6, dbi-0.4.5, debugger-1.2.2,
debugger-linecache-1.1.2, debugger-ruby_core_source-1.1.5,
deprecated-2.0.1, diff-lcs-1.1.3, fuzzy-string-match_pure-0.9.3,
gem-man-0.3.0, git-1.2.5, hoe-3.2.0, htty-1.4.0,
jruby-openssl-0.7.7, launchy-2.1.0, lolcommits-0.1.5,
lucene-0.5.0.beta.1, mime-types-1.19, net-ftp-list-3.2.3,
net-sftp-2.0.5, net-ssh-2.5.2, plugin_manager-1.5, rack-1.4.1,
rack-test-0.6.2, rb-appscript-0.6.1, rb-fsevent-0.9.2,
rbx-require-relative-0.0.9, rdebug-0.1, rdiscount-1.6.8,
redcar-0.13, redcar-bundles-0.3, redcar-icons-0.3,
redcar-javamateview-0.2, redcar-jruby-0.1, redcar-svnkit-0.2,
rmagick-2.13.1, rspec-2.12.0, rspec-core-2.12.0,
rspec-core-2.11.1, rspec-expectations-2.12.0,
rspec-expectations-2.11.3, rspec-mocks-2.12.0,
rspec-mocks-2.11.3, ruby-blockcache-0.2, ruby2ruby-1.1.8,
sake-1.0.15, spoon-0.0.1, swt-0.13, yard-0.8.2.1] (Gem::LoadError)


and indeed, when I run

macgem list


there is no mac_bacon listed there. Do you know what else I'm missing 
here?


Thanks,

Stephen



On 30/11/2012, at 17:52, Daniel Westendorf > wrote:



Stephen,

It looks like MacBacon is using MRI Ruby, not MacRuby. Did you 
install the gem using macgem? You might have to uninstall any other 
versions you've installed.


I never had much luck with RVM+MacRuby; I always installed MacRuby 
using the installer from the website. This might have been fixed though.


dw

On Fri, Nov 30, 2012 at 10:46 AM, stephen horne > wrote:
I'm trying to get started with tdd and MacRuby, but I've hit a 
stumbling block immediately with macbacon. I suspect it's something 
to do with rvm, but I'm not sure.


When I run macbacon like this:

$macbacon my_class_test.rb

I get the following error backtrace:


/Users/fatboy/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require':

/Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:212:
syntax error, unexpected tLABEL (SyntaxError)
...eForKeyPath(key_path, ofObject:object, change:_, context:__)
...   ^

/Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:337:
class definition in method body

/Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/lib/mac_bacon.rb:429:
syntax error, unexpected keyword_end, expecting $end
from

/Users/fatboy/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require'
from

/Users/fatboy/.rvm/gems/ruby-1.9.3-p125/gems/mac_bacon-1.3/bin/macbacon:110:in
`'
from /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/bin/macbacon:19:in
`load'
from /Users/fatboy/.rvm/gems/ruby-1.9.3-p125/bin/macbacon:19:in
`'

Can anyone see what's wrong with my setup?

Thanks.
--
Stephen Horne


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org 


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



___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org 


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


--
Stephen Horne

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org 


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




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


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


Re: [MacRuby-devel] Problem with a window controller

2012-12-02 Thread J Silver

Hi David,

Try NSLog instead of puts. Also you can override puts to #NSLog.

I have some production MacRuby code up at 
https://github.com/jsilverMDX/GlobalChat2/tree/master/globalchat%202%20OSX 
that's in the App Store.


Look here for an example of a working MacRuby app that uses IB and Sockets.

Try firing an action on seperate view controller and storing your 
information there. I don't use Window object for much except showing and 
hiding views.


Domo

jsilver

On 02/12/2012 05:30, david kramf wrote:

Thank you very much Andy and Jim
I followed your remarks , played  with the code and I am still 
surprised. It turns out that awakeFromNib is called before 
applicationDidFinishLaunching so there MyController is already 
initialized and has the correct window as the his instance variable. 
NSWindow has both a delegate protocol and a Controller class and so I 
called setDelegate and setController . Everything seems OK but the 
methods willLoad and didLoad are not called although clearly my class 
is both the delegate and the controller of my window . So I am still 
left asking what am I doing wrong (??).


Are there MacRuby code samples I can use. I read Lim,Chueng and 
McAnally book. I wonder where can I find more samples. I am also not 
sure I am doing everything correct with the IB . My blue box that 
represents MyController list "showWindow: " as a "Received Action"  , 
but I could not  connect it to any element of window draw in the XIB file.


David

class AppDelegate
attr_accessor :window
def applicationDidFinishLaunching(a_notification)
puts " Insert code here to initialize your application"
wCtrl = @window.delegate
puts "no delegate" if wCtrl == nil
win = wCtrl.window
puts "win is nil" if win == nil
puts "title of window is #{win.title}"
ctrl = @window.windowController
puts "no controller" if ctrl == nil
puts "class of delegate is #{wCtrl.class}"
puts "class of controller is #{ctrl.class}"
puts "both are equal " if wCtrl == ctrl
x = ctrl.showWindow
puts "x class is #{x.class} "unlessx == nil


#puts "window nil " if win == nil
#wCtrl.close
end
end
class MyController < NSWindowController
attr_accessor :window


def initialize
puts "in initialize"
initWithWindowNibName("tow")
#puts "after initialization window is #{@window.title}"
end


def routine
puts "in routine"
end


#def initWithWindow(window)
#   puts "in initWithWindow"
#   super(@window)
#end


def awakeFromNib
@window.setDelegate(self)
@window.setWindowController(self)
puts " at end of awake from nib. title is #{@window.title}"
end


def windowWillLoad
puts "window  will be soon loaded"
end


def windowDidLoad
puts "window loaded"
end
def windowTitleForDocumentDisplayName(displayName)
"Hello World"
end


def showWindow
   puts "in showWindow"
super(self)
end


def close
puts "in close window is #{@window.title}"
super
end


end


*at end of awake from nib. title is two*
* Insert code here to initialize your application*
*title of window is two*
*class of delegate is MyController*
*class of controller is MyController*
*both are equal *
*in showWindow*
*x class is MyController *



On Dec 1, 2012, at 3:00 AM, Andy Park wrote:

Without being able to verify anything for accuracy at the moment, it 
looks like your window's delegate is not set to the controller at the 
time the events are occurring.


Check if you need to set this - try tracing the window's delegate at 
different points of the controller's lifecycle.


On 30 Nov 2012, at 00:50, david kramf > wrote:




Hi,
In the copied below code only the awakeFromNib is executed . Can 
someone explain me what do I do wrong ?  Window is displayed and I 
expected all other methods to be called.

Thanks, David


class MyController < NSWindowController
attr_accessor :window

def awakeFromNib
@window.delegate = self
puts " at end of awake from nib. title is #{@window.title}"
end

def windowWillLoad
puts "window  will be soon loaded"
end

def windowDidLoad
puts "window loaded"
end
def windowTitleForDocumentDisplayName(displayName)
"Hello World"
end

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org 


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

___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org 


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




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


___
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.or

Re: [MacRuby-devel] Fwd: MacRuby-devel Digest, Vol 59, Issue 3

2013-01-25 Thread J Silver
Yes but I analyzed and it's a redirect to a broken link. If you have 
already clicked, you should be fine, but don't click if you haven't !!


On 25/01/2013 12:39, Duane Kiefer wrote:

Beware, the link in bugpowder's message goes to a phishing site!

Begin forwarded message:

*From: *macruby-devel-requ...@lists.macosforge.org 


*Subject: **MacRuby-devel Digest, Vol 59, Issue 3*
*Date: *25 January 2013 12:00:01 PST
*To: *macruby-devel@lists.macosforge.org 

*Reply-To: *macruby-devel@lists.macosforge.org 


*Status: *U
*Return-Path: *>
*Received: *from mx-jacana.atl.sa.earthlink.net ([207.69.195.26]) by 
mdl-harvest.atl.sa.earthlink.net (EarthLink SMTP Server) with SMTP id 
1tYPpc2VA3Nl36V0; Fri, 25 Jan 2013 14:57:42 -0500 (EST)
*Received: *from bz.apple.com  ([17.151.62.54]) 
by mx-jacana.atl.sa.earthlink.net (EarthLink SMTP Server) with ESMTP 
id 1tYPpbCa3Nl34e0 for >; Fri, 25 Jan 2013 14:57:41 -0500 (EST)
*Received: *from lists.macosforge.org  
([17.251.224.46]) by bz.apple.com  (Oracle 
Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built 
Aug 10 2011)) with SMTP id <0mh700bpo642c...@bz.apple.com 
> for dekie...@earthlink.net 
; Fri, 25 Jan 2013 11:57:39 -0800 (PST)
*Received: *from localhost.localdomain (localhost.localdomain 
[IPv6:::1]) by lists.macosforge.org  
(Postfix) with ESMTP id 803871C7ED1; Fri, 25 Jan 2013 12:00:03 -0800 
(PST)

*Mime-Version: *1.0
*Content-Transfer-Encoding: *7BIT
*Content-Type: *text/plain; CHARSET=US-ASCII
*Message-Id: 
*>
*X-Beenthere: *macruby-devel@lists.macosforge.org 


*X-Mailman-Version: *2.1.12
*Precedence: *list
*List-Id: *"MacRuby development discussions." 
>
*List-Unsubscribe: 
*, 


*List-Archive: *
*List-Post: *
*List-Help: 
*
*List-Subscribe: 
*, 

*Sender: *macruby-devel-boun...@lists.macosforge.org 

*Errors-To: *macruby-devel-boun...@lists.macosforge.org 


*X-Elnk-Av: *0
*X-Elnk-Info: *sbv=0; sbrc=.0; sbf=0b; sbw=000;

Send MacRuby-devel mailing list submissions to
macruby-devel@lists.macosforge.org 



To subscribe or unsubscribe via the World Wide Web, visit
http://lists.macosforge.org/mailman/listinfo/macruby-devel
or, via email, send a message with subject or body 'help' to
macruby-devel-requ...@lists.macosforge.org

You can reach the person managing the list at
macruby-devel-ow...@lists.macosforge.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of MacRuby-devel digest..."


Today's Topics:

  1. (no subject) (bugpowder)


--

Message: 1
Date: Fri, 25 Jan 2013 06:08:58 +0800
From: bugpowder 
To: llo...@yahoogroups.com, logo...@googlegroups.com,
nike...@gmail.com, nike...@csd.uoc.gr,
macruby-devel@lists.macosforge.org, andr...@otenet.gr,
msta...@csd.uoc.gr, msta...@ics.forth.gr, msta...@gmail.com
Subject: [MacRuby-devel] (no subject)
Message-ID:

Content-Type: text/plain; charset=UTF-8

http://altintasmermer.com/images/yahoolook321.php


--

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


End of MacRuby-devel Digest, Vol 59, Issue 3



-
"I love America more than any other country in this world, and, 
exactly for this reason, I insist on the right to criticize her 
perpetually."

- James A. Baldwin



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


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