OK, I''ve been won over from the PHP world where I''ve been happy for 6 + years or so, and is now eager to create some new solutions with RoR. In the PHP world, you can easily find out what abilities your PHP server has by running this little snippet in a page: <?php phpinfo(); ?> Is there an equivalent in RoR ? Secondly, almost all PHP installations comes with support for GD (graphics library) and other image related functionalities built-in. Can I expect most hosts like TextDrive, Dreamhosts etc. to have the Ruby equivalents (if there are any?) installed by default ? Kind regards, Mats ---- "TextMate, coding with an incredible sense of joy and ease" - www.macromates.com -
Cristiano Dias
2005-Jul-29 13:45 UTC
Re: Ruby/RoR equivalent of PHP''s phpinfo() function ?
Regarding image libraries: I am using the RMagick interface to ImageMagick (that most hosts already support) and it is good. http://rmagick.rubyforge.org/ I am still in development mode, so I can''t give more details on how it works on live servers. On 7/29/05, Mats Persson <mats-uGq4Pdis5ybkYMGBc/C6ZA@public.gmane.org> wrote:> > OK, I''ve been won over from the PHP world where I''ve been happy for 6 > + years or so, and is now eager to create some new solutions with RoR. > > In the PHP world, you can easily find out what abilities your PHP > server has by running this little snippet in a page: <?php phpinfo(); ?> > > Is there an equivalent in RoR ? > > Secondly, almost all PHP installations comes with support for GD > (graphics library) and other image related functionalities built-in. > Can I expect most hosts like TextDrive, Dreamhosts etc. to have the > Ruby equivalents (if there are any?) installed by default ? > > > Kind regards, > > Mats > > ---- > "TextMate, coding with an incredible sense of joy and ease" > - www.macromates.com - > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Packages in ruby are installed with gems. Type ''gem list'' on your host to see what they have. Textdrive has a lot of gems, but no rmagick. I see no reason why they wouldn''t install it, however. I can''t speak for any other hosts, but any reasonable host should be able to accommodate you. If not, find a new one... -- rick http://techno-weenie.net
On 7/29/05, Mats Persson <mats-uGq4Pdis5ybkYMGBc/C6ZA@public.gmane.org> wrote:> Secondly, almost all PHP installations comes with support for GD > (graphics library) and other image related functionalities built-in. > Can I expect most hosts like TextDrive, Dreamhosts etc. to have the > Ruby equivalents (if there are any?) installed by default ?There is a Ruby extension to the gd graphics library. http://raa.ruby-lang.org/project/ruby-gd/
Raymond Brigleb
2005-Jul-29 16:17 UTC
Re: Ruby/RoR equivalent of PHP''s phpinfo() function ?
On Jul 29, 2005, at 12:15 AM, Mats Persson wrote:> > Secondly, almost all PHP installations comes with support for GD > (graphics library) and other image related functionalities built- > in. Can I expect most hosts like TextDrive, Dreamhosts etc. to have > the Ruby equivalents (if there are any?) installed by default ?TextDrive does in fact have RMagick in some capacity for doing that, as my require ''RMagick'' (and subsequent use of the package) works like a charm. It''s really quite nice. DreamHost does not, and most others don''t have those nice Ruby bindings - and who knows when they''ll all catch up with TextDrive. -raymond
Actually, here''s the output from gem list --local on my Dreamhost account: *** LOCAL GEMS *** actionmailer (1.0.1) actionpack (1.9.1) actionwebservice (0.8.1) activerecord (1.11.1) activesupport (1.1.1) archive-tar-minitar (0.5.1) Bloglines4R (0.1.0) BlueCloth (1.0.0) builder (1.2.4, 1.2.3) cmdparse (1.0.5, 1.0.4, 1.0.3) diff-lcs (1.1.2) gnuplot (2.1) htmltools (1.09) localization_generator (1.0.7) login_generator (1.1.0) madeleine (0.7.1) mysql (2.6) needle (1.2.0) net-ssh (1.0.1, 1.0.0) PageTemplate (2.1.0) ParseTree (1.3.6) payment (1.0.1, 0.9) podcast (0.0.3) rails (0.13.1) rake (0.5.4) RedCloth (3.0.3) rmagick (1.8.1) RubyInline (3.3.2) rubyzip (0.5.8) ruwiki (0.9.3) salted_login_generator (1.0.9) shipping (1.1.0) sources (0.0.1) syntax (1.0.0, 0.7.0) tidy (1.1.2) webgen (0.3.5, 0.3.4) wee (0.9.0, 0.8.0) Raymond Brigleb wrote:> On Jul 29, 2005, at 12:15 AM, Mats Persson wrote: > >> >> Secondly, almost all PHP installations comes with support for GD >> (graphics library) and other image related functionalities built- in. >> Can I expect most hosts like TextDrive, Dreamhosts etc. to have the >> Ruby equivalents (if there are any?) installed by default ? > > > TextDrive does in fact have RMagick in some capacity for doing that, as > my require ''RMagick'' (and subsequent use of the package) works like a > charm. It''s really quite nice. > > DreamHost does not, and most others don''t have those nice Ruby bindings > - and who knows when they''ll all catch up with TextDrive. >
D''Andrew Thompson
2005-Jul-29 21:47 UTC
Re: Ruby/RoR equivalent of PHP''s phpinfo() function ?
Personally I have found that the phpinfo() function, although being a nice feature has all too often become a forgotten security threat. I cant'' begin to tell you how many people actually forget that they have one of these pages sitting around on their publically viewable domains. It''s one of the first things I check for in doing PHP security, especially if I know they are using certain programs which have default debugging pages with the phpinfo() function. Gem does a fine job of listing everything you need from the command line, which is a much more secure place to play from. And most hosting companies would be happy to provide you with a list, rather than have you place a phpinfo() function on their servers. ;) Dave On 7/29/05, Wilson <defiler-ifvz4xmYPRU@public.gmane.org> wrote:> Actually, here''s the output from gem list --local on my Dreamhost account: > *** LOCAL GEMS *** > actionmailer (1.0.1) > actionpack (1.9.1) > actionwebservice (0.8.1) > activerecord (1.11.1) > activesupport (1.1.1) > archive-tar-minitar (0.5.1) > Bloglines4R (0.1.0) > BlueCloth (1.0.0) > builder (1.2.4, 1.2.3) > cmdparse (1.0.5, 1.0.4, 1.0.3) > diff-lcs (1.1.2) > gnuplot (2.1) > htmltools (1.09) > localization_generator (1.0.7) > login_generator (1.1.0) > madeleine (0.7.1) > mysql (2.6) > needle (1.2.0) > net-ssh (1.0.1, 1.0.0) > PageTemplate (2.1.0) > ParseTree (1.3.6) > payment (1.0.1, 0.9) > podcast (0.0.3) > rails (0.13.1) > rake (0.5.4) > RedCloth (3.0.3) > rmagick (1.8.1) > RubyInline (3.3.2) > rubyzip (0.5.8) > ruwiki (0.9.3) > salted_login_generator (1.0.9) > shipping (1.1.0) > sources (0.0.1) > syntax (1.0.0, 0.7.0) > tidy (1.1.2) > webgen (0.3.5, 0.3.4) > wee (0.9.0, 0.8.0) > > > Raymond Brigleb wrote: > > On Jul 29, 2005, at 12:15 AM, Mats Persson wrote: > > > >> > >> Secondly, almost all PHP installations comes with support for GD > >> (graphics library) and other image related functionalities built- in. > >> Can I expect most hosts like TextDrive, Dreamhosts etc. to have the > >> Ruby equivalents (if there are any?) installed by default ? > > > > > > TextDrive does in fact have RMagick in some capacity for doing that, as > > my require ''RMagick'' (and subsequent use of the package) works like a > > charm. It''s really quite nice. > > > > DreamHost does not, and most others don''t have those nice Ruby bindings > > - and who knows when they''ll all catch up with TextDrive. > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- ~~~~~~~~~~~~~~~~~~~ D''Andrew Thompson http://dathompson.blogspot.com
Jason A. Hoffman
2005-Jul-30 01:18 UTC
Re: Ruby/RoR equivalent of PHP''s phpinfo() function ?
On Jul 29, 2005, at 6:58 AM, Rick Olson wrote:> Packages in ruby are installed with gems. Type ''gem list'' on your > host to see what they have. Textdrive has a lot of gems, but no > rmagick. I see no reason why they wouldn''t install it, however. > > I can''t speak for any other hosts, but any reasonable host should be > able to accommodate you. If not, find a new one... >I install a number of things via FreeBSD''s port system so a gem list wouldn''t show it. - Jason