« first day (3585 days earlier)      last day (1346 days later) » 

12:00 AM
@PedroSpinola my impression is that you're doing last-mile delivery?
 
And if we make a deal with the first client using the prototype, we'll probably have to call a software engineer in to review and optimize my code
last-mile delivery? you mean the business or is this some slang lol?
Actually it's a software for sugar cane farmers to select herbicides to protect the culture from weeds.
 
I mean that's my impression of what your business does
 
These last 10 days I was dedicated to build a nonlinear global optimizer/solver, even though I'm very bad at math. And it worked :D awesome experience
 
I have watched your questions
 
Not a cool-looking business but because it is so niche it may be interesting :)
 
12:05 AM
It happens that I worked with plants and I work in process optimisation. So I have paid attention to your questions.
 
tbh I'd happily donate to you and some others here who helped me so damn much, if we close the deal (not sure if this kinda talk is permited here)
nice! what kind of plants?
 
@PedroSpinola Not necessary and no, we like to keep money stuff out of here
 
Hello
 
I know nothing about agriculture tbh. It's my business partner who handles the science and all related to it. I'm the tech guy (although not a specialist), and I study business strategy - that's all :)
 
@PedroSpinola I have a website linked on my profile
 
12:17 AM
nice website @roganjosh! rly enjoy the way you make these projects examples live for the user, great idea
and I see you worked a lot with vehicle-routing, which is very interesting
you must be a optimizing wizard lol
 
And artemisia annua. What does your business do?
 
tell me btw: in data science industry, are the people who make the optimization code the same people who make it work faster? (I know very little, but I've heard people talking about 'translating' python code to other languages for speed improvement, and other stuff too like server stuff etc)
is that for malaria treatment?
 
Yes
 
nice
I've lived in Africa so I know how bad malaria is (and was probably much worse midst 90's)
I told you.
 
Stevia is the only big extract I'm aware of currently. What are you extracting?
 
12:22 AM
It's a software for sugar cane farmers to select herbicides to protect the culture from weeds.
extracting? what you mean?
 
You're growing plants for fun, then?
 
wait. I'm not growing plants lol
what led you to think that?
 
I'm just taking stabs at what your startup is, I guess :P
 
I used to grow some plants in the past, but no for commercial use lmao :P
nah, my startup is just that. my partner is a scientist specialized in herbicides for sugar cane, and he invited me to make the prototype and help with some business decisions
because he identified the opportunity to make farms and 'cane factories' (don't know the right word) more efficient with proper knowledge + software for automation
 
Well, that leaves me somewhat confused. I thought that sugar cane grew in plants but you poo-poo'd my question
 
12:35 AM
the people growing plants are Pedro's customers
 
I wasn't grasping your humor before, my british friend lol
 
:P
 
btw I hope "leaves" was not some kind of pun attempt lol
 
Not only am I British but I have dry humour, so I'll let you off
@PedroSpinola It wasn't. It's to be debated whether that is a reasonable pun :P
 
:P I suspected
 
 
3 hours later…
3:46 AM
Hello?
 
 
4 hours later…
7:58 AM
How can I draw a circle at a certain radius for a Matplotlib polar plot? axhline doesn't seem to work.
 
 
1 hour later…
9:10 AM
@user76284 how about axhlines? At worst you can draw a line manually I guess
 
9:52 AM
@nerd could you stop periodically just posting ".." please...
 
user13415013
Sorry, i thought somebody is here. This wont happen in future.
 
user13415013
I've ran into problem
 
@nerd bad luck
 
user13415013
means
 
user13415013
when running python code from terminal, after some time it pauses and pauses until abort. Is there any problem on my code or any.
 
user13415013
9:56 AM
I was downloading dataset from site.
 
@nerd you have a bug on line 14
 
user13415013
my code is correct, but pausing after running sometime , what could be?
 
@nerd a bug in the python interpreter perhaps?
 
user13415013
Here is my code. dpaste.com/2DQQBHFLV
 
user13415013
Hi @AndrasDeak what should i do to go away bug from interpreter.
 
user13415013
10:02 AM
sometimes download would go to 2000 and pauses , and sometime just in 20 30
 
user13415013
Appreciate for you small help.
 
user13415013
But why everybody is silence.
 
user13415013
Oh busy, please if you got solution, mention me. Thank you for help.
 
@nerd Because it's Sunday and that's traditionally a day off in Western countries. In any case, people will help if/when they are able. The first thing I see is that you catch an exception but don't report it
Have you tried putting print(e) in except Exception as e to at least see what's going on?
 
user13415013
oh , enjoy holiday, What you are doing in holiday @raganjosh
 
10:14 AM
It's not a holiday. It's just generally a day of the week that people don't think about work
 
user13415013
does only exception could freeze , how could.
 
I don't know what that means sorry
 
user13415013
I am saying , that does exception might be my problem for loop not going forward?
 
user13415013
or pausing
 
Nobody knows, not even you, because you're not showing whether or not the exception happens
 
10:17 AM
Or just... stop swallowing exceptions...
Sorry, I get triggered when people's advice for fixing swallowed exceptions is to add a print. That's just a bandage over the actual problem.
 
I'm happy to let you take this one :P
 
yo
 
It's Sunday for me, too. :-)
 
user13415013
it is currently running, i will add print.
 
But my crystal ball says that there's a transient Internet problem.
 
10:20 AM
for me 2 always sunday from more than 6 months ;hahahahha
 
That's the only thing I could help with. Otherwise, you've just got a bunch of Python code. Ain't nobody know what to do with that. Maybe rewrite in another language that I can understand?
 
user13415013
@CodyGray Like python works in interpreter, is there any python or thing that runs on JVM for python like thing.
Just asking,
 
Masterful, Cody
 
@CodyGray you don't have to be able to understand it, they already said their code is correct
 
@AndrasDeak I have it on good authority that there is a bug on line 14.
@nerd The language that runs on the JVM is called "Java".
 
user13415013
10:22 AM
yes but what if JVM like thing with same syntax as python , is it possible
 
but actually there's jython which is not very active I think
 
What would be the point of that?
Ugh, it exists anyway, in spite of being pointless. Why am I not surprised?
 
user13415013
It may be run faster.
 
user13415013
yeah ,
 
Things running on the JVM aren't exactly known for speed. I don't see why there'd be any advantage in trading one runtime environment/engine for another.
 
10:24 AM
maybe you should focus on getting it to run before trying exotic flavours of python in the hope they will run faster
 
OK, jython is active, but it's still python 2.7 so no
@roganjosh concurrency and file uploads/dowloads just scream "write me in C++" to me
 
user13415013
but why java dont use python like syntax, Is there any problem with java. or even c++, Why should not change syntax of c++ or even java
 
@nerd :/
 
@AndrasDeak What doesn't?
@nerd Um, what? Why would you want Java or C++ to use the same syntax as Python?
 
user13415013
I think ,you know better than me.
 
10:26 AM
@CodyGray Why wouldn't you, more to the point? I'd probably be ok with Java then
 
user13415013
like messy code in java and c++
 
@nerd each thing you say makes me more concerned about this conversation
 
There's pretty much nothing about Python's syntax that should be imitated by other languages...
 
Indeed, it's been sorta fun but I feel the wheels are coming off
 
Just because it works for Python doesn't mean it'd work for Java.
 
user13415013
10:28 AM
yes, c++ like performance and python like syntax with lower level flexibility
 
you seem to have some peculiar notions of programming languages and I don't think we can have a reasonable conversation based on that
 
I note that that comment wasn't directed at any particular person, @AndrasDeak ;-p
 
user13415013
I came here for another question, because of sunday, i asked all in my mind.
 
@CodyGray multipurpose :P
 
user13415013
In my place lockdown and everyday is sunday
 
10:29 AM
@nerd if you can ask about python issues well (think MCVE) you can go ahead and ask
 
user13415013
I've asked, it is currently running, if it is again freezes, i am waiting for it.
 
And you set up print(e), right?
 
user13415013
ah , waiting for finish
 
Not changing the code is a good way to get the same bug with no additional information
 
What's worse is when you re-run it again without changing the code, but it works.
 
10:32 AM
But I hope your asking here just made the problem go away
 
user13415013
first ive tried to solve problem but it was all correct, so i came here
 
ah, yes, I forgot about the correctness
 
We are magical.
Don't forget about that.
 
user13415013
indeed, you are. but you are annonymous, no body knows except our friends
 
We're not so anonymous, really
 
user13415013
10:37 AM
google knows everybody
 
user13415013
guys , How you think about Richard stallman FSF/GNU foundations. Do you support them
 
Especially when they use their real names
I use the compiler a lot...
 
user13415013
guys i will be back, keep doing great.
 
Will keep doing nothing. Seems to be working for me.
 
Apart from being a semi-anonymous magical being
Don't undersell yourself. Your resting state is still a thing of awe
 
11:36 AM
Hey guys
I am having some issues using Flask session.
I don't know why but the value of the variable I am defining don't change
I used session.modified but nothing changed
 
Please give an example (if it's going to be a long snippet, please post elsewhere like dpaste and link here)
 
Yeah sure
 
I'll also need a little context. I've never had to use session.modified myself directly, so what are you trying to do?
 
Basically I am running 2 scrappers on a distant machine
I only want to run only one of them
to do so I track the status of which scrapper is running using variables I put in session
 
scraper*
 
11:41 AM
Thanks ;)
 
Sorry, just a knee-jerk reaction :P This doesn't sound like something to put in a session, though. Why wouldn't you have a mutex file or something?
Anyway, it might become clearer when I see the code so I'll hang fire
 
I am aware that there are multiple ways to do what I am trying to do (saving the status in a file for progres, using a redis or memcached etc) but i am doing this for the sake of learning
My issue is that after the last route defintion (def scraping_over() )
 
Oki doki. You don't even check session.modified so why set it?
 
Well since I saw that it might be from that I put it everywhere xD
what do you mean by check session modified?
isn't that a write only variable?
 
if session.modified: or something
 
11:47 AM
used only to enforce checking the modifications?
what is the purpose from that?
 
Setting that parameter doesn't appear to have any impact in the flow of your program
@ChiPlusPlus as I said, I've never used it directly myself. It looks superfluous here
 
ok
the problem is the second change for session["scrape_in_progress"]
isn't reflected while using other routes
it seems like only the first modification is taken into consideration
 
What is check_in_session?
 
just a small lambda to retrieve specific keys
in session
instead of writing the same thing again and again
check_in_session = lambda x : session[x] if x in session else None
 
session.get(x)
 
11:58 AM
It seems to me that you've massively over-complicated this. If you only want one scraper to run at once, then set a Boolean flag
 
Yes, as I said it is not optimized at all
I just need to understand what I am doing wrong with sessions before optimizing
 
It's not really a question of optimisation here, it's that the setup is over-contrived
I don't actually understand why you've wrapped this all up in Flask to begin with tbh
You could just use requests to get content of sites. What you've done is tie it to a route - why? If this is for learning, fine, but the whole premise doesn't make too much sense to me
 
@AndrasDeak I don't see any changes
 
@ChiPlusPlus you shouldn't. It should do the exact same thing instead of the lambda with a conditional expression inside.
 
@AndrasDeak I see your point , thank you
@roganjosh for the moment i need to wrap it in flask
 
12:06 PM
Ok. So what is triggering the route?
You have to have something making requests for the code inside @app.route("/") to run
 
I am triggering them manually using chrome
 
Ok, I've stripped out the bits that I don't think do anything and what I'm left with is still confusing me. It's perhaps better to focus on desired functionality
 
So, landing on the page triggers a scraper to run. If the scraper has finished, you want to redirect to the results page. If it hasn't, then presumably you want a holding screen. I'm not sure how this relates to the two scrapers that are mutually exclusive, though
 
I am didn't provide the code which uses the other scrapper
to make it simpler
 
12:17 PM
It just leaves me with questions :P
You'll need a MCVE. I can't quite get my head around what you're doing, sorry
 
I understand
Thank you :)
I will see what I can do about taht
 
1:16 PM
I guess scrapers need to be pretty scrappy.
Is that why we've started calling them "scrappers" now?
 
Web scrapping is big business. It's what fuels social media
<wonders whether "scrap" is also a colloquialism for a fight in other countries>
 
I don't think it's by country. Definitions of words is a language-based phenomenon.
 
So if I asked you what a ginnel was, you'd know without looking it up? There's not a person around me that wouldn't know what that was
 
No, I have no idea what that is
 
So, you'll concede that there is some regional influence on the language :P
I genuinely don't know whether "scrap" means "fight" elsewhere
 
1:26 PM
Nah fam, sometimes y'all just make stuff up
It does in American English, too
 
100 years from now (after the apocalypse) the meaning could evolve into "fighting like mutant rats do over scraps of meat"
 
it will make much sense then, no clue why it's called a scrap now
 
Oh. That isn't what it already means? <scuttles back to cave>
 
beware of the rats =)
 
All eaten. I'm safe
And hungry
 
1:33 PM
wiktionary says it's a thing en.wiktionary.org/wiki/scrap#Verb_2
> Etymology 2: Unknown.
50% chance it's from something like scraippes in French
 
@roganjosh You ate the rats?
 
Bit of seasoning and they go down a treat
I'm Northern. People only recognise London and I either live there or in a cave, so I'm not judged
 
So the rats live in the cave
 
lived*
 
1:41 PM
Lancashire has been pretty urbanized since... ah... the early 19th century...
 
Sure. We gave the world the Industrial Revolution. Still, when I've worked abroad, there's literally just London and nothing else
 
Oh, you are actually in Manchester
Honestly, I have a hard time thinking of that as "North"
 
When I was working for a company in Dubai, they kept trying to force me to hire people in London. I kept telling them that it took hours to get there and they might as well be in Dubai
@CodyGray If you call me anything other than "Northern", I'm flagging you :P
 
Is winter coming?
 
I might need my "big coat" soon, so perhaps
 
1:46 PM
No, I mean, geographically... I have a hard time thinking of Manchester as being in the North. It's... not.
It's middle.
 
In terms of demographics (that's not the word I'm looking for) it very much is
 
I figure I could call you a Mancunian. Flag away! Andras and I like spurious flags very much.
Culturally, I believe, is the word you're looking for.
 
@CodyGray well usually I'm the only one speaking up against them so I'll have to take your word for it :P
 
Probably
 
You are cultural bros culturally homogeneous with the North.
@AndrasDeak That's because I don't have to speak. I just click the buttons silently.
 
1:48 PM
One less flag in the queue
 
@CodyGray you missed out on some fun last night...
@roganjosh chat flags are a different (crappier) beast
 
I caught up :-/
 
I'm not even sure there's a proper queue
 
You should know this, @roganjosh, you're a room owner. You see the flags every time they're raised in here.
 
@CodyGray [trump_wrong.gif]
 
1:49 PM
Sure, I know
 
he's a pleb, needs 200 more rep
 
ROs need more rep to see flags?
 
as far as I know ROs are not special-cased and he doesn't have 10k
it has come up before here, I can try to dig it up to see if I recall correctly
 
Haha. I always forget to account for how broken chat moderation is.
 
On one hand, I want to say "outrageous" and on the other, yeah, I can't see flags. Just kickings
 
1:51 PM
I don't know why you'd want to say "outrageous". I usually only say that when looking at the flags that you can't see. :-)
 
Being called a pleb. I'm a well-adjusted troglodyte
 
2:42 PM
It’s pretty weird getting notified of flags as a regular user, actually. Did poor HaX0rLord24 get dragged from some room straight to SO re-education camp due to my vote? Are they forever trapped on Gilligan‘s Island? Did I set the hounds on them? Does the principal know? Will there be a stern note to his Mom?
Sunday cabbage, by the way
 
3:30 PM
@MisterMiyagi well... obviously - they get put in the stocks and people throw cabbages at 'em... not sure where your crazy ideas are coming from there :p
 
 
3 hours later…
6:40 PM
is there a way I can find the chat room for a tag?
I want to check if there is a C language room, chat.stackoverflow.com/rooms/54304/c is this really the C chat room like this python room?
 
@python_learner that's as close as it gets
 
seems deserted :/
 
it happens
 
was expecting other rooms to be lively as this, guess I was wrong
 
What can one say - they just don't make 'em like Room 6 these days :p
 
6:45 PM
They also don't make room 6 like room 6 these days :P
 
took a while to understand what Room 6 meant, I find room 6 to be informative even if I only read things here and now
 
 
3 hours later…
9:20 PM
Cabbage. I was kind of offline for a few days, and just finished catching up with the transcripts. I noticed a couple of typo questions that are now eligible for deletion.
 
@PM2Ring bombs away :)
cabbage
 
Shame there isn't a deletion queue...
 
yeah...
I have at least a dozen questions open on my phone, maybe more. I'm too lazy to collect them to delv-pls. Maybe one day...
@PM2Ring at least that one will roomba
 
@MisterMiyagi Sorry to be so late with this, but why use map? What's wrong with a gen exp? Eg, (x() for x in iter_of_callables)
@AndrasDeak True. But no harm in helping it get cleaned up a little faster. ;)
@AndrasDeak I don't know if you like high-speed Gypsy style guitar, but check out these guys playing a tune called Hungaria youtu.be/coT-nfgysRY
 
9:36 PM
I don't know either, let's see
@PM2Ring Well it's better than jazz ;) Thanks!
 
@AndrasDeak Glad you like it!
Some people would call it jazz, but I didn't want to put you off. :)
 
Hehe, good thinking
 

« first day (3585 days earlier)      last day (1346 days later) »