569 Topics

Member Avatar for
Member Avatar for dimitrilc

## Introduction ## In the previous tutorial, we learned how to [set up our own RabbitMQ server](https://www.daniweb.com/programming/web-development/tutorials/538619/how-to-set-up-a-rabbitmq-server-in-docker). In this tutorial, we will learn how to create our own exchange and queue. ## Goals ## At the end of the tutorial, you would have learned: 1. How to create your own …

1
366
Member Avatar for tyresebro1

I am currently a web developer and its the only thing I am good at in many fields of software development/programming. When starting as a web developer you should learn the three building blocks of web development such as HTML, CSS and JavaScript and also some server side language like …

Member Avatar for NehaPande
0
148
Member Avatar for elvisj

I recently installed Linux on my computer to enjoy a more versatile Ruby on Rails programming environment. The computer already had Windows 7 installed. However, I lost the booting path for windows after the installation. Currently, I cannot boot into Windows. Does anyone know how to edit Grub to allow …

Member Avatar for rproffitt
0
60
Member Avatar for Reverend Jim

Fot anyone who is a fan of the Active State Komodo IDE it is now available free and can be downloaded [here](https://www.i-programmer.info/news/90-tools/13411-activestate-komodo-ide-now-free.html). According to their blurb... >There will no longer be a fee for Komodo, the multi-language IDE for Python, PHP, JavaScript, HTML5, CSS, Node.js, Golang, Ruby, Perl, and a …

0
846
Member Avatar for kouty

I understood that it is not possible to run C code with gcc for a file in sdcard directories, sudo is required. But I see that it's possible to run Ruby files with Ruby. I don't understand why. Can someone say me what languages can be run in sdcard in …

Member Avatar for kouty
0
458
Member Avatar for anton.yakushin

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 …

Member Avatar for johnlee90
0
2K
Member Avatar for Mirty

This is a program that ask input from the user about the characteristics of a gemstone then prints to the screen. Things like color, price and name. I have written it to an extend where the user enters all this and prints them out. Am now stuck where I should …

Member Avatar for pty
0
287
Member Avatar for tun712

I’ve created modified **CSS reset** based on various reset stylesheets available. Need some help to make it effective & clean. Need some help with typography *, *:before, *:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; margin: 0; outline: 0; padding: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-text-size-adjust: 100%; -moz-text-size-adjust: 100%; -ms-text-size-adjust: …

Member Avatar for tun712
0
738
Member Avatar for EvolutionFallen

Hello, I'm just starting off with Ruby, but I have a task that landed on my desk that I need a quick answer for, and haven't been able to find a solution online. I appreciate any help I can get. I need to know if a value in one array …

Member Avatar for EvolutionFallen
0
516
Member Avatar for Martin_22

I've been trying to create the diamond square algorithm in ruby and whilst it works (that is to say it doesn't error) it doesn't output as expected, so far here's the output at various states: # So far# ## First attempt ## [First Attempt][1] This is the output of when …

Member Avatar for Martin_22
0
503
Member Avatar for rchawdhari

Hi all, This is my array of hash [{"gate_pass_type_id"=>2, "tag"=>0, "total"=>2000}, {"gate_pass_type_id"=>125, "tag"=>0, "total"=>300}, {"gate_pass_type_id"=>661, "tag"=>0, "total"=>750}, {"gate_pass_type_id"=>661, "tag"=>2, "total"=>100}] I want to convert it into [2 => { "0"=> 2000}, 125=> {"0"=>300}, 661=>{"0" =>750, "2"=>100}] Is any simple way without using so much loops

Member Avatar for rchawdhari
0
510
Member Avatar for mattyd

I am attempting to properly install and run a Ruby script. I have not worked in Ruby for some time and am not sure what I'm missing; it worked perfectly in the past (on a work machine.) I am receiving the following error message: **<Main> undefined local variable or method …

Member Avatar for pty
0
1K
Member Avatar for Mrewan79

I understand how to generate objects from the database, using Sinatra with formatting, and I understand from tutorials how to use POST to send information back, but I don't understand how to use POST to transfer information from the browser (for instance from a text field, or inside <p id="stufftotransfer"><%= …

Member Avatar for cereal
0
459
Member Avatar for Hasenali

Amazon is Hiring! A job at Amazon is unlike any other you have had. You will be inspired, you will be challenged, and you will impact the future of the technology. This is for some very unique technical projects for Amazon technical development teams (eCSG & Retail systems) in Canada …

0
130
Member Avatar for rchawdhari

Hi everyone, I have to integrate SOAP api using SAVON gem When I am calling url it gives reponse and operations too But When I call methods and posting data it gives me error client = Savon.client(wsdl:"http://netconnect.bluedart.com/Demo/ShippingAPI/WayBill/WayBillGeneration.svc?wsdl") client.operations => [:generate_way_bill, :import_data, :cancel_waybill] client.call(:generate_way_bill, message: data) => The server was unable …

0
425
Member Avatar for sebinjose

[B] Can any one just give a video tutorial link to deploy ...a complete ror app..or any text tuts for tat.... [COLOR="Red"]Thanks in advance[/COLOR] .[/B]

Member Avatar for MaheshKale
0
408
Member Avatar for rchawdhari

Hi, I have two tables as employee id int primary key, purchase_order_product int, bundle int fabric_bundles id int primary key, purchase_order_product int, bundle int, quantity I want to make assciation between employee and fabric_bundles via purchase_order_product and bundle

Member Avatar for Taywin
0
464
Member Avatar for hamzah_1

so i am trying to convert my python codes into RUBY. Can someone please help me do that... 1- Write a function lucky_sevens?(numbers), which takes in an array of integers and returns true if any three consecutive elements sum to 7. My python answer: def lucky_sevens(numbers): for index in range(len(numbers)-2): …

Member Avatar for rproffitt
0
246
Member Avatar for kaleemullah360

I am new to Ruby On Rails. I am facing truble on creating a long running background job. my target is to send notification to all the active users between two given dates on specific given hour interval. Example: **send notification message after every 8 hours to all active users …

0
250
Member Avatar for icite

Greetings earthlings, I am a learning programming. My main languages are php & javascript. I was wondering if javascript(maybe with html5) could be enough to create a wix.com type wysiwyg or not, does it require a total other language like c++ or java , rubi ? or something of the …

Member Avatar for jkon
0
344
Member Avatar for Aeonix

According to [this](https://github.com/nwjs/nw.js/wiki/Protect-JavaScript-source-code-with-v8-snapshot) link. V8 Snapshot of your JavaScript file, makes it somehow more protected. Notice: This is **V8 Snapshot** not just **V8**. Now I have couple questions, if you're familiar with this technology: 1) Is there a way to obfuscate it more? There are .NET obfuscators, there are C++ …

Member Avatar for Aeonix
0
323
Member Avatar for Ossy009

I'm stuck on adding a feature to my program where a user types in the email address and stores email and raffle into a database.Also the raffle entires will be selected at random from all stores entries.heres my code from __future__ import print_function from random import seed, randrange, shuffle, sample …

Member Avatar for Ossy009
0
653
Member Avatar for Webville312

Dear all, So I am trying to run a watir test application. Everything seems to be going well except I need to log each step that happens. I am able to log using the php script, but have not yet figured out how to write to a log file using …

0
333
Member Avatar for Abhisheklingam

I am doing one survey form.In that i am selecting the radio buttons and if i click the save button means it is creating.I have checked by using json.But my requirment is to save the radio button option in database.

0
56
Member Avatar for Deep_4

So, I've some free time in December and want to make a web-app that lets people login, put books they've read, review the books they've read etc. But, I'm not sure how and where to start? What Languages/Frameworks to use? Any help would be appreciated. Thanks!

Member Avatar for diafol
0
331
Member Avatar for Rubydoggy

Hello everyone! I am rubydoggy a wannabe remote rails engineer and i challenged myself to create 10 projects (5 of them open source) to fill my portfolio and my github account. I have already launch a minimal Blog and i am planning the first project. I need a lot of …

0
294
Member Avatar for Kevin_20

I have a MySQL table with a string-based primary key. I created it with an ActiveRecord::Migration as follows: create_table( "icd9s", id: false) do |t| t.string "ICD9Code", limit: 7, null: false t.string "ShortDescription", limit: 128, null: false t.string "LongDescription", limit: 255, null: false end add_index(:icd9s, :ICD9Code, unique: true) Then I went …

0
283
Member Avatar for rchawdhari

Hi all, My project is on ruby on rails. I have one of ruby api returns json.jbuilder But I want that my api should not return json , it will display html.erb file Is anybody can help me???

0
310
Member Avatar for FindNerd

Hello ! I am feeling extremely glad to enter into this technology world. Being in the field of information technology as technology lead for various programming languages like C, C++, Ruby, PHP, Java, etc., I am really excited to be the part of this social technology community. I hope it …

Member Avatar for infrasquare
0
198
Member Avatar for rchawdhari

Hi , I want to create a class in lib folder , from that class want to create mysql view . such as in mysql CREATE VIEW rocket_current_activities AS SELECT rocket_activities.status AS status from rocket_activities.... This can be do in mysql but how to do from rails. I dont want …

Member Avatar for rchawdhari
0
631
Member Avatar for MrXortex

I have created an app with simple login authentication, it is actually a twitter clone. The user logs in and access the pages, etc. But when the user posts something from there profile. It gives an error NoMethodError in RibbitsController#create undefined method `userid=' The error is around line 5: class …

Member Avatar for Taywin
0
631
Member Avatar for anmol.raghuvanshi1

There is long registration form I have one auto-complete box like StackOverflow tag bar will have multiple tags of country. Now I want without redirecting to another page or any thing else. I want names of country to be displayed from database. I am successful in displaying without database like …

Member Avatar for anmol.raghuvanshi1
0
263
Member Avatar for davy_yg

Hello all, Please check this: [One](http://www.innovation.web.id/One/index.php) I wonder why I cannot make that laptop pictures moves just like any other images (if it moves differently - it must be slightly different): about.php <!DOCTYPE html> <html> <head> <title>About</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Animate.css</title> <link rel="stylesheet" type="text/css" href="css/style.css"> <link rel="stylesheet" type="text/css" href="css/animate2.css"> …

Member Avatar for tobyITguy
0
190
Member Avatar for Prince_9

How can I convert this Ruby Gem to PHP? token = "your_nypl_api_token" client = NyplRepo::Client.new(token) ``` ``` token = "your_nypl_api_token" options = {:debug => true, :server_url => "http://api.repo.nypl.org/api/v1"} client = client = NyplRepo::Client.new(token, options) Also url = "http://api.repo.nypl.org/api/v1/items/8568ccd0-c614-012f-1d74-58d385a7bc34.xml" uri = URI.parse(url) http = Net::HTTP.new(uri.host, uri.port) headers = { "Authorization" => …

Member Avatar for cereal
0
774
Member Avatar for vegaseat

Well I done it! Got bored after the holidays and bought a Raspberry Pi credit card sized computer ($35), the least expensive LED TV and a Logitech wireless Keyboard/Mouse combo. The way I ordered the kit it cost almost twice as much, but it came with a good 2.5A powersupply, …

Member Avatar for vegaseat
0
670
Member Avatar for bikash_2

import pygal data = [ ["Python", 30.3], ["Java", 22.2], ["C++", 13], ["Ruby", 10.6], ["Javascript", 5.2], ["C#", 5], ["C", 4.1], ["PHP", 3.3], ["Perl", 1.6], ["Go", 1.5], ["Haskell", 1.2], ["Scala", 1], ["Objective-C", 0.4], ["Clojure", 0.2], ["Bash", 0.1], ["Lua", 0.04], ["TCL", 0.03] ] # Make a Pygal chart pie_chart = pygal.Pie() # add …

Member Avatar for Gribouillis
0
130
Member Avatar for osagie.odigie.148

Good day all ! i have a multi-dimensional array. the array was carefully built from my xml structure. here's it : array (size=1) 'Articles' => array (size=4) '@About' => string 'programming' (length=11) '@compile' => string 'pro' (length=3) 'Article' => array (size=3) 0 => array (size=6) ... 1 => array (size=6) …

Member Avatar for diafol
0
362
Member Avatar for majinice

Hello everyone my name is Nuruddeen Hayatu Majidadi, am a student at the American University of Nigeria studying software engineering and my friends call me Ruby because i love to write ruby codes. Am looking forward to work wit all of you guy, i love programming, you can ask for …

Member Avatar for majinice
0
122
Member Avatar for silverdust

I'm trying to implement upload on [my application](http://github.com/bl4ckdu5t/vitabiotics). I'm hosting the application on Heroku, and I'm using S3. I've created a bucket and I've followed [this guide](https://devcenter.heroku.com/articles/paperclip-s3) trying to make it all work. But it still fails and I get no errors. The uploaded images never get to the bucket.

0
271
Member Avatar for derekroyce.burias

I want to choose a simple language to start practicing game development and I think Ruby is simple enough. If you know any other languages, tell me. I already know how to code but I still don't have a language to start with. I'm ten years old. Keep that in …

Member Avatar for rubberman
0
102
Member Avatar for mikeandike22

If you are a programmer than you probably know or at least know of C++ well now a company called Digital Mars is developing the D programming lanugage. [I] "D is a systems programming language. Its focus is on combining the power and high performance of C and C++ with …

Member Avatar for The Old Man
1
476
Member Avatar for Bensirpent07

Ok I am seriously stumped by this. I have a CSS reset, but some reason my body on my website ([Click Here](http://www.test.weblup.net)) still has a margin of 8px all the way arround. My CSS reset is pasted below, you can go to the website to see the HTML. The only …

Member Avatar for Bensirpent07
0
2K
Member Avatar for ritania

Hello, I am doing this image processing programming for pseudocoloring. aFile = File.new("mix.lut","w+") for i in 0...256 red = i*i/255 green = Math.sqrt(i). to_i blue = i aFile.puts "#{red} #{green} #{blue}" end aFile.close I made this simple color LUT, and i want to apply it to an image (RGB image). …

Member Avatar for Taywin
0
266
Member Avatar for praveen_dusari

Hi All,i am using sass in my current project, due to some restrictions iam not able to install sass in ruby using gem install sass.. i have downloaded sass from github (https://github.com/sass/sass) not sure where to place this sass in ruby.. tried in ruby->bin folder but not use when i …

Member Avatar for rch1231
0
316
Member Avatar for A***

hello everyone this is my first offical post lol i just wanted to know the requirements of being a programmer in todays gaming industry. i want to get as much information as possible before making a descison regarding my future. here are a list of things im intrested in.if you …

Member Avatar for janissantony
0
175
Member Avatar for harry.suren

Logout functionality does not working properly in "Production Environment". The logout Function is called in Production Environment by Started GET "/logout" for 127.0.0.1 at 2014-11-11 14:48:52 +0530 instead of Started DELETE "/logout". Note: I don't use Devise Gem in my application. routes.rb root 'welcome#home' get 'signup' => 'users#new' get 'login' …

Member Avatar for Taywin
0
275
Member Avatar for Niall_2

Hi folks, I'm currently taking a Udemy course in HTML & CSS and there's what looks like a simple query wrecking my head. I'm trying to float my section to the right and keep 'aside' on the left. This is what the webpage should look like https://www.dropbox.com/s/7jb9kbss58u0bxd/UDEMY.png?dl=0 I'd be super …

Member Avatar for Niall_2
0
194
Member Avatar for harry.suren

Hi Guys, I'm a newbie to rails. I'm bit confused about the following. What is the difference between RSpec and Minitest? Which will be easy and effective to use? Thanks in advance...

0
255
Member Avatar for harry.suren

Hi Guys, I'm a newbie to ROR.and I'm developing a sample app for practising. My app is for Quiz game qith time constrains. But, I don't know how to set a timer control for questions. I'm seeking for a solution for that to add timer control. I hope you will …

0
268
Member Avatar for CashFlowsToo

Why is Ruby so special? How does it impact Mobile App Development? I don't quite understand how or why rails and ruby is relevant. I'm very new to understanding how and why Ruby is very relevant in Silicon Valley.

Member Avatar for L7Sqr
0
298

The End.