« first day (2222 days earlier)      last day (2741 days later) » 

12:00 AM
So basically, there should be two groups of teachers at universities: Professors, who teach their research topic, theoretically. And active developers from successful companies that teach practical stuff.
 
yeah, I agree.
I had a similar experience.
 
For example, I think I would enjoy getting maybe two days off a week from work to teach at my university.
 
One of my favourite professors that taught VHDL, pretty much wrote a book on VHDL and actively did research on FPGA boards using VHDL
 
user559633
what about active developers of theoretical stuff?
 
Or even just one day
@tristan Those are called researchers, and would usually work on their PhD :P
 
12:01 AM
meanwhile C++ was a trainwreck because the professor barely touched the language anymore
so it was book regurgitation
 
user559633
i had a comp sci professor that had us code against some libraries (c++) he wrote and it ruined the entire course because it was trying to figure out code inspection and why things that he told us to do didn't work
 
reminds me of that one professor who wrote a book on his topic and used the book as the foundation for his course, but was legally not allowed to share the book contents with the students. So he showed us what to google to find it…
 
what was the legal reason behind that?
 
The publisher of the book didn’t want to
 
was the institution under some ruling to only issue approved books?
ooh
ok
 
12:05 AM
He had no rights to distribute it
which is ridiculous, but that’s the country I live in \o/
@tristan One other professor taught us using some logic programming language that was not well documented. When you searched for it on Google, you would only find those exact slides he gave to us
(so he likely invented it himself years ago and only used it for that course…)
(that was a lot of fun...)
 
user559633
@poke awesome
 
there was a professor that was notorious for recycling exam questions
a certain place that I think was shut down sold old exams
they made a killing every semester
 
lol
 
it was wacky
 
aaaanyway. I should head to bed. It’s 1am already.
 
user559633
12:07 AM
have a good night poke, it was good to "see" you
 
@poke take care :) have a good night
 
You too, rhubarb! :)
 
yeah! Haven't seen you in a while. Nice chatting
cheers
 
1 AM here too!
small world
good night, poke:)
I'll try to walk the dog too (not a euphemism)
 
(I’m always* here, just usually quiet while working on stuff, so just chat me up and I’ll talk! :D)
 
12:09 AM
so, you want us to poke you?
 
user559633
i was asked to teach at a code bootcamp and at a university in new york. thought about it and then it slipped out of my mind. maybe when my company fails miserably i get a bit older, i'll see if the offer(s) still stand
 
@idjaw Yeah, something like that.. ^^" Anyway, rbrb!
 
:)
 
user559633
So You Decided Electrical Engineering is Too Hard 101
 
Hard Boring
for me
 
user559633
12:11 AM
a course on ruby and javascript, with ur frenemy, a grumpy old man
 
I was sitting in a class on transistors....and said..yeah no...no no no
 
user559633
"so when do you teach me how to tony stark? oh, impossible and/or requires team of 1000? okay i guess i'll learn css"
 
haha
 
wim
 
user559633
if it was SASS, he'd be pulling 3 different strings
 
user559633
12:14 AM
SASS: because what's grep?
 
there's a sass?
I used less
back when I did that stuff
 
user559633
ugh. sass/less/haml, etc
 
oh yay!
so css is getting the treatment too?
 
user559633
i already write most of my html in javascript
 
 Collecting pandas
awww, pip, you're too cute
 
12:17 AM
it doesn't reticulate splines?
 
wim
pandas collected!
 
get out, those are just baby badgers
 
badger badger badger badger badger
 
@FlorianMargaine why are you still a zombie? Are you OK? :P
 
I have to find my old avatar
 
wim
12:23 AM
Collecting pandas 🐼🐼🐼🐼🐼🐼🐼....
 
user559633
@FlorianMargaine lolll thank you for that avatar
 
user559633
actual lol
 
the bow tie adds a good touch
 
1:12 AM
@FlorianMargaine ^ in case you were serious
good night
 
1:23 AM
later @AndrasDeak
 
1:44 AM
@BhargavRao @vaultah All the best!
 
 
1 hour later…
2:46 AM
morning cabbage
@thefourtheye thanks mate!
@AlexMathew please do not link newly asked questions here sopython.com/chatroom
 
 
2 hours later…
5:45 AM
random_state does not seem to work in keeping a constant output
for example, X_train, X_test, y_train, y_test = train_test_split(dataset[:,:-1], dataset[:,-1], test_size=0.2,random_state=32), radon_state provided a different output every time
 
5:59 AM
Cabbage
@lordlabakdas That sounds unfortunate. However, you need to provide some context or it's unlikely that people will know what on Earth you're talking about. What package is train_test_split from?
BTW, radon is radioactive, so its state is unstable. :)
 
6:14 AM
Cabbage
 
6:42 AM
cbg
 
7:30 AM
Bloody chameleons...
 
7:42 AM
cbg
 
cbg
 
I was able to check all the candidates yesterday before sleeping
and put some comments for everyone I intend to vote for
going to grab a coffee and start the day -_- omg
 
@AndyK Best of luck for the rest of your day :)
 
thanks Bhargav
 
8:08 AM
cbg
 
cbg
 
cbg
 
@leaf I guess this is a valid question: stackoverflow.com/questions/40604113/… Hopefully, someone who knows the history will be able to answer it.
 
yet another uneventful cbg
 
cbg
Oh, Tiger crossed 30k. That's nice. :)
 
8:18 AM
With luck, and a few decent questions, I hope to hit 20K before the end of the month.
 
I lost interest in gaining rep after I hit 20k. I only answer if the question is interesting or the other answers are bad. :/
 
I lost mine the moment I registered
 
Lol :D
 
Yeah, I just want 20k for the extra deletion powers.
 
Yep, and "Trusted User" status
 
8:23 AM
Cabbage!
 
cabbage \o
 
I've spent far too much time pondering this question, trying to find a more efficient algorithm. I suppose it's a NP problem, but it's frustrating because most of the time a search finds the minimal solution quite early. I've been trying to research it, but it's a bit hard to research NP problems when you don't know the official name...
 
how do I vote?
do i just "upvote"?
 
@khajvah instructions
@PM2Ring you want 35k for extra delves
 
@AnttiHaapala where?
 
8:33 AM
@khajvah you up/downvote on candidates on that page where they have thousands of votes for each now...
this is a primary round
the last round will use transfer voting
 
ops I am blind
didn't see the instructions on the right
Aaron Hall seems to be way ahead
 
@AnttiHaapala I don't really need extra delete votes. Besides, I get more deletions done by comments than by voting. :) Eg,
 
@PM2Ring of course you need :D
 
@BhargavRao is only one mod elected ?
 
8:37 AM
then you can go to 10k tools, and BURN EM ALL!
 
in the end
 
@khajvah 3 of them are
 
noooooo 3rd place is a PHP guy
 
3rd place guy never wins :D ... It was Jon first and then Undo. That position is jinxed
 
nice
 
8:39 AM
Soo... who can guess my mistake?
this.returnTarget = null;
this.router.navigateByUrl(this.returnTarget);
 
hi guys
 
@poke trick question, your choice of programming language?
 
@BhargavRao Except that in both cases, the election was expanded to more than three winners :P
 
Yep, But they had to wait 5 more months :D
 
@khajvah You’re close
 
8:41 AM
STV can do wonders. Jeremy won from the 9th position.
You never know.
 
@BhargavRao 2 months for Jon & Matt
 
Ah, I should recheck those. :/
 
@BhargavRao It just tells us how terrible inefficient the primary result is
 
True. The primaries is more like, "We wanna get rid of the additional candidates" rather than "We need to select 10 candidates"
Also @poke, that userscript is really awesome. Thanks :)
 
You’re welcome :) Glad there are still people using it ^^
 
8:45 AM
:facepalm: Some "helpful" person suggested an edit on this puddle of dog vomit: stackoverflow.com/questions/40605271/…
 
I like it because it also shows the split unlike Undo's
 
I think it’s more useful than the live monitor since it’s rare that you actually bother to monitor the election the whole time. That is only interesting at the beginning (when the momentum is high) and for those super interesting in keeping stats over time.
 
Or if the battle is neck to neck as in this case i.stack.imgur.com/vmXTX.png
 
wow
 
Mornin' folks
 
8:55 AM
@PM2Ring answered
@leaf yeah, only BDFL can answer decisively
140
A: Is it Pythonic to use bools as ints?

Alex MartelliI'll be the odd voice out (since all answers are decrying the use of the fact that False == 0 and True == 1, as the language guarantees) as I claim that the use of this fact to simplify your code is perfectly fine. Historically, logical true/false operations tended to simply use 0 for false and ...

@khajvah I remember you used to have some problems with that ^:D
 
@AnttiHaapala it was the choice of framework
 
@IntrepidBrit Morning \o
 
@AnttiHaapala And he doesn't seem to answer much on SO these days. :) Maybe DSM or MooingRawr can ask him at PyCon. ;) "Hey Guido, what were you smoking when you originally added input() to Python?" "Well, I was in Amsterdam... :D"
3
 
amsterdam explains a lot
@PM2Ring as in Unix Hater's handbook
 
Exactly. :)
 
9:12 AM
there should be a way to ping a person to answer a question
 
@AnttiHaapala Maybe, but that could get annoying. I guess you can comment on an old post, but that could be a little awkward too.
 
@PM2Ring what's wrong with input?
I have never used it
 
@khajvah it is useless
 
you mean in python 2
 
@khajvah Python 3 input() is fine. Python 2 input() does an implicit eval on the user input, which is potentially dangerous.
 
9:19 AM
you could have had input that reads a line of input, then eval it
 
oh ok
yeah that's weird
 
There should be one-- and preferably only one --obvious way to do it.
 
@BhargavRao You have my vote sir! You've convinced me with your cheery greeting
Also - what happened to the statvfs constants? Did python3 eat them?
 
Every dynamic scripting languages offers some form of eval functionality. And although eval can do dangerous things it's perfectly fine if you know what you're doing, and don't pass it unsanitized data. But wrapping it implicitly around a user input function is sheer madness.
 
9:25 AM
@IntrepidBrit

Deprecated since version 2.6: The statvfs module has been removed in Python 3.
@IntrepidBrit statvfs returns a named tuple
 
Aye, saw that - just trying to work out where the constants are - trying to get rid of my hardcoded strings
 
@IntrepidBrit Thanks, I know how to impress ;)
 
argh martijnhammer again
 
@IntrepidBrit I guess they're in os docs.python.org/3/library/os.html#os.statvfs
 
18
Q: Why does assigning past the end of a list via a slice not raise an IndexError?

JohnsywebI'm working on a sparse list implementation and recently implemented assignment via a slice. This led me to discover some behaviour in Python's built-in list implementation that I find suprising. Given an empty list and an assignment via a slice: >>> l = [] >>> l[100:] = ['foo'] I would have ...

@MartijnPieters that other question doesn't answer really anything, since it misses the index adjustment which is the reason for the behaviour in assignment to a slice
 
9:35 AM
@AnttiHaapala I guess the OP is a little reticent to unhammer it again because Martijn hammered it. :)
But it's nice to see that he used the same dupe target that I used. :)
 
@PM2Ring He can't unhammer again AFAIK.
 
yeah one reopen per post
 
@AnttiHaapala Ah, rightio. It's allowing me to vote to re-open. Will that un-hammer it?
 
yeah but lets see martijn comment on it :D
 
Certainly.
 
9:47 AM
@AnttiHaapala Then add an answer there.
The reasons are exactly the same.
 
10:13 AM
Do we have a dupe target for this? stackoverflow.com/questions/40606996/…
 
@PM2Ring I already hammered that one.
 
ninjaed
 
@MartijnPieters Oh, thanks. I didn't notice. (It's bloody annoying that you have to refresh a page to know that it's been closed).
 
10:29 AM
Hi, did anyone ever tried to use , from markdown will running the R through 2016? (disclaimer, I have already asked this in SQL and R rooms and they suggest me to try also here. :) )
 
@Athafoud Huh? When did anyone from the [r] room ask you try here?
This is a Python room, See our room rules here sopython.com/chatroom
 
@BhargavRao quoting "Have you asked in the Py room" (from sql room), isn't this the Py room?
 
Ah, Gotcha. I mistook the second part when you said "they" asked. Sorry, I stand corrected.
 
10:46 AM
Hey guys, i was looking at creating a pypi package, according to the docs, the folder structure should be "LIBNAME/LIBNAME/LIB.PY". When i did a local pip install to check, i will now have to import it like this "import libname.libname", and call the class like this "libname.libname.CLASS()" any way to prevent this?
 
There is no requirement to use a package.
Just put LIB.py in the top-level.
 
ah okay @MartijnPieters so the whole pypi package can be on github right?
and i am guessing i need to remove this from my setup.py? packages=['name'],
 
@Marius sure. Here's a sample project: github.com/mjpieters/rtfunicode
 
Great, just what i needed! thanks a bunch
reminds me i need to write testcases for this :p
 
11:13 AM
@MartijnPieters Typo in the README: simlicity's -> simplicity's
 
@Marius though, similarly you can have a package with just __init__.py
 
@AnttiHaapala i did have a init file in my package though, empty, but still did not work :( Trying to fix the last part of the pypi package now, was not as easy as i thought :P Uploading giving me AssertionError: unsupported schema, google is not saying much
 
@Jovito Looks good to me. Sorry I can't test it for you: I hate booting Windows, although I still have an XP partition for those rare situations where I might need it. :)
 
not empty, you'd have your code in there / import the symbols into there
 
11:18 AM
ah fair enough @AnttiHaapala that would make sense
 
@MartijnPieters my head hurts
 
ah its not finding my pypirc
 
"The RTF command code for a unicode character is uN?, where N is a signed 16-bit integer and the ? is a placeholder character for older RTF readers."
that's awful
 
I'll try to test on my own on a virtualbox later.
 
@AnttiHaapala RTF is 5 degrees worse than WTF
Bear in mind that RTF is primarily a thing of Windows, and Windows Unicode handling is quirky & kludgy at the best of times.
 
11:23 AM
cabbage
@PM2Ring are the details written in the RTFM?
 
well, at first they did UCS2
 
That worked out well, didn't it.
 
I'm gonna do some __data science__ today! \o/
not much of it, but that's still something:D
 
To be fair, Microsoft did try to get onboard with Unicode fairly early in the piece. But I get the feeling that various other interested parties didn't want Microsoft to commandeer Unicode, and those parties successfully steered Unicode in a slightly different direction.
 
if MS would have embraced and extinguished unicode, we'd still be happily using python 2
 
11:29 AM
:) Perhaps...
 
@PM2Ring also UTF-8 isn't necessarily a bad thing
 
wow, pypi has no documentation on AssertionError: unsupported schema. Registration against pypi works just fine, uploading does not
nothing on google either, except "it might not find your pypirc file", except it does, as registration works
 
@Marius wow, registration works?
 
yeah :p
 
11:38 AM
it didn't work for me
 
im all out of clues now
 
the registration API endpoint has been deprecated,
 
guess il make a new post about it or something
 
I don't mind UTF-8. It's a reasonable way of doing things, IMHO. OTOH, I'm more than a little skeptical about Unicode going beyond the bounds of 16 bit codepoints. Do we really need that?
 
you cannot register pkgs via API
 
11:38 AM
i already made an account though
register was only to test if it finds the pypirc file
 
@Marius upgrade your setuptools
@PM2Ring wat
It was needed already, without those emojis
 
Successfully uninstalled setuptools-0.9.8
Successfully installed setuptools-28.8.0
version difference much
guessing they changed their versioning
 
As of Unicode 9.0, released in June 2016, 271,792 (24%) of these code points are allocated, including 128,237 (12%) assigned characters, 137,468 (12%) reserved for private use, 2,048 for surrogates, and 66 designated non-characters, leaving 842,320 (76%) unassigned. The number of encoded characters is made up as follows:
:P
 
still the same unfortunetly @AnttiHaapala , register still works, upload does not, same error
 
@Marius setuptools 0.9.8 was 3 years old
 
11:41 AM
guess i never updated it, though the new one does not work either
 
@PM2Ring I am not sure if you're serious above^
 
@AnttiHaapala I remain skeptical. :p I suspect that they could've organized stuff better than they did. But it's too late to change it now.
 
or if this is "640k ought to be enough for everyone"
@PM2Ring they did organize CJK into one...
 
@PM2Ring one needs to remember this decision was made 20 years ago when it became apparent that 16 bits wasn't enough for everyone.
 
11:48 AM
Ok. I'm certainly no Unicode expert.
BTW, Slice Guy wants to know why exceptions are bad.
 
the UTF-16 was a compromise because of those folks who did invest in 16-bit encodings: microsoft, java...
@PM2Ring I am ready to open that and reclose as POB
@Marius from setuptools import setup?
@Marius need mcve, incl. setup.py contents!
 
@AnttiHaapala from distutils.core import setup
i just posted about it, inlucding the files and trace
 
@Marius so, switch to "from setuptools import setup"
you're using stuff that only setuptools, not distutils, understands.
 
Understood. But I'm still unconvinced that it had to be done the way it was. In many complex writing systems that appear to require a huge number of glyphs the graphemes are naturally composed of logical components, and so it would be natural to give each component a codepoint, rather than giving each grapheme its own codepoint. Yes, that would make the rendering process a little more complex, but would that be so bad?
 
answered
@PM2Ring they're done that way
but it doesn't help with CJK
@PM2Ring theregister.co.uk/2013/10/04/verity_stob_unicode seems that you're not alone
 
11:59 AM
I don't know enough about CJK to argue. The most complex writing system I've learned is Devanagari, which is used in Hindi & Sanskrit, and most other Indian writing systems are closely related. Eg, you can consider Bengali to be a different font of Devanagari, with a couple of extra "letters", and a few of the Devanagari forms unused.
 
updated @AnttiHaapala
 
@PM2Ring CJK is about pictures.
 

« first day (2222 days earlier)      last day (2741 days later) »