" data-bs-original-title="" title="">
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 …
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 …
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 …
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
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 …
Please help. I can't get my calendar to automatically get the current date. I'm not sure where the problem is so I'll post the whole script. Here it is. (function($){ var availableTags = [ "ActionScript", "AppleScript", "Asp", "BASIC", "C", "C++", "Clojure", "COBOL", "ColdFusion", "Erlang", "Fortran", "Groovy", "Haskell", "Java", "JavaScript", "Lisp", …
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
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 …
perl vs ruby. what is the difference in speed/popularity and performance? thanks
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 …
hi guys im stuck in this question would anyone care to help me(its a csv file)?? How many times does the least common string appear in the field [gemstone]? valid gemstone owing mark channels code No Diamond 26.06 20 218 (KJQ:10E)2 Yes Diamond 15.43 25 36 (DRX:25H)7 No Sapphire 11.44 …
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 => …
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 …
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 …
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 …
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 …
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. …
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, …
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 …
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 …
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. …
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?
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 …
I am wondering if anyone could recommend the best CMS for an Airbnb-style marketplace that allows people to sublet their apartments, and other people to search, filter, and pay for the apartments listed. These are the main requirements: - Ability to sign up both buyers and sellers. - Accounts for …
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 …
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
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 …
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?
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 …
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` `++,*+,,?+` …
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 …
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,
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 …
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
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> …
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 …
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 …
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..???
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 …
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. …
I could probably/def read a text file with javascript by embedding some ruby in there but I want to know how to do it with javascript. My code follows: [CODE] <HTML> <HEAD> <TITLE>"Text File"</TITLE> <SCRIPT LANGUAGE = JAVASCRIPT> function handleFile() { var myFile = document.getElementById('txtF') var fileContents = System.IO.File.ReadAllLines(myFile); document.form1.textfield.value=fileContents; …
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 …
The End.