Hi everyone, I need that my web app talk with a dektop application. User case: a user click a button on the page, and this button send a command to the desktop app and wait for the answer from destkop app or timeout. I am using Rails 4 and Qt/C++, but it is not mandatory to use Qt/C++. The desktop app is used to talk with computer usb port. Anyone hava any tips or help? Thanks -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CALQXn34YNjWotDWX6YdVtk9Y-N1SYg5dc-aCVHsPU6WuP-jCsg%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Does is it an alternative for you? https://developer.chrome.com/apps/usb.html https://wiki.mozilla.org/WebAPI/WebUSB Without the desktop layer, in this case. -- Fernando Almeida fernandoalmeida.net <http://www.fernandoalmeida.net> adminfinanceiro.com.br <http://www.adminfinanceiro.com.br> 2013/9/24 Ricardo do Valle <ricardodovalle-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> Hi everyone, > > I need that my web app talk with a dektop application. > > User case: a user click a button on the page, and this button send a > command to the desktop app and wait for the answer from destkop app or > timeout. > > I am using Rails 4 and Qt/C++, but it is not mandatory to use Qt/C++. > The desktop app is used to talk with computer usb port. > > Anyone hava any tips or help? > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/CALQXn34YNjWotDWX6YdVtk9Y-N1SYg5dc-aCVHsPU6WuP-jCsg%40mail.gmail.com > . > For more options, visit https://groups.google.com/groups/opt_out. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJA5LLfd06yBqSQNHZfSGY4XmyWKJofNjfKY5TL%2ByFbYV%2BvhHw%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
On 24 September 2013 19:44, Ricardo do Valle <ricardodovalle-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi everyone, > > I need that my web app talk with a dektop application.Which computer is the web application running on (not the browser, the rails server)? Colin> > User case: a user click a button on the page, and this button send a command > to the desktop app and wait for the answer from destkop app or timeout. > > I am using Rails 4 and Qt/C++, but it is not mandatory to use Qt/C++. > The desktop app is used to talk with computer usb port. > > Anyone hava any tips or help? > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/CALQXn34YNjWotDWX6YdVtk9Y-N1SYg5dc-aCVHsPU6WuP-jCsg%40mail.gmail.com. > For more options, visit https://groups.google.com/groups/opt_out.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLu5CuygbkG9OeG2tRsFyKNgtHSqyJXhR83fdzN7QHqseA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
@Colin the rails server is running in a VPS with nginx and unicorn. @Fernando, thank you very much, but it is not alternative for this project, i will study the chrome devs API for a future and another project, have you used already? I am looking for a way to create sockets and controls (state machine) from a rails app or another way to do that. On Tue, Sep 24, 2013 at 5:08 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 24 September 2013 19:44, Ricardo do Valle <ricardodovalle-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > Hi everyone, > > > > I need that my web app talk with a dektop application. > > Which computer is the web application running on (not the browser, the > rails server)? > > Colin > > > > > User case: a user click a button on the page, and this button send a > command > > to the desktop app and wait for the answer from destkop app or timeout. > > > > I am using Rails 4 and Qt/C++, but it is not mandatory to use Qt/C++. > > The desktop app is used to talk with computer usb port. > > > > Anyone hava any tips or help? > > Thanks > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Ruby on Rails: Talk" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/rubyonrails-talk/CALQXn34YNjWotDWX6YdVtk9Y-N1SYg5dc-aCVHsPU6WuP-jCsg%40mail.gmail.com > . > > For more options, visit https://groups.google.com/groups/opt_out. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLu5CuygbkG9OeG2tRsFyKNgtHSqyJXhR83fdzN7QHqseA%40mail.gmail.com > . > For more options, visit https://groups.google.com/groups/opt_out. >-- Ricardo do Valle -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CALQXn36nRg66poyssORqXC2kzeKW-8Mch5d3tgJn01_dgOKz_Q%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Ricardo do Valle wrote in post #1122365:> @Colin the rails server is running in a VPS with nginx and unicorn. > > @Fernando, thank you very much, but it is not alternative for this > project, > i will study the chrome devs API for a future and another project, have > you > used already? > > I am looking for a way to create sockets and controls (state machine) > from > a rails app or another way to do that.You do realize that what you''re talking about here is VERY DANGEROUS. Web browsers work very hard to prevent exactly what you''re describing here. This is the reason why JavaScript is sandboxed and provided no access outside of the browser environment. That being said, you could write your own browser plugin and do whatever you want. Of course, you will then be exposing anyone dumb enough to install your plugin to all the sorts of security holes that ActiveX based browser plugins, among others, became famous for. If I were in your shoes I would instead write native applications that communicate with your Rails application via web services. A good example of this is the Pivotal Tracker app for iPhone and iPad. This way you can ask people, that have some trust in you, to install your native application. It will then communicate directly to your Rails application and leave the user''s browser environment secure and free from "drive-by" security vulnerabilities. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a4ddf142d3d4085e1fd1c91c0ce59d74%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
On 25 September 2013 05:09, Ricardo do Valle <ricardodovalle-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> @Colin the rails server is running in a VPS with nginx and unicorn.So the server is running on a different computer to the browser, and you want a page in the browser to interact with an app on the PC running the browser. I believe this is not possible, and nor should it be possible. Would you want a web page to be able to affect applications running on the PC? Imagine what a malicious website could do if this were possible. Colin> > @Fernando, thank you very much, but it is not alternative for this project, > i will study the chrome devs API for a future and another project, have you > used already? > > I am looking for a way to create sockets and controls (state machine) from a > rails app or another way to do that. > > > > > On Tue, Sep 24, 2013 at 5:08 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: >> >> On 24 September 2013 19:44, Ricardo do Valle <ricardodovalle-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> wrote: >> > Hi everyone, >> > >> > I need that my web app talk with a dektop application. >> >> Which computer is the web application running on (not the browser, the >> rails server)? >> >> Colin >> >> > >> > User case: a user click a button on the page, and this button send a >> > command >> > to the desktop app and wait for the answer from destkop app or timeout. >> > >> > I am using Rails 4 and Qt/C++, but it is not mandatory to use Qt/C++. >> > The desktop app is used to talk with computer usb port. >> > >> > Anyone hava any tips or help? >> > Thanks >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups >> > "Ruby on Rails: Talk" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> > an >> > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To view this discussion on the web visit >> > >> > https://groups.google.com/d/msgid/rubyonrails-talk/CALQXn34YNjWotDWX6YdVtk9Y-N1SYg5dc-aCVHsPU6WuP-jCsg%40mail.gmail.com. >> > For more options, visit https://groups.google.com/groups/opt_out. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLu5CuygbkG9OeG2tRsFyKNgtHSqyJXhR83fdzN7QHqseA%40mail.gmail.com. >> >> For more options, visit https://groups.google.com/groups/opt_out. > > > > > -- > Ricardo do Valle > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/CALQXn36nRg66poyssORqXC2kzeKW-8Mch5d3tgJn01_dgOKz_Q%40mail.gmail.com. > > For more options, visit https://groups.google.com/groups/opt_out.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLv39JkLm-jMvLgHwELO7xDEtSRgAwZocFHOYqf_Qtd6FQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Hi @Ricardo, I am not using yet but I already had seen before and remembered with your post. -- Fernando Almeida fernandoalmeida.net <http://www.fernandoalmeida.net> adminfinanceiro.com.br <http://www.adminfinanceiro.com.br> 2013/9/25 Ricardo do Valle <ricardodovalle-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> @Colin the rails server is running in a VPS with nginx and unicorn. > > @Fernando, thank you very much, but it is not alternative for this > project, i will study the chrome devs API for a future and another project, > have you used already? > > I am looking for a way to create sockets and controls (state machine) from > a rails app or another way to do that. > > > > > On Tue, Sep 24, 2013 at 5:08 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > >> On 24 September 2013 19:44, Ricardo do Valle <ricardodovalle-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> wrote: >> > Hi everyone, >> > >> > I need that my web app talk with a dektop application. >> >> Which computer is the web application running on (not the browser, the >> rails server)? >> >> Colin >> >> > >> > User case: a user click a button on the page, and this button send a >> command >> > to the desktop app and wait for the answer from destkop app or timeout. >> > >> > I am using Rails 4 and Qt/C++, but it is not mandatory to use Qt/C++. >> > The desktop app is used to talk with computer usb port. >> > >> > Anyone hava any tips or help? >> > Thanks >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups >> > "Ruby on Rails: Talk" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> an >> > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To view this discussion on the web visit >> > >> https://groups.google.com/d/msgid/rubyonrails-talk/CALQXn34YNjWotDWX6YdVtk9Y-N1SYg5dc-aCVHsPU6WuP-jCsg%40mail.gmail.com >> . >> > For more options, visit https://groups.google.com/groups/opt_out. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLu5CuygbkG9OeG2tRsFyKNgtHSqyJXhR83fdzN7QHqseA%40mail.gmail.com >> . >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > -- > Ricardo do Valle > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/CALQXn36nRg66poyssORqXC2kzeKW-8Mch5d3tgJn01_dgOKz_Q%40mail.gmail.com > . > > For more options, visit https://groups.google.com/groups/opt_out. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJA5LLfq%2Be%3DK%3DnOPB4JGtfgq_GdjyTkGdtHq5bWmfw%2Bi4pG31Q%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
@Colin, this is possible with ActiveX (Windows + IE only) http://rosettacode.org/wiki/Execute_a_system_command#JavaScript In the Firefox I am not sure but I think it is possible if the user explicitly allow, maybe with signed script or some extended permission https://wiki.mozilla.org/Apps/Security#Extended_permissions -- Fernando Almeida fernandoalmeida.net <http://www.fernandoalmeida.net> adminfinanceiro.com.br <http://www.adminfinanceiro.com.br> 2013/9/25 Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>> On 25 September 2013 05:09, Ricardo do Valle <ricardodovalle-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > @Colin the rails server is running in a VPS with nginx and unicorn. > > So the server is running on a different computer to the browser, and > you want a page in the browser to interact with an app on the PC > running the browser. I believe this is not possible, and nor should > it be possible. Would you want a web page to be able to affect > applications running on the PC? Imagine what a malicious website > could do if this were possible. > > Colin > > > > > @Fernando, thank you very much, but it is not alternative for this > project, > > i will study the chrome devs API for a future and another project, have > you > > used already? > > > > I am looking for a way to create sockets and controls (state machine) > from a > > rails app or another way to do that. > > > > > > > > > > On Tue, Sep 24, 2013 at 5:08 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> > wrote: > >> > >> On 24 September 2013 19:44, Ricardo do Valle <ricardodovalle-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > >> wrote: > >> > Hi everyone, > >> > > >> > I need that my web app talk with a dektop application. > >> > >> Which computer is the web application running on (not the browser, the > >> rails server)? > >> > >> Colin > >> > >> > > >> > User case: a user click a button on the page, and this button send a > >> > command > >> > to the desktop app and wait for the answer from destkop app or > timeout. > >> > > >> > I am using Rails 4 and Qt/C++, but it is not mandatory to use Qt/C++. > >> > The desktop app is used to talk with computer usb port. > >> > > >> > Anyone hava any tips or help? > >> > Thanks > >> > > >> > -- > >> > You received this message because you are subscribed to the Google > >> > Groups > >> > "Ruby on Rails: Talk" group. > >> > To unsubscribe from this group and stop receiving emails from it, send > >> > an > >> > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> > To post to this group, send email to > rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> > To view this discussion on the web visit > >> > > >> > > https://groups.google.com/d/msgid/rubyonrails-talk/CALQXn34YNjWotDWX6YdVtk9Y-N1SYg5dc-aCVHsPU6WuP-jCsg%40mail.gmail.com > . > >> > For more options, visit https://groups.google.com/groups/opt_out. > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "Ruby on Rails: Talk" group. > >> To unsubscribe from this group and stop receiving emails from it, send > an > >> email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > >> To view this discussion on the web visit > >> > https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLu5CuygbkG9OeG2tRsFyKNgtHSqyJXhR83fdzN7QHqseA%40mail.gmail.com > . > >> > >> For more options, visit https://groups.google.com/groups/opt_out. > > > > > > > > > > -- > > Ricardo do Valle > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Ruby on Rails: Talk" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/rubyonrails-talk/CALQXn36nRg66poyssORqXC2kzeKW-8Mch5d3tgJn01_dgOKz_Q%40mail.gmail.com > . > > > > For more options, visit https://groups.google.com/groups/opt_out. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLv39JkLm-jMvLgHwELO7xDEtSRgAwZocFHOYqf_Qtd6FQ%40mail.gmail.com > . > For more options, visit https://groups.google.com/groups/opt_out. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJA5LLfNqsFHDmh2GB700RAbHPM6omyF8Tc7Wu8W_g-jESF87g%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
On 25 September 2013 16:11, Fernando Almeida <fernando-7WGqr3rU1tV1NwFxuVVnt9HuzzzSOjJt@public.gmane.org> wrote:> @Colin, this is possible with ActiveX (Windows + IE only)Yes that is true, I had rejected that as a possible solution as I assumed no-one enables ActiveX nowadays due to the security risks, and the fact that it only works with IE. It may allow the OP do to what he wants however, but as Robert suggested there are better solutions. Does the current IE still support ActiveX? Colin> > http://rosettacode.org/wiki/Execute_a_system_command#JavaScript > > In the Firefox I am not sure but I think it is possible if the user > explicitly allow, maybe with signed script or some extended permission > > https://wiki.mozilla.org/Apps/Security#Extended_permissions > > -- > Fernando Almeida > fernandoalmeida.net > adminfinanceiro.com.br > > > 2013/9/25 Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> >> >> On 25 September 2013 05:09, Ricardo do Valle <ricardodovalle-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> wrote: >> > @Colin the rails server is running in a VPS with nginx and unicorn. >> >> So the server is running on a different computer to the browser, and >> you want a page in the browser to interact with an app on the PC >> running the browser. I believe this is not possible, and nor should >> it be possible. Would you want a web page to be able to affect >> applications running on the PC? Imagine what a malicious website >> could do if this were possible. >> >> Colin >> >> > >> > @Fernando, thank you very much, but it is not alternative for this >> > project, >> > i will study the chrome devs API for a future and another project, have >> > you >> > used already? >> > >> > I am looking for a way to create sockets and controls (state machine) >> > from a >> > rails app or another way to do that. >> > >> > >> > >> > >> > On Tue, Sep 24, 2013 at 5:08 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> >> > wrote: >> >> >> >> On 24 September 2013 19:44, Ricardo do Valle <ricardodovalle-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> >> wrote: >> >> > Hi everyone, >> >> > >> >> > I need that my web app talk with a dektop application. >> >> >> >> Which computer is the web application running on (not the browser, the >> >> rails server)? >> >> >> >> Colin >> >> >> >> > >> >> > User case: a user click a button on the page, and this button send a >> >> > command >> >> > to the desktop app and wait for the answer from destkop app or >> >> > timeout. >> >> > >> >> > I am using Rails 4 and Qt/C++, but it is not mandatory to use Qt/C++. >> >> > The desktop app is used to talk with computer usb port. >> >> > >> >> > Anyone hava any tips or help? >> >> > Thanks >> >> > >> >> > -- >> >> > You received this message because you are subscribed to the Google >> >> > Groups >> >> > "Ruby on Rails: Talk" group. >> >> > To unsubscribe from this group and stop receiving emails from it, >> >> > send >> >> > an >> >> > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> >> > To post to this group, send email to >> >> > rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> >> > To view this discussion on the web visit >> >> > >> >> > >> >> > https://groups.google.com/d/msgid/rubyonrails-talk/CALQXn34YNjWotDWX6YdVtk9Y-N1SYg5dc-aCVHsPU6WuP-jCsg%40mail.gmail.com. >> >> > For more options, visit https://groups.google.com/groups/opt_out. >> >> >> >> -- >> >> You received this message because you are subscribed to the Google >> >> Groups >> >> "Ruby on Rails: Talk" group. >> >> To unsubscribe from this group and stop receiving emails from it, send >> >> an >> >> email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> >> To view this discussion on the web visit >> >> >> >> https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLu5CuygbkG9OeG2tRsFyKNgtHSqyJXhR83fdzN7QHqseA%40mail.gmail.com. >> >> >> >> For more options, visit https://groups.google.com/groups/opt_out. >> > >> > >> > >> > >> > -- >> > Ricardo do Valle >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups >> > "Ruby on Rails: Talk" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> > an >> > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To view this discussion on the web visit >> > >> > https://groups.google.com/d/msgid/rubyonrails-talk/CALQXn36nRg66poyssORqXC2kzeKW-8Mch5d3tgJn01_dgOKz_Q%40mail.gmail.com. >> > >> > For more options, visit https://groups.google.com/groups/opt_out. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLv39JkLm-jMvLgHwELO7xDEtSRgAwZocFHOYqf_Qtd6FQ%40mail.gmail.com. >> >> For more options, visit https://groups.google.com/groups/opt_out. > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/CAJA5LLfNqsFHDmh2GB700RAbHPM6omyF8Tc7Wu8W_g-jESF87g%40mail.gmail.com. > > For more options, visit https://groups.google.com/groups/opt_out.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLsZ22uBChwnsMLCVu_7RG%2BhAW5Q2iGXR9Zop54e6c6bKg%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Yes current IE support ActiveX. P On Wednesday, September 25, 2013 9:38:53 PM UTC+5:30, Colin Law wrote:> > On 25 September 2013 16:11, Fernando Almeida > <fern...-7WGqr3rU1tV1NwFxuVVnt9HuzzzSOjJt@public.gmane.org <javascript:>> wrote: > > @Colin, this is possible with ActiveX (Windows + IE only) > > Yes that is true, I had rejected that as a possible solution as I > assumed no-one enables ActiveX nowadays due to the security risks, and > the fact that it only works with IE. It may allow the OP do to what > he wants however, but as Robert suggested there are better solutions. > Does the current IE still support ActiveX? > > Colin > > > > > http://rosettacode.org/wiki/Execute_a_system_command#JavaScript > > > > In the Firefox I am not sure but I think it is possible if the user > > explicitly allow, maybe with signed script or some extended permission > > > > https://wiki.mozilla.org/Apps/Security#Extended_permissions > > > > -- > > Fernando Almeida > > fernandoalmeida.net > > adminfinanceiro.com.br > > > > > > 2013/9/25 Colin Law <cla...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org <javascript:>> > >> > >> On 25 September 2013 05:09, Ricardo do Valle <ricardo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org<javascript:>> > > >> wrote: > >> > @Colin the rails server is running in a VPS with nginx and unicorn. > >> > >> So the server is running on a different computer to the browser, and > >> you want a page in the browser to interact with an app on the PC > >> running the browser. I believe this is not possible, and nor should > >> it be possible. Would you want a web page to be able to affect > >> applications running on the PC? Imagine what a malicious website > >> could do if this were possible. > >> > >> Colin > >> > >> > > >> > @Fernando, thank you very much, but it is not alternative for this > >> > project, > >> > i will study the chrome devs API for a future and another project, > have > >> > you > >> > used already? > >> > > >> > I am looking for a way to create sockets and controls (state machine) > >> > from a > >> > rails app or another way to do that. > >> > > >> > > >> > > >> > > >> > On Tue, Sep 24, 2013 at 5:08 PM, Colin Law <cla...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org<javascript:>> > > >> > wrote: > >> >> > >> >> On 24 September 2013 19:44, Ricardo do Valle <ricardo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org<javascript:>> > > >> >> wrote: > >> >> > Hi everyone, > >> >> > > >> >> > I need that my web app talk with a dektop application. > >> >> > >> >> Which computer is the web application running on (not the browser, > the > >> >> rails server)? > >> >> > >> >> Colin > >> >> > >> >> > > >> >> > User case: a user click a button on the page, and this button send > a > >> >> > command > >> >> > to the desktop app and wait for the answer from destkop app or > >> >> > timeout. > >> >> > > >> >> > I am using Rails 4 and Qt/C++, but it is not mandatory to use > Qt/C++. > >> >> > The desktop app is used to talk with computer usb port. > >> >> > > >> >> > Anyone hava any tips or help? > >> >> > Thanks > >> >> > > >> >> > -- > >> >> > You received this message because you are subscribed to the Google > >> >> > Groups > >> >> > "Ruby on Rails: Talk" group. > >> >> > To unsubscribe from this group and stop receiving emails from it, > >> >> > send > >> >> > an > >> >> > email to rubyonrails-ta...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. > >> >> > To post to this group, send email to > >> >> > rubyonra...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. > >> >> > To view this discussion on the web visit > >> >> > > >> >> > > >> >> > > https://groups.google.com/d/msgid/rubyonrails-talk/CALQXn34YNjWotDWX6YdVtk9Y-N1SYg5dc-aCVHsPU6WuP-jCsg%40mail.gmail.com. > > >> >> > For more options, visit https://groups.google.com/groups/opt_out. > >> >> > >> >> -- > >> >> You received this message because you are subscribed to the Google > >> >> Groups > >> >> "Ruby on Rails: Talk" group. > >> >> To unsubscribe from this group and stop receiving emails from it, > send > >> >> an > >> >> email to rubyonrails-ta...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. > >> >> To post to this group, send email to rubyonra...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<javascript:>. > > >> >> To view this discussion on the web visit > >> >> > >> >> > https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLu5CuygbkG9OeG2tRsFyKNgtHSqyJXhR83fdzN7QHqseA%40mail.gmail.com. > > >> >> > >> >> For more options, visit https://groups.google.com/groups/opt_out. > >> > > >> > > >> > > >> > > >> > -- > >> > Ricardo do Valle > >> > > >> > -- > >> > You received this message because you are subscribed to the Google > >> > Groups > >> > "Ruby on Rails: Talk" group. > >> > To unsubscribe from this group and stop receiving emails from it, > send > >> > an > >> > email to rubyonrails-ta...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. > >> > To post to this group, send email to rubyonra...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<javascript:>. > > >> > To view this discussion on the web visit > >> > > >> > > https://groups.google.com/d/msgid/rubyonrails-talk/CALQXn36nRg66poyssORqXC2kzeKW-8Mch5d3tgJn01_dgOKz_Q%40mail.gmail.com. > > >> > > >> > For more options, visit https://groups.google.com/groups/opt_out. > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "Ruby on Rails: Talk" group. > >> To unsubscribe from this group and stop receiving emails from it, send > an > >> email to rubyonrails-ta...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. > >> To post to this group, send email to rubyonra...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<javascript:>. > > >> To view this discussion on the web visit > >> > https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLv39JkLm-jMvLgHwELO7xDEtSRgAwZocFHOYqf_Qtd6FQ%40mail.gmail.com. > > >> > >> For more options, visit https://groups.google.com/groups/opt_out. > > > > > > -- > > You received this message because you are subscribed to the Google > Groups > > "Ruby on Rails: Talk" group. > > To unsubscribe from this group and stop receiving emails from it, send > an > > email to rubyonrails-ta...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. > > To post to this group, send email to rubyonra...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<javascript:>. > > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/rubyonrails-talk/CAJA5LLfNqsFHDmh2GB700RAbHPM6omyF8Tc7Wu8W_g-jESF87g%40mail.gmail.com. > > > > > For more options, visit https://groups.google.com/groups/opt_out. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ae69a447-4f25-4555-836f-6a3f77c4701c%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.