469 Topics

Member Avatar for
Member Avatar for Tut

I am new to programming and I am looking for a language that is easy to learn, and a relatively useful programming language. I don't know much about programming but I want to learn and I think here is the best place to start. I want to get started on …

Member Avatar for Hiroshe
0
217
Member Avatar for Garidius

Hello to all, HAving a hash where its keys are associated with arrays like below: myHash = {"A"=>["HYU"], "B"=>["TU6"], "C"=>["11", "09","88","2"], "D"=>["01", "11"]} Each key represent one header and the arrays elements represent the values for each header. How to print each key in different column separated by comma "," …

Member Avatar for Taywin
0
429
Member Avatar for hykyd

I have been creating small personal projects and trying to monetize or just learn from the creation process. I love programming and I am doing it as a hobby, looking forward to become a strong developer as soon as possible. Starting out I used Joomla, Wordpress, Drupal as CMSs but …

Member Avatar for pritaeas
0
292
Member Avatar for Garidius

Hello to all, Having to arrays of the same size like below. A = ["SL","MW","OP"] B = ["RU","YF","L2"] How can I concatenate in columns to print in parallel like below? SL - RU MW - YF OP - L2 I've tried with code below but is printing all in one …

Member Avatar for Garidius
0
478
Member Avatar for MasterHacker110

I'm trying to write a search enigne. Nothing fancy like google or so, just a simple one for educational purposes. I have done a little research and I know that Google uses Python, Java and C++. I on the other hand know C++, PHP, some Java and C# and even …

Member Avatar for kindo
0
260
Member Avatar for goodtaste

Hi! I'm not a web developer, but I'm a blogger and I would like some tips on how to create a 404 error message or to do something about this message feom Blogger: "Sorry, the page you were looking for in this blog does not exist." I would like to …

Member Avatar for JorgeM
0
500
Member Avatar for Garidius

Hello to all, I have a ruby script with a very long hash with more than 300 associations. The script looks like below: #!/usr/bin/env ruby Array_A = [] myHash = { "x1" => "2", "x2" => "0", "x3" => "1", . . . "X350" => "1" } myHash.keys.each do |z| …

Member Avatar for Garidius
0
252
Member Avatar for kyleo92

I'm attemping to clone and install a Ruby application from github. I have it cloned, and am trying to run the "bundle install" command, but it failed the first time because of an issue with Rake. I installed it manually using "gem install rake -v '10.1.1'". That command was sucessful, …

Member Avatar for BrentK
0
289
Member Avatar for Member #1102227

I want to start game developing but I need help choosing what programming language to learn. I already tryed Lua,Java,C++ but not Rudy and Python... So here is my question, I need the pros and cons on Ruby and Python and your recommendation. I need something I feel comfortable with.

Member Avatar for jwenting
0
528
Member Avatar for !@#$

def y we need this in ruby i am beginner of ruby i donot understand what is use of def with out this we make code also i think according to my knowledge it is reserve word

Member Avatar for sepp2k
0
116
Member Avatar for mattyd

(I am not sure if this is the correct area for this thread - Admin/Mods, please more if necessary. Thank you.) Hello. I write a lot of code. I save many back-ups, that is, current versions of the code in case I need to roll-back. This can be quite tedious …

Member Avatar for rch1231
0
141
Member Avatar for Mark_Miller

Hello guys! I wanted to introduce myself and ask a little question :) My name is Mark Miller and I'm a 16 years old teen from Lithuania, a small country located in Europe. I've started programming only two years ago. And what's for sure, I loved it. But the sad …

Member Avatar for mattyd
0
415
Member Avatar for StephenopolousINC

Hello I am trying to create a class that called Lootable and create subclasses such as trunk, locker, etc. that will contain items that can be looted, they will inherit their lootability from the Lootable class. I am thinking of using the ArrayList for this. I have thought of different …

Member Avatar for StephenopolousINC
0
945
Member Avatar for osagie.odigie.77

HAY Ninjasssssssss ! WHO WANTS TO BE A PART OF HISTORY ??? I’s asked recently by a friend to do a pentesting on d system dat he administers with the consent of his boss (not Illegal). I had a whole lot of pentest tools in my archive (most command line …

Member Avatar for mike_2000_17
-1
238
Member Avatar for rubybaby

hi guys , Am a newbie here,my name's ruby,am glad being a part of community,am a merchant who from shareAsale.i hope we can help each other together.XOXO

0
98
Member Avatar for eric_arambula

I am a newbie programming Ruby. I have the below code. Method sum_to_n? which takes an array of integers and an additional integer, n, as arguments and returns true if any two elements in the array of integers sum to n. It should return true for the empty array with …

Member Avatar for eric_arambula
0
1K
Member Avatar for gon1387

Hi! I would like to know if anyone here have attempted installing Redmine V2.3.\* on IIS? If you did, can you please direct me to the right direction. What are the things should be done? I had tried it on my own, but I kept on having errors like "Gem::Installer::ExtensionBuildError: …

Member Avatar for Member #949455
0
325
Member Avatar for Bhavya scripted

Hello all I have decided that I will participate in an online coding contest.i just want to ask which programming language is appropriate or powerful for a programming contest?ruby or python?i want to participate with python or ruby as my primary language.i have a little exp. with python but don't …

Member Avatar for Bhavya scripted
0
276
Member Avatar for Nautical.RB

Hello daniweb community i'm new here and glad to join this amazing website. Well want I need to understand is how I learn to become a competent computer science major and learn to write code very well. I have always had a knack for this and I love it alot …

Member Avatar for phorce
0
408
Member Avatar for orange88

QUESTION: My need is to include a specific datepicker for EACH form when a specific button is clicked. Im not sure whether what im doing below in the jquery portion of the code for the datepicker is correct? Can someone please guide me with this? Thanks DETAILS: I am currently …

Member Avatar for Member #949455
0
793
Member Avatar for zack000smith

I need to add the following features to my existing code (posted below) in Rails using Jquery, JSON, Ruby and HTML. I have a lot of ideas and researched a bit but Itd be great if someone can help me with integrating them: I need to add a feature to …

Member Avatar for Member #949455
0
344
Member Avatar for asaidi

Hi i m just learning rails and i want to import my sql data to rails .. i have created database and i had run rake to create shema etc... i m using windows 7 thx

Member Avatar for stevanity
0
180
Member Avatar for Herve_1

Please answer these questions for me: Q1: Write a method, pow, that takes two (non-negative, integer) numbers, base and exponent and returns base raised to the exponent power. (No fair using Ruby's base ** exponent notation!). Q2: Write a method, sum which takes an array of numbers and returns the …

Member Avatar for Herve_1
0
175
Member Avatar for Herve_1

I'm an absolute beguiner and I'm trying to learn some basic RUBY in a hurry. All of your help would be welcomed!!

Member Avatar for JorgeM
0
43
Member Avatar for Eggborne

I want to make a game somwhat akin in size and complexity to SNES Zelda.

0
94
Member Avatar for kanoy83

hi guys, This topic might be a little bit common sense but I do also believe it can help so much to beginners and experts. As a developer, I always have great interest in other languages although time and effort to learn is to be strictly applied and manage. My …

Member Avatar for L7Sqr
0
270
Member Avatar for MasterHacker110

I am trying to find a scripting language for some simple tasks etc... I tried python - dont like the whitecpace thing. Ruby - just a weird language. Javascript on the other hand has syntex that I like - C/C++/C#/Java like - and it uses curley braces. But the draw …

0
100
Member Avatar for adi77tjr

Hello, I have a Ruby On Rails app online which uses devise authentication. I am trying to make an android app which make a request from ror app when a user try to log in (so the users can use same account from ror app). I heard that what I …

Member Avatar for adi77tjr
0
327
Member Avatar for Kert

Hey! Here is my update action in users_controller.rb and I want to test it with RSpec but it doesnt seem to work for me. Can somebody notice a mistake? def update @user = User.find(params[:id]) respond_to do |format| if @user.update_attributes(params[:user]) format.html { redirect_to edit_user_path(@user), :notice => "Your settings were successfully updated."} …

Member Avatar for Member #949455
0
898
Member Avatar for Devan_1

Somewhat new to rails and trying to build something to learn, but having an issue. I have successfully created one form field that reads from a collection of categories. I generated scaffolding for the categories and two fields catId and name. After plugging in the field everything worked perfectly. I …

Member Avatar for Member #949455
0
441
Member Avatar for Kert

I need to sort tables with dynamical content with rails. I could use the RailsCast tutorial ([http://railscasts.com/episodes/228-sortable-table-columns](http://railscasts.com/episodes/228-sortable-table-columns)) but as I'm not using any specific method in a controller, it doesn't seem appropriate solution. I found out about the jquery tablesorter, but it doesn't seem to work. Where the solution might …

Member Avatar for paulkd
0
207
Member Avatar for hardmath

I'd been using [a cloud-based IDE](https://c9.io/) some for editing snippets of code/gists (integrates with GitHub), but it occurred to me this morning that instead of just using Google Drive as cloud-repository, I might use it as a code editor. Does anyone have tips on configuring Google Docs as a <insert …

Member Avatar for mike_2000_17
0
390
Member Avatar for chrispitt
Member Avatar for Azmah

I hear that RUby can be used for desktop development, yet I haven't seen any showcases. I am currently learning C++ but have always had my eyes on Ruby. Is it true? I know Ruby On Rails is for web development. What are the capabilities of ROR? Thanks in advance.

Member Avatar for expensetracker
0
344
Member Avatar for azareth

hello it's been awhile .. it's my first time using ruby(on Rails), and i've downloaded what is needed(i think, based on my searches), Ruby, Rails and gem, but i'm not sure if they are properly installed because they don't seem to appear (?) Also it's my first time using Aptana, …

Member Avatar for azareth
0
220
Member Avatar for Dani

I was wondering if anyone out there had any opinions (strong or otherwise) about Discourse (http://www.discourse.org), the new Javascript-based discussion system built using Ruby by the guy behind StackOverflow. It's meant to revolutionize forum systems. Do you think it does?? It's a nice JS-based skin, I'll give it that, but …

Member Avatar for Dani
0
119
Member Avatar for axitya

Yes, I know what I'm talking about. which is Creating my own compiler to compile a language say C++,Java,Ruby, Python ..(Any one of them ofcourse -.- ) Actually, if I can just get the source code for an existing one that would be much better. [example] Say there's Turbo C …

Member Avatar for felceyboy
0
386
Member Avatar for BUGSIE91

HI guys... i have installed solr 4.2 in my system.. i wanted to integrate it with rails and thus, included the 2 sunspot gems.. gem 'sunspot_rails', '~>2.0.0' gem 'sunspot_solr', '~>2.0.0' now, the local instance of solr present in sunspot_solr gem can be found at "http://localhost:8982/solr" .. when checking the information, …

Member Avatar for BUGSIE91
0
352
Member Avatar for asaidi

Hi just start learning rails i found some difficulties to start the server under linux mint please find the errors i get /var/lib/gems/1.8/gems/railties-3.2.13/lib/rails/script_rails_loader.rb:11: warning: Insecure world writable dir /sbin in PATH, mode 040777 /var/lib/gems/1.8/gems/bundler-1.3.5/lib/bundler/runtime.rb:216: warning: Insecure world writable dir /sbin in PATH, mode 040777 /var/lib/gems/1.8/gems/execjs-1.4.0/lib/execjs/runtimes.rb:51:in `autodetect': Could not find a …

Member Avatar for sepp2k
0
354
Member Avatar for Assembly Guy

I just noticed that Perl and Python are under the Software Development category, but not Web Development, while Ruby is under Web Dev and not under Software Dev category. Don't get me wrong, they *do* belong where they currently rest, but perhaps a link to Perl, Python and Ruby could …

Member Avatar for Assembly Guy
2
223
Member Avatar for Stein102

I'm currently a Java programmer, but I was wanting to play around in scripting languages because I've never really used them. I don't really have a use for them right now, but I have some free time and I'd like to learn. My picks were Lua, Python, Perl and Ruby. …

Member Avatar for <M/>
0
128
Member Avatar for shrutib

Hello All, I have list of DropDownList of items fetching from database, all have values of 1,2 and 3... DropDownList1 has a selected value of 1 DropDownList2 has a selected value of 3 DropDownList3 has a selected value of 2 What I want is to swap values. It's urgent please …

Member Avatar for shrutib
0
451
Member Avatar for shrutib

Hello All, I am having the drop down list with count 1 to 10 which is looped for itemlist. For item 1 dropdown list shows count 1 to 10,item 2 also dropdown list shows count 1 to 10 and so on. I want to preset the value for the drop …

Member Avatar for Webville312
0
127
Member Avatar for BrackishWater

My team has been doing Java for a long time. We are switching to Ruby. We are finding that Ruby has limitations and that we have to do certain things in Java. I'm trying to find a way to call Java code from Ruby. I'm searching Google and such, and …

Member Avatar for marcnaweb
0
231
Member Avatar for prem2

Hi guys, I am new to ruby i already have an experience in the core php and zend framework.I need to clarify the below doubts, Is oops in ruby is completely different from other oops concept languages like java,c#. Can you pls help me out. Thank you, Regards, Premnath

Member Avatar for sepp2k
0
143
Member Avatar for shrutib

Hello all, My problem is there will be list of images where i need to swap the images to sort it like the way how i want to see.Say for example, image 1- position-1, image 2 position 2 etc. When i drag image 1 position 1 to image 5 position …

Member Avatar for Member #905211
0
460
Member Avatar for ebc3142

Hi, I'm developing an application which needs to check user-inputted credentials against a Mysql database running on a web server. Does anybody know how I could communicate between c++ and a PHP or Ruby on Rails page and then parse the results back to the client? Many Thanks

Member Avatar for Member #949455
0
201
Member Avatar for aldm

Hi, I have module that imports data from json file to hash. Json file is pretty big so I don't want loading to take place on every request because it takes some time. It would be best to do this just on server start. I have a class variable in …

Member Avatar for lambing
0
239
Member Avatar for Bhavya scripted

perl vs ruby. what is the difference in speed/popularity and performance? thanks

Member Avatar for Neuronimbus1
0
158
Member Avatar for arupface

class variables have a niche to fill: ***visibility to a class and its instances, and to no one else. Typically, this means being visible in class-method definitions and instancemethod definitions, and sometimes at the top level of the class definition.*** I understood that. But didn't find any example of the …

Member Avatar for sepp2k
0
209

The End.