« first day (2289 days earlier)      last day (2652 days later) » 
00:00 - 23:0023:00 - 00:00

12:00 AM
I want to save all of them, but use the last one on the current page to determine what the next page will be
 
exactly which part gives you difficulty?
 
Well I know how to save them so I guess I really just need help changing the request url dynamically
 
so think about what you want to do, and if you're stuck with that, ask the appropriate question:)
 
12:57 AM
Cbg
 
1:49 AM
@PM2Ring I find it weird that puppy has a single and root user by default and convention
 
 
1 hour later…
2:59 AM
I see that python buffers stdout by default. I need to set -u to make it not buffer. Why is buffer the default. Is unbuffered in someway less performant? does python -u reduce speed or something?
 
@AndrasDeak Yes, it is a bit weird, but it's not as unsafe as it might first seem, unless you install it as if it were a normal distro. If you're running it off a CD or USB or a "frugal" installation then it's fairly safe because you're essentially re-installing every time you reboot.
 
thanks
 
3:22 AM
@NickHumrich Yes, using unbuffered I/O is a little slower, and it has an impact on the performance of the whole system, not just your program. I/O requires system calls, which are handled by the kernel.
The more work that the kernel has to do for your program, the less time it has available to service the other processes.
 
Is there a way to make stderr unbuffered but not stdout?
I guess let me back up. Im having issues debugging python in docker because my program is running into errors but I dont see the stacktraces
I found if I use -u it solves the problem
but I probably dont want to do that in production
 
 
2 hours later…
5:14 AM
@NickHumrich stderr should be unbuffered
if you redirect it to a file, pipe, now that's a different thing
 
6:02 AM
Good morning
 
Cabbage
Hey @AnttiHaapala Do you have any suggestions for this guy?
 
yeah, I wonder how did the sparse-file thing work really
when you're writing zeroes
 
Yeah. My guess is that if you want to write it to a RAM disk then the RAM disk still needs to act as if the file is 200 GB, but it won't actually need to allocate all that RAM if the file is sparse. So it needs to be a dynamic RAM disk, not a fixed-sized one. But I haven't played with RAM disks much on Linux, so I'm not sure. (But I used them extensively on the Amiga).
@MartijnPieters There's a Unicode question you might be able to shed some insight on: stackoverflow.com/questions/41766447/… I've already linked one of your answers re sys.setdefaultencoding('Cp1252'), but I don't know enough about bs4 or Excel (or Windows) to offer further advice.
 
Hey, at least he's trying to migrate stuff from Py2 to Py3. But I don't have a lot of confidence in his mentor. :)
 
6:15 AM
no, I am saying "yuck" at that other guy who "helped" him
 
With friends like that, who needs enemas. :D
 
6:43 AM
raticed
 
@PuneetMathur What's that supposed to mean?
 
Google Images to the rescue, once again.
 
Ok...
 
I have no idea what "rat iced" has to do with Python, but there we go.
 
 
4 hours later…
10:51 AM
cg
*cbg
 
11:24 AM
**cbbg
 
ahahahaha , sup guys
 
I just wrote a handy little tool for finding the full key path of a deeply nested JSON object. See stackoverflow.com/questions/41777880/… I've occasionally wanted such a thing in the past, but I was never sufficiently motivated to write it before. :) I've been writing recursive generators a fair bit lately, so it didn't take much effort.
 
nice coding... clean, commented :D
is it compatable with earlier versions of py
?
 
@Danilo Thanks! No, it won't work in Python 2, due to yield from. That's easy to work around, though.
 
i think i can use yield in py2.7 .... let me check :D

this is first time i have seen this syntax, could you elaborate a bit more
yield from iter_dict(obj, key, [])
 
11:33 AM
Let it be some iterable. Then yield from it is equivalent to for u in it: yield u
I guess that would be clearer with a multiline example. :) Here's the old way:
def gen():
    for u in range(5):
        yield u

for u in gen():
    print(u)
Here's the new way:
def gen():
    yield from range(5)
 
aaaaa.... so it is new in py3.6 ? cool :D
 
It's not
First result in Google for yield from is the answer
 
its not ... true ... just ran with intepreter... it works :D
 
yield from is just a minor improvement over using yield in a for loop, but it does make the code look cleaner. It's very handy in recursive generators because you always need to yield all the results of the recursive calls, and it's nice to be able to do that without a for loop.
 
i just think you should edit and say it was done with py3.x so other people dont post comments it does not work. I mean with little googling they can find suitable replacement for 'yield from'
 
11:46 AM
Good point. FWIW, yield made its first appearance in Python 2.2, but it required a __future__ import. And it had a slightly annoying limitation before 2.5: you couldn't put it in a try clause.
 
never knew... i downloaded 2.7 because i was working with ironpython , and 3.5 because it was latest version :D just stuck now coding for both
1 line to rule them all! :D :P
 
Most of the time it's not too hard to write code that will function correctly on both versions, although it's often less efficient to do that. Eg zip and map return lists in Py2 but they're iterators in Py3, so if you need an actual list because you want to index into it then you have to wrap those calls with list(). So you need to write list(zip(...) in Py3. That also works in Py2, but it's wasteful, since it makes a copy of the list returned by zip.
OTOH, if you're writing code that needs to handle binary byte strings then it's not much fun trying to do it in a way that works properly in Py2 & Py3. Similar remarks apply to Unicode handling.
 
true... i've got sick of trying to manipulate script to process by version so i just convert it to integer to save time. i think i lost 2 days trying to figure it out
about that... what do you guys do with old scripts when new version comes out ? do you forget them ( they do their job, let them be ), modify them, or ... ?
 
12:15 PM
I only update old scripts if there's benefit in doing so. Or if I look at it and think "Did I actually write this cr@p?" :)
Fortunately, that doesn't happen so often after you've been coding for several decades, but it does happen from time to time, since there's always new stuff to learn, and the early scripts using a new feature are bound to contain sub-optimal code.
 
12:44 PM
"Did i actually write this cr@ap" ahahahah so true :D
So do you code in py only ?
 
cbg
 
cbg
 
I've used many languages over the years, but I mostly write in Python these days, although I also occasionally write Bash and awk scripts. I also enjoy writing in PostScript when I need static 2D graphics, although I tend to use SVG for that sort of thing in the last year or so, mostly because it's easy to display in a browser. A few years ago I did a fair bit of JavaScript, but I've hardly touched it in the last year or two.
Other languages I've used include (roughly in chronological order) several dialects of Basic, PL/I, IBM 360 assembler, APL, Fortran, Forth, C, Pascal, Z80 assembler, M68k assembler, ARexx (Amiga REXX), an Amiga OOP language called E, and the POV-Ray raytracing language.
Plus various other scripting languages along the way. :) Oh, and PHP, but that was only for a couple of months (thank god).
 
a lot of low level languages :D Doing some electrical stuff ?
 
No, I just wanted (and needed) the power of assembler. FWIW, I didn't even know that C existed when I learned my first assembler, but C was still very new in those days.
 
12:55 PM
possible : this question has just been answered as well as this older one by the same user. The problem seems to be the same, and the slightly older answer seems more complete. Do you agree we should hammer the former to the latter?
I've already left a comment for the answerer telling them not to leave similar answers to dupes.
they're both old and good questions with one new answer each
 
Hi @khajvah Our state premier resigned unexpectedly a few days ago, and has been succeeded by our former treasurer, a woman of Armenian heritage, Gladys Berejiklian.
 
heh, now the answerer dupe flagged the former to the latter:D
(but their answer is still there)
 
about that question dupplicates , how about we ask stackowerflow to create a 'link' option, to link 2 diferent questions that are similar but further or detailed describe the problem ?
 
@Danilo there shouldn't be two questions about the same problem
if they are, one should be closed as a dupe of the other
 
@AndrasDeak true, but in mine opinion, exact duplicates should be delted/closed but similar questions linked. If one person ask question ( about generators and iterators ) and other ask question about (yield in generator and iterators ) and third person ask about yield by itself...why should not it be linked ?
 
1:03 PM
@AndrasDeak I don't know matplotlib, but the old one seems a little more detailed, so it makes sense for it to be the dupe target. The answers aren't carbon copies, so it's not that bad that they're dupes: having 2 examples may be helpful to Future Readers.
 
@Danilo if you link to an SO question in a comment or an answer, it appears in the "linked" block on the right, such as stackoverflow.com/questions/linked/36911238
@PM2Ring as I see it, the newer answer says "yeah, matplotlib does this, you have to change the limits manually; either zoom in or use <this answer which is my answer to the dupe>"
and the questions are both "why aren't my mplot3d limits what I set them to be"
thanks for the hammer
 
maybe link was wrong verb, maybe merge... merge several questions to 1... and to be honest ( although i am new here ) i never noticed "linked question " segment.
 
very rare event of two good questions, I rarely upvote questions nowadays
@Danilo merging is a thing, but moderators do it rarely because it's a bit tedious to make sure nothing goes wrong
dupes are usually fine
if you have two dupes both with good-and-should-be-visible answers, that's when they usually merge
gotta go, be back later
rhubarb
 
@AndrasDeak Ok. I see what you mean. He could have just given that info in a comment & linked to the old answer. But I don't think the new answer is harmful, and it'd be mean to rob him of the points he scored.
@Danilo Merging is possible but it's rarely done because it gets messy unless the questions are almost exact duplicates.
 
why is it messy ?
 
1:11 PM
We normally dupe-close a question when the answers of an existing question also apply to the new question, the questions themselves don't need to be close duplicates. But if you merge the answers from 2 similar but different questions onto one page then it gets confusing because some answers refer to one OP and other answers refer to the other OP.
 
thanks dude, you have spent much of energy for explaining things that are unclear to me. I appreciate that.
 
To give a simplistic example: question A asks "how to sort a list of numbers", question B asks "how to sort a list of strings". The same answer applies to both questions, so they're dupes, but if they both have answers containing code it would be silly to merge them.
OTOH, if question C asks "how to numerically sort a list of strings containing numbers", it's sufficiently different that it shouldn't be hammered to A or B, although it's worthwhile linking to them via comments.
 
and how is that merging done ? Are the combined with usefull paragraph from OP1 & OP2 or are they just copy pasted to single question ?

maybe linking could be designed differently ... i stoped asking questions because i feel that i cant contribute to stowfl ( absence of answears or comments in some and others were downvoted ) ... and linked section has completely went outside my cognitive process.
maybe i should migrate these chat questions to other chat group... i mean this is not tied to python topic... is there a group for stack questions and could you give me its name
 
@Danilo I'm not sure how merging is done: only mods can do it. And it only happens rarely. I think they manually edit the 2 questions together and then add the existing answers.
@Danilo That sort of stuff is discussed on the Meta sites. There's a general Meta Stack Exchange, and each site has its own Meta too, eg meta.stackoverflow.com You can find a wealth of info by browsing the old Meta pages.
 
1:39 PM
cbg
 
cbg
 
2:04 PM
@AnttiHaapala nope. Stderr is only unbuffered in python2, and it's only line buffered in a TTY.
 
@NickHumrich stderr is unbuffered for me in Python 3.6
import sys
from time import sleep
for i in range(20):
    sys.stderr.write('\r {:2} '.format(i))
    sleep(0.5)
sys.stderr.write('\n')
Hmm. Ok If I change that to sys.stderr.write('.'), then it's buffered. Weird.
 
Python 3 docs
> When interactive, standard streams are line-buffered. Otherwise, they are block-buffered like regular text files. You can override this value with the -u command-line option.
Applies to stderr as well
 
2:20 PM
Strict copyright laws are equally bad extreme opposite of piracy
 
@NickHumrich Ok. So how come \r causes flushing? I just tested it with sys.stdout as well. If it's relevant, I'm using KDE's konsole as my terminal.
 
I feel terrible that when I buy a book, I am not able to share it with a friend of mine
or movie
 
Strict copyright laws were of great benefit to authors & composers a century or so ago, but the changes in technology have changed the landscape drastically. Still, we need to have some way to reward creative people, or they won't be able to afford to be full-time artists, and all we'll get is mostly mediocre free crap with only a tiny handful of great works.
 
It's hard to find the golden mean in the internet
you either have to let everybody share everything, or DRM everything
and jail torrenters
 
poor ubuntu users
 
2:27 PM
what happened?
 
one of the standard ways of downloading ubuntu releases is bittorrent:P
 
bittorent is amazing
they can't ban the protocol itself, can they?
 
no, and they shouldn't
 
yeah
 
but the people who DRM everything don't really work logically
just read the recently linked thing about nintendo and emulators
 
2:29 PM
I canceled my Netflix subscription a few months ago
because of DRM stuff
 
> How Come Nintendo Does Not Take Steps Towards Legitimizing Nintendo Emulators?

Emulators developed to play illegally copied Nintendo software promote piracy. That's like asking why doesn't Nintendo legitimize piracy. It doesn't make any business sense. It's that simple and not open to debate.
> Isn't it Okay to Download Nintendo ROMs for Games that are No Longer Distributed in the Stores or Commercially Exploited? Aren't They Considered "Public Domain"?

No, the current availability of a game in stores is irrelevant as to its copyright status. Copyrights do not enter the public domain just because they are no longer commercially exploited or widely available. Therefore, the copyrights of games are valid even if the games are not found on store shelves, and using, copying and/or distributing those games is a copyright infringement.
"yeah, we're not making any money with those games, but screw you anyway"
I can see why this is justified for an economist, but it leads to an uncertain answer to "they can't ban the protocol itself, can they?"
my ISP uses traffic shaping: if they see that you're doing P2P, they might (and will) restrict your bandwidth during rush-hour
 
VPN
 
so if I'm torrenting ubuntu releases, I might get smaller bandwidth
 
my country doesn't give a damn about this stuff so I am safe... for now
 
in principle mine doesn't either
my ISP does this of its own accord
 
2:34 PM
nvm, you can't torrent with tor, I think
 
you can, but you're not supposed to
(AFAIK)
 
Plenty of great works have been produced thanks to the environment of the last 100+ years with its strict copyright laws. However, only a relative minority of artists have been able to live like royalty, plenty of less commercial artists have still had to struggle to get their art out to the public, and can't afford to "give up their day job" unless they're lucky enough to produce something that the big publishers are interested in.
I must admit it has been great to have the commercial music, book, and film industries providing stuff to entertain me, but I've also met plenty of great writers, composers, and performers who are unknown because they haven't become commercially successful. Perhaps the collapse of strict copyright will create a more level playing field. But I'm scared that we'll just end up drowning in a sea of low-budget mediocrity.
 
the internet and modern entertainment is all about sea of mediocrity with all sorts of budgets
we "just" need to establish a culture where the horde of talented artists (who are everywhere and get their works seen by people on the internet) get paid for what they do
patreon is a damned good step in this direction
 
the thing is, if you remove the DRM, peole will steal
 
when deviantart became a thing, it became evident that there's an insane amount of unknown talent out there
which must have always been the case, and true for all branches of arts, but it didn't surface until internet became ubiquitous
 
2:41 PM
but another thing is, most of the same people who steal, won't be buying the books if they couldn't steal
 
who really want to steal will steal despite DRM
 
exactly
 
there will always be a parasitic subgroup who will never pay for anything, yet expect to be entertained
the question is whether the global culture and legislation moves in a way that this group is a vast minority
 
I go to see films in the cinema a lot :D
 
this is a bit like a prisoner's dilemma: the highest profit is if you let others pay for your entertainment
 
2:43 PM
I think copyright laws are actually harming this
 
if everybody steals, everybody loses
 
I have a Kindle and I want to stop buying from Amazon
 
I'd want amazon not remove my copy of 1984 :P
 
:)
what was the name of Kindle's main competitor?
which offered DRM-free books?
Kobo
 
heard: nevah
 
2:47 PM
it reads epubs
 
@AndrasDeak True, and the end result if the majority defects is The tragedy of the commons.
 
[insert some libertardian comment here]
 
@PM2Ring yup
 
Just imagine if paper books had DRM. You'd have to show all your books to some inspector each day, and prove that your copies were legal.
 
it's easy to remove the DRM though
 
2:55 PM
I have a cheap E-reader I bought from Aldi about 6 years ago that can be used with .epub and .fb2, and plain UTF-8 text (although its Unicode handling is fairly primitive). It can display simple HTML, but has no hyperlinking, and can't connect to the Net. It also display PDFs, but it's a bit slow & cumbersome. It can also play MP3 audio and some MPEG videos.
Supposedly, it has the ability to view some DRM works, but I've only used it on non-DRM e-books, mostly from Project Gutenberg, and similar sites.
I do have a few e-books of "shady" origins, but not many, and I own quite a few of those in paper form as well (mostly Discworld), so I don't feel too guilty. ;)
 
here is the thing
If I buy a new ebook reader from Kobo
 
@PM2Ring idk. Great question. Maybe /r is considered a flushing character like \n
 
remove the DRM from my kindle books and put them in Kobo, should I go to jail?
 
@NickHumrich I guess so. It's certainly convenient that it does that, just a little unexpected on a system that doesn't use \r as a line terminator (or part thereof).
 
People will pay for non-DRM works. So don't put DRM in. And don't mind that people will copy it. That's not your concern.
 
3:04 PM
Very few people get prosecuted for illegitimately consuming copyright works. Those concerned with prosecution of copyright infringement are much more interested in those distributing those works. Of course, if you're using P2P then it gets murky because you're participating in distribution although not all P2P users fully comprehend that.
@Brandin It's your concern if the impact of sharing is such that you can't make enough profit to run your business.
 
we need a new solution
 
I thought the point of copyright was that authors can control their work. The author can choose to make profit, if he wants. But he does not have to choose that.
 
@khajvah yes
I'm pretty sure all reasonable DRM systems legally forbid you to tamper with the DRM
entirely guessing, but it doesn't make any sense otherwise
 
@Brandin Sure. However, until fairly recently it was unfeasible for authors to distribute their work themself, they've needed to enlist the help of a publisher. And with music & film, they need substantial funds for production as well. Without copyright it would be difficult for authors to assure the publishers & producers that they'll be able to get a decent return on their investment
 
whenever you hear "indie" it's supposedly an artist who didn't enlist the help of a publisher
those need your money the most if you like what they're doing
 
3:31 PM
@AndrasDeak lemme try
 
Cabbage
 
cbg, Bhargav
 
\o PM
 
@PM2Ring Copyright is valid or not, independent of the money. For example, if I write a small e-book, it is copyrightable whether I publish it or not. Whether I hire a publisher or not. Whether I charge readers a fee for it or not.
 
3:48 PM
@Brandin Certainly, and in many (most?) countries your created work is automatically copyright, you have to explicitly place a work into the public domain if you don't want it to be copyright. Or you can assign the copyright to another entity. But that's not really relevant to my earlier point, which was that our copyright laws arose so that publishers & producers could do their job and be confident that the artistic work wasn't going to get published by someone else.
 
So it's publishing that is the problem, not copying itself.
 
Point being? Btw in some (european) countries copyright is also meant so that authors (or in case of contracted work, the original copyright holders) have always(!) some control over their work.
That control is fairly limited though...
I'm having a hard time to find a translated page, but the semi-official dutch page about this (called personality or moral rights): iusmentis.com/auteursrecht/…
 
4:04 PM
as far as I know, The Netherlands is one of the most forgiving European countries when it comes to copyright infringement
 
Basically those cannot (by law) be transmitted (and are kept on the persons who created the work, not the publishers/contractees), and they give a maker of a work the ability to react any publishing on moral grounds. - Examples are using a song by a band which is used by a politcal party they don't agree with. Or a painting which is "damaged" by a new owner by putting a big mark on it, or simply renaming the work/claiming to be the creator.
In that case the original creator(! not publisher or current copyright holder) can prevent further publishing.
I always wonder how this translates to computer science though, since the law is obviously made for artistic works.
 
so how do the Dutch relate to publishing in international scientific journals?:P
 
You can only do it if it's reasonable: if you create your song originally for a political party you can't retract it - however if it is a general song which is misused you can. - Similar, if a journal publishes your article and rewrites it you can't complain. - Though if they do not put your name below it you can retract the publishing.
I've not seen a scientific journal ever not putting the original scientists name below it though. It would kind of undermine their authority as a good journal.
 
of course
 
These are all important questions, but they should not be decided by DRM devices in computers, but in courts of law.
 
4:12 PM
Fun thing is: "public domain" is completelly invalid in the netherlands. And you cannot put something in public domain as dictated by GPL/BSD licenses. As Dutch person putting it in these licenses is void and I might as well put no license below it.
 
GPL does not say public domain. It says basically "I keep the copyright, but I give you a license to copy it."
 
"And you have to release your code under the same license, too, if you use my code in your code"
 
Well for dutch (and actually also german/belgian) anyone can always still retract publishing if a change would "damage the good name of the original author" - and this right cannot be given up, in no way at all.
 
cabbage all
 
This is in direct violation with GPL/copyleft licenses as it means a new person doesn't have the same rights as the original author. - Given this won't be a problem in practice, so long as the original author doesn't start complaining.
But say I create "amazingtool" which is truly amazing, and being the amazing person I am I put it under GPL so others can use it for free and make it even more amazing. Then someone else sees this tool and creates "amazing_but_malicious_tool" out of the original work, which is the amazing stuff combined with a trojan.
As I'm identified with the original work, the derivative would undermine my good name; I could thus always prevent this publication.
 
4:20 PM
I'm pretty sure in the license, it says something to the effect of, "if one part of this is not enforceable for some legal reason, the rest of the license remains in effect." Sure, some part may be different in some locales, but if you want to test this, you'll have to try violating the license in the Netherlands and see what the judge says when the owner sues you.
@paul23 What you describe is not the GPL anymore then. It is GPL + clause, where clause is "you may not use this to make a malicious tool or trojan."
By the way, it's pretty likely that malicious tools and trojans themselves are a violation. So you don't really need to put it in your license. Even if your license allows someone to make a trojan, it doesn't mean they are legally entitled to do that.
 
Though IANAL (naturally), I'm guessing that amazing_but_malicous_tool wouldn't "undermine your good name" any more than going out and running someone over with a car would "undermine Toyota's good name"
 
Perhaps Toyota should put in the user manual "By driving this car, you agree not to run over pedestrians, unless running over a pedestrian is legally permissible by local laws."
 
I wonder if that violates the Geneva Convention
 
@WayneWerner Well the official explanation (link above) states an example is someone repainting a painting as "damaging a work" (official term for this)
I doubt it violates the Geneva convention, the law (moral rights) is far older that the convention, and the Netherlands were one of the first to be part of the convention.
 
@paul23 well, if that's the case then there might be a case for using your software to do harmful things. But arguably it's more like someone taking your painting and sticking it on the face of a killer robot
they didn't actually repaint your painting
 
4:34 PM
If I take the Linux kernel (GPL software) and install it into a guidance system for a missile and blow someone up with it, is that violating a moral right? Something like that has probably happened at least once.
 
Well I just know it's quite often a debate: always up to the judge to decide whether the "damage" is truly shining back on the original author. But I know of cases where this happened (again only in artistical settings): when a sculpture was made for a public region the government put "clothes" on it due to the otherwise public nudity. This had to be removed since it was against the idea of "nakedness" the original sculptor wanted to show. - thus "morally wrong".
I didn't study law, so I'm not going to point out what can and cannot be done... It's just something I always wonder about, and shows that public domain isn't always "freespace".
 
That's not (technically) public domain, then
 
For licenses it's probably better to avoid the term "public domain." Just say in the license clearly what you're allowing. If you are allowed for people to copy it, say "you can copy this."
 
Oh yeah, public domain is a sketchy area for programming
wtfpl.net is probably a better choice
 
typo stackoverflow.com/questions/41781616/… But please reject that pending edit first so the question doesn't get thrown into the review queue when some bozo approves it!
 
4:40 PM
If you actually want people to use your software, use a popular license at least as a starting point. You can always add something if you need to. For example, some projects use the LGPL but say explicitly "if you use this library to make your own product, then your product is not considered a derivative work." Because if you read the GPL, it seems to (try) to say that.
 
> choise
lulz
(done and done!)
 
have you ever managed projects with trello?
how do you do versioning?
 
in trello or in general?
cause semver, for the latter
 
in trello
 
4:50 PM
Steak and weissbier? Oh yes.
 
<3
 
Hey, Fizzy. It's good to see you dropping by again. Did you get that maximization thingy sorted? Your description reminded me a bit of finding a convex hull.
 
@PM2 I haven't no. My immediate approach was to grab regression/machine learning but I think it's actually not the best way to start and instead just look at the data itself (rather than try to model something in ML terms)
And good to see you too :D
It's an interesting problem that I've never encountered before.
Finding out what features affect a variable the most is pretty standard, but finding which values of which features cause the min/max of the variable is a bit different.
 
Isn't that just a mathematical optimization problem?
 
Yes, I was probably just over thinking it by grabbing ML thoughts.
 
5:01 PM
var = f(x,y,z....) - so long as everything is continuous it's fairly easy. And otherwise it's just a lot of work.
 
It's not continuous at all. I don't have a mathematical function, I have data.
 
@Ffisegydd data = a function, even if each "point" is just a point it's still a function with many different cases. - But if it's not continuous it is always limited in number, so the easy approach is to split it up for each unique part where it's non continuous and calculate the minimum there.
 
By that I meant it's not a mathematical function that you can analytically solve.
 
user6845426
Hi guys
 
I effectively have daily data where I have an output variable that should vary based on what occurred the previous day.
Some of my features are numerical, others are categorical.
It's also possible that the output for DayN depends on the value for DayN-1.
 
5:07 PM
This kind of thing, but with data points instead of analytic functions: en.wikipedia.org/wiki/Linear_programming
 
Well one thing I've learned in the past years is that "making it mathematical" is often half the route to the solution. Once you can describe data as a mathematical model you can use one of the known ways to solve a model; and things become straightforward.
 
@Ffisegydd That's ok. But if you find that the value for DayN depends on the value for DayN+1 then you're allowed to be somewhat concerned. ;)
 
def fun(dayname, previous_days_out, temperature, pressure):
    if(dayname == "monday"):
        return temperature*2 + pressure
    else:
        return temperature - pressure + previous_days_temperature
 
should I choose angular 2?
 
One could analyse this simply as f(dayname, prev_day, temperature, pressure) - since it's continous on all except dayname, we just find the minimum/maximum for each "dayname" possible.
max(f) = max(f(monday, ...), f(otherdays, ....))
max(f) = max(max(temperature*2 + pressure) , max( temperature - pressure + previous_days_temperature)) - which is mathematically solveable.
 
5:36 PM
I think Fizzy's point is that he doesn't even know the underlying function
he's got a black box, but he only has access to input and outputs, and he needs to see what imagined set of inputs would (hopefully/probably/possibly/maybe/meh) maximize the corresponding output
and "let's give it Monday with 35 degrees this time to get a new point in my Newton--Raphson" is not an option
 
Well mathematically you don't need to know the transform function (if you use nelder-mead for example), so long as you know which inputs are continuous - and the domain of the function. (limits on input, and for non continuous functions all values).
 
You're trying to determine the effect of relative humidity (among other things) on Dow Jones. You don't know the function. You have (humidity,index) IO pairs. You can't just set another humidity and see what the index is.
If you don't have a model nor free inputs, you're screwed (or machine learning, I guess). If you have free inputs, you can search for an optimum. If you have a model, you can fit its parameters to your available set of inputs.
with the usual caveat of me not really knowing what I'm talking about
 
6:17 PM
I have a quick REST API design question for those of you who are into that. I want to design an endpoint used for creating an item in a certain folder. How would you structure the url for this call? Something like POST to /folders?destination={destinationId} perhaps? Or POST /folders/create/{destinationId}?
 
Check out the view from the San Diego Central Library.
 
something something already building the wall
 
I'm coaching at a Django Girls tutorial today.
 
awesome:)
is that an ocean?
 
6:24 PM
@tobloef I would not give flexibility to allow people to play the path on a server. Unless people are confined to a specific "home" path that explicitly restricts trying to manipulate accessing /.* paths.
 
*googles san diego*
oh, it has a bay thingy
 
Also, I would think about your naming for your API endpoints with respect to the request type you are performing, e.g. POST, PUT, DELETE
 
ah, I see
 
@idjaw It's not a path, it's just an id for a folder
 
6:26 PM
TIL San Diego is in California :|
 
Where did you think I was?
 
no particular place:D
definitely not on the West coast:/
my new rule of thumb is "if it's called San *, it's in CA"
unless it's São Paulo
 
San Antonia is in Texas. Logic broken.
Try again
 
That or Texas is a reasonably safe assumption.
 
I said rule of thumb, not ultimate proof machine
 
6:29 PM
your thumb is broken
get a better thumb
 
*shows another finger*
 
I miss you Andras. It's been a while
 
well you have too much life
 
That's why I'm just here wasting it away. I know I have life to spare.
 
oh man these straight state borders are weeeeeird
I love it how google maps shows me "popular times" for my day of choice for San Diego
yeah, people love those 10 AMs
oh wait, I searched for San Diego Central Library. Carry on.
 
user7123790
6:33 PM
hello
 
user7123790
how do you make a circle to follow your cursor in pyqt5?
 
cbg
Q: who's the ambassador of United States to Germany? UK? Canada? Finland? :D
 
6:51 PM
can't you easily get those answers with a search of: <country> ambassador to canada
 
@idjaw the answer is the same: nobody
 
I'm sure that will change though if no one is directly assigned...no?
 
@idjaw these are the "reward diplomats"
but I find it somehow funny that diplomats need to be changed with the president
 
 
1 hour later…
8:17 PM
What module should I use if I want to create an image that just has some text?
 
@davidism I thought for a moment how silly it is that the Coronado bridge goes up so high. Then I realized that it might be like that in order to allow tall ships through:P
we're lacking any seashores here so my usual experience doesn't equip me to handle these wonders of the world
 
San Diego has a large Navy presence as well as commercial stuff, so yeah there's a lot of big ships.
 
ooooh, carriers are neat:)
 
sounds like a useful source:D
 
8:40 PM
Huh, for some reason that didn't onebox.
 
> Customers Who Viewed This Item Also Viewed ...
woooow the stuff there
> Knitting With Dog Hair: Better A Sweater From A Dog You Know and Love Than From A Sheep You'll Never Meet
UFO Detector - Internal magnetometer interfaced with microcontroller for 24 hour/7 days a week monitoring for magnetic anomalies that have been reported with many UFO sightings
Kama Pootra: 52 Mind-Blowing Ways to Poop
Goats in Trees 2016 Square 12x12 (Multilingual Edition) [calendar]
Hutzler 571 Banana Slicer
A-mazing
 
8:52 PM
cbbg
 
ccbbgg
 
Is anything fun in discussion now ?
 
you can see the transcript
 
owww... about that... where ? how can i see transcript ?
 
scroll up:P
and here
 
9:01 PM
uuuuuu...coool :D thnx
 
you don't even have to log in; entire SO chat is public for eternity
 
i was bought with 52 Mind-blowing ways to poop :D
in other words: i should watch what i say ? :P
@AndrasDeak FWIW in architecture we often go to the public transport feature of google maps, there you can see busses/trolleys and they have ( in color i might add ) the density of rush / crowd for major buss lines. With that you can see in what time people often go to some places. For example if line 18658 has red streak in time of 10-12 hours you can expect that there will be a rush in 8 mile radius around that station. Average 5 minute distance is about 8 mile for normal human being.
 
@Danilo yeah, but the same thing wouldn't make much sense on a city level
 
Why not ? I mean we use it in urbanisation planing, of course we implement there the number of corresponding intersection (4 and 3 way ) , proximity to public objects and national parks with elevation to highway. Without any additional calculating you can freely estimate around 60:40 for True if you observe only that.
Also you can implement in that calculation working hours but that is mostly population divided by 2.5
 
9:18 PM
"Belgrade has most traffic at 5 PM." Already a statement like this sounds shaky to me, and there's nothing more precise you can say on a city level
and then you have a rush-hour for public transport and a rush-hour for the roads in various places of the city
at least I don't think my city is special in any corresponding aspect
 
But Belgrade it does :D :P There are 2 major shifts in traffic in normal working day. 6-8 in the morning when people are going to work , after first shift 2-4 PM and later in the evning 6-8, but also add middle schools and gymnasiums that finish around 3-4 PM with every day coffee-shop routines that are around 4-6 PM before going home to prepare and go out. :D
When i worked in coffee shop, the start of the first wave was around 5-6 PM, since people were going to get a beer of coffee after work/school and after it was steady but small groups coming till 12 AM then it was party.
And after 5-6 AM, people mostly walk since there is not need to made somewhere in time.
Now, axiom described above is good for estimation only, for real formula and calculation you would need a lot of data and future predictions for 99,999% percent of succes. Also there is a factor of culture, so architects who do urban planing like to live in forrend land for about a year before they make a plan. So most of urban architects are locals, so i can't say that this aprox will work even 60% for China, America, France, England, Africa etc without knowing deeply culture of the region.
i can however say that this aprox is better than nothing.
just kill'd the group... didn't i... -.-
 
9:41 PM
During weekends many a time this group looks like a graveyard.
Zombies will be back to life on Monday :D
 
god i need like button on this chat :D braaaaiiiiinsss
 
10:31 PM
HEy
I'm trying to use PyInstaller inside Pycharm to generate my exe but when I pass
-m PyInstaller I get
C:\Python34\python.exe: No module named PyInstaller
:- (
I isntalled pyinstaller via
python -m pip install PyInstaller
i can go to cmd > pyinstaller (args) enter it works. But missing bunch of modules.
 
10:45 PM
> i can go to cmd > pyinstaller (args) enter it works. But missing bunch of modules.
so is it pyinstaller or PyInstaller?
 
cbg
 
00:00 - 23:0023:00 - 00:00

« first day (2289 days earlier)      last day (2652 days later) »