« first day (2109 days earlier)      last day (3064 days later) » 

00:17
Such a movie :) Now next one, and sleep :D
:)
have fun
 
1 hour later…
01:30
Anyone else play around with the new jupyter lab app yet?
02:21
Somebody numpyish: does this topic suggestion make any sense?
> I often find he need to create arrays with known properties in terms of the size, dtype and shape. I have found it easier to exploit np.prod to help with the total sequence size and the shape. Here are a few examples
even with rewording, I have doubts about the doc-iness of the suggestion...
02:35
The concept seems legit, but I understand your doubts
Like... for newcomers, if you just want to test some stuff
re cbg
what is up not related to SOD
it's got some broken bits
but kind of interesting
and also failed to actually deliver on the title. I mean it offers some tools to figure it out but it's ambiguous
is it more on ML or titanic, can't really read all because it's almost 5AM, and I'm curious, but want to go to bed as soon as posible.
yes
lol
it's light on the ML
but the end is some interesting titanic stuff
Then I'll read it tomorrow when I get up :) See ya all
02:47
g'night. or morning
rbrb for me too
03:10
Morning
DSM
DSM
03:41
Cabbage for vaultah.
cbg(all)
04:27
So I thought that the CPU cooler wasn't needed because I was just going to boot into the BIOS.
Might have burned the CPU
 
1 hour later…
05:38
(welp, looks like it works but it reached 90-100℃ and that freaked me out)
cbg
might not work any longer
05:57
Cabbage :-)
06:49
cbg again
07:05
cabbage
07:19
Cabbage
08:28
Cabbage
08:43
Cabbage!
I hate to be the guy to tell the customer that I won’t do the thing they want me to do.
What's that? :)
(Now you've broken the cabbage tree, you monster)
/me ponders if it's really his job and if so - how to tell Bobby that Cabbages don't grow on trees...
@poke spoilsport.
Both for your customer and for b.b.b.b.b.breaking our magical cabbage combo.
:-/
08:52
@RobertGrant I’m sorry.
Wow that is amazing
Well... for b-b-b-b-breaking the combo @poke... we have to issue a fatality now... Everyone else "FINISH HIM!!!"
If he hadn't done it, I'd have done it.
And I'd have done it for spite, not to actually have a conversation.
We are switching fighting games with the speed and ferocity of Chun Li's kicks
@Robert just don't say "Jin" - Fizzy might think it's the type that's spelt with a "G" :)
08:56
Great idea - Gin Kazama!
Or whatever his surname is
@JonClements q_q
cbg
@MartijnPieters nothing happened to that BUILD_STRING patch
nor other serhiy's patches...
@RobertGrant That kinda sounds plausible... it's been a while :)
instead everyone is helping speeding up local imports and all such nonsense
hi everyone
08:57
@Mathan cbg
Am trying to work with Z3 in python
@AnttiHaapala :-/
No. You should come to PyCon UK and bring me a bottle.
Testdata auto generation in Python
08:59
:/
you should get it organized in a better location
I could do London but not Backwater-Town-upon-Tiny-Brook
That was fast; I coded in Java for the first time in decades last week and already it lets me answer a Java / Python question based on first-hand experience. My my.
hears sirens beginning in the Java room
@MartijnPieters and so it begins.
What are they singing?
Attack on Titan (Japanese: 進撃の巨人, Hepburn: Shingeki no Kyojin, lit. "Advancing Giants") is a Japanese manga series written and illustrated by Hajime Isayama. The series began in Kodansha's Bessatsu Shōnen Magazine on September 9, 2009, and has been collected into 19 tankōbon volumes as of April 2016. It is set in a world where humanity lives in cities surrounded by enormous walls; a defense against the Titans, gigantic humanoids that eat humans seemingly without reason. The story initially centers on Eren Yeager, his adopted sister Mikasa Ackerman and childhood friend Armin Arlert, who join the...
09:02
Waiting for season 2 still
Also for Pacific Rim 2
I was disappointed with the first PR film.
Kosh: If you go to Ja'hva-ruhm, you will die.
@MartijnPieters whyy
@AnttiHaapala empty, hollow story.
Suspension of disbelief was not achieved.
It was, and GdT has said that it's a lot of work establishing a universe etc in one film, so the second will be very different
But it did school Michael Bay in how to film fights involving giant robots
though, I watched it in Vietnam, so I was drinking Heineken in the theater which might have affected my judgement.
and stupid spell checker complains when I write judgment, even though it is as right.
09:09
I'd say your judgement was already affected somehow if you were drinking Heineken :)
CAMRA BURN
So Set.add() in Java returns a boolean to tell you if the element was present already; you can do if not setobj.add(value): # wasn't present, so do something if Python did the same.
@JonClements hey, I was first going to write I was drinking beer, but I corrected it :D
So someone then proposes a convoluted conditional expression that returns False or None and claims that that is the same. facepalm.
@MartijnPieters indeed.
you should really learn Java a lot and go tell the guys when they're going to do mistakes
09:12
@AnttiHaapala For now I'm happily sticking it to people making mistakes in Python, thanks. ;-)
just today they discussed about a new abc called SizedIterable which BDFL, rightly so, decided, should be called a "Collection" instead
Jython's the future, guys
@MartijnPieters but wouldn't it be cool to learn from mistakes and successes of others
And not Python on the JVM, just Python with all the Java class hierarchy
though, collection in java supports adding, might throw though
@RobertGrant jython rocks,
no one is writing the python 3 stuff tho
woohoo I want this in Python 3
09:16
@AnttiHaapala Who says the two are mutually exclusive? And I'm happily helping them learn by pointing out their failures. ;-)
Cool for the (C)Python to learn, that is
I feel even more so that the current CPython folks are in a silo :d
Yeah Pypy feels like the future
Except I guess it's not so good for scripts or anything that is shortrunning
not only interpreterwise but also languagewise
other languages make the language stricter so that it can be optimized better and be more secure: javascript 'use strict', no stack changing, etc; C using the undefined behaviour to optimize etc.
09:38
Crashed my jupyter notebook trying to print a 20000x20000 matrix D:
@Ffisegydd good job :)
09:55
@Ffisegydd It will get its revenge by producing wrong outputs... Beware... Muhahahaha
10:36
should I update pycharm?
Cabbage
Someone was saying that it’s broken with the last update I think?
2 days ago, by Morgan Thrapp
Just updated PyCharm. If you haven't yet, DON'T.
Oh, you were actually there
@MartijnPieters I guess that could be handy, but doing an explicit if value in setobj: do_otherthing() else: setobj.add(value);do_thing() is more readable, if slightly less efficient. But of course having a mutating method return something apart from None breaks a pretty major Python convention.
BTW, I just rolled back a crappy edit on a post you'd already edited. A 554-rep user who mostly does JS put the OP's code block into a Stack Snippet and their Traceback into a quote block. :facepalm: stackoverflow.com/questions/38563839/…
@thefourtheye It got its revenge by producing no input and almost crashing Chrome :P
10:48
@PM2Ring probably an edit conflict, I just removed the stack snippet block markers as the OP had included those.
The suggested edit should have been rejected however.
@PM2Ring <!-- language: lang-html -->
face palm indeed
cabbage
Ah, ok. I didn't bother looking at the timestamps. I'd looked at the question before dinner & it looked ok. When I came back it had that crap. Which reviewers approved. :(
@AndrasDeak FWIW, I sometimes do <!-- language: lang-none --> for code blocks containing tracebacks or script output, but generally I don't bother, and I figure that most seasoned SO Python readers are used to seeing tracebacks with Python-flavoured syntax highlinghting, so taking it away might be disorienting. :)
@PM2Ring of course, but there's a huuuuge difference between none and html:D
there was no matlab syntax highlighting until recently, so I'm all too familiar with lang-none...
11:04
Agreed! My last remark was just a vaguely-related tangent, I wasn't attempting to justify that editor's behaviour.
these devils need no advocate:P
11:30
@poke I have a teenage girl syndrome. Have to use the latest version just like they have to use the latest iphones.
this is insulting to all the frat boys
and teenage girls I think?
I don't get this pokemon go thing
cbg again
@khajvah what "thing"
?
I mean the reason why it already has 100 million downloads
11:38
Because it’s Pokémon.
Well, nostalgia
speaking of pokemon go,
all pokestops, gyms, and pokemons have vanished from major Indian Cities :(
:[
I want to write a simple app/game like that and get rich
flappy bird
@khajvah go ahead
11:40
:)
I just remembered a scene from "the internship", where they come out with nice ideas and realize it already exists.
that movie was baaad
cbg, all
Not that bad
We are working on this complicated financial stuff website for almost 2 years already and it probably won't generate as much money as flappy bird
11:43
@khajvah it's not all about generating revenues, you know
@holdenweb cbg
@holdenweb every time I say that to myself, I end up easily corrupting myself. If I had the choice I would take flappy bird I think.
I just had an excuse to use a class with a custom __eq__ method. :) I guess the accepted answer is a little more compact though, and probably a little easier to understand, so I don't blame the OP for accepting it. stackoverflow.com/a/38566415/4014959
12:04
Hey guys!
I need help with regex. I'm trying to get a string between a symbol and numbers, I use the symbol and numbers to know where to start and finish, but I don't want to include that symbols or numbers in my result

string example: `01:50:09 Text I need to catch | Second text`

the result: `Text I need to catch`

regex: `\d{2}\s[a-zA-Z]\s|`

it needs to be that way because there are some other lines with a similar structure
@PM2Ring Umm... I'd have gone for: list({k.partition(':')[0]:k for k in workers}.values())
@JonClements Nice.
cbg
@GEPD what you'd be looking for in regex are positive lookahead/lookbehind assertions
@PM2Ring Use it if you fancy - I think it's the simplest... All answers on that are seriously (imho) over-complicating it...
12:12
@JonClements If you really don't feel like writing an answer yourself, I'll add it to my existing answer (which already has two upvotes).
@PM2Ring Go for it :)
Thanks!
@GEPD something like (?<=\d{2} )[\w\s?]+(?=\s\|)
@JonClements Done.
Looks definitely upvote worthy now :p
12:19
@AndrasDeak Thanks! I'll give a try, I had tried with something similar but I wasn't sure if it was what I was looking for
@JonClements Heh. :)
@GEPD I'm not even sure it's valid regex; it's just a hint of what I mean
so don't take the specific code too seriously; truth lies in the documentation and trial:)
@GEPD Your regex is a bit wonky since it doesn't permit spaces inside the text you want to capture. But the thing you need here is a capturing group using parentheses. Here's an example:
import re

pat = re.compile(r'\d{2}\s([a-zA-Z ]*?)\s\|')
s = '01:50:09 Text I need to catch | Second text'
print(pat.findall(s))
#output
['Text I need to catch']
yup
at this level capturing groups and lookaround assertions are interchangeable
@AndrasDeak I've just found a pdf with that information, it seems to be right but I'll refine if it's not exactly what I want, I got the idea
12:25
what pdf?
with what information?
What was wrong with the official documentation I linked to?
@AndrasDeak I try to avoid using regex assertion syntax, unless it's the only alternative. I guess they have a bit of a bad reputation because it's easy to write an assertion that appears to do what you want but does far more work than what's actually needed.
and the only valid answer is "it was python 2"
@AndrasDeak nothing wrong, I just found that before you send me the link to the official web
12:32
OK:P
@PM2Ring ah, that sounds reasonable. Although if you're using regex, any performance argument is invalid
@GEPD you might also want to consider capturing groups: using them it's easy to extract various sub-portions of the matched string
@holdenweb as PM 2Ring already showed?:P
Ah, indeed
@AndrasDeak :) Sometimes Python regexes can be quite fast, especially if they're strict Regular Expressions, but once you start using the fancy stuff that can involve backtracking, etc, all bets are off. But I think we've already had the conversation bemoaning answers that use a regex solution when simple str methods can do the job.
sure, sure, that's the default (bemoaning, that is)
but \d{2} doesn't seem trivial with built-ins:(
maybe if it was "the last digit in the string", but that would be a very dangerous assumption
12:38
7
Q: How to mark a docs change as invalid and revert it?

Dariuszhttp://stackoverflow.com/documentation/proposed/changes/39415 This is a common misconception which actually seems to be unmentioned in standard java tutorials. Both edits for that particular example are wrong. Can I somehow revert that edit or do I have to do another edit to revert the changes?

this ^
in java boolean & boolean is typechecked
@holdenweb I'll considering that too, I'm writing a plugin for sublime text, and I have to read about capturing groups
Thanks all for your help
        boolean x = true & false;
        boolean y = true & 1;
@charlietfl why would you ever want to remove content from the glorious new wing of the site? We don't incentivize the blind and brainless flooding of the empty pages with crap in order to deal with it later. Sheesh. — Andras Deak 21 secs ago
first is ok in Java, it is non-short-circuiting operator, the second one is a compile-time error as there is no infix operator boolean & int;
just use javascript
12:41
@AndrasDeak You're skating on thin ice with that comment. :)
I like to live dangerously
so the answer was very right, and the defaced one was ... very damn wrong,
perhaps even a C programmer :D
user559633
oh no, he'll get banned from the erosion of the ability to tell people to read the official documentation
Shog's general stance of "why would we make it harder for crap to come, we need people to fill all that crap" irks me
@AnttiHaapala Erm, why are we discussing Java syntax silliness in the Python room? :)
12:42
Anything without a face is pretty wrong
@PM2Ring we're not talking about java syntax silliness, it is a sane syntax :D
@PM2Ring because our barrel has no more live fish in it
see the meta
@RobertGrant :D
user559633
welcome to math 203: fuck learning let's snippets
12:43
PHP hits way too close to home for Antti now
all that's left is java
Afternoon cabbage
user559633
cbg
yet again another case of some stupid n00b defacing correct and useful information.
user559633
asus DOA motherboard cabbage
12:44
huh, surprise accept on a March question
TIL from the original! And that n00b defaced it.
@tristan Oh noes. :(
@tristan :(
@tristan :((
@tristan standard asus issue then
user559633
12:44
@PM2Ring beautiful code 00. hoping to get a new motherboard (different brand) and a replacement cpu (intel i7 6700k) today. i'm afraid my cpu is coated in asus dust now
@tristan DOA?
Dead Or Alive?
dead on arrival
user559633
@poke dead on arrival
oh
a miscarriage:(
user559633
12:45
e.g. plug it in and it doesn't work
user559633
@AndrasDeak oooof :(
at least that means it didn’t break while in use
@poke Nice! Today I got an upvote on an answer from Oct 2014.
Doesn't match my experience with ASUS products
user559633
@poke yeah, and it broke in time that i don't have to deal with ASUS support
user559633
12:45
same, i remember when ASUS made bulletproof hardware
@tristan let's hope it's not contagious
I had problems with asus in 2006 already,
user559633
seriously, good experience from my teenage years is why i spent more on this one
my then mobo had faulty sata chip
@tristan bah... disappointing start to the day :(
12:46
never had any problems with ASUS mainboards. And I don’t remember ever buying non-ASUS mainboards.
Bulletproof just means you don't get hit by the bullets; it doesn't mean the thing itself survives. nods sagely
but the replacement still worked for a while... but it then let the magic out :/
but my current desktop has got another asus mobo from 2009 and still running
current uptime 78 days <3
user559633
luckily, i bought it from a nearby store, so i'm going to drive over and just openly weep in front of the CPU section until someone asks me how they can get me to stop it
@tristan or they just throw you out? :p
lol
12:47
@tristan sorry, hardware is the worst when it doesn't work. Sucks.
@tristan let's hope that store doesn't go bankrupt before you get there :D
Gewährleistung ftw.
Buy from a UK store, it'll only cost you a dollar these days
@tristan that should work:D
user559633
it will all get sorted. just frustrating to spend hours swapping the cpu and other hardware in/out to test
12:48
:S
cbg all
@RobertGrant That’s a rather cheap mainboard then!
No, just a weak pound :)
and the fact that your salivating geek glands have to wait still to suck on that circuitry
user559633
how many kilos is a weak pound?
12:49
@RobertGrant I could buy from an UK shop. I am on a diet, could lose some extra £
sorry for the catachresis, I know glands don't suck on anything
@tristan 0.596 kg, since 1 British pound is about 1.314 American
user559633
the imperial system is so confusing!!
user559633
if my video card shows up and doesn't work, i'm done with computers. i'm going to go spin a sign for money
You can hardly remain an empire if people can understand your measurement systems
12:53
@tristan I am not familiar with such a phenomenon
user559633
cbg
those sign spinners are super impressive
user559633
they should be pretty afraid of robot automation of their jobs
user559633
i have a drill that spins at 36000 RPM
I'm still trying to find the cause of sporadic shutdowns and reboot loops of my PC. This PSU is probably faulty 😐
user559633
12:58
PSU or mobo, in my experience
It looks that the MB is fine (ASUS)
user559633
if it happens regularly, i'd say load up linux and do something decently CPU intensive that doesn't really fill memory
I ran some tests with cpuburner and everything worked just fine

« first day (2109 days earlier)      last day (3064 days later) »