469 Topics

Member Avatar for
Member Avatar for arupface

This is below is an example of superclass/subclass construct : C:\>irb --simple-prompt >> class Parent >> @@x = 10 >> end => 10 >> class Child < Parent >> @@x = 12 >> end => 12 >> class Parent >> puts "@@X = #{@@x}" >> end @@X = 12 => …

Member Avatar for sepp2k
0
237
Member Avatar for BrackishWater

I'm converting a Java/J2EE app over to Ruby/Rails. I need a solution for the CORBA calls. I see that Ruby has its own distributed API (DRb) and there are a few 3rd party CORBA tools, but nothing seems viable for actually doing CORBA in Ruby. What are you guys using …

Member Avatar for Member #949455
0
279
Member Avatar for akvarel1

I am using this [application example][1] and try to model it to fit my needs. I am modelling your index.html.erb to fit my needs. I want to get rid of "start" button in order to prevent single-file upload (I dont want it), but it seems that "start upload"(multiple upload)-button is …

Member Avatar for Member #949455
0
419
Member Avatar for akvarel1

Hello again I am trying to show the errors that can occur by uploading a file (file name, size). I tried to modify this code cut-off but I could not. else format.html { render action: "new" } format.json { render json: @upload.errors, status: :unprocessable_entity } end I have following validations …

Member Avatar for Member #949455
0
185
Member Avatar for akvarel1

Hello! I try to catch a validation message with a `$.parseJSON(xhr.responseText).errors` but an allert message hows me "undefined" and I dont understand why. hier are my validations: validates :upload_file_name, :presence => true, :format =>{:with => %r{\.(pdf)$}i,:message =>"It should be a pdf File"} validates_uniqueness_of :upload_file_name, :message => "blabla" validates :upload_file_size, :inclusion …

Member Avatar for Member #949455
0
189
Member Avatar for stevanity

I have been developing a rails app for a week now. I use jquery-rails gem to use jQuery and everything was working fine. But today, when I started the development server, jQuery just wasn't loading. The console gave the error `jQuery not defined` and `$ not defined` and so forth. …

Member Avatar for Member #949455
0
422
Member Avatar for hwoarang69

wasnt sure where to put this post. just wonder if any one knows any different kind of programing languages computer language= every languages html, java, c ... programming languag= (system language) + (scripting language) + (database language) system language= asemmbley, c ... scripting language= php, javascript, ruby... database language= sql, …

Member Avatar for <M/>
0
180
Member Avatar for Nurubi

I need to write a module for WXF (Web Exploitation Framework) which will brute force (enumerate) the login system of DVWA. The module has to be written in Ruby and it should abide by the framework's structure and regulations. The final result should produce a list of brute force parameters …

Member Avatar for Member #949455
0
131
Member Avatar for jeets1892

I am using the ruby Instagram gem. Now, I am wondering how to access to a user's images by tags. Only that specific user's photo. This is what I use to get the photos @pics = Instagram.user_recent_media(xxxxxxx) @pics.map do |p| puts p.images.standard_resolution.url.to_s end And this gives me the tags @pics …

Member Avatar for Member #949455
0
139
Member Avatar for 03330

Hello everyone. Im COMPLETELY new to programming and Ruby and i would like to know how i can make this happen: What I want from my program is to understand letters as numbers then add up names into numbers and then retreive previously written names when number x is given. …

Member Avatar for ken_taiken
0
157
Member Avatar for MasterHacker110

What are advantieges of Ruby over Python and vise versa? Then in your opinion wich one is better for all around programming on linux and windows?

Member Avatar for Ene Uran
0
216
Member Avatar for TheOtherDani

Hi guys, I am Dani! Don't mistaken me as the Queen of the Web, i am not girl either by the way! I have experience in: HTML CSS jQuery PHP MySQL Java C# C++ Perl C Ruby ... BUT REMEMBER I AM NOT A PRO! I am a decent coder …

Member Avatar for TheOtherDani
0
103
Member Avatar for Aarowaim

Hey everyone. I do a bit of programming in my spare time, and I've been on hiatus for a while due to taking up a second language. Now that I am taking computer science classes, I'm back into programming. Admittedly, they're far too easy for me, and I find myself …

Member Avatar for mike_2000_17
1
244
Member Avatar for andrian.mutua.7

am very new in programming and by now have started learning ruby and what i want to know is if ruby can be used to make nokia phones apps. If yes what are the requirements pliz

Member Avatar for andrian.mutua.7
0
301
Member Avatar for RubyNuby

I am currently in the middle of redesigning an iRC game bot into ruby. I am experiencing problems be to me not knowing any kind of ruby language, (new to the coding world) i was curious if someone could point me to a path I could change an irc coding …

Member Avatar for TrinitronX
0
205
Member Avatar for ambitiouskriss

Is anyone running Ruby on Rails on an Imac G4 or G5? Im on a tight budget right now and dont wanna spend more than I have to. Are either of these models working for anyone? If youre not using them, could I still use either one of these models?

Member Avatar for Taywin
0
231
Member Avatar for anglwthnati2de

So.... I am just wondering which would be the better one to learn for todays market - ASP.net or JSP. I have to take one or the other and am not sure which one is the better choice. If it were up to me I would say neither and go …

Member Avatar for anglwthnati2de
0
162
Member Avatar for arupface

How the below mentioned `quantifiers` differ - with respect of scenarios,speed,etc. - `? v/s ?? v/s ?+` (**_1 or 0 times_**) - `* v/s *? v/s *+` (**_0 or more times_**) - `+ v/s +? v/s ++` (**_1 or more times_**) `?,*,+` belongs to `greedy` `??,*?,+?` belongs to `reluctant` `++,*+,,?+` …

Member Avatar for Taywin
0
114
Member Avatar for arupface

The comparison operators: * === * <=> * eql? * equal? * == Both are performing equality check I know. Some of them overrides `==` also. But now my query is how to think,what to use in what situations? Explanation with a code would be better idea to understand. Thanks …

Member Avatar for Taywin
0
221
Member Avatar for arupface

Hi, Is there any difference between `inject(:+) and inject(&:+)` ? If `NO` hen how these two kind of syntax with same method? And if `Yes` then why the output are same for both? irb(main):005:0> [1, 2, 3].inject(&:+) => 6 irb(main):006:0> [1, 2, 3].inject(:+) => 6 irb(main):007:0> Thanks,

Member Avatar for L7Sqr
0
161
Member Avatar for arupface

irb(main):001:0> time=Time.new => 2013-01-12 11:22:54 +0530 irb(main):002:0> puts time.to_s 2013-01-12 11:22:54 +0530 => nil irb(main):003:0> puts time.ctime Sat Jan 12 11:22:54 2013 => nil irb(main):004:0> puts time.local_time NoMethodError: undefined method `local_time' for 2013-01-12 11:22:54 +0530:Time from (irb):4 from C:/Ruby193/bin/irb:12:in `<main>' irb(main):005:0> puts time.localtime 2013-01-12 11:22:54 +0530 => nil irb(main):006:0> puts …

Member Avatar for L7Sqr
0
125
Member Avatar for arupface

Could you please tell me how the below directives works with Ruby array `pack()` method. As the document not gives piece of code to describe what to use , when? `n,v,U,w,L!<,S!< I!< ` thanks

Member Avatar for Taywin
0
76
Member Avatar for arupface

There is `text label` on a webpage, and I am trying to click on that to open a pop-up window,but not getting opened. here is the `HTML` code: <td width="40%"> <div id="EmpId.outline"> <input type="hidden" name="EmpId" value="" id="popupEmpId"> <input type="text" name="EmpCode" value="" readonly="readonly" class="textMedium250" id="popupEmpCode" autocomplete="off"> <a href="#f2"><label onclick="checkForPopup('EmpPopupDiv','Select a Emp',640,true,refreshConditionOptions);"> + Search for a Emp</label> </a> …

Member Avatar for Taywin
0
206
Member Avatar for Vincentas

Hi there, I'm using Spree in a Rails 3.2 app of mine and I want to extend Spree's Product class to better suit my needs as for example to establish a relationship with another model in my app. What's the best way to do this? I could not find anything …

Member Avatar for Taywin
0
129
Member Avatar for Dante2

Ok, so I'm working from a book called Agile Web Developement with Rails 4th Edition. I got up to page 83 where they have us running tests to ensure proper validation of our code up to this point. So I have checked and rechecked to make sure my code is …

Member Avatar for Dante2
0
331
Member Avatar for rohit.khurana

I am trying to use custom tags in ruby..i am a newbie to ruby.I hav developed in java before and i am myself a web developer.I have made custom tags for JSP pages but i m not sure wether we can form custom tags in .erb files also..???

Member Avatar for L7Sqr
0
134
Member Avatar for stevanity

Alright. I am a beginner and I am unable to find a solution to this problem. I am developing this quizzing application. I have built the part that allows you to create and manage questions classified by difficulty and tags. But Im not able to think of a proper quiz …

Member Avatar for Taywin
0
207
Member Avatar for default_098

Don't understand how to do t he follwing subcommands. init: do an initial scan. For example synch init ~/work report: compare current state with the saved state and report on differences. For example: synch report ~/work update: create a report but also update the file to reflect the current state. …

Member Avatar for Taywin
0
87
Member Avatar for danielgeorgy

Hi, I am a very beginner on Ruby and related stuff, Could you please tell me what a tag like this "<%!" means in the following code. Also, I would really appreciate if you can give me some ref to erb templates. <%! if filmstrip_image_path.blank? %> Also what does this …

Member Avatar for Taywin
0
89
Member Avatar for akvarel1

I was following RailsCasts tutorial JQuery Uploading and I ran into difficulties. I would like to be able to select several files, preview only the name of the files on the website, remove those, which where selected by mistake and only then upload the neccessary ones in Ruby on Rails. …

Member Avatar for akvarel1
1
321
Member Avatar for BrackishWater

I've been using Ruby and Rails and other ancillary technologies for a few weeks now. I've gone through many articles, blogs, tutorials, et al. However, I've rarely found any downloadable "working examples" or "real-world applications". Everything is very basic and it's proven difficult to learn beyond the basics. It could …

Member Avatar for Taywin
0
143
Member Avatar for DanOath

Write a program that will print a two-column ASCII table for both lowercase and uppercase letters and the digits 0-9.

Member Avatar for Taywin
0
154
Member Avatar for pritaeas

Recently bought "Regular Expressions Cookbook 2nd ed." and wanted to share my findings. The book is divided into two parts. The first part (3 chapters) describes tools, skills and programming. The tools chapter shows you what's out there (including his own software). The skills chapter is a tutorial. It describes …

Member Avatar for pritaeas
1
295
Member Avatar for TrustyTony

Because of [the course](https://www.edx.org/courses/BerkeleyX/CS169.1x/2012_Fall/about) I think to take to improve employment changes by SaaS, Ruby and Rails and basic agile techniques, I looked little the Ruby forum. Unfortunately it seemed in quite a sorry state some months old questions unanswered. Even there was a related article from one of them …

0
109
Member Avatar for asaidi

Hi i m trying to find which framework is robuste and fast to learn is it cakephp or ruby...

Member Avatar for lambing
0
78
Member Avatar for rajeesh_rsn

Hi friends, I m a PHP programmer and I likes to learn Ruby . But I had stucked ( Really Became Mad ) with installing ruby on Rails in my System .. Googled a lot ... but it is installing Ruby 1.8 & Rails 2.3 ... Please Help me .... …

Member Avatar for noel.gallagher.jr
0
154
Member Avatar for brynFlew

Hello, I am having trouble finding a good tutorial on how to install eclipse with aptana radrails on centos, when i try to install radrails in eclipse using the instructions givin here ([aptana](http://www.aptana.com/downloads/start)), i get these errors. Can someone point me in the right direction? Thanks :) An error occurred …

Member Avatar for Taywin
0
313
Member Avatar for Member #965665

Hello, I'm struggling to make a join between tables work on a non-standard schema. I know the proper way of doing it would be migrating the schema and using the ActiveRecord convention but as long as I'm using this to consume data for testing purposes, that's not an option. The …

Member Avatar for Member #965665
0
192
Member Avatar for Ritesh_4

Hello, anyone can help me with parsing an html table data to be saved directly in an excel file from the same parsing app?

Member Avatar for Taywin
0
242
Member Avatar for aldm

Hi, I'm working on rails project where I use json file for storing some data. Basically data are stored and get using ajax calls from jquery. But there are some strange issues. For example, when I add data in json file using AJAX and then open file in Chrome: localhost:3000/example.json …

0
143
Member Avatar for stevanity

Im from Chennai, India. And my university is Anna University. Our results are published in their website and in couple of others. Our college staff go into each url for each student and copy marks and do analysis stuff. Im working on a project to help them do it automatically. …

Member Avatar for pritaeas
0
272
Member Avatar for stevanity

Hey guys. Im designing a web app with rails for storing and analysing college students' marks. Ive come up with a database design like this: ![First](/attachments/large/3/First.png "First") Now IM not sure how to set the associations. Can you please help me? And is the design ok?

Member Avatar for stevanity
0
128
Member Avatar for Ritesh_4

Hello, anyone can help me with how to build a simple user registration form using Rails from scratch, with the fields Login Name, Name, Address and Password (encrypted)? I will be using MySQL to host the database. I've already created the new project using: rails new reg_form, now what next??

Member Avatar for lambing
0
138
Member Avatar for PrometheanSin

after pulling my hair out with this one, I'm afraid I'm going to have to turn the knowledge of those much wiser.....again! ok so here's the problem, I am following the following two railscasts: [deploying to a vps](http://railscasts.com/episodes/335-deploying-to-a-vps?autoplay=true) [asset pipeline in production](http://railscasts.com/episodes/341-asset-pipeline-in-production?autoplay=true) My setup: Ubuntu Server 12.04 nginx unicorn ruby …

Member Avatar for PrometheanSin
0
771
Member Avatar for emtw

Hi, I've been working with Ruby on Rails to make a web application, but I've found something that I really cannot work out how to do with it, so it may be best if I do it manually. Basically, I've got a dropdown menu, that is populated with a list …

0
111
Member Avatar for niallpaterson

Hi, I've never used bash before, but am creating a file. Here's the skelton: while read line; do if [ -e "$line" ] then else cat > $name << EOF EOF cat > rails << EOF EOF fi command $name & done < projects.txt The error is: "line 55: syntax …

Member Avatar for Watael
0
237
Member Avatar for filolozka

Hi all the Ruby Folks! Use your skills for the sake of the OpenSource community, and try out the Ruby OpenSource Challenge. Fix a bug, write a new needed feature or just update the lagging documentation of a pointed Ruby Open Source project, and have a chance of winning some …

0
142
Member Avatar for Ritesh_4

Hello, anyone can help me with the conversion of single quotes in a string to double quotes? Am new to Ruby programming and still learning around on how to use it properly. I have an example in Delphi, which I want to make compatible with Ruby: function ReplaceSingleQuote(AText: String): String; …

Member Avatar for Ritesh_4
0
158
Member Avatar for JohnBoy2

Hi - I'm very new here (1st post). I read the introductory docs, and looked at the categories, but I didn't see a specific place for posting code for review/critique. My apologies if this is not the appropriate place to do that... Here is some code I am hoping to …

Member Avatar for kb9agt
0
203
Member Avatar for visumdesignz

I am having a hard time connecting to active admin I get stuck @ localhost:3000/admin of the this tut http://net.tutsplus.com/tutorials/ruby/create-beautiful-administration-interfaces-with-active-admin/ I can connect to localhost:3000/ but when I connect to localhost:3000/admin I get page errors where there is supposed to be a user login... Started GET "/admin" for 127.0.0.1 at …

0
107

The End.