469 Topics

Member Avatar for
Member Avatar for n3red

Hi, i am still learning i want to make a simple shell script. I wish to make a function that will receive 2 arguments (two dates) and will return all users who logged in during that period, how many times and how long were they logged in. I wish to …

Member Avatar for griswolf
0
386
Member Avatar for Trilby1992

Hi I'm trying to make a friend request feature like in a social networking site and I've been getting this Unknown Attribute error whenever I try to request a friendship with an another user. [url]http://s1042.photobucket.com/albums/b429/Kevin_Tang/?action=view&current=unknown_atrribute.png[/url] And this is the code of the friendship controller. [CODE]class FriendshipController < ApplicationController def req …

Member Avatar for Trilby1992
0
217
Member Avatar for michelle1

Hello, 2 hours later and Good Monday is loosing it's "good'ness"!! :) I need to make the first string below into the second string, that is only single white spaces are permitted so multiple white spaces (shown as "____" in the text below) must be replaced. "1/4 WELDING______LEVER____FRONT DRW_____14844-C__MAT____WMA1CM-WLFRONT" [B]into:[/B] …

Member Avatar for michelle1
0
106
Member Avatar for kingarthur

Hi there, to strengthen my skills, i want to write a small bot, crawling some pages and aggregating the content for an RSS Feed. i think, this shouldn't be a problem at all, but i'm not sure, which technology to use. the easiest way would be (imo) to write a …

0
61
Member Avatar for lolmaus

Windows console works with the CP866 encoding. So input and output should be redefined to CP866. This thread [url]http://www.ruby-forum.com/topic/184730[/url] suggests a nice solution: [CODE]Encoding.default_external = Encoding.find(Encoding.locale_charmap) Encoding.default_internal = __ENCODING__ [STDIN, STDOUT, STDERR].each do |io| io.set_encoding(Encoding.default_external, Encoding.default_internal) end[/CODE] And it works. The text is now correctly displayed in Windows console. But …

0
96
Member Avatar for G_S

Hello everybody I have a question: is it possible to compile ruby files into bytecode. Does ruby have something like .pyc files? I found some discussions online about generating .exe's from ruby files, but what I want to know if it is possible to compile .rb files just like you …

Member Avatar for G_S
0
175
Member Avatar for amirsanaii

Hi every one How are you my friends? I need your help I began to programming ruby for 2 weeks and now i want to work on ruby on rails and of course i need a good DBMS, so i decided to use a SQLServer for my work but with …

Member Avatar for waysys
0
246
Member Avatar for wilch

Hi All I am looking for a new language to learn and add to my language set that already contains PHP & C# in much depth. Ruby is one language i was thinking of learning. Can you guys please give me practical uses and/or applications that use/may use Ruby. I …

Member Avatar for snippsat
0
302
Member Avatar for jack jastin

Hello Everybody Can anyone tell me, What is Ruby basically? Thanks in advance.

Member Avatar for jack jastin
0
135
Member Avatar for borg.stef

So I want to import a model and then take it to particular x and y coordinates in sketchup. I had to do this in 2 different programs since the model had to be selected before taken to the coordinates. The programs are shown below: machine = "trial.3ds" model = …

0
80
Member Avatar for rohitrmehta

Hello, I have a project on hand. I have to build a portal. I am basically a UI person which development skills. Which technology is better for portal development? PHP vs java vs .net vs Ruby? Also if there are any developers with experience in portal development, Give me a …

Member Avatar for Rashakil Fol
0
155
Member Avatar for Wolfemann

Greetings all, I've just started learning Ruby (and Geo Ruby), and am trying to create overlays for Google Maps. I found a [seemingly] great tutorial for doing this [B][URL="http://blog.newsplore.com/2009/02/22/spincloud-lab"]HERE[/URL][/B] ...and it uses Ruby to generate the final javascript - cool, eh? Have everything installed properly (as far as I can …

Member Avatar for SundayForever
0
354
Member Avatar for Japus

Hello I'm trying to create a cross platform application to control a robot. Everything went relatively easy but I got stuck when trying to set a few properties that are Mac specific. They use the 'com.apple.eawt' package which obviously isn't available on Linux or Windows. I need to set the …

Member Avatar for mKorbel
0
287
Member Avatar for imon214

how to populate select box depending upon the selection of the radio button on rails anyone knows what will be the possible ajax and rails script for populating dropdown list values based on selected radio button on rails 3 example there are two type of platform choices(windows, unix) of radio …

Member Avatar for Taywin
0
1K
Member Avatar for Xemintirre

Hello - I'm fairly new to RoR, and after installing version 2.3.9 and trying to run a sample app, I get the errors below. I've been trying to find solutions for the past two days, but no luck. Has anyone run across this error before and/or know how to resolve …

Member Avatar for Taywin
0
145
Member Avatar for rtk1865

Below is the ERB for a new 'To-do' view. Duedate is another table that holds date objects, and there is an association between duedates and todos with a 'duedate_id' in the todo table. Right now there is just a dropdown for any externally created duedates. While creating a new todo, …

Member Avatar for Taywin
0
148
Member Avatar for ayoitzrimz

Hello everyone, I'm in a bit of a rut and was hoping to get some perspective from professionals in the field (who have been through this before). So here's my (very brief history): [LIST] [*]BA from a city school in Economics [*]1.5 years as a quality assurance analyst at a …

Member Avatar for chrishea
0
329
Member Avatar for Derek Elensar

Hello, my name is not Derek Elensar, but I prefer not t reveal my real name onlin if I can help it... so you can just call me Derek. :) I am a beginner C++ programmer. I'm trying to learn Ruby, but haven't gotten far, as I haven't had much …

Member Avatar for Derek Elensar
0
146
Member Avatar for ChaosKnight11

Hi, I am running Ubuntu 10.04 LTS, and wanted to install RVM today, I used: bash < <( curl [url]http://rvm.beginrescueend.com/releases/rvm-install-head[/url] ) (NOTE: I already have git-core and curl, etc.) After running that command I get the output in terminal from Wayne, and I added: if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; …

0
173
Member Avatar for braj1999

I am facing a similar problem where we have to compare two strings. I applied the regex to match it and it works fine for the string which dont have space between. However in case the matching string containg space, then its failing. Please let me know how to tackle …

Member Avatar for Member #545322
0
69
Member Avatar for jordan0420

i am able to get the metasploit console started however when i try to open armitage for a gui as i am currently learning the process of penetration testing to secure my home network, i get the message[CODE=Bash] ./armitage:18:in 'exec' : No such file or directory - java (errno:: ENOENT) …

0
92
Member Avatar for gioe

Hello everyone, I am a newbie (started learning ruby 3 weeks ago) :icon_redface: and I can not get out from this comiling error. when I try to run this sample program: [code] #!/usr/bin/ruby # ZetCode Ruby GTK tutorial # # This program centers a window on # the screen # …

Member Avatar for gioe
0
762
Member Avatar for chris.gogreen

Hello Everyone, I just started to learn Ruby last Friday! Awesome right? I want to learn to build web application and heard Ruby was a good language to learn with, so that's what I started with. Are there any Ruby web application developers with advice for a noob on a …

Member Avatar for pablouin
0
53
Member Avatar for jember

What is the best IDE that I should use to make a program using Ruby Language? And where can I download it for free? I'm self studying. :)

Member Avatar for kvprajapati
1
203
Member Avatar for benjaminFowl87

Hi I have my initialise constructor, why won't my function to_hash work ? [CODE]def initialize(msg) @original_msg = msg.strip.delete(' ') s = ["|","^"] @chunked_msg = @original_msg.split(s[0]) @msg_hash.self.to_hash end def to_hash @chunked_msg.each do |x| s = x.split("=") @msg_hash[s[0]] = s[1] end return @msg_hash end[/CODE]

Member Avatar for benjaminFowl87
0
113
Member Avatar for gunbuster363

Today I tried to write a vba macro with the vba editor in excel to perform some stupid and time-consuming job. but then ,after 2 hours trying to write the macro in vba, I found that I don't know how to write vba, and the tutorials is not completed in …

Member Avatar for peter_budo
0
162
Member Avatar for kishang09

i am from the philippines, can you give me an idea how i can send SMS from my rails app?

Member Avatar for kvprajapati
0
98
Member Avatar for jhonnatas

hi guys i need some help,i have installed ruby 1.91+rails 3.0+radrails 0.7.2 bu twhen im using the radrails it cant start the server it keeps like: "starting the server" and it never works! rails path: C:\Ruby192\bin\rails rake path: C:\Ruby192\bin\rake it says it cant load script/server thanks

Member Avatar for 3magic
0
156
Member Avatar for gisek

Hi, I encountered a problem with threads in ruby. I created such a script: [CODE] require 'thread' def func $i = 0 while true $i += 1 $file.write("bbbb\n") Thread.pass end end def func2 $j = 0 while true $j += 3 $file.write("aaaa\n") Thread.pass end end def funcTerm while true a …

0
81
Member Avatar for nullSpace

Im trying to add new records to my joins table. but when ever i click my link to do so i get this error [QUOTE]uninitialized constant Channel::UsersChannel[/QUOTE] here is the code [CODE] <%= link_to "Subscribe to Channel", subscribe_path(channel, current_user) %>[/CODE] [CODE] def subscribe @channel = Channel.find(params[:channel_id]) @user = current_user @channel.users …

0
129
Member Avatar for Varnius

Hello. Me and some of my friends at college were assigned a practical task of developing a net application for optimization of cutting rectangular parts from some kind of material. Something like apps in [URL="http://www.freedownloadmanager.org/downloads/cut_optimization_software/"]this[/URL] list, but more simplistic. Basically, I`m interested if there is any source code for this …

0
103
Member Avatar for barryjogorman

I am an independent IT and business consultant. I originally graduated as in computer engineering in 1984 (Languages then:Pascal, LISP, Motorola 6800 and 68000 Assembler) from Trinity College in Dublin, Ireland. Have worked as an IT consultant for many years (am also a qualified accountant). Recently learned the basics of …

Member Avatar for WASDted
0
166
Member Avatar for Clawsy

Hello, I use Ruby with Sinatra in my application and I need to store a big data (exceeding 4K) in my session or somewhere secude on the server because I do some API calls and I refer to that data very often and that's why I need it stored. The …

Member Avatar for Clawsy
0
451
Member Avatar for Agent Cosmic

I want to build a large scale web application but I'm torn between the three. The main points I'm looking for are productivity, speed, hosting, community, scalability, learning resources and technology (AJAX, database, threading, MVC etc). Here are my impressions of them: [B]PHP:[/B] de facto for web development, big community, …

Member Avatar for nonshatter
0
75
Member Avatar for dammmm

Hello, I am looking for some fullscript/CMS ready-made which would help me to see how to articulate and merge ruby/html/MySql. I allready worked on these different languages but have difficulties into merging all of them togheter to create a website. I thank you in advance, Damiano from Nicaragua! :)

0
74
Member Avatar for overlook

Greetings, I am trying to allign horizontal between this two submit button, but I do not understand how to do it, this codes below will show two button (submit1) and (submit2), but located vertically. I need to allign it as horizontal so submit2 button is located horizontally next to submit1 …

0
82
Member Avatar for asimzeeshan

I am running CPanel and recently discovered that I can install RubyonRails there too ([url]http://docs.cpanel.net/twiki/bin/view/AllDocumentation/RubyonRails/WebHome[/url]) I have the new icon RUBY ON RAILS in my CPanel (after installation following the instruction from the link above). Now when I create a test application, it runs OK but when I click on …

Member Avatar for gacela
0
318
Member Avatar for Mysteri

Hi, I'm a web developer and wanted to try ruby. I installed ruby 1.8 on my debian server with eruby and mod_ruby for apache2. Apache config files are configured correctly to accept .rhtml files and parse them. If I type sth like <% print "Test" %> then there's no problem, …

0
105
Member Avatar for thiliniss

I like to learn Ruby.but I didnt use it.I have already used as J2EE.I dont know about Ruby?What is this Ruby??????

Member Avatar for zark_yoc
-2
89
Member Avatar for alexgv14

[url]http://keyonary.com[/url] When you search for something like paste all of the keyboard shortcuts slide up on your browser. I know its making a ajax requested and then using jquery for the effect. BUt how is it done. Is there a plug-in or anything in ruby that is similar.

Member Avatar for Excizted
0
74
Member Avatar for mroberts50

A number of different server-side programming languages are available. Which one of these languages is NOT one of these? PHP, Java, Ruby on Rails or ASP?

Member Avatar for Triztian
0
85
Member Avatar for tiger86

This is not an advertisement, this is purely a thread telling people about resources that I've found, well resourceful. For those who are stuck with Ruby on Rails or need to learn the basics you should check out the free videos by Ryan Bates at [url]www.railscasts.com[/url], they've helped me a …

Member Avatar for tallship
0
452
Member Avatar for Jothe

Hi people, am trying to start a ruby on rails project, however i only know a bit of ruby but nothing on rails.So does anyone who can point me to the right locations for Good resource material either site or books would be highly appreciated..

-1
74
Member Avatar for stilllearning

I am really new to this, so please excuse me if this is a dumb question. I am saving some data using ruby on rails and one of those fields is a background for the divs I am rendering back on load. I created the partial layouts successfully but I …

Member Avatar for blocblue
0
131
Member Avatar for onauc

Hi, :) I know that there are books out there and internet tutorials too for a beginner like me to learn programming but do you know what all these tutorial's downside is ? I’ll tell you what their downside is and you can upside it and cash in on it. …

Member Avatar for aimsoft
0
274
Member Avatar for pathikhobo

hello people, i'm new here in Daniweb and very much interested in web development(Specially php,mysql,ajax based web applications). I know HTML and CSS, but don't have any past experience in any scripting/ programming language like javascript or c(though i know basics of C), java etc. Some of my friends suggested …

Member Avatar for richman_tck
0
285
Member Avatar for alexgv14

My observe field doesn't do anything any idea why. [CODE]<%= observe_field 'keyword', :frequency => 0.5, :update => 'results', :loading => "Element.show('.spinner')", :complete => "Element.hide('.spinner')", :url => { :action=> 'search_results' }, :with => 'keyword' %> <%= form_remote_tag :url =>{ :action => :search_results }, :update => "results", :loading => "$('.spinner').show()", :complete => …

0
110
Member Avatar for alexgv14

I am working on a search function on RoR that basically just has a cool visual effect when a user clicks the search button. Here is the code in my view for search.rhtml [CODE]<html> <head> <title>Tutor</title> <%= javascript_include_tag :defaults %> </head> <body> <h1></h1> <%= form_remote_tag :url =>{ :action => :search_results …

0
152
Member Avatar for Member 785602

I've just upgraded an existing app from Rails 1.2.5 (Ruby 1.8.5) to Rails 2.3.8. There were several issues to the upgrade including finding and installing a good MySQL gem (dll in my case). This app worked fine on Rails 1.2.5 but I needed to upgrade for security concerns. There are …

0
78
Member Avatar for amirsanaii

Hi every one I need some document to start ruby-lang. I know object-Oriented, and now need some good and complete reference to start this language. please give me a good advise so thanks to my Friend Best Regards Amir :)

Member Avatar for Member #545322
-1
97

The End.