Professional Web Applications Themes

How to do windows applications ? - Ruby

I am going to write a ruby application for a dog-school. They train dogs, do statistics of the dogs, etc.. I use unix myself, but the application has to be available on offline windows machines (so an online webservice doesn't work). I would prefer a platform independent solution; bundling apache+mod_ruby+my future dog application. But I see many loose ends: How to bundle these things together, so it will be installed as *one* application ? Question1: What modules do you use for windows applications ? Question2: Any hints to a unix-man, which has to write a windows application? -- Simon Strandgaard...

  1. #1

    Default How to do windows applications ?

    I am going to write a ruby application for a dog-school.
    They train dogs, do statistics of the dogs, etc..
    I use unix myself, but the application has to be available
    on offline windows machines (so an online webservice doesn't work).

    I would prefer a platform independent solution; bundling
    apache+mod_ruby+my future dog application. But I see many loose ends:
    How to bundle these things together, so it will be
    installed as *one* application ?


    Question1: What modules do you use for windows applications ?

    Question2: Any hints to a unix-man, which has to write a windows
    application?


    --
    Simon Strandgaard

    Simon Strandgaard Guest

  2. #2

    Default Re: How to do windows applications ?

    Does it have to be a web application? If it is an offline application why
    not take advantage of the situation and give your users a proper user
    interface for once.
    > apache+mod_ruby+my future dog application.
    I suppose you will need ruby too :-)

    Tom


    Thomas Sondergaard Guest

  3. #3

    Default Re: How to do windows applications ?


    "Simon Strandgaard" <qj5nd7l02sneakemail.com> schrieb im Newsbeitrag
    news:pan.2003.09.18.20.36.56.418954sneakemail.com ...
    > I am going to write a ruby application for a dog-school.
    > They train dogs, do statistics of the dogs, etc..
    > I use unix myself, but the application has to be available
    > on offline windows machines (so an online webservice doesn't work).
    >
    > I would prefer a platform independent solution; bundling
    > apache+mod_ruby+my future dog application. But I see many loose ends:
    > How to bundle these things together, so it will be
    > installed as *one* application ?
    Why do you want to use a web server if the machines are offline anyway?
    Why not just create a Ruby/Tk (or other GUI toolkit) application? If you
    have a local network and need a centralized server then Ruby/Tk with DRB
    might be an option, too. If you want to go for a web application IMHO
    bundling is not so important since you will install it only on one
    machine.
    > Question1: What modules do you use for windows applications ?
    For web apps there's plenty of template frameworks out there, eruby,
    amrita, ...
    > Question2: Any hints to a unix-man, which has to write a windows
    > application?
    I'd say do it the same way as Unix applications: write it portable. Use
    such things as File.join, File.basename, File.dirname, File::SEPARATOR,
    File::PATH_SEPARATOR etc.

    Cheers

    robert

    Robert Klemme Guest

  4. #4

    Default Re: How to do windows applications ?

    On Fri, 19 Sep 2003 11:24:55 +0200, Robert Klemme wrote:
    >
    > "Simon Strandgaard" <qj5nd7l02sneakemail.com> schrieb im Newsbeitrag
    > news:pan.2003.09.18.20.36.56.418954sneakemail.com ...
    >> I am going to write a ruby application for a dog-school.
    >> They train dogs, do statistics of the dogs, etc..
    >> I use unix myself, but the application has to be available
    >> on offline windows machines (so an online webservice doesn't work).
    >>
    >> I would prefer a platform independent solution; bundling
    >> apache+mod_ruby+my future dog application. But I see many loose ends:
    >> How to bundle these things together, so it will be
    >> installed as *one* application ?
    >
    > Why do you want to use a web server if the machines are offline anyway?
    It was just a thought..

    > Why not just create a Ruby/Tk (or other GUI toolkit) application?
    Yes I some experience with using FxRuby, this is probably the way for me
    to go.


    >> Question1: What modules do you use for windows applications ?
    >
    > For web apps there's plenty of template frameworks out there, eruby,
    > amrita, ...
    This doesn't answer the question, what ruby-modules/frameworks do you use
    for composing windows application ? How do you install it so it *feels*
    like a typical windows application (installshield?) ?

    >> Question2: Any hints to a unix-man, which has to write a windows
    >> application?
    >
    > I'd say do it the same way as Unix applications: write it portable. Use
    > such things as File.join, File.basename, File.dirname, File::SEPARATOR,
    > File::PATH_SEPARATOR etc.
    Also the shebang concept does'nt work on windows, what do I have to do if
    I want to make a ruby script executable ?

    --
    Simon Strandgaard
    Simon Strandgaard Guest

  5. #5

    Default Re: How to do windows applications ?

    Simon Strandgaard wrote:
    > On Fri, 19 Sep 2003 11:24:55 +0200, Robert Klemme wrote:
    >
    >>Why not just create a Ruby/Tk (or other GUI toolkit) application?
    >
    >>>Question1: What modules do you use for windows applications ?
    >>
    >>For web apps there's plenty of template frameworks out there, eruby,
    >>amrita, ...
    >
    > This doesn't answer the question, what ruby-modules/frameworks do you use
    > for composing windows application ? How do you install it so it *feels*
    > like a typical windows application (installshield?) ?
    I use a) whatever I need and b) what's available. (That's of course completely indepentent of the OS
    anyway...)
    I personally, don't think a special kind of installer makes an application feel more like a typical
    windows app. Many people don't like that installer stuff anyway, and prefer to just place the
    file(s) in a directory and run the program. That depends heavily on your customers "culture" and
    back ground, of course.

    Do you think about wrapping the app in something like exerb to produce a windows executable?
    Then you might think about wrapping _that_ into some installer in turn...
    But I wouldn't like it delivered that way. But I'm not a dog trainer.
    > Also the shebang concept does'nt work on windows, what do I have to do if
    > I want to make a ruby script executable ?
    Just run it - like in "ruby killerapp".
    If the system's set up appropriately it should recognize the .rb prefix and run the Ruby interpreter
    automatically. What I think is that "How to fire up the program" is likely the most OS oriented
    question you should encounter (part from trying "fork" and things on a Windows box).

    The main part of the app however should be largely unrelated to the underlying OS - especially if
    you do it in Ruby anyway.


    Cheers,

    Stephan

    Stephan Kämper Guest

  6. #6

    Default Re: How to do windows applications ?

    il Sat, 20 Sep 2003 13:30:24 +0200, Simon Strandgaard
    <qj5nd7l02sneakemail.com> ha scritto::



    >
    >Also the shebang concept does'nt work on windows, what do I have to do if
    >I want to make a ruby script executable ?
    I think you may set some stuff in WinRegistry to get this same effect,
    but I can't remember :(
    BTW, imo, it is far better to distribute a single installer with a
    batch file or exe file that just execute 'ruby myscript.rb'.
    You should take a look at how FreeRIDE is distributed, maybe..
    gabriele renzi Guest

  7. #7

    Default Re: How to do windows applications ?

    gabriele renzi wrote:
    > >
    > >Also the shebang concept does'nt work on windows, what do I have to do if
    > >I want to make a ruby script executable ?
    >
    > I think you may set some stuff in WinRegistry to get this same effect,
    > but I can't remember :(
    > BTW, imo, it is far better to distribute a single installer with a
    > batch file or exe file that just execute 'ruby myscript.rb'.
    > You should take a look at how FreeRIDE is distributed, maybe..
    On Windows, FreeRIDE uses the NSIS installer:

    [url]http://nsis.sourceforge.net/site/index.php[/url]

    Curt


    Curt Hibbs Guest

  8. #8

    Default Re: How to do windows applications ?

    This is a multi-part message in MIME format.

    ------=_NextPart_000_0017_01C37F7F.99CE15A0
    Content-Type: text/plain;
    cht="us-ascii"
    Content-Transfer-Encoding: 7bit
    > -----Original Message-----
    > From: gabriele renzi [mailto:surrender_itrc1.vip.ukl.]
    > Sent: September 20, 2003 13:24
    >
    > il Sat, 20 Sep 2003 13:30:24 +0200, Simon Strandgaard
    > <qj5nd7l02sneakemail.com> ha scritto::
    >
    > >Also the shebang concept does'nt work on windows, what do I have to do if
    > >I want to make a ruby script executable ?
    >
    > I think you may set some stuff in WinRegistry to get this same effect,
    > but I can't remember :(
    The PATHEXT system environment variable has a list of "executable"
    extensions. You need also to set-up "Open with" for .rb and .rbw files
    in "Folder Options\File Types" or unzip and merge the attachment into the
    registry.

    Yura.


    ------=_NextPart_000_0017_01C37F7F.99CE15A0
    Content-Type: application/x-zip-compressed;
    name="rb.zip"
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment;
    filename="rb.zip"

    UEsDBBQAAAAIALuWCi/IFjabyAAAALsCAAAGAHoAcmIucmVnU0RlALwAAAAACABi9aoSY 2RgaRBh
    YGAwYIAAHyBmZAUzWUWBhNYF85jJhrdk2J9aa79mxi3HyMTAwM RQwMAClpZg+M8ozwASA6lVABIK
    YLYIRJwRIi4EplQgYnjsBJm3kkEIxTxFIBsAVVQNAAcBzTY/T5VsP0DMNj+VkE0LgkAQhu+C/0EE
    oSKkoFMQFGklBYZ6iUbEj60E3Y0lmfr3GVsQ4VeXmcvzzrw8jr k2DcubyJIsHTdb8xAsdwvXNd3A
    sW0PdB75sjSfqTxapRlR6zH8cNgEijMCdYrooew5O/Mwb+bBIKewyG5WzKjIxlMAXubF1NOYDUct
    N9wLyTKRZldCu9DwAv2uIMQsz0OaiB/w1TFK6bsouRNQFVC1cbm0QX0JrPak9ChTMKUJw35LuE0a
    tlnD/7RhZ2+/ZAdxWGHuCVBLAQIXCxQAAAAIALuWCi/IFjabyAAAALsCAAAGABEAAAAAAAEAIAC2
    gQAAAAByYi5yZWdTRAQAvAAAAFVUBQAHAc02P1BLBQYAAAAAAQ ABAEUAAABmAQAAAAA=

    ------=_NextPart_000_0017_01C37F7F.99CE15A0--


    Iouri Kloubakov Guest

  9. #9

    Default Re: How to do windows applications ?

    On Sat, 20 Sep 2003 18:19:11 +0000, gabriele renzi wrote:
    > il Sat, 20 Sep 2003 13:30:24 +0200, Simon Strandgaard
    > <qj5nd7l02sneakemail.com> ha scritto::
    >
    >>Also the shebang concept does'nt work on windows, what do I have to do if
    >>I want to make a ruby script executable ?
    >
    > I think you may set some stuff in WinRegistry to get this same effect,
    > but I can't remember :(
    <
    > BTW, imo, it is far better to distribute a single installer with a
    > batch file or exe file that just execute 'ruby myscript.rb'.
    > You should take a look at how FreeRIDE is distributed, maybe..
    Thanks everyone, I will take a look at FreeRIDE.

    Who wants to do batch jobs, when they got ruby :-)

    --
    Simon Strandgaard
    Simon Strandgaard Guest

Similar Threads

  1. Running Java applications with CF applications
    By isleta13 in forum Coldfusion Server Administration
    Replies: 2
    Last Post: March 28th, 12:48 PM
  2. client side cache invalidation for windows.forms applications
    By Mitja Semolic in forum ASP.NET Web Services
    Replies: 0
    Last Post: January 26th, 11:06 AM
  3. COM+ applications
    By Jayakumar in forum ASP Components
    Replies: 0
    Last Post: August 18th, 08:47 AM
  4. Running Windows Applications Via World Wide Web
    By matt in forum ASP.NET Web Services
    Replies: 0
    Last Post: March 7th, 10:55 AM
  5. Replies: 0
    Last Post: August 21st, 12:11 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139