[Rails] Re: Adobe Air and Rails

2012-05-11 Thread cipher_neo
that will simply wrap the html5 app. Anyone have any experience with this? On Wednesday, May 2, 2012 2:23:09 PM UTC+1, paul h wrote: On Wednesday, May 2, 2012 12:16:57 PM UTC+1, paul h wrote: On Tuesday, May 1, 2012 12:56:56 PM UTC+1, cipher_neo wrote: Is it possible to wrap a HTML5 jquery app

[Rails] Adobe Air and Rails

2012-05-01 Thread cipher_neo
Is it possible to wrap a HTML5 jquery app that is served up by a rails app in an adobe air app that is installable on multiple platforms? I don't know much about adobe air, but the effect I am trying to achieve is to bring the web app to the desktop via an installable exe with not a lot of

[Rails] Thread safety and class methods

2012-02-21 Thread cipher_neo
Hey guys, using passenger, is it possible that there could be thread safety issues when executing a class method on a model? I am seeing some weird data in some of my model instances and I think it may be to do with concurrent processing of a class method in a model. Is this possible, that

[Rails] Validate secure https callback

2012-02-01 Thread cipher_neo
I have a simple rails app that is interacting with a payment processing service. I am looking to validate a https callback and all I am given is a SHA1 in order to do so. Is it possible to verify the remote identity with this SHA1 string alone? I have looked at some openssl code samples and I

Re: [Rails] Overriding number_to_human (Rails 3.0.5)

2011-11-01 Thread cipher_neo
yes, that seems to have done the job, thanks! -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/OU2B4X8HpiQJ. To post to this group, send email to

[Rails] Back Office Reporting

2011-11-01 Thread cipher_neo
I am looking for a package that does back office reporting for a POS system. Preferably an open source one, that I could import my apps data into using a script every day. It is to save having to code up a system from scratch, as I am sure that it has been done before. Anyone any

[Rails] Re: Overriding number_to_human (Rails 3.0.5)

2011-10-28 Thread cipher_neo
anyone? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/MdZB46PPVYIJ. To post to this group, send email to rubyonrails-talk@googlegroups.com. To

[Rails] Overriding number_to_human (Rails 3.0.5)

2011-10-26 Thread cipher_neo
I encountered a problem today, in that the number_to_human helper has a defect where it spits out an error when passed any number bigger than 0 and less than 1. eg number_to_human(0.2) gives nil can't be coerced into fixnum So, I found this patch:

[Rails] Re: Rails 3 POS Software for touch interface with jQuery

2011-09-10 Thread cipher_neo
Actually chrome is a fraction faster than firefox, which helps a lot. thanks. It still needs to be faster however, so I will have to keep tweaking it as such. I think we are limited by the speed of the JS engine? In which case there is nothing we can do there. -- You received this message

[Rails] Re: Rails 3 POS Software for touch interface with jQuery

2011-09-10 Thread cipher_neo
I already use a lot of offline storage, and the interface is completely javascript based (all data is preloaded, and screens are switched via showing/hiding divs). I may have a problem that there is just too much JS in the interface? Could that ever be a problem? thanks for the reply -- You

[Rails] Re: Rails 3 POS Software for touch interface with jQuery

2011-09-03 Thread cipher_neo
anyone? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/EZ7uekyWYYMJ. To post to this group, send email to rubyonrails-talk@googlegroups.com. To

[Rails] Rails 3 POS Software for touch interface with jQuery

2011-09-01 Thread cipher_neo
Hi guys, We have developed POS software, in Rails 3.0 that is to run on tablet and touch screen PC's. The main menu interface is using jQuery, and all of the buttons on the screen are simply divs that respond to onclick events. The interface is not as fast as a native application would be

Re: [Rails] Serialize Nested Hash Problem!

2011-07-22 Thread cipher_neo
that could well be the case. I will revert the code and try rename it. I'll get back with results, thanks -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To view this discussion on the web visit

[Rails] Re: Serialize Nested Hash Problem!

2011-07-21 Thread cipher_neo
surely somebody has had this problem? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/DmvU9Hxv-YoJ. To post to this group, send email to

[Rails] Re: Serialize Nested Hash Problem!

2011-07-21 Thread cipher_neo
could it be something to do with passenger? I have just made 100% sure that both systems are using the exact same gems, the only difference now is that I am using passenger on one system and not on the one that is working ok -- You received this message because you are subscribed to the

[Rails] Re: Serialize Nested Hash Problem!

2011-07-21 Thread cipher_neo
the hash comes directly from the params. I store in the serializable column the exact hash that is there, so it seems like the params hash is not an instance of HashWithIndifferentAccess in the new deployment... why could this be? -- You received this message because you are subscribed to

Re: [Rails] Serialize Nested Hash Problem!

2011-07-21 Thread cipher_neo
Hi tom, yes the versions of ruby are also identical. I have no clue what was happening, but I am going to get around it by converting the hash to json format first then allowing it to be serialized and then retrieving it and doing a JSON.parse on it. After which I will use symbolize_keys! I

Re: [Rails] Serialize Nested Hash Problem!

2011-07-21 Thread cipher_neo
I have a call serialize :data in the associated model. Where exactly would I see the code you posted, and what exactly has it got to do with my problem, I don't think I follow. Anyway, I have solved the problem by going from params hash to json to serialized data and then parsing it back

Re: [Rails] Re: Rack::Bug for Rails 2.2.1

2011-07-19 Thread cipher_neo
I will try our newrelic for now anyway thanks -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/Jn_2KEOJfqUJ. To post to this group, send email to

[Rails] Re: Serialize Nested Hash Problem!

2011-07-19 Thread cipher_neo
Yes, I am using bundler, just that in my gemfile it states to use versions either BIGGER THAN or equal (~) to the speicified versions, which is the reason why different versions are appearing on new systems. I am not fully up on using bundler, is there a way to lock to specific versions of

[Rails] Re: Serialize Nested Hash Problem!

2011-07-19 Thread cipher_neo
If I had of ran bundle install --deployment on the new machine, would that mean that it would not have specified dependencies as = (which seems to be breaking the app as the newer gems are being downloaded and are incompatible with my code) -- You received this message because you are

Re: [Rails] Re: Rack::Bug for Rails 2.2.1

2011-07-18 Thread cipher_neo
I have set up newrelic rpm and it is exactly what I was looking for. Really in depth info about what is goin on in the code. It has helped to me to find some places in the code that needed some tweaking and has helped reduce average response times. I have done a quick search on footnotes,

[Rails] Re: Serialize Nested Hash Problem!

2011-07-18 Thread cipher_neo
Hi Fred, thanks for your feedback. Yes, the data contained in the subhash (table_order_data) comes directly from the params hash. In which case I am not in control of how that hash is built. This leads me to think that it has got something to do with how the params hash is constructed,

[Rails] Re: Rack::Bug for Rails 2.2.1

2011-07-15 Thread cipher_neo
bump bump On Jul 10, 7:25 am, cipher_neo l33...@gmail.com wrote: anoyone? On Jul 7, 9:09 am,cipher_neol33...@gmail.com wrote: Rack::Bug (https://github.com/brynary/rack-bug) is a tool for profiling rails apps to find bottlenecks in the code. It has a really nice HTML interface

Re: [Rails] Re: Rack::Bug for Rails 2.2.1

2011-07-15 Thread cipher_neo
ok, thanks, I am gonna try out the free 14 day trial of newrelic and see how it goes! -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To view this discussion on the web visit

[Rails] Re: Rack::Bug for Rails 2.2.1

2011-07-10 Thread cipher_neo
anoyone? On Jul 7, 9:09 am, cipher_neo l33...@gmail.com wrote: Rack::Bug (https://github.com/brynary/rack-bug) is a tool for profiling rails apps to find bottlenecks in the code. It has a really nice HTML interface that you can access on the production server. The problem is that I am

[Rails] Rack::Bug for Rails 2.2.1

2011-07-07 Thread cipher_neo
Rack::Bug (https://github.com/brynary/rack-bug) is a tool for profiling rails apps to find bottlenecks in the code. It has a really nice HTML interface that you can access on the production server. The problem is that I am running an app on Rails version 2.2.1 and Rack::Bug will not run on such

[Rails] Re: Synchronization

2011-06-18 Thread cipher_neo
16, 10:05 am, cipher_neo l33...@gmail.com wrote: I am looking for a way to synchronize access to a shared data structure in a standard rails app. I read that if you are running on passenger, then Mutex.new is of no use? Can somebody please clarify this? I know that I can use

[Rails] Synchronization

2011-06-16 Thread cipher_neo
I am looking for a way to synchronize access to a shared data structure in a standard rails app. I read that if you are running on passenger, then Mutex.new is of no use? Can somebody please clarify this? I know that I can use transaction and :lock = true to do db level locking on models, but I

[Rails] Re: Rails 3 Crashing On Windows 7

2011-05-03 Thread cipher_neo
I have decided to do away with developing on Windows. I ended up installing Ubuntu to a seperate partition on my machine. It seems to be a lot easier to get rails up and running on it. Thanks for your help On Apr 28, 6:24 am, cipher_neo l33...@gmail.com wrote: I am going to tackle

[Rails] Re: ActionMailer Layouts for Rails 2.1.1

2011-04-27 Thread cipher_neo
nice one mate On Apr 26, 11:41 am, Frederick Cheung frederick.che...@gmail.com wrote: On Apr 26, 11:10 am,cipher_neol33...@gmail.com wrote: Hi guys, I am using rails 2.1.1 on a project and would like to enable mailer layouts for it. I know that in later versions of rails, this is

[Rails] Re: Rails 3 Crashing On Windows 7

2011-04-27 Thread cipher_neo
I am going to tackle this problem this weekend, I've been really busy this week and havn't had a chance to try out your fix. thanks for the reply On Apr 21, 1:51 pm, Luis Lavena luislav...@gmail.com wrote: On Apr 21, 5:08 am, cipher_neo l33...@gmail.com wrote: I had a lot of issues

[Rails] ActionMailer Layouts for Rails 2.1.1

2011-04-26 Thread cipher_neo
Hi guys, I am using rails 2.1.1 on a project and would like to enable mailer layouts for it. I know that in later versions of rails, this is supported, but I do not have the time just now to upgrade my app. Are there any plugins to do this? I found

[Rails] Re: Rails 3 Crashing On Windows 7

2011-04-21 Thread cipher_neo
wrote: On Apr 16, 12:20 pm, cipher_neo l33...@gmail.com wrote: sure: Hello, sorry for the late response, didn't monitor this group actively. C:\Windows\System32gem list *** LOCAL GEMS *** abstract (1.0.0) actionmailer (3.0.5) actionpack (3.0.5) activemodel (3.0.5

[Rails] Re: Rails 3 Crashing On Windows 7

2011-04-20 Thread cipher_neo
, 2011 at 2:14 AM, cipher_neo l33...@gmail.com wrote: No, there is only the .js.erb file mentioned above. My public javascripts directory doesn't contain that file. The thing is that it doesn't always crash, it seems to be very random. I am so lost as to the cause, but I really need

[Rails] Re: Rails 3 Crashing On Windows 7

2011-04-20 Thread cipher_neo
another thing... it seems to happen a lot when accessing the application with multiple simultaneous clients this may not be the cause, but might be a hint On Apr 20, 2:11 pm, cipher_neo l33...@gmail.com wrote: The development log file simply stops tailing... the last output lines

[Rails] Re: Rails 3 Crashing On Windows 7

2011-04-20 Thread cipher_neo
yes, I used the RubyInstaller to install: ruby 1.9.2p180 (2011-02-18) [i386-mingw32] and I also installed devkit and configured it to embed itself into the above install. On Apr 20, 3:05 pm, Bryan Crossland bacrossl...@gmail.com wrote: On Wed, Apr 20, 2011 at 8:14 AM, cipher_neo l33

[Rails] Re: Rails 3 Crashing On Windows 7

2011-04-19 Thread cipher_neo
work done and having to restart the server all the time. thanks On Apr 18, 7:11 pm, Bryan Crossland bacrossl...@gmail.com wrote: On Mon, Apr 18, 2011 at 9:28 AM, cipher_neo l33...@gmail.com wrote: It seems to die while processing dynamic javascript... I have a controller for managing

[Rails] Re: Rails 3 Crashing On Windows 7

2011-04-18 Thread cipher_neo
%}; % end % thanks On Apr 18, 1:49 pm, Bryan Crossland bacrossl...@gmail.com wrote: On Sun, Apr 17, 2011 at 4:14 PM, cipher_neo l33...@gmail.com wrote: sorry, they are all the gems on my system. I only use the following: (from Gemfile)  gem 'annotate-models', :require = 'annotate_models

[Rails] Re: Rails 3 Crashing On Windows 7

2011-04-17 Thread cipher_neo
sorry, they are all the gems on my system. I only use the following: (from Gemfile) gem 'annotate-models', :require = 'annotate_models' gem 'ruby-debug19' gem 'populator' gem 'faker' gem mongrel, '1.2.0.pre2' On Apr 16, 4:20 pm, cipher_neo l33...@gmail.com wrote: sure: C

[Rails] Rails 3 Crashing On Windows 7

2011-04-16 Thread cipher_neo
Hi guys, I have Rails 3 running on Windows 7 with Ruby 1.9.2 Every now and again, my server crashes, and I see the following information in the windows event log: Faulting application name: ruby.exe, version: 1.9.2.180, time stamp: 0x4d5ee5ed Faulting module name: msvcrt-ruby191.dll, version:

[Rails] Re: Rails 3 Crashing On Windows 7

2011-04-16 Thread cipher_neo
) ruby-debug19 (0.11.6) ruby_core_source (0.1.4) templater (1.0.0) thor (0.14.6) treetop (1.4.9) tzinfo (0.3.25) thanks for the reply On Apr 16, 4:18 pm, Luis Lavena luislav...@gmail.com wrote: On Apr 16, 11:58 am, cipher_neo l33...@gmail.com wrote: Hi guys, I have Rails 3 running

[Rails] Re: Ruby on Rails for Tablet Computers (Android OS)

2011-04-06 Thread cipher_neo
ok, thanks, I will post here shortly On Apr 1, 6:03 pm, dsadaka d...@web-site1.com wrote: Again, if you like writing in Ruby vs Java, do a sample test app with Mirah. Let us all know how it goes. Thanks, Dan On Mar 31, 4:40 pm,cipher_neol33...@gmail.com wrote: I've not heard of

[Rails] Re: Ruby on Rails for Tablet Computers (Android OS)

2011-03-31 Thread cipher_neo
, and storage   for data and swap. It's just not even in the same universe. And even   that beast can be quite noticeably slower than the same app running   from SliceHost over my network connection. Walter On Mar 30, 2011, at 5:13 AM, cipher_neo wrote: Hey guys, I am building an RoR web app

[Rails] Re: Ruby on Rails for Tablet Computers (Android OS)

2011-03-31 Thread cipher_neo
, but its not a full rails stack, more like a ruby-mvc subset. -igor On Wed, Mar 30, 2011 at 11:37 PM, cipher_neo l33...@gmail.com wrote: thanks for your reply. I think you are right in what you say. It would be too much of a memory hog to do such a thing. I will have to have

[Rails] Re: Ruby on Rails for Tablet Computers (Android OS)

2011-03-31 Thread cipher_neo
/14/beyond-ruby-mirah-reia-rite/ HTH, Dan On Mar 30, 5:13 am, cipher_neo l33...@gmail.com wrote: Hey guys, I am building an RoR web app that I would like to have fully contained in a tablet computer. I would like to run the server on it, and also use it as the client

[Rails] Ruby on Rails for Tablet Computers (Android OS)

2011-03-30 Thread cipher_neo
Hey guys, I am building an RoR web app that I would like to have fully contained in a tablet computer. I would like to run the server on it, and also use it as the client. Is this possible with any tablet computers out there at the moment? I really am aiming to get it working on the android