« first day (760 days earlier)      last day (1428 days later) » 

1:58 AM
0
Q: simple Rock-Paper-Scissors to get more comfortable with OOP

n1c9import random class Player(object): def __init__(self,player): self.name = player self.score = 0 self.choice = [] class Game(object): player_one,player_two = Player('player_one'),Player('player_two') def gameplay(self): choices = ['rock','paper','s...

 
 
1 hour later…
3:26 AM
0
Q: Execute multiple conditional expressions on pandas data frame

pliebThis script counts how many matches were won by the team with a first half, second half, and full game time of possession differential advantage. The data is stored in a pandas data frame: Points H1 H2 Total 0 36 46 50 96 1 -5 16 18 34 2 47 12 65 77 3 ...

 
 
4 hours later…
7:21 AM
hi!! gaurav...i am trying to call map location..in fragment..but it only open the map not able to retrive the location
 
1 message moved from Leaf Village Ninjas
 
 
3 hours later…
10:10 AM
0
Q: Allocating a resource

ic_fl2I'm working on the following DP which finds the optimal way to allocate a resource. At each time step I can either allocate (0.2 resources) at cost C or not in which case the storage is reduced by the demand. The cost C depends on which time step I do the allocation. I need to add quite a few mo...

0
Q: SoundCloud Top 50 Player

wb9688I wrote a Python 2.7 script, which plays tracks from the SoundCloud Top 50. import atexit import os import shutil import subprocess import requests if not os.path.exists('.tmp'): os.mkdir('.tmp') @atexit.register def cleanup(): shutil.rmtree('.tmp') class soundcloud_top50_player: ...

 
10:26 AM
0
Q: How to generate C++ code (WITH Python )(not FROM Python)?

MichaelFor a scientific simulation I need to write some computations in C++. Since this became extremely tedious, I built myself a small code generator: In a scripting language (Python) you put together a syntax tree consisting of assignments and mathematical operations. A self-written codegenerator tra...

 
10:58 AM
hello guys i know my question does not correspond to this group but i dont found any active Web developer group so thats why i am asking here....if i restart apache https service does it impact on my cron task??
*httpd
 
@Swap-IOS-Android Yeah, wrong room, sorry
 
@Swap-IOS-Android You came to this room before and you were already told this is not the right place for such questions.
 
@Swap-IOS-Android please don't post in the SOCVR general stuff
 
@Tunaki yes i know this is not appropriate room for this question but i dont count any other active room for server help so i asked here... i though you guys are expert so you might know and you would help me..but any ways Sorry for my question
 
I kicked you from the SOCVR. Stop posting in the SOCVR
 
11:04 AM
okay
 
11:44 AM
0
Q: How can i traverse the edges list in the input?

aolI'm trying to find the coordinates(position) of any node in the tree I could implement an algorithm that finds the coordinates No two nodes can share a column, and that the left node is filled first, but i couldn't traverse the edges list in the input, first match goes left, second goes right...

 
12:16 PM
0
Q: How to retrieve policy after DP?

ic_fl2I'm working on a simple resource allocation problem, that I'm solving using backward DP. The full code is at: http://codereview.stackexchange.com/questions/123641/allocating-a-resource It works fine, but I'm a bit puzzled on how to retrieve the optimal policy once the optimisation is done. I use...

 
 
1 hour later…
1:19 PM
0
Q: Help - Python/SQL

Ryan KingI'm getting this error <type 'exceptions.AttributeError'> at /complaint_new module' object has no attribute 'get_complaint_types Python /usr/lib/sheltermanager3/code.py in GET, line 3744 Web GET http://127.0.0.1:5000/complaint_new` For this piece of code. Can anyone tell me whats wrong. ...

 
Sam
1:46 PM
8 messages moved from The SO Tavern (Free Snacks)
 
-1
Q: Struggling with classes in python

jonesI'm trying to understand how to use classes so that a user can interact with it. So in this example I want a player to type in their player name and have that saved as player_name. prompt = '> ' print("Hello player and welcome to our realm, please identify yourself") print("What is thy name?") ...

-1
Q: Using Python to test HTTP APIs

Alexandru MartonI'm fairly new to Python programming and I don't know all the libraries needed for the following. I would like to use python to test some HTTP APIs. Mainly I want to use OAuth and make a few JSON calls. The APIs in question can be found on: https://developers.trustpilot.com/authentication and th...

 
 
1 hour later…
3:11 PM
oh gush pls dont tolerate hacking :(
also suck puppeting
2 messages moved from [Java and Android era ](chat.stackoverflow.com/rooms/19132/java-and-android-era)
 
 
3 hours later…
6:04 PM
0
Q: Error Javascript/SQL/Python

Ryan KingWhen I go into the browser, and Click on the link for complaint_new i receive this error. ERROR: module_start [complaint_new]: render: TypeError: Cannot read property 'length' of undefined from TypeError: Cannot read property 'length' of undefined at Function.n.extend.each (http://127.0.0.1:5000...

 
6:18 PM
0
Q: Error Javascript/SQL/Python

Ryan KingWhen I go into the browser, and Click on the link for complaint_new i receive this error. ERROR: module_start [complaint_new]: render: TypeError: Cannot read property 'length' of undefined from TypeError: Cannot read property 'length' of undefined at Function.n.extend.each (http://127.0.0.1:5000...

 
6:30 PM
0
Q: Learning nested for loops in Python with pig latin translator

ArchitektI've been trying to learn python for a bit now. I've taken a few courses, but I've found that I've been going about them wrong and had allowed them to "hold my hand" too much. I'm trying to build projects on my own and thought I would start off small. My third or so project was this Pig latin tra...

 
 
2 hours later…
8:52 PM
0
Q: Converting IDL code to Python

user221682I am attempting to convert this code which is in IDL to python. I have experience in python but basically none in IDL. I was wondering if someone could give me a hand or at least help me get started. Basically this code will be merged with code we've exported to python from ArcGIS's model build...

 

« first day (760 days earlier)      last day (1428 days later) »