0
votes
2answers
22 views

How do I programmatically check for open browser instances on a Windows machine?

I wrote a GUI automation script in python that opens a web browser, does some tests in the browser and then closes the browser. It does so in a loop going up through hundreds of thousands of ...
1
vote
2answers
45 views

List comprehension for flatteing values from dicts from list

I want to get a one-dimensional list of values from several keys for list of dicts. That's how I do it in Ruby: irb> list_ = [{a:1, b:2, c:3}, {a:4, b:5, c:6}] irb> list_.flat_map{ |dict_| ...
-1
votes
1answer
47 views

Open source API suggestion [closed]

Is there any open source API that allows you to request a query of keyword and receive a closest matching keyword PLUS the category that it belongs to? For example: I query "Star" I want to receive ...
1
vote
2answers
63 views

Edit multiple files in 1 vim buffer

I'm making a vim script to take notes, and it should be tag aware. So when I add a note it should appear under all the correct sections like this: To avoid making lots of copies of the same text ...
2
votes
0answers
77 views
+150

Generate stateless client-side forms from server-side Models?

Client-side (example) JavaScript framework: Ember.js, AngularJS or KnockoutJS Server-side (example) Python-based: Flask, web2py, Django; or Ruby-based: Rails, Ramaze, Sinatra Are there any ...
-1
votes
0answers
64 views

how important is community to learning to program? [closed]

I've been using Python to learn programming and web development at Udacity.com. I really like the language due to its strict indentation and readability, and would like to continue. However, there ...
1
vote
1answer
58 views

Kind of blocks in Python

In Ruby I can say: def get_connection db = connect_to_db() yield db.close() end and then call it get_connection do # action1..... # action2..... # action3..... end In Python I have ...
5
votes
3answers
104 views
+300

How to integrate a standalone python script into a Rails application?

I've got a program that has a small file structure going on and is then ran using python do_work.py foo bar I want my rails users to press a button and have this happen for them, with the result ...
0
votes
2answers
37 views

Retrieving Twitter data on the fly

Our company is trying to read in all live streams of data entered by random users, i.e., a random user sends off a tweet saying "ABC company". Seeing as how you could use a twitter client to search ...
6
votes
3answers
156 views

what is the Python equivalent of Ruby's yield?

I'm switching from Ruby to Python for a project. I appreciate the fact that Python has first-class functions and closures, so this question ought to be easy. I just haven't figured out what is ...
1
vote
2answers
54 views

Equivalent to Perl Modulino for Ruby, Python?

I know Perl has a design pattern known as a modulino, in which a library module file can act as both a library and a script. Is there any equivalent to this in Ruby / Python? I think this design ...
0
votes
1answer
38 views

Connection Pool for a Single Threaded Application

Is there any reason to maintain a pool with more than one connection when running a single-process, single-threaded application?
3
votes
3answers
90 views

split array to sub array by step in Ruby

In Python i can slice array with "jump-step". Example: In [1]: a = [1,2,3,4,5,6,7,8,9] In [4]: a[1:7:2] # start from index = 1 to index < 7, with step = 2 Out[4]: [2, 4, 6] Can Ruby do it?
-2
votes
0answers
48 views

How would you design this example [closed]

Imagine you have an advertising system where users can post ads. Users can create millions of ads, but only 10 can be viewed at the same time. Ads are valid for a random period of time - one can be ...
1
vote
0answers
29 views

Which framework to write an event-driven ETL application? [closed]

I wrote a prototype for an ETL application. It consists of an admin interface which defines tasks and groups them in batches, which are pushed to a stack stored in a MySQL database. A CLI application, ...

1 2 3 4 5 62
15 30 50 per page