« first day (2139 days earlier)      last day (2809 days later) » 

1:33 AM
night(l?)y rhubarb
 
 
2 hours later…
3:09 AM
5292
Q: What does the "yield" keyword do in Python?

Alex. S.What is the use of the yield keyword in Python? What does it do? For example, I'm trying to understand this code1: def node._get_child_candidates(self, distance, min_dist, max_dist): if self._leftchild and distance - max_dist < self._median: yield self._leftchild if self._rightc...

5292 upvotes
I think that's basically all his rep
 
3:40 AM
generators are one of those milestones in Python
 
4:24 AM
Morning
 
4:46 AM
morn
 
4:59 AM
Morning
 
5:16 AM
does a tool like this already exist:
goes through sqlalchemy schema...
finds all text columns; inserts '<script>alert("oh shit")</script>' in each column, each row, each damn table :D
 
@AnttiHaapala One script coming right up ! :D
>> metadata.tables.keys() # get all tables
>> from sqlalchemy import text
 
Please don't actually write the script. Especially using a message per line.
 
@Ffisegydd good point !
 
5:41 AM
@SaifAsif no problem I can write it myself :D
I was just asking that if anoyne else has written it
because I'd find that useful
could use on a test database, and then also remove that :D
 
Not gonna lie, haven't felt that level of evil yet !
 
I am using 3rd party javascript components that do eval things all over
I think this tool would be very useful
it is very easy to miss the tooltip that shows the unescaped contents of field x if y
ahha this could be made better:
`<script>alert('table.column unescaped')</script>
 
 
1 hour later…
6:52 AM
 
Cabbage :-)
 
7:08 AM
Someone just accidentally emailed something to the entire company that they should not have emailed.
And when I say "entire company" I mean several thousand people across the globe.
 
7:19 AM
Not sure if the same scenario but the message was "Kiss and hug to you darling!" is better or worse, but it happens too.
 
7:47 AM
cbg
 
I did that once, with flirtatious but not explicit email to a serious sweetie. Not the whole company but about a thousand people around the globe.

And then the Reply-Alls... the Reply-Alls complaining about misuse of Reply-Alls... the arguments about exactly how stupid I had been... *hundreds* of hours of company time. I finally composed the wittiest So Sorry, Don't Let It Happen to You I could, with maybe a limerick in it, to damp it all down.

And two or three of the people on the list became pretty good work-friends.
 
Cabbage
 
o/ @PM2Ring
@cphlewis must have been awkward but funny ...
 
@cphlewis The reply all function should be shut off on that large groups
 
@Ffisegydd Do you want vocals with it? Here's Sadie Johnson doing a fine job singing & playing Robert Johnson's Ramblin on My Mind.
 
7:59 AM
It was because of an email frontend upgrade; the four-letters-and-enter that had autocompleted to my sweetie's address suddenly autocompleted to the international sales listname. Can't remember what they changed to do that.

I am wildly curious what Ffisegydd's coworker sent, because I really want it to have been more embarassing than mine. I believe I mentioned French toast.
 
And here's Derek Trucks playing the Elmore James version of the traditional blues Rollin and Tumblin (first recorded by Hambone Willie Newbern), with his wife Susan Tedeschi on vocals, and also playing a bit of lead guitar. I'll have a look for some actual old blues on YouTube, I think you'll like Lightnin' Hopkins & Mississippi Fred McDowell.
 
@PM2Ring Either I suppose. Without vocals might be better so it's less distracting during work.
 
@Ffisegydd Rightio. Robert Johnson's performances are pretty good background music, as the vocals aren't too dominating, but I'll see what I can find that's vocals-free.
 
Cabbage!
 
o/ @poke
 
8:16 AM
cabbage all
When I worked for Sun Microsystems the all@sun.com address really did send email to everyone in the company.
At that time it was about 6,000 people. So in Stockport I would get messages about cars in Mountain View with their lights on in the park. With corresponding Reply-All battles and transatlantic chauvinism. What jolly fun.
 
@Ffisegydd: How about this guy? John Fahey - Poor Boys Long Way From Home If you like that, there's a few whole albums of his stuff on YouTube.
This talk about email storms reminded me of the Bedlam DL3 incident at Microsoft back in the early 90s.
 
8:48 AM
Awesome, cheers PM2, I'll try it after this meeting.
@Antti schedule released for PyCon if you're interested 2016.pyconuk.org/programme
So many good-looking data talks.
 
Oh wow, I was a b-i-i-i-g John Fahey fan about forty years ago, and I haven't heard much int he last twenty years. Thanks!
 
Huh, wikipedia lists the Bedlam DL3 as the first Reply Allpocalypse. Really?
 
stackoverflow.com/questions/39118684/… – Duplicate hammer requested.
 
bam
 
thanks
We really need some generic “unsupported operand type(s)” canonical…
 
user6568562
Today, I went to fix a computer problem for a friend of mine. He's got an office and he's surrounded by all his coworkers and I got reminded of how much it feels good to not having to work physically close to other people again. Between some glutton whose chewing sounds is probably around 7 Richter, and squeaky seats, I thought I was dying.
 
9:21 AM
How many "soft skills" is too many for a CV? I'm planning to list 6
 
Depends on what you are referring to with soft skills
 
en.wikipedia.org/wiki/Soft_skills bullstuff like "Problem solving", "Self-motivation", "Crtitical thinking"
 
I hate those.
 
user6568562
@vaultah It's probably better if you mention them in concise details in your cover letter
 
Morning all
 
9:32 AM
@randomhopeful I know it's relatively common to include them in the CV itself, hence the question
 
user6568562
It is true, but it's not as meaningful. You can write a Skills titles and put whatever inside it :
Cure cancer / Good listener
 
@Ffisegydd larl!
 
user6568562
@vaultah But if you want to include them in your resumé, why not under previous experiences ?
 
@PM2Ring Nice. BTW I discovered some very alternative banjo playing today from a guy called Nathan Bowles, very Oud like... Interested?
 
user6568562
i.e 2010 - 2013 : Applied my skills of problem solving while developing x tool / algorithm
 
9:34 AM
@Ffisegydd ** THIS SPACE LEFT DELIBERATELY BLANK ***
 
cabbage
 
(also - cbg)
 
@vaultah Main thing in my opinion is never go over 2 pages for a professional CV. If you can fit them in, that's fine. I tend to put soft skills in a little personal statement at the top (e.g. "I'm a self motivated problem solver with a proven track record of solving problems using critical analysis of data .... " yada yada yada). Main thing for me is to have examples from experience to back up what you say you are there.
 
@JRichardSnape you don't put - "I'm the Potions Master at Hogwarts"? :(
 
user6568562
@JRichardSnape Exactly [ : The idea of a brief paragraph on the top is also pretty efficient and better then a list of skills you could've copied from anywhere
 
9:38 AM
@JonClements Well - I would have thought that was obvious from the name and the decorative chemistry flasks I always put in the header ;)
 
@vaultah 6 is not much but as J said, I would encapsulate them in a manner that anyone reading your cv will know that you have these skills. Implicit is often better than too explicit
and if people can't understand that, too bad for them but for you, it will have spare you some precious time to have interviews with fools
(amendment: and if people who read your cv can't understand that)
 
@JRichardSnape I'm certain I won't have such a long CV any time soon :D But yeah, very good point re. examples
Thanks guys
 
user6568562
@vaultah If you haven't already found a model, I've got one that is pretty elegant and enjoyable to read + It has the paragraph @JRichardSnape was talking about under the title : Objective
 
Nah, I'm trying to design it myself, but thanks for the offer :)
 
user6568562
[ :
 
10:01 AM
@JRichardSnape The “yada yada yada” perfectly captures my emotion with those random blurbs… it’s just text that serves no real purpose. It’s sad that people actually need to include stuff like that.
 
@poke Yeah, I kind of agree, but it depends on the job. Highly tech jobs might not need it. I've found it helps with a lot of jobs to get the CV noticed, though. I guess in most jobs, even the highly technical, the employer might want to know how you see yourself. It doesn't sit easily with me (hence yada yada), but a necessary evil, maybe.
 
@JRichardSnape very interesting point
 
user6568562
Maybe the resentment come from the feeling that you're begging your potential employer to see how adequate you are. But as J said, if I were an employer, I would need to see that a candidate has potential beyond the tasks he will be responsible for (communication with his peers, ability to get the big picture, social enough to not become an annoyance, etc).
 
Do people actually believe CVs?
 
user6568562
Not until the interview
 
10:19 AM
Something that I do/did in the past is stick something personal (like "hobbies") at the bottom of my CV. When you get to the interview stage, I always found that interviewers used it as an ice breaker
 
user6568562
^ Very true
 
So it was a way of boosting my confidence when I was a graduate and allowed me to exert some influence on the flow of the interview
 
Of course applying for jobs is much easier if you don't suffer from impostor syndrome
 
user6568562
That why I think a cover letter is as important as a résumé. An experienced enough interviewer will see if it's in your own words or a frankenstein patching from the internet. Cover letters are essential to jobs where you have tasks like reporting / getting debriefed
 
And helps you to reclaim some of the space you lost in your CV (lost by adding spurious personal information) ^^
 
10:25 AM
Cover letters are also stupid because they essentially want you to lie about why you want to work for them..
 
Want to live somewhere and eat something; willing to work in return
4
 
I don't know if I've ever done that in cover letter. For example, I used cover letters to underline certain things that might not otherwise be obvious to the interviewer.
 
user6568562
@poke Lying or telling the truth is up to you. Having a flexible imagination doesn't, necessarily, result in telling lies.
 
In Germany, it’s common pratice to tell your motivation for applying for the job.
 
10:27 AM
So, when in Texas my cover letter would contain things like: "Went to IntrepidUniversity, ranked in the top 10 IT universities in the world in the Year of the Intrepid"
 
@randomhopeful “I want to work for you although I’ve never heard of the company before and don’t really know what it does, but you were no. 3 on the list with open job offers” doesn’t sound that nice though.
But that’s all the fault of bad job offers that are super vague and don’t tell you what you are actually going to do…
 
user6568562
@poke Again, telling the truth doesn't necessarily mean being rude. But I get what you mean, I really do. It would help you if you consider cover letters as a mean to differentiate you from the hords of mechanical candidatures. You can talk about anything in your Cover letter, but the more you get close the nature of the job, the better it is
 
@randomhopeful you got a very valid point that a cover letter can say a lot, especially for position when you need to report on something to someone
 
@IntrepidBrit Did you get my Scottish Peppa Pig link?
 
I did!
I larl'd heartily and then pinged you :)
 
10:34 AM
That's how I'm going to imagine you from now on. I will imagine you're Peppa Pig.
 
user6568562
@AndyK Yes, communicating information completely and concisely in an aesthetic written form isn't as easy as it may sound. So a cover letter might help emphasize that you've got that skill [ :
 
[para] "He won't be doing push-ups, he'll be lying on the couch eating a kebab"
I had a very existential crisis last night - I couldn't decide on a Calzone or a Doner kebab.
 
@holdenweb That's very true and a highly pertinent point. I think there is a real problem with that. And (from my own anecdotal experience) often seems to most chronically affect those who have worked hardest to achieve.
@IntrepidBrit Doner Calzone
You're welcome
 
If I had a Doner Calzone, I would have had to share it with IntrepidLass
Tactics man!
 
Ah - yet again I neglect an important contextual parameter.
(Currently loving Scottish Peppa Pig. Probably won't show the kids)
 
10:43 AM
oh god that's awful:D
 
I would imagine Scottish Peppa Pig might be prone to use the occasional obscenity
 
you would imagine correctly
 
@IntrepidBrit quadruple-size Doner Calzone?
 
@JRichardSnape Thanks. I think I've heard some of Nathan Bowles' stuff before, maybe on a local folk music show I listen to.
 
user6568562
Hey @PM2Ring How was the birthday party [ : ?
 
10:54 AM
Got to admire the Scots, they'll take the piss out of anything
 
@randomhopeful Well, it was just dinner at a restaurant, not exactly a party. The restaurant was ok, but not great. I don't think we'll be going back there again.
 
user6568562
@PM2Ring Ergh, I know what you mean for the ok <= restaurant < great. But at least you got the opportunity to chill with people you like, that must be nice
 
@randomhopeful True.
 
11:14 AM
-1
Q: How do I ignore the "redundant parentheses" feature in PyCharm?

K.MulierPyCharm decides that certain parenthesis in my Python code are 'redundant'. I want to keep them anyway. So PyCharm started annoying me with green lines under them. I don't want to give in to PyCharm's quirks. I was able to ignore other warnings in the following way: File > Settings > Editor ...

it seems PyCharm has a feature for "redundant parentheses". I didn't even know!
 
@AnttiHaapala it's probably for print("string") ;)
 
yeah this happens because the guy uses parentheses in while(True) and if(False)
@AndrasDeak proof here and that's an answer.
 
@JRichardSnape: Here's an unusual choice of tune for banjo: Kristi Allen performing the old jazz standard Cry Me a River. And here's Kristi on guitar, with her twin sister Kappa Larson, performing an original composition. Three Great Physicians.
 
I added this as a comment
They are redundant. My eyes would focus on your annoying parentheses! They'd drive me nuts! Please don't write C in Python! — Antti Haapala 6 mins ago
 
@AnttiHaapala it would be much clearer with while "asdf":
 
11:21 AM
:D:DD
you mean, while "asdf": print("They are redundant. My eyes would focus on your annoying parentheses! They'd drive me nuts! Please don't write C in Python!")
 
yeah sure;)
you could also mess with the guy if you used single quotes there
 
@AndrasDeak you know, single quotes unless the string contains single quotes!
triple-quotes are 3x2 quotes though
 
115 rep
today could also reap 200...
now if only there were good questions
anyway I don't get it
3 upvotes for answers that tell how to disable inspection in PyCharm, that complains about while(True):
 
@AnttiHaapala argh...wtf...why!
that shouldn't even be an option imo
 
11:30 AM
exactly
guy's also obsessed with closing brackets :D
# redacted example
def somethingCamelCase(anotherThing_callbackFunc):
    while(True):
        if(i > 499):
            i = 0
        i += 1
    ###
###
 
That's just horrible
 
@AnttiHaapala I've also added a comment. Hopefully, mine won't get flagged. :)
 
hehhe :D
lets see how long my comment will live
it is true though :D
I even checked his tags :P
 
It is already hard that I cannot use curly braces :-( — K.Mulier 40 secs ago
OH! NO!
 
:D
I would understand if he was using ed
but pycharm...
or notepad...
 
11:35 AM
To PM's point, the individual can do whatever they want as long as they don't make others accept their heathen ways
 
exactly :D
 
if they ever try to contribute upstream they will be shutdown quickly.
:)
 
I don't really care, but
the thing got me upset that that guy is annoyed by the warnings from pycharm
Javascript warnings are awful but python warnings are very OK less some.
I just wonder how can he live without ;:D
 
I should suggest using print("string")#; to him
 
remap the keyboard so all ; print #; instead
 
11:39 AM
Also, I'm not a fan of using unassigned triple-quoted strings as comments at the best of times, they should be strictly reserved for docstrings, IMHO. But I never expected to see '''''' used as a separator between sections.
 
or using pybraces
@PM2Ring I should write up an answer where int intintintintintintint; is the section separator
 
user559633
morning :)
 
I do not really get it... one can write beautiful C in , beautiful Java in , beautiful Python in , and beautiful PHP in ... why aren't people happy with it?
 
@tristan hey:)
 
user559633
i can write a poem in , but somehow only hate speech in
 
11:41 AM
I am a native C programmer.. I love parentheses. — K.Mulier 9 mins ago
once you consider yourself native C, you're done for
 
and I've seen Java programmers write Java in C... that's just horrible, C programmers writing C in Java... :S
 
morning @tristan
 
user6568562
Hey @tristan [ :
 
user559633
hi hi hi :)
 
@tristan that sounds like giggling in Hungarian
 
user559633
11:44 AM
@AndrasDeak yeah, i mean, i knew that sips coffee and looks at window, not realizing when he started that it's closed
 
the windows we have here are also transparent when they're closed
 
user559633
oh, sorry, i meant the window that i hastily drew on the wall with crayon in my home office/time out room
 
Who puts you in time out at home? Tristanovka?
 
user559633
i'm not allowed to talk about it
 
user559633
but yes
 
11:52 AM
And follow-up: what do you get for drawing on the wall with crayon when in timeout?
 
user559633
she said something about how "my shitty code was stinking up the place, so go be an idiot in there instead"
 
Oh, JS again?
 
user559633
lol yeah. i think i said it before, but modern JS is like teenage sex. no one is doing it, but everyone lies and says they are and talk about it all the time
 
here @AndrasDeak . You were complaining about XML yesterday. This is for you.
 
You can write executable poetry in Python:
 
11:54 AM
@idjaw merci
also, twitch
Actually, that reads like a book. One written in Mandarin, if you don't speak Mandarin.
 
user6568562
@tristan Haha ! I missed me some tristan gold : D What a someone's got to do to make his website animated and shiny then
 
from itertools import repeat
for feet in [3,3,2,2,3]:
    print " ".join("DA-DA-DUM"
    for dummy in [None]
for foot in repeat("metric", feet))
Of course you'd need to define the repeat function first ...
 
user559633
I've got React + Redux + ES6 + i18n and smart/dumb container separation and pure functions + only state in an actual singleton state storage + doing everything else the "correct way" and whenever I ask someone how they have x+y working together, they say "lol wow, you actually have that working?"
 
11:56 AM
:D
 
user559633
if anyone has a timeshare, ostensibly this is the summer to give me the sales pitch
 
This summer? The one that ends in a week? Or do seasons work differently on the Western Hemisphere? I keep forgetting...
 
@tristan like country home timeshare?
 
user559633
@randomhopeful actual advice: use browser local storage as your unit of state, use jquery, and don't get fancy
 
tristan looks like a minigolf type
 
11:59 AM
Ha! Missed out the first line!
from itertools import repeat
for feet in [3,3,2,2,3]:
     print " ".join("DA-DA-DUM"
     for dummy in [None]
for foot in repeat("metric", feet))
 
user559633
@AndrasDeak ours ends in september here (tied to the equinox)
 
user6568562
@tristan Will keep that in mind [ : Especially the austerity part
 
Here's some more nice music from Kappa Larson, this time with her daughters, and her (relatively) new husband, Paul. Aurora Blue.
 
user559633
@idjaw was thinking beach. i already have dacha access
 
morning guys
need a quick help. any ideas how to fix the code below? its sort of pseudocode now
for i in range(0, len(numbers, 5):
		# how to fix the code below
		result = (number / numbers[i:(i+5)]).is_integer()
		if any(result):
			return False
	return True
 
12:02 PM
uh-oh
 
user559633
@randomhopeful :) internationalization makes this a little more complicated, but the best i18n library is put out by the jquery folks, so it's more likely to do what you want with jquery + less "new way" pattern
 
@PM2Ring @AnttiHaapala
Maybe I should delete my question. I tried, but SO won't let me, because it already contains answers. — K.Mulier 1 min ago
 
I don't think the question should be deleted.
 
@Ming Can you give some additional explanation of what (number / numbers[i:(i+5)]) would do? Right now it’s a bit too pseudo-code-y to understand what should go on there.
 
sure it doesn't
 
12:04 PM
@tristan A good friend of mine I think has a beachfront rental in Florida. Or were you looking for something closer?
 
# vectorization of code
def check_prime(number):
	sqrt_number = math.sqrt(number)
	numbers = range(2, int(sqrt_number) + 1)
	for i in range(0, len(numbers, 5):
		# how to fix the code below
		result = (number / numbers[i:(i+5)]).is_integer()
		if any(result):
			return False
	return True
@poke
i just realised it may need numpy.
 
I'd guess Ming wants something like any((number/tmpnumber).is_integer() for tmpnumber in numbers[i:i+5] )
@Ming in numpy the vectorization would be natural, yes
 
user559633
@idjaw Only if I can pay for one week a year and never go!
 
I think if the money is paid, no one would care
 
also, the zeroth step in a "how to fix" question should be "what's wrong with it", what anybody will tell you if you ask a similar question on the main site, @Ming
 
12:06 PM
and if they catch on, they would realize they can rent it out at the same time and double profit.
you'd be helping, really.
 
user559633
@AndrasDeak What do you mean by vectorization in this context?
 
user559633
@idjaw If my renters then rented it out, think of the profit!
 
@holdenweb WHERE?! This is a matter of great importance. Where can such a thing be purchased?
 
@tristan number/numbers[i:i+5] would be an array already
 
I would still really like a sentence in English that explains what should be going on. Guessing and other non-working code does not help.
 
user559633
12:07 PM
If I had an endless pile of money and stimulants, I'd write a joke site that was AirBnB for AirBnB.
 
user559633
Oh, you meant vector as in "container that can change in size?"
 
no, I meant vectorized as in "multiple floating-point operations performed preferably together, not necessarily sequentially using a for loop"
 
@IntrepidBrit "such a thing"?
 
"quadruple-size Doner Calzone"
 
Which numpy presumably does. But anyway it's compiled code under the hood.
 
user559633
12:09 PM
@AndrasDeak Oh, okay, weird. I've never heard vector in that context, thanks :)
 
Ah, right. I'd suggest somewhere like Detroit, or maybe Glasgow
Sadly, however, I made it up
 
user559633
What's the international standard for doner weight/volume?
 
@tristan not really vector, but vectorization:)
 
But Glasgow is like, an entire short train ride away :/
 
> Modern programming languages that support array programming are commonly used in scientific and engineering settings; these include Fortran 90, Mata, MATLAB, Analytica, TK Solver (as lists), Octave, R, Cilk Plus, Julia, and the NumPy extension to Python. In these languages, an operation that operates on entire arrays can be called a vectorized operation,[2] regardless of whether it is executed on a vector processor or not.
 
user559633
12:10 PM
Oh cool, I should numpy more often.
 
you should;)
it's great
especially if you need it
 
user6568562
@tristan Thank you : P What you're saying speaks to me. Less always mean less and that is better than meaning more, actually.
 
You should always listen to @tristan
@K.Mulier don't worry about deleting a question -- "where does setting X" exist is a great thing to crowdsource. I like using braces in my Python code too (don't tell anyone though). If you haven't checked it out yet, try from __future__ import braces. Or more seriously, if you worried about all of the Python style guide, you'd be writing 80 character, post-it note size lines. — tristan 6 mins ago
be back in a bit, gotta go print a poster of mine
 
@AndrasDeak thanks for the tips.
 
@AndrasDeak how can you do an excerpt like you've done here...?
 
12:16 PM
@tristan Numpy can automatically vectorize certain operations. Eg,
import numpy as np
a = np.arange(10); b = np.arange(10, 20)
print(a, b)
print(a * 5)
print(a + b)
#output
[0 1 2 3 4 5 6 7 8 9] [10 11 12 13 14 15 16 17 18 19]
[ 0  5 10 15 20 25 30 35 40 45]
[10 12 14 16 18 20 22 24 26 28]
 
@AndrasDeak for this kind of case, is numpy needed or can we write it in python like what you wrote any((number/tmpnumber).is_integer() for tmpnumber in numbers[i:i+5])
 
user559633
Oh man, is this the point where you guys learn I use tabs and vi and that I learn you guys use spaces and emacs?
 
user559633
@PM2Ring that's awesome. i wouldn't use it much in the type of code that i use, but this is really terse and clean
 
I don't actually know much about Numpy, I've just started playing around with it a bit. For really simple stuff, pure Python is faster, since importing Numpy is rather slow. But once it's loaded,if you're doing stuff with big homogeneous arrays, it's blindingly fast.
 
and numpy is faster than your crappy C code
because the code behind it optimizes better.
 
user559633
12:21 PM
Yeah, I use it for some geocoding stuff at (current company), but that's really it for how much I use it directly.
 
@AndrasDeak naughty!
 
user559633
The API comes up and stays running for ~5 days at a time (between releases)
 
There's FORTRAN in that there numpy
 
user559633
Yeah, which makes the deployment story pretty rough for some operating systems.
 
@Ming Doing (number/tmpnumber).is_integer() is not a nice way to test if number is divisible by tmpnumber. You should use number % tmpnumber == 0.
 
12:29 PM
@PM2Ring i see. makes sense. thanks.
 
@AndyK if you put certain links alone in a chat message, they will automatically expand. This is called oneboxing, and many links support it (raw image links, xkcd, amazon products, twitter, youtube, etc.) See the "help" and "faq" links in the bottom right. Specifically, right clicking a comment timestamp allows you to save its URL, and throw it here for oneboxing
 
Cheers @AndrasDeak
 
lol digital Finland :D
 
@AndyK You can also one-box chat messages, eg:
51 secs ago, by Andy K
Cheers @AndrasDeak
 
Finnish major newspaper reports that someone wanted to buy a digital edition of a high school textbook...
 
12:35 PM
@Ming and anyway don't test floats for exact numerical equivalence; with floats you should always check if a number is close to a target.
 
just insane @AndrasDeak & @PM2Ring , just insane
 
the book shop said they cannot sell it because they're out of "codes"
 
@AnttiHaapala troll or moron?:D
 
- we need to ask for more authentication codes on paper from the publisher.
 
haha:D
 
12:36 PM
@AndrasDeak neither, this is Spar... FIINLAAAND
 
I see, morons elsewhere (parliament, that is)
or whatever committee is in charge
 
no, this is a winning private sector strategy.
 
user559633
What's funny about licensing? That might actually be how it works.
 
is it the publisher's idiocy?
nice...
 
user559633
Just because the content isn't delivered on dead tree doesn't mean the content should be free.
 
12:38 PM
@tristan I think the problem is with the codes being presented on dead trees
 
also, you do not quite get the business of highschool textbooks
 
user559633
@AndrasDeak That's possible, but it's also a much easier process as a transition than having to digitally manage codes.
 
they bribe the teachers to change the book series so often that no one can use used/second hand/borrowed from library books at school.
 
@AndyK :) Generally, we don't quote each other's chat messages and one-box them here, unless there's a good reason to. Otherwise this place would get very messy. And beware of using one-boxing in other chat rooms, check on the local custom / policy first, since they are strongly discouraged in some chat rooms, eg SOCVR.
 
user559633
@AnttiHaapala Yeah, you're right, I only worked in the industry professionally for two years running the infrastructure for content delivery. Please explain how digital textbooks are licensed to me.
 
12:39 PM
@tristan you see, I can never tell when you're trolling from when you're having an odd opinion:P
 
I did not know that @PM2Ring. SO's ecosystem is very rich ... amazing
 
"odd" compared to my own odder opinion, needless to say
 
user559633
@AndrasDeak No, that's legitimately why there's a print out of the code sold on glossy card-stock weighted paper. Consumer impression of value and ease of selling a card vs having to track code use.
 
sounds a bit sad
I'm not saying ineffective, but sad
 
user559633
12:41 PM
If you're a large enough purchasing region, you can purchase additional "seats" for older content, typically at a discount. The teachers aren't seeing a single cent of that "bribe" -- it's typically a board or otherwise elected body that decides on content/which version.
 
Here I realise how spoilt I was in the UK education system. Don't think we had to ever buy a textbook.
 
user559633
@JRichardSnape It's only college-level that you have to buy textbooks here in the US.
 
@JRichardSnape I bought Tipler. Best doorstop I've ever had.
 
user559633
The biggest "this is bullshit" moment for me in college was when I realized that the professor had written the textbook and was making us pay $100 for a shittily bound copy of his crap content.
 
We get given text books in school/high school, and generally don't require them at university.
 
user559633
12:43 PM
Hooray for arts requirements
 
Oh, OK - same then, I think. Didn't really need any textbooks for Uni either (inb4 - yes engineering is an easy option for the illiterate), although I bought a couple that I used for weighting down shelves.
 
(We have yearly textbook buying all through elementary and high school. Which is funny because our new and beloved government has monopolized that too, half of our books contain government propaganda. I know I'm laying down the fundamentals of a subsection of Godwin's Law: any discussion with me will sooner or later end up in Hungarian internal affairs. Sorry about that)
 
user559633
Yeah, college textbooks are big industry here in the US.
 
In fact, only one really - The Art of Electronics.
 
user6568562
@tristan I didn't know that it worked that way : / That's a shame, I've always considered hiring the actual authors to teach their books was a brilliant idea
 
user559633
12:45 PM
@AndrasDeak It's like that here too. Our flyover states have demanded the right to teach people that there's a sky wizard that's a suitable alternative explanation for why the world works the way it does.
 
oh this doesn't even concern religion:D
just the usual past-falsifying that goes with a communist rhetoric
 
user559633
@randomhopeful If I was taking intro to c++ with Bjarne Stroustrup, I wouldn't have minded, but this was some writing class with some small time author.
 
user6568562
@tristan I see : / That's outrageous, I admit
 
I had one class where the professor's book was required reading. He offered a xeroxed version for the cost of the paper and ink and cruddy binding.
 
@tristan although it was made mandatory that a child either take Religious Studies, or Moral Studies (latter is a new thing, previous one has always been an option). "Moral"...
 
12:47 PM
I forget how much it was, exactly. Somewhere between thirty cents and ten dollars.
 
Howdy good fellows! So I found that I need this "def repr__(self)" chunk in order to make the class return data from the sqlite database. Thus far I have to make a new variable={}, thing for each column I list immediately under "Class User(Base):" ... Is there a more effective way that I could be going about this so I don't have to do the __repr part? ( pastebin.com/V86Qv9tq )
 
user559633
In America, we're taught all kinds of dumb propaganda too. Like how the waves of American immigrants and natives came to agreements on territories -- which ended the slaughter -- instead of local-level corruption and the newly formed state governments having more important things to do
 
@ToddLewden dunderbold, call DSM!
 
o_o
I... I don't understand...
 
Jun 22 at 12:16, by Andras Deak
Mar 15 at 16:34, by DSM
Word of the day. dunderbold: the unintentional bolding of words due to an absence of code-quoting.
 
12:48 PM
morning everyone
 
user6568562
@corvid Yo
 
@ToddLewden "in order to make the class return data from the sqlite database". Not really. __repr__ does nothing except provide a nice visual representation of your object. If you leave it out and print my_user displays <main.User object at 0xdeadbeef>, that's not a bug and it doesn't mean that sqlite failed to return something. It returned the object just fine, it's merely ugly as hell.
 
user559633
@AndrasDeak Wow, "moral studies" taught directly from someone that chose to spend his/her life talking to children with a curriculum dictated by a committee that takes bribes. What could go wrong?
 
I need to create a work sample. What should I make?
 
user559633
A latte. For me. You'll love it. I'll say "thanks a latte" and chuckle to myself while closing the door in your face after you deliver it.
 
user6568562
12:49 PM
@tristan You would've loved the dumb bs taught in arab countries. Some reality-distortion grade stuff
 
@tristan yes, what could?:D Fortunately we have a history of teaching children actual things while they learn the other stuff in school. Had a lot of that during communism
doublethink is in our veins
 
(OK not really, fake doublethink while you know what's true)
 
@Kevin , so if I am understanding you correctly... Doing the "repr" step simply makes the text human-readable rather than the hexadecimal looking stuff? Is there any "post process" I could do on the hexadecimal stuffs in lieu of the repr?
 
user6568562
France and Germany are not that far behind in teaching bullshit to kids, surprisingly. But I fear we're heading towards Goodwin law as Andras mentioned
 
12:51 PM
@tristan I actually know how to make a pretty awesome latte, we have a full machine at my apartment
 
user559633
@AndrasDeak You have to slip it in while distracting them. Talking about school curriculums, I promise.
 
@tristan roofies could work too in a hypnopedia scenario
 
user559633
@randomhopeful Speaking of Godwin's Law, Americans are basically taught about the Nazis in the context of "well they were just stupid crazy people!"
 
unless you would've meant something else, but you'd need a helluva distraction
 
user559633
@corvid well, make it a double :)
 
user6568562
12:54 PM
@tristan Yeah, way to destroy every critical sense at a young age. No wonder the majority of people cannot process complexity and nuances.
 
Yay me, I got a downvote and could clearly see who voted.
 
@MartijnPieters call the mods
Did you step on their toes in the past? Your record of at-least-weekly stray downvotes would suggest that somebody dislikes you
 
@MartijnPieters Sorry about that ;)
 
Also, Deus Ex: Mankind Divided is broken out of the box
 
user559633
@randomhopeful Exactly my point. Instead of using it as a cautionary lesson of the evils that can come from too many idle hands, class inequalities, and nationalism, we get a "the crazy bad guy did his evil plan and America saved the day."
 
12:58 PM
@corvid wait, is that an idiom? Or is it broken, right after install?
 
@JRichardSnape Just about to buy a new copy - excellent book, well worth the money
 
Morning cabbage.
 
cabbage
 
user559633
cbg
 
@holdenweb True that
 
12:58 PM
Cbg
 
@AndrasDeak Crashed 10 times when I was playing it yesterday. Actually returned it for a refund.
 
user559633
You guys should pre-order NerdCop before you learn your lesson about pre-ordering.
 
@corvid yep, even on ps4
 
I think on September 5th, they're releasing the DX12 edition. Which begs the question... why didn't they just release the game on September 5th?
 
12:59 PM
@AndrasDeak :-D Nah, competing but very wrong answer that I downvoted and added a clarification to. Suddenly I was DVed too and on reload the other account had misteriously lost 1 point.
 

« first day (2139 days earlier)      last day (2809 days later) »