« first day (3260 days earlier)      last day (1688 days later) » 
00:00 - 16:0016:00 - 00:00

4:00 PM
someone could help ?
 
please delete that for now and figure out code formatting
Sep 2 at 18:35, by Andras Deak
@RishikMani please see our code formatting guide and practice in the sandbox if necessary
you should also drop that gaping hole in the middle
 
Looks like en.wikipedia.org/wiki/Minimum_spanning_tree has a couple different algorithms you could use
 
the code just posted wrongly here. sorry for that.
 
@αԋɱҽԃαмєяιcαη So you need to practice in the Sandbox
 
4:07 PM
I wonder how hard it would be to just iterate over all possible spanning trees and pick out the one with the smallest total weight? A fully connected graph of N nodes has N^(N-2) spanning trees, so you can reasonably brute force a graph of, say, 9 nodes
 
Yes that was essentially the only solution which I already figured it out after messing around for hours.
I am thankful of the bounty points you offered and I appreciate it : )
Thanks a lot for helping me out
 
No worries, glad you have it sorted @John
 
 
2 hours later…
6:33 PM
cbg all
@Kevin i managed to get a threading sample done last night....kinda proud about that
 
6:53 PM
@anky_91 Roughly what does this system have to look like from the client's point of view?
If they're not technical people and the service doesn't have to look totally slick, I could see a short-term approach using Google Drive where they just have to copy paste their file into a directory and you write the result back. It depends on what they're expecting. That could seem pretty convenient to certain usergroups and it would be simple enough for you to set up on your side
 
dropbox would also be adequate
 
The key is definitely understanding their expectations. It would be very easy to overthink a solution when they might still be at the stage of typing numbers in a calculator and filling the values into a spreadsheet. There's a wide spectrum and you've not given us anything to go with to understand where they are on that :)
 
I bet there aren't too many options beyond "host your own server" (you probably don't want that), "borrow someone's server" (pythonanywhere et al.?) or "use entirely someone else's server" (google drive, dropbox etc.)
 
7:29 PM
I assume the files are too big for emails?
if not, you could just skip building a solution around it, and just ask for the files over mail
 
What if the client wanted to do this transformation 50 times a day? The onus is then on them to keep track of what email corresponds to what task, vs a perhaps more-familiar file naming convention simply by storing in a directory structure from the start
 
Aye, it would be rough if one plans to run it 50 times a day, and i wouldn't opt for an email based approach then.
 
This is all hypothetical anyway until anky responds. .py files can be stored fine on either Google Drive or Dropbox but it sounds like there is some idea that they need to be executable in this shared space, which might be a hard requirement or just part of the working solution they had in mind
 
the files being sent to and from will not be py files, they'll be data files
 
I need a regex that will never find a match
 
7:38 PM
okay. i see your Y. what's your X.
 
'$^' but this is an XY
 
maybe ^.
 
"... and I have a python script (I should be able to save .py files in the platform) which will do some data transformations..." so I wasn't sure what exactly this implied
 
I think it has to host the data and the python script to run next to them
 
Ah. the way i see it, it's simply anky has a program, that can transform some data.
the outputs are useful for the stakeholders on their data.
 
7:39 PM
@erotavlas if you don't want to find a match don't look for one
 
In my Google Drive approach, I would just use an API to pull new files to some local area that just had my code, and push the results back. The script would be entirely separate
 
yup
 
that's an option
 
I've never done it with Dropbox, but you can poll Google Drive every second and you won't exceed the free API limits (or, I couldn't ~4 years ago)
 
dropbox can be integrated into your system as if it were a local drive
 
7:41 PM
Although, I am reminded of an odd restriction. There was no (well, kinda) limit to how many files could be in a directory, but the API could only ever pull a set 1000, IIRC the oldest
 
sounds like an even restriction to me
 
My bad, it was 999
:P
 
8:05 PM
Tomato
 
whoah, let's watch the language ;)
 
@biggi_ And it's funny becuase people complain that you cant swear in this room and you clearly can.
 
answer = 'then don't modify the else statement' :)
 
What Dodge?
 
8:15 PM
Sorry my pinky is trying to make me look bad
 
sorry, saw you edited :)
 
@erotavlas "working perfectly" has some unusual meanings on SO :)
It reminds me of when I first started playing around with HTML and everything was working perfectly until I changed one line and literally everything on the screen would explode in all directions on rendering
Only by the grace of HTML doing its best to render something was it just happening to be what I expected despite all my mistakes
 
working perfectly usually means simply working better than before I made that change
 
I'm guessing on that question that everything was just falling through the if/elif chain and they had some function call other than print() at the end that was picking up all the pieces
 
 
1 hour later…
9:41 PM
@Aran-Fey in case this was keeping you awake at night: I've upgraded my packages (in particular libc which was mentioned in the traceback) and now gimp is working like a charm
 
9:57 PM
nice
 
10:25 PM
I do have a question about Python requests. do we need to use with requests.Session() as bla which means it's open the site and close it after operation done ? or it's fine to just open it using var = requests.get('www.example.com', and so on)
 
var = requests.get('www.example.com' doesn't use a session
What are you trying to do?
 
trying to login website.
 
For scraping, I guess?
 
yes that's correct.
 
11:34 PM
anyone here
 
00:00 - 16:0016:00 - 00:00

« first day (3260 days earlier)      last day (1688 days later) »