Tagged Questions
-2
votes
3answers
52 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
25 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
58 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
66 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
63 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
51 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
48 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
44 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?
0
votes
0answers
14 views
Translating Savon SOAP request from Ruby to Python
I'm using xignite's API to call a list of securities. They give examples in a few languages (including the Ruby example below) but I need to do it in Python.
How would I reproduce this SOAP request ...
0
votes
0answers
34 views
Overriding attributes in chef programatically
I am using chef to test software. Thus the file name and download location of said software dynamic/would be passed in as an attribute.
Note that I have to use the chef scripts and recipes that our ...
0
votes
1answer
40 views
Passing an argument from ruby to a python scripts
I have a problem that I hope you guys can help me out with.
Im making a home automation system with RPi + Piface to control devices on the network.
...
3
votes
1answer
40 views
Signals are not always seen by all children in a process group
I have a problem with the way signals are propagated within a process group. Here is my situation and an explication of the problem :
I have an application, that is launched by a shell script (with a ...
0
votes
1answer
30 views
How can I update Python on Mac OS and have RubyGems use the new version?
I am having serious issues trying to download the "therubyracer" gem. I think the problem is that I do not have a working libv8 library to create the gem.
I think I do not have a working libv8 ...
1
vote
2answers
31 views
Ruby equivalent of Python's subprocess.check_call/check_output
Python provides two convenient functions for calling subprocesses that might fail, subprocess.check_call and subprocess.check_output. Basically,
subprocess.check_call(['command', 'arg1', ...])
...
-2
votes
0answers
70 views
Value Overhead on PL Implementation [closed]
I read that PHP has a 68-byte overhead for every value:
http://blog.paulbiggar.com/archive/a-rant-about-php-compilers-in-general-and-hiphop-in-particular/
How much is it for CRuby/JRuby? CPython? ...