You can subscribe to this list here.
2002 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
(3) |
Nov
|
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(1) |
Feb
(11) |
Mar
(9) |
Apr
(1) |
May
(5) |
Jun
(5) |
Jul
(4) |
Aug
(3) |
Sep
(15) |
Oct
(8) |
Nov
(9) |
Dec
(11) |
2004 |
Jan
(5) |
Feb
(2) |
Mar
(1) |
Apr
(3) |
May
(6) |
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
(9) |
Nov
|
Dec
(3) |
2005 |
Jan
(1) |
Feb
(7) |
Mar
(6) |
Apr
(36) |
May
(20) |
Jun
(42) |
Jul
(21) |
Aug
(12) |
Sep
(56) |
Oct
(5) |
Nov
(55) |
Dec
(53) |
2006 |
Jan
(43) |
Feb
(83) |
Mar
(98) |
Apr
(42) |
May
(68) |
Jun
(55) |
Jul
(50) |
Aug
(104) |
Sep
(13) |
Oct
(70) |
Nov
(37) |
Dec
(42) |
2007 |
Jan
(56) |
Feb
(18) |
Mar
(43) |
Apr
(80) |
May
(65) |
Jun
(149) |
Jul
(103) |
Aug
(71) |
Sep
(62) |
Oct
(67) |
Nov
(72) |
Dec
(63) |
2008 |
Jan
(64) |
Feb
(63) |
Mar
(31) |
Apr
(42) |
May
(71) |
Jun
(62) |
Jul
(37) |
Aug
(25) |
Sep
(5) |
Oct
(2) |
Nov
(7) |
Dec
(14) |
2009 |
Jan
(20) |
Feb
(15) |
Mar
(19) |
Apr
(8) |
May
(7) |
Jun
|
Jul
(37) |
Aug
(12) |
Sep
(19) |
Oct
(5) |
Nov
(1) |
Dec
(4) |
2010 |
Jan
(5) |
Feb
(24) |
Mar
(16) |
Apr
(9) |
May
(4) |
Jun
|
Jul
|
Aug
(6) |
Sep
(2) |
Oct
(1) |
Nov
|
Dec
|
2011 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(7) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(6) |
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(2) |
Aug
(1) |
Sep
(2) |
Oct
|
Nov
(5) |
Dec
|
2016 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
(1) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
(1) |
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
From: Pierce T. W. I. <pi...@tw...> - 2008-05-23 19:22:37
|
On May 23, 2008, at 12:50 AM, Eloy Duran wrote: > Hi Pierce, > > You might want to take a look at SACrashReporter, which I wrote for > this situation. > It catches uncatched ruby exceptions logs them and reraises them. > The next time the app launches any new crash logs will be requested to > be emailed to the developer via a webservice. > http://rucola.rubyforge.org/svn/extras/plugins/SACrashReporter/ > > There's some docs in: http://rucola.rubyforge.org/svn/extras/plugins/SACrashReporter/lib/SACrashReporter.rb > And you can take a look at the source of LimeChat to see how it should > be integrated in a standard RC application. Especially look at the > needed values in Info.plist You rock, that's exactly what I needed. Pierce |
From: Eloy D. <elo...@gm...> - 2008-05-23 07:51:02
|
Hi Pierce, You might want to take a look at SACrashReporter, which I wrote for this situation. It catches uncatched ruby exceptions logs them and reraises them. The next time the app launches any new crash logs will be requested to be emailed to the developer via a webservice. http://rucola.rubyforge.org/svn/extras/plugins/SACrashReporter/ There's some docs in: http://rucola.rubyforge.org/svn/extras/plugins/SACrashReporter/lib/SACrashReporter.rb And you can take a look at the source of LimeChat to see how it should be integrated in a standard RC application. Especially look at the needed values in Info.plist Cheers, Eloy On 23 mei 2008, at 02:07, Pierce T. Wetter III wrote: > Or really, how do I redirect it? > > > Why: > > So when I'm debugging my rubycocoa app, I always launch it from the > command line because the ruby backtrace is my most useful debugging > tool. > > Recently, I intergrated someone elses crash reporting tool, but so > far, the crash reports aren't useful because they always look like > this: > > 0 libobjc.A.dylib 0x90a59380 objc_msgSend + 16 > 1 com.apple.rubycocoa 0x0004545b rbobj_call_ruby + 1844 > 2 com.apple.rubycocoa 0x000446b0 install_ovmix_hooks + > 5630 > 3 com.apple.rubycocoa 0x00042bc2 > ovmix_register_ruby_method + 2472 > 4 com.apple.Foundation 0x927f1468 - > [NSObject(NSForwardInvocation) forward::] + 469 > > That is, they're objective-C backtraces. > > So what I'd like to do is basically startup my app with stdout > redirected to a file in /tmp, and then if the app crashes, I can have > the crashreporter email that (currently it sends console.log, which > isn't very useful). > > How can I do that easily? > > Pierce > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Allison N. <dem...@ma...> - 2008-05-23 06:00:34
|
If you're running from the commad line, have you tried simply sending stdout to a file by adding '> temp_file.txt' to the end of the command line? On Friday, May 23, 2008, at 02:07AM, "Pierce T. Wetter III" <pi...@tw...> wrote: >Or really, how do I redirect it? > > > Why: > > So when I'm debugging my rubycocoa app, I always launch it from the >command line because the ruby backtrace is my most useful debugging >tool. > > Recently, I intergrated someone elses crash reporting tool, but so >far, the crash reports aren't useful because they always look like this: > >0 libobjc.A.dylib 0x90a59380 objc_msgSend + 16 >1 com.apple.rubycocoa 0x0004545b rbobj_call_ruby + 1844 >2 com.apple.rubycocoa 0x000446b0 install_ovmix_hooks + >5630 >3 com.apple.rubycocoa 0x00042bc2 >ovmix_register_ruby_method + 2472 >4 com.apple.Foundation 0x927f1468 - >[NSObject(NSForwardInvocation) forward::] + 469 > >That is, they're objective-C backtraces. > >So what I'd like to do is basically startup my app with stdout >redirected to a file in /tmp, and then if the app crashes, I can have >the crashreporter email that (currently it sends console.log, which >isn't very useful). > > How can I do that easily? > > Pierce > >------------------------------------------------------------------------- >This SF.net email is sponsored by: Microsoft >Defy all challenges. Microsoft(R) Visual Studio 2008. >http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >_______________________________________________ >Rubycocoa-talk mailing list >Rub...@li... >https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > |
From: Pierce T. W. I. <pi...@tw...> - 2008-05-23 00:07:16
|
Or really, how do I redirect it? Why: So when I'm debugging my rubycocoa app, I always launch it from the command line because the ruby backtrace is my most useful debugging tool. Recently, I intergrated someone elses crash reporting tool, but so far, the crash reports aren't useful because they always look like this: 0 libobjc.A.dylib 0x90a59380 objc_msgSend + 16 1 com.apple.rubycocoa 0x0004545b rbobj_call_ruby + 1844 2 com.apple.rubycocoa 0x000446b0 install_ovmix_hooks + 5630 3 com.apple.rubycocoa 0x00042bc2 ovmix_register_ruby_method + 2472 4 com.apple.Foundation 0x927f1468 - [NSObject(NSForwardInvocation) forward::] + 469 That is, they're objective-C backtraces. So what I'd like to do is basically startup my app with stdout redirected to a file in /tmp, and then if the app crashes, I can have the crashreporter email that (currently it sends console.log, which isn't very useful). How can I do that easily? Pierce |
From: Pim S. <pi...@li...> - 2008-05-21 10:51:15
|
> Check it out here : http://inexdo.com/CocoaNav > The source is on google code : here http://code.google.com/p/cocoanav/ Wow Patrick, very slick interface. Good app for learning cocoa. |
From: Patrick G. <pge...@wa...> - 2008-05-21 10:47:07
|
Thank you ! I've had a crash report on 10.4.11 — forgot to mention this needs Leopard, and will crash on 10.5.0 - make sure you're running the latest OSX before trying CocoaNav. > Hi Patrick, > > And what a night it was indeed! > Thanks for the awesome framework browser! I'm a sucker for moving > things :) > > Oh and both your sites for the apps also look great, > which is always a good appetizer. > > Eloy > > On May 20, 2008, at 11:15 PM, Patrick Geiller wrote: > >> (Looks like it's release night !) >> >> Hello, >> >> Today I released CocoaNav, a Cocoa class browser. It loads all >> frameworks in /System and allows you to search and browse them. The >> code it not as clean as Pim's, though :) >> >> Check it out here : http://inexdo.com/CocoaNav >> The source is on google code : here http://code.google.com/p/ >> cocoanav/ >> >> -Patrick >> >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >> _______________________________________________ >> Rubycocoa-talk mailing list >> Rub...@li... >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > |
From: Eloy D. <elo...@gm...> - 2008-05-21 08:55:10
|
Hi Patrick, And what a night it was indeed! Thanks for the awesome framework browser! I'm a sucker for moving things :) Oh and both your sites for the apps also look great, which is always a good appetizer. Eloy On May 20, 2008, at 11:15 PM, Patrick Geiller wrote: > (Looks like it's release night !) > > Hello, > > Today I released CocoaNav, a Cocoa class browser. It loads all > frameworks in /System and allows you to search and browse them. The > code it not as clean as Pim's, though :) > > Check it out here : http://inexdo.com/CocoaNav > The source is on google code : here http://code.google.com/p/cocoanav/ > > -Patrick > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Steve C. <sco...@gm...> - 2008-05-21 04:43:34
|
I'm pretty new to all this, and have done a lot of googling and not found a good answer. I'd like to try to use some of the quicktime video conversion functions (from QTkit, I presume). I see that I'm supposed to import the framework like this: OSX.require_framework "QTKit" ...and I'd really like to call MovieExportToFile, defined in QuickTimeComponents.h (I gather this from http://developer.apple.com/documentation/QuickTime/Reference/QTRef_MovieComponents/Reference/reference.html) The obj-c examples I've seen show that this function is supposed to be called directly. - how should I go about "importing" this header file? - once imported, how would I go about calling to one of the functions? -Steve |
From: Aron N. <aro...@gm...> - 2008-05-20 21:23:29
|
Whoops, I'll try that again. Previous attempt inadvertently in HTML; sorry for the spam. A week or so ago I said: > I'm trying to implement property validation methods > (validate<Name>:error:, or, rather, validate<Name>_error in Ruby) in a > Ruby class. I am able to call the validation methods directly from > objc, but they are not called when running > "validateValue:forKey:error:". Turning on RubyCocoa logging shows no > activity on the bridge when validateValue:forKey:error: is called. The list responded: > ... On the off chance that this means nobody happens to know and this is a real problem, here's my workaround: I overloaded validateValue:forKey:error:, for now in the Ruby class with the properties I'm validating: def validateValue_forKey_error(value, key, error) selector = "validate" + key.capitalize + "_error" if (self.respond_to? selector) return self.send(selector, value, error) else return true end end If this is, indeed, a real problem, something like this could go into the Ruby NSObject code. Better would be to fix it in the objc NSObject code, but there's that pesky lack of source code... Again, I'm using the Ruby/RubyCocoa that came with Leopard. -Aron |
From: Patrick G. <pge...@wa...> - 2008-05-20 21:15:44
|
(Looks like it's release night !) Hello, Today I released CocoaNav, a Cocoa class browser. It loads all frameworks in /System and allows you to search and browse them. The code it not as clean as Pim's, though :) Check it out here : http://inexdo.com/CocoaNav The source is on google code : here http://code.google.com/p/cocoanav/ -Patrick |
From: Patrick G. <pge...@wa...> - 2008-05-20 21:10:39
|
Hi Pim, Thanks for posting the source code ! I've never done any Rails, it looks very nice. > Hi, > > I'd like to share my first RubyCocoa app. Maybe it can be posted on > the RubyCocoa project page. I will soon publish it officially though > it's still very beta. Comments are welcome. > > The outline view is of interest because I use activerecord-bindings to > populate it. Did not found a tutorial about this. > > Visit http://www.pimsnel.com/timetoticket/Home.html to check out. > > Regards, > Pim Snel > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > |
From: Aron N. <aro...@gm...> - 2008-05-20 20:19:22
|
A week or so ago I said: > I'm trying to implement property validation methods > (validate<Name>:error:, or, rather, validate<Name>_error in Ruby) in a > Ruby class. I am able to call the validation methods directly from > objc, but they are not called when running > "validateValue:forKey:error:". Turning on RubyCocoa logging shows no > activity on the bridge when validateValue:forKey:error: is called. The list responded: > ... On the off chance that this means nobody happens to know and this is a real problem, here's my workaround: I overloaded validateValue:forKey:error:, for now in the Ruby class with the properties I'm validating: def validateValue_forKey_error(value, key, error) selector = "validate" + key.capitalize + "_error" if (self.respond_to? selector) return self.send(selector, value, error) else return true end end If this is, indeed, a real problem, something like this could go into the Ruby NSObject code. Better would be to fix it in the objc NSObject code, but there's that pesky lack of source code... Again, I'm using the Ruby/RubyCocoa that came with Leopard. -Aron |
From: Eloy D. <elo...@gm...> - 2008-05-20 19:06:48
|
Very nice Pim! You wrote something I envisioned when I originally worked in the bindings stuff :) So thanks a lot, I will definitely check it out. About including it as a sample, this is of course very possible and appreciated. I'll contact you off-list about it. Eloy On 20 mei 2008, at 16:29, Pim Snel wrote: > Hi, > > I'd like to share my first RubyCocoa app. Maybe it can be posted on > the RubyCocoa project page. I will soon publish it officially though > it's still very beta. Comments are welcome. > > The outline view is of interest because I use activerecord-bindings to > populate it. Did not found a tutorial about this. > > Visit http://www.pimsnel.com/timetoticket/Home.html to check out. > > Regards, > Pim Snel > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Allison N. <dem...@ma...> - 2008-05-20 15:11:09
|
Very clean code :-) I still can't believe how short RubyCocoa apps are. But your's is a particularly fine example Pim :-) On Tuesday, May 20, 2008, at 04:29PM, "Pim Snel" <pi...@li...> wrote: >Hi, > >I'd like to share my first RubyCocoa app. Maybe it can be posted on >the RubyCocoa project page. I will soon publish it officially though >it's still very beta. Comments are welcome. > >The outline view is of interest because I use activerecord-bindings to >populate it. Did not found a tutorial about this. > >Visit http://www.pimsnel.com/timetoticket/Home.html to check out. > >Regards, >Pim Snel > >------------------------------------------------------------------------- >This SF.net email is sponsored by: Microsoft >Defy all challenges. Microsoft(R) Visual Studio 2008. >http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >_______________________________________________ >Rubycocoa-talk mailing list >Rub...@li... >https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > |
From: Pim S. <pi...@li...> - 2008-05-20 14:29:49
|
Hi, I'd like to share my first RubyCocoa app. Maybe it can be posted on the RubyCocoa project page. I will soon publish it officially though it's still very beta. Comments are welcome. The outline view is of interest because I use activerecord-bindings to populate it. Did not found a tutorial about this. Visit http://www.pimsnel.com/timetoticket/Home.html to check out. Regards, Pim Snel |
From: Pim S. <pi...@li...> - 2008-05-19 20:48:24
|
Hello, Again a bindings question, sorry for asking so many questions. I hope I can answer some when I get more experienced. I have the following ActiveRecord class: class Issue < ActiveRecord::Base belongs_to :project has_many :time_entries, :dependent => :delete_all def spent_hours @spent_hours ||= time_entries.sum(:hours) || 0 #its a float end end If I retrieve spent_hours manually in de code like below it works as it should; @issues = Issue.find(:all) @issues.each do |issue| if issue.spent_hours >0 puts issue.spent_hours.to_s end end but in the NIB where I have set the Model Key Path of a table column to "spent_hours" it stays empty. Must I add some magick to the IssueProxy e.g. with on_get? Regards, Pim Snel |
From: Eloy D. <elo...@gm...> - 2008-05-19 20:30:21
|
Sure, glad it helped :) Eloy On 19 mei 2008, at 22:26, Pim Snel wrote: > > Op 19 mei 2008, om 19:34 heeft Eloy Duran het volgende geschreven >> Hi Pim, >> >> Ideally you'd want to rescue it in #rbValueForKey, something like: >> >> class ProjectProxy >> def rbValueForKey(key) >> super >> rescue ActiveRecord::StatementInvalid => e # that's apparently >> what it raises for a lost connection >> # do some reporting and reconnect or what have you not... >> puts e.message >> puts e.backtrace >> end >> end > > Thanks Eloy! This is exactly what I was looking for, and it is > working. This will stop a lot of crashes ;) > >> If this gives the desired result and you come up with a good >> universal solution don't mind to send a patch ;) > > I think I'm not ready for sending patches as I'm still learning Ruby > and Cocoa and I'm a real novice. I do know I'll stick to RubyCocoa > and ActiveRecord so perhaps later on. > > >> On 19 mei 2008, at 19:11, Pim Snel wrote: >> >>> To be more complete: >>> >>> Issue Load (0.000000) Mysql::Error: Lost connection to MySQL >>> server during query: SELECT id, subject, project_id FROM `issues` >>> WHERE (issues.project_id = 55 AND status_id < 5) >>> 2008-05-19 15:43:29.340 TimeToTicket[13026:10b] >>> ProjectProxy#rbValueForKey: ActiveRecord::StatementInvalid: >>> Mysql::Error: Lost connection to MySQL server during query: SELECT >>> id, subject, project_id FROM `issues` WHERE (issues.project_id = >>> 55 AND status_id < 5) >>> >>> But where should I add this begin/rescue/end block? In an >>> overruling function in ProjectProxy in this case? >>> >>> >>> Op 19 mei 2008, om 17:11 heeft Patrick Geiller het volgende >>> geschreven: >>> >>>> >>>> >>>>> Mysql::Error: Lost connection to MySQL server during query. >>>> >>>> Is this error thrown by Ruby ? In that case you should be able to >>>> wrap the offending code with begin / rescue / end. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Pim S. <pi...@li...> - 2008-05-19 20:26:28
|
Op 19 mei 2008, om 19:34 heeft Eloy Duran het volgende geschreven > Hi Pim, > > Ideally you'd want to rescue it in #rbValueForKey, something like: > > class ProjectProxy > def rbValueForKey(key) > super > rescue ActiveRecord::StatementInvalid => e # that's apparently > what it raises for a lost connection > # do some reporting and reconnect or what have you not... > puts e.message > puts e.backtrace > end > end Thanks Eloy! This is exactly what I was looking for, and it is working. This will stop a lot of crashes ;) > If this gives the desired result and you come up with a good > universal solution don't mind to send a patch ;) I think I'm not ready for sending patches as I'm still learning Ruby and Cocoa and I'm a real novice. I do know I'll stick to RubyCocoa and ActiveRecord so perhaps later on. > On 19 mei 2008, at 19:11, Pim Snel wrote: > >> To be more complete: >> >> Issue Load (0.000000) Mysql::Error: Lost connection to MySQL >> server during query: SELECT id, subject, project_id FROM `issues` >> WHERE (issues.project_id = 55 AND status_id < 5) >> 2008-05-19 15:43:29.340 TimeToTicket[13026:10b] >> ProjectProxy#rbValueForKey: ActiveRecord::StatementInvalid: >> Mysql::Error: Lost connection to MySQL server during query: SELECT >> id, subject, project_id FROM `issues` WHERE (issues.project_id = >> 55 AND status_id < 5) >> >> But where should I add this begin/rescue/end block? In an >> overruling function in ProjectProxy in this case? >> >> >> Op 19 mei 2008, om 17:11 heeft Patrick Geiller het volgende >> geschreven: >> >>> >>> >>>> Mysql::Error: Lost connection to MySQL server during query. >>> >>> Is this error thrown by Ruby ? In that case you should be able to >>> wrap the offending code with begin / rescue / end. |
From: Eloy D. <elo...@gm...> - 2008-05-19 17:35:05
|
Hi Pim, Ideally you'd want to rescue it in #rbValueForKey, something like: class ProjectProxy def rbValueForKey(key) super rescue ActiveRecord::StatementInvalid => e # that's apparently what it raises for a lost connection # do some reporting and reconnect or what have you not... puts e.message puts e.backtrace end end If this gives the desired result and you come up with a good universal solution don't mind to send a patch ;) Cheers, Eloy On 19 mei 2008, at 19:11, Pim Snel wrote: > To be more complete: > > Issue Load (0.000000) Mysql::Error: Lost connection to MySQL server > during query: SELECT id, subject, project_id FROM `issues` WHERE > (issues.project_id = 55 AND status_id < 5) > 2008-05-19 15:43:29.340 TimeToTicket[13026:10b] > ProjectProxy#rbValueForKey: ActiveRecord::StatementInvalid: > Mysql::Error: Lost connection to MySQL server during query: SELECT > id, subject, project_id FROM `issues` WHERE (issues.project_id = > 55 AND status_id < 5) > > But where should I add this begin/rescue/end block? In an overruling > function in ProjectProxy in this case? > > > Op 19 mei 2008, om 17:11 heeft Patrick Geiller het volgende > geschreven: > >> >> >>> Mysql::Error: Lost connection to MySQL server during query. >> >> Is this error thrown by Ruby ? In that case you should be able to >> wrap the offending code with begin / rescue / end. >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2008. >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ >> Rubycocoa-talk mailing list >> Rub...@li... >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Pim S. <pi...@li...> - 2008-05-19 17:13:05
|
Op 19 mei 2008, om 17:30 heeft Allison Newman het volgende geschreven: > I have seen the same error running Rails apps on my Mac. I think > this is an ActiveRecord issue, not a RubyCocoa issue... > I understand the issue and this is not an bug of ActiveRecord. The SSH tunnel crashes and thus the AR-connection is lost. But how can I rescue my ActiveRecord Session? > On Monday, May 19, 2008, at 03:49PM, "Pim Snel" <pi...@li...> > wrote: >> Hello, >> >> I've created an RubyCocoa app which uses activerecord and cocoa- >> bindings to connect to a mysql database. This works perfect but now >> I've added a SSH tunnel so that a remote database can be used. The >> application creates the tunnel before creating the db-connection and >> because this ssh tunnel often gets reset by peer, the app, ofter >> creates a new database connection. >> >> The problem is: when the window which contains the bindings and is >> populated wth query data is open but the ssh tunnel is broken the >> complete application crashes with the error: Mysql::Error: Lost >> connection to MySQL server during query. >> >> The reason of the crash is understandable but how can I create an >> exception for it. Can exceptions be added in Interface Builder? >> >> Regards, >> Pim Snel > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Pim S. <pi...@li...> - 2008-05-19 17:11:14
|
To be more complete: Issue Load (0.000000) Mysql::Error: Lost connection to MySQL server during query: SELECT id, subject, project_id FROM `issues` WHERE (issues.project_id = 55 AND status_id < 5) 2008-05-19 15:43:29.340 TimeToTicket[13026:10b] ProjectProxy#rbValueForKey: ActiveRecord::StatementInvalid: Mysql::Error: Lost connection to MySQL server during query: SELECT id, subject, project_id FROM `issues` WHERE (issues.project_id = 55 AND status_id < 5) But where should I add this begin/rescue/end block? In an overruling function in ProjectProxy in this case? Op 19 mei 2008, om 17:11 heeft Patrick Geiller het volgende geschreven: > > >> Mysql::Error: Lost connection to MySQL server during query. > > Is this error thrown by Ruby ? In that case you should be able to > wrap the offending code with begin / rescue / end. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |
From: Allison N. <dem...@ma...> - 2008-05-19 15:31:46
|
I have seen the same error running Rails apps on my Mac. I think this is an ActiveRecord issue, not a RubyCocoa issue... On Monday, May 19, 2008, at 03:49PM, "Pim Snel" <pi...@li...> wrote: >Hello, > >I've created an RubyCocoa app which uses activerecord and cocoa- >bindings to connect to a mysql database. This works perfect but now >I've added a SSH tunnel so that a remote database can be used. The >application creates the tunnel before creating the db-connection and >because this ssh tunnel often gets reset by peer, the app, ofter >creates a new database connection. > >The problem is: when the window which contains the bindings and is >populated wth query data is open but the ssh tunnel is broken the >complete application crashes with the error: Mysql::Error: Lost >connection to MySQL server during query. > >The reason of the crash is understandable but how can I create an >exception for it. Can exceptions be added in Interface Builder? > >Regards, >Pim Snel |
From: Patrick G. <pge...@wa...> - 2008-05-19 15:12:17
|
> Mysql::Error: Lost connection to MySQL server during query. Is this error thrown by Ruby ? In that case you should be able to wrap the offending code with begin / rescue / end. |
From: Patrick G. <pge...@wa...> - 2008-05-19 15:07:08
|
> It seems as if RubyCocoa's key-value observing works differently in > some ways than Objective-C's would. Is this intentional? An incomplete > implementation? The real question: is it stable behavior an app can > depend upon? Checking the source of kvc_accessor from oc_import.rb : declaring an accessor with kvc_accessor will call KVO methods in the setter. setValue_forKey calls KVO methods + accessor, which again calls KVO methods, thus the 2 notifications. I don't know if that's correct. def kvc_accessor(*args) kvc_reader(*args) kvc_writer(*args) end def kvc_writer(*args) args.flatten.each do |key| setter = key.to_s + '=' attr_writer(key) unless method_defined?(setter) alias_method kvc_internal_setter(key), setter self.class_eval <<-EOE_KVC_WRITER,__FILE__,__LINE__+1 def #{kvc_setter_wrapper(key)}(value) willChangeValueForKey('#{key.to_s}') send('#{kvc_internal_setter(key)}', value) didChangeValueForKey('#{key.to_s}') end EOE_KVC_WRITER alias_method setter, kvc_setter_wrapper(key) end end |
From: Pim S. <pi...@li...> - 2008-05-19 13:49:02
|
Hello, I've created an RubyCocoa app which uses activerecord and cocoa- bindings to connect to a mysql database. This works perfect but now I've added a SSH tunnel so that a remote database can be used. The application creates the tunnel before creating the db-connection and because this ssh tunnel often gets reset by peer, the app, ofter creates a new database connection. The problem is: when the window which contains the bindings and is populated wth query data is open but the ssh tunnel is broken the complete application crashes with the error: Mysql::Error: Lost connection to MySQL server during query. The reason of the crash is understandable but how can I create an exception for it. Can exceptions be added in Interface Builder? Regards, Pim Snel |