322 Topics

Member Avatar for
Member Avatar for persianprez

I need to install these 3 tools in order to run Agriya Volume, but how do I? I'm running on a basic plan (linux) on securesignup. I don't have root access. Is there anyway? Or do I have to buy a VPS?? The three tools are: Mplayer + Mencoder Flvtool2 …

Member Avatar for persianprez
0
114
Member Avatar for atrip25

Ok, I have never used Ruby before and I'm trying to figure out how to convert my following Perl code into Ruby to do exactly what is does now. Basically I used a loop structure to produces the following output (user can specify how many lines need to be printed): …

Member Avatar for tiger86
0
250
Member Avatar for cutekate

I am posting form data into a file and also on the web page. Could please tell me how do i do that with ruby. This is my code for html form [CODE]#!/usr/bin/ruby print "Content-type:text/html\n\n"; # Display the form print <HTML; <html> <body> <form action="form1.rb" method="post"> <p>Your Name:<input type="text" name="name"></p> …

0
75
Member Avatar for Dark_Omen

Hello everyone, I just started to learn how to program in Ruby. It is a pretty cool language. You can get ruby from [url="http://www.ruby-lang.org"]www.ruby-lang.org[/url]. You can see my code snippets on making widgets using fxRuby (fxRuby is downloaded seperatly from ruby, unless you get the one click installer, which installs …

Member Avatar for pkc
0
425
Member Avatar for fraogongi

Hi y'all, I've run into problems while running my program in eclipse. Its a Jruby application that uses Glimmer to create GUI components. I've followed the instructions as in [url]www.indijava.in/community/article/Glimmer-Using-Ruby-to-Build-SWT-User-Interfaces[/url] within eclipse, yet I can't seem to get it work. Am trying to run a simple example as the one …

Member Avatar for reflexer
0
134
Member Avatar for michelle1

Hi there, QUESTION: Whilst "parse(argv)" is obvious, what does "opts.parse!(argv)" do in the below code? And what is the word use to describe doing this? CONTEXT: I am looking at a class called 'Options' whose job is to parse command line options which get passed to a program called 'PartInspector'. …

0
88
Member Avatar for skrithikaa

Hi, How do you create HTML files using RUBY. I have a requirement where I need to set color and font of the text, and also provide formatting options for tables having different colors for rows and border(on/off). Can anybody tell how to do this Thanks, K

Member Avatar for skrithikaa
0
3K
Member Avatar for michelle1

Hello there, [B]Ruby Version Installed:[/B] ruby 1.9.1 (2008-10-28 revision 19983) [i386-mswin32] [B]Operating Systems:[/B] Windows XP (both PC and laptop) [B]Laptop:[/B] I can run a gem command on with no problem [B]PC: [/B][COLOR="Red"] gem won't work despite that ruby works fine. I get this message for any gem command: [/COLOR] [CODE]% …

Member Avatar for michelle1
0
351
Member Avatar for tiger86

Hey; I have 6 months of work done in PHP and I really don't want to re-invent the wheel but I want to use some Ruby in my site. Is it possible to "mix languages" like PHP and ruby or will I run into some major problems? I would really …

Member Avatar for codejoust
0
272
Member Avatar for thegoatboy

Hello Hopefully someone can help me. I am trying to update fields in a mysql database using ruby with dbi, but no matter what I try, i just cannot update the row. I am able to search it, but never update. I search for the right string, then open a …

Member Avatar for thines01
0
229
Member Avatar for johndoe444

Why is this regular expression (pat) not working? According to documentation, scan takes both string and regexp. [CODE]irb(main):001:0> pat = '\d+ (\w+) \(\d+\)' => "\\d+ (\\w+) \\(\\d+\\)" irb(main):002:0> string = 'dfasdf 1 up (2009) sdfasdf 2 walle (2008) adfasdf' => "dfasdf 1 up (2009) sdfasdf 2 walle (2008) adfasdf" irb(main):003:0> …

Member Avatar for johndoe444
0
117
Member Avatar for mhenry

After twitter, many people are ready to do projects with ruby on rails, let me tell you frankly i dont know even a inch about it, I just know basic languages like javascript, xml, html , asp. Give me a roadmap how to read ruby on rails and master at …

Member Avatar for mhenry
0
211
Member Avatar for sram6

Hello everyone, I am a newbie to Ruby. I installed Instant Rails on a Windows Vista machine and whenever I started the InstantRails, it gave an error message "Either Apache or MySQL cannot run because another program is using it's ports." I have checked my firewall settings and couldn't figure …

Member Avatar for tiger86
0
161
Member Avatar for phper

Hi! Does anyone know of a good tutorial for installing Ruby with Php, Apache and MySQL. I have tried InstantRails but i want to install it without using the instant option! Thanks.

Member Avatar for tiger86
0
309
Member Avatar for skrithikaa

Hi, Can some one tell me how to create elements like (text, tables) in memory, then edit them in memory and finally print it on a file. Thanks, K

0
92
Member Avatar for skrithikaa

Hi, I am new to ruby programming. I would like to know how to create a document and add elements like texts and tables. I also need to modify those and then write them into a file. Is it possible to do it with Ruby? Thanks, K

Member Avatar for codejoust
0
84
Member Avatar for sheishei

anyone here who could help me make a webpage using ruby? is it possible? im having a hard time..

Member Avatar for codejoust
0
84
Member Avatar for linux

1) Is it possible to install Ruby (the compiler) onto a flashdrive and run it on another machine without adding the registry edits? Is there like a portable copy of the compiler that I can use? I need Ruby at school, but I can't install anything. 2) I think my …

Member Avatar for HiHe
0
197
Member Avatar for ringling

How would I go about writing a Mad Libs program? Any examples would be greatly appreciated. Thanks!

Member Avatar for codejoust
0
75
Member Avatar for theGraffo

Hey! I have a strange problem. When developing with Ruby on Windows Xp, if I try to run the .rb file with [CODE]ruby mycode.rb[/CODE] The execution stops returning: [CODE]/usr/lib/ruby/site_ruby/1.8/i386-cygwin/sdl.so: [BUG] Segmentation fault[/CODE] Of course, /usr makes no sense in windows. On the other hand, if I simply double-click mycode.rb from …

0
105
Member Avatar for EddieC

Research released this week by Evans Data showed that 73 percent of the market currently use or plan to adopt the [url=http://en.wikipedia.org/wiki/Spring_framework]Spring application framework for Java[/url] within the next two years. More remarkable is that 83 percent of companies with 500 or more developers use Spring, according to the study[/url]. …

Member Avatar for ~s.o.s~
0
666
Member Avatar for happygeek

[URL="http://www.ruby-lang.org/en/news/2008/06/20/arbitrary-code-execution-vulnerabilities/"]Multiple arbitrary code execution vulnerabilities in Ruby[/URL] have been revealed by the [URL="http://www.apple.com/support/security/"]Apple Product Security[/URL] team which could lead to Denial of Service attacks. A total of five vulnerabilities have been reported, with versions impacted being: [INDENT]1.8.4 and all prior versions 1.8.5-p230 and all prior versions 1.8.6-p229 and all prior …

1
243
Member Avatar for EddieC

If you’re a Ruby or Python developer building AJAX applications, you’ve got to learn JavaScript. Even if you’re converting Ruby code to client-side JavaScript with a tool like [URL= http://www.scribd.com/doc/220397/RJShow-it-works] RJS[/URL], it can still be helpful to know the AJAX component for adding features and debugging. Now Microsoft is promoting …

Member Avatar for lkcl
0
342
Member Avatar for slac3dork

A simple domain name checker. This script use service from who.is Usage: ruby domainchecker.rb <domain_name>

0
499
Member Avatar for Stylish

I needed a way to spawn multiple threads, have them monitored, and restarted if an error occured. I came up with the following. This snippet is from a larger program, so if there is a problem please let me know. This is for command line and tested on Linux (well, …

0
124
Member Avatar for Jessehk

This is a simple, but complete (pseudo) random password generator. Examples of usage: [code] $ ruby pgen.rb soovmuvytv $ ruby pgen.rb --length=20 bynnugipyeeghdbihcdn $ ruby pgen.rb --length=20 -n v3ji3awj1trzjlda5oax $ ruby pgen.rb --length=20 -np :sa6vafpummpttjp?qo: [/code] For complete usage guidelines, run [inlinecode]$ ruby pgen.rb --help[/inlinecode] This (hopefully) serves as both …

-1
169
Member Avatar for vegaseat

Using an SDL (Simple DirectMedia Layer) wrapper is one way to play sound and music with Ruby. I have tested this snippet with .MID .MOD and .WAV files and it performs well. There are several SDL wrappers for Ruby available, I picked RUDL because of its simplicity. RUDL is great …

0
294
Member Avatar for Dark_Omen

Okay, this introduces two new things into the widget. The first thing you need is a picture file (.jpg, .png, .bmp etc...). The new code makes the picture into the button with the text "Hello, World" on the side. In the parentheses next to File.open you would put the file …

Member Avatar for bumsfeld
0
145
Member Avatar for Dark_Omen

This is kind of an extension to my previous code snippet. This language is really fun to use. I find it pretty easy to use and understand. This will create a window with a button.

Member Avatar for bumsfeld
0
333
Member Avatar for Dark_Omen

This is a basic window coded in Ruby. To download Ruby go to [url]www.ruby-lang.org[/url] and download the latest version. The latest version includes the FX toolkit that is needed to create this window.

Member Avatar for Dark_Omen
0
233
Member Avatar for Nathan Campos

Hello, I'm learning Ruby, and i want to know how to compress files using Ruby. Thanks, Nathan Paulino Campos

Member Avatar for Nathan Campos
0
135
Member Avatar for drjay1627

What are names starting with the ":", are they variables, constants or something else? drjay

Member Avatar for Kevin_poison
0
112
Member Avatar for Renzokouken_22

Hi guys.. I want to learn Ruby on Rails.. Actually I already have a Computer Based Training CD in Ruby on Rails by Lynda.com.. But I'm having a hard time in deploying the requirement 'coz in the training video the speaker is working on Mac OS.. But I'm using Windows.. …

Member Avatar for Renzokouken_22
0
190
Member Avatar for dragonflyuk

I'm experimenting with ruby and watir for parsing data from the web. I'm having no problem getting info from standard fields, however I've come across a listbox on one of the pages I'm looking at, and I want to find an easy way of getting the number if items returned …

Member Avatar for sridharupputuri
0
86
Member Avatar for fightoplankton

I have been struggling for days on just the first part of this script. Please help! I need to add the ability to delete the last column of each csv, which vary in their lengths. [CODE] require 'rubygems' require 'roo' require 'fileutils' require 'rio' FileUtils.mkdir_p "/Users/pshapiro/Desktop/Excel/xls" FileUtils.mkdir_p "/Users/pshapiro/Desktop/Excel/tmp" FileUtils.mkdir_p "/Users/pshapiro/Desktop/Excel/csv" …

0
111
Member Avatar for drjay1627

i'm a java c/c++ person. trying out ruby for the 1st time! how do i do something like this in ruby: [code] //this is java public static void main ( String args [] ) { File inFile = new File ( args [ 0 ] ); File outFile = new …

Member Avatar for ~s.o.s~
0
207
Member Avatar for lyardson

I need a Good resource for ruby...as am fresh to ruby...need to learn from sctrach...suggest form source where i can learn from scratch

Member Avatar for kingarthur
0
89
Member Avatar for r_sathya

Hai I am sathiya, I install redmine in the mandriva linux server. Redmine is already running in mandriva in port number 3000. i want to install another copy of redmine in the same server . but it taking the port number 3000 as default. HOW DO I CHANGE THE PORT …

Member Avatar for aodanier
0
106
Member Avatar for ClimaxBeetle

How long does it take to count 1 billion? Determine the amount of time it takes the program. [CODE]Int i,j,k, count=0; For (i=0; i<N; i++) For (j=0; j<N; j++) For (k=0; k<N; k++) count++[/CODE] to complete in your programming environment, for N=1000, and 1000. If your compiler has optimization features …

0
95
Member Avatar for gadys

Hi I starting to work with ruby and soap and had a question : 1. how do I generate a WSDL file for the service I created ? will it be compatible with an .NET client ? Thanks, Gady ---------------------------------------------------------------- [code=ruby]begin class MyServer < SOAP::RPC::StandaloneServer # Handler methods def add(a, …

Member Avatar for unleashbf
0
95
Member Avatar for Suneetha Reddy

[code=ruby] i am new person to ruby.can any one tell me what is ruby? what is ruby purpose?.why it is used?. plz tell me reference sites [/code]

Member Avatar for MariaERamos
0
142
Member Avatar for superjacent

In learning Ruby I've dug out some old C++ exercises and one in particular which can be found [URL="http://prime357.net/node/80"]here [/URL]deals with a for loop. I'm basically converting the C++ code to Ruby code. I won't repeat the C++ code but the exercise is as follows: Write a C++ program that …

Member Avatar for superjacent
0
155
Member Avatar for shekarls

I have written ftp code which will download a single file from the Server using the below code: [code] require 'rubygems' require 'net/ftp' require 'fileutils' URL = 'IP address' username = 'test' passwd = "test" filename = "file1" directory = '/home/test/' localfile = 'C:\\Documents and Settings\\User1\\Desktop\\file1' ftp=Net::FTP.new ftp.connect(URL,21) ftp.login(username,passwd) ftp.chdir(directory) …

0
98
Member Avatar for superjacent

How do I configure SciTE so that when code ( gets() ) asks for user input I can enter that input via the output console. At present, all that happens is a 'Terminate' button appears in the output console. If the code doesn't contain any keyboard input, then all is …

0
106
Member Avatar for clai2x

please excuse me, i'm not a developer but a tester and i'm no good at doing programming stuff and all. im into automation now for my testing and i choose to use ruby for it but i have a problem hope you guys could help me out of this... i …

0
95
Member Avatar for superjacent

I dabbled in Ruby quite a while ago but only at the console level. I didn't take it any further at the time. I'm now considering treating it more seriously this time, though I'd have to start from the start. My understanding is that Ruby is a cross-platform development language. …

Member Avatar for fraogongi
0
167
Member Avatar for vesper967

So I'm writing a program that reads in a file which has each word on a different line. The program is supposed to loop through the file in such a way that when it reads a line and gets to the end of the line it adds that word to …

0
71
Member Avatar for pasabeer

Is it possible to create dynamic menu items for a web application. While clicking on one menu item, it should expand and show the child menu items. While clicking again it should collapse the menu and hide the children. While clicking on child menu item, it should show the corresponding …

Member Avatar for Jennysmithuk
0
131
Member Avatar for EdTheUniqueGeek

Hello. I am completely new to web development but want to learn Ruby, and maybe PHP. I am currently a Sys Admin working in a Windows environment but I am very familiar with Linux OS server platforms also having built and run both a Windows and Linux web, MS SQL, …

0
90
Member Avatar for sum1

Hi, I have created a DB connection using OCI and got a record(type: varchar2), but I'm unable to compare it with a string (this is string is same as the one which I retrieved from DB). Below given is a code [code=ruby]conn = OCI8.new('username', 'pwd', 'DBNAME'); cursor = conn.exec('select fieldname …

0
63

The End.