2
votes
10answers
100 views

Merge/Discard overlapping words

I want to merge strings (words) that are similar (string is within other string). word wor words wormhole hole Would make: words wormhole As wor overlaps with: word, words, ...
0
votes
2answers
24 views

Interpretation of Java or Ruby neccessary with every access?

JavaScript on the server can be interpreted to mashine code using Google's V8 Javascript Engine. But PHP and Ruby and Python and Java all have to run through an interpreter every time they're accessed ...
-2
votes
3answers
60 views

Sort and list all occurrences in a string array [duplicate]

I'm doing some coding exercise and come across this question on sorting a string array, and list all the occurrences of each unique string in the array. I've been trying to find out if I can do it ...
-3
votes
0answers
85 views

Ruby 2.0.0 vs Python 3.3 [closed]

I am looking to learn one of these languages for web development (using Rails or Django), scripting, and sysadmin functions. I know the Ruby vs Python argument has been beaten like a dead horse, but ...
-1
votes
2answers
110 views

Rails VS Django questions [closed]

Due to the pains deploying Rails apps I'm looking into learning Python and Django. I love many features of Rails, but deployment is just very troublesome. Before taking the time-consuming enterprise ...
3
votes
2answers
66 views

What is Ruby's analogue of Python's variables, undeclared in the class definition?

I can store any number of variables undeclared in the class definition in a class instance in Python. How can I do something like this in Ruby? class C: pass a = C() b = C() a.a = 1 a.b = 2 ...
0
votes
0answers
20 views

python equivalent of gem serve

Is there a python equivalent of the ruby gem serve? About serve: Serve is a small Rack-based web server that makes it easy to serve ERB or HAML from any directory. Serve is an ideal tool for ...
-2
votes
3answers
60 views

Working with Hashes [closed]

I want to create a hash(dictionary) just like this: dic = {2 => "ABC", 3 => "DEF"}. In python the code looks like this: text = "abcdef" for letter in text.lower(): for group, number in ...
0
votes
1answer
32 views

How to integrate a python library into a Ruby on Rails application

I want to know if there is a way to integrate a library written in Python into my Rails application. I have always used gems to implement outside libraries so I have no idea how to do this(yet). Is ...
1
vote
1answer
59 views

Ruby inline documentation

In IRB, or other interactive interpreter such as pry, how can I get some inline documentation on objects and methods? For example, I can get this far: [1] pry(main)> x = 'hello world' => ...
0
votes
2answers
70 views

Creating a matrix from a list of attributes

I have a CSV with a list of items, and each has a series of attributes attached: ...
2
votes
2answers
69 views

How can I evaluate Ruby on the server side of a NodeJS app?

I'm diving into NodeJS to build an app on Heroku to help teach my students about various aspects of a few different programming languages. Currently, the app can safely evaluate Javascript using the ...
0
votes
2answers
53 views

How to run sudo comand/ call python in ruby

I just started programming in Ruby, I would like to know if you can run a command like "Sudo python XXX.py" I even tried to work with RubyPython, but without success because I do not know how and ...
-9
votes
0answers
54 views

BootCamp vs. BootCamp - Products on Display - [closed]

There are about 20-30 Code Bootcamps in the country. JavaScript vs. Ruby on Rails vs. Python Sinatra Rails Python Ruby JavaScript The creation of the final product, how fast, how involved would be ...
1
vote
2answers
47 views

Can I use a Python/Ruby ORM inside C?

I have heard many times that C and Python/Ruby code can be integrated. Now, my question is, can I use, for example a Python/Ruby ORM from within C?

1 2 3 4 5 64
15 30 50 per page