« first day (2228 days earlier)      last day (2944 days later) » 

23:00
you need to code-format your multiline messages with ctrl+k, otherwise whitespace is lost
and python uses whitespace for syntax
Which part don't you get? Syntactically speaking?
can someone translate it to php or c++.
...
good luck
to whom it may concern:
30 mins ago, by Andras Deak
@user6827096 life tip: don't ask to "translate it to PHP or C++ or other language", because some languages are more unlike others than others, and python is often pretty different. What you need is an explanation of what's happening, which you can implement accordingly in your language of choice.
i dont get what are indexes of primeFactors in subsequent iterations
0,1,2,3.... ?
or x
primerFactors doesn't get indexed, it only grows one element at a time
it's simply a list
DSM
DSM
Yeah, like
In [14]: factorization(60, arrayF(60))
[] 60
[2] 30
[2, 2] 15
Out[14]: [2, 2, 3, 5]
23:04
the wizard is here:P
DSM
DSM
(I put the print at the start of the loop so you don't see the 3 being added, but it happens.)
23:34
Hi, guys. Can anyone help me to point direction, where to dig me with my problem. http://stackoverflow.com/questions/40703458/python3-vagrant-ubuntu-16-04-ssl-request-errno-104-connection-reset-by-p

TL;DR:
I have 104 connection error, while trying to connect to GoogleAdwords API from vagrant box(ubuntu), that is on my macos Sierra.
But I can connect from:
1) Python script from host machine
2) Server at DO
3) curl inside vagrant box
4) php script inside box
20
Q: 104, 'Connection reset by peer' socket error, or When does closing a socket result in a RST rather than FIN?

jwhitlockWe're developing a Python web service and a client web site in parallel. When we make an HTTP request from the client to the service, one call consistently raises a socket.error in socket.py, in read: (104, 'Connection reset by peer') When I listen in with wireshark, the "good" and "bad" respo...

Looks like there might be an issue to do with threading
thanks, I've read it. but not sure how threads can affect me. I write quite simple script - just
f = urllib.request.urlopen(url)
print(f.read())
user559633
@s_mart So it's only with urllib request in that VM? To be clear, using curl against that endpoint returns some content when in the VM. Likewise, would doing urlopen to something like example.org also fail for you? I'm wondering if it's a certificate store issue.
23:50
@tristan yep, curl from console works well. As well urlopen for example facebook.com also works ok.
user559633
@BlueMonday don't post garbage, thanks.
Hi all, my code prints the length of the longest increasing subsequence, but I'm having trouble making it print the actual longest subsequence... Any ideas on modifications to my code? This is the Russian Doll Envelopes dynamic programming problem.
envelopes = [[15,8],[2,20],[2,14],[5,17],[5,19],[5,7],[5,19]]
def maxEnvelopes(envelopes):

    if not envelopes: print("There are no envelopes to nest.")

    # Sort the envelopes by ascending width
    # If any widths are equal, sort the subset by descending height
    sortedEnvs = sorted(envelopes, cmp = sortedList)
    size = len(sortedEnvs)
    # Initialize the empty solution array
    solution = [1]*size
    # Find the longest increasing subsequence of heights
    print sortedEnvs
    for i in range(1,size): # iterate over the length of the sorted envelopes array
user559633
@s_mart That's weird. Try setting a user agent stackoverflow.com/questions/24226781/…
user559633
Getting an HTTP 104 is really weird. Are you maybe on a network with a network admin doing intrusive things?
23:58
@tristan thanks, but same things.
user559633
Huh. That's really weird. Grabbing that virtualbox now.
I think no. 1) evrything works from host machine and from curl inside box, so it looks like network is ok.
2) This error appeared after upgrade to Sierra. also i think that version of virtualbox/vagrant has updated

« first day (2228 days earlier)      last day (2944 days later) »