« first day (2790 days earlier)      last day (2149 days later) » 
01:00 - 18:0018:00 - 00:00

6:00 PM
since my name starts with user
 
By the way, I'm pretty sure it'd be better to split each line in that table with \s{2,} and then grab the 8th column's value
 
@AnttiHaapala it's actually really simple: sz, zs, cs, dz, dzs, ny, ty, gy, ly are things, and if you want to double it you only add one more leading letter. And a few vowels too I guess.
 
ccs is a thing?
 
Yeah, but I'll have to think hard to come up with an example.
"reccsen" means "to crack" (as a verb, onomatopoeic)
 
the letters that can end a word in Finnish are: vowels and l, n, t, s, r.
the letters that can end a word in Quenya are: vowels and l, n, t, s, r.
 
6:06 PM
:D
We don't have any rules like that as far as I know
 
there are only exactly 11 of these archaic words in dictionary that end with L.
 
for line in result.split('\n'):
            parts = rx.split(line)
            if len(parts) > 2:
                print(parts[6])
 
then of course diesel and so forth, but no one is ever going to produce an original Finnish word that ends with L any more
 
yeah, those don't count
 
6:21 PM
@AnttiHaapala Why's that? Is it awkward to pronounce?
 
cbg
 
I find it weirder that most of...uh...those consonants that make your throat go bzzz are missing from native Finn
 
@PM2Ring nope, it is just that no one would come up with a new word that ends with L and there are no morpheme that ends with L.
 
@user3508766 BTW, there's a str.splitlines method. And for splitting on spaces, str.split() is fine. Or you could read this data with the cv module.
 
@AndrasDeak voiced. And not true...
 
6:23 PM
that, thanks
yeah, I figured "n" and "m" are there for instance
 
we do have voiced d and all nasals etc are voiced too :D
 
I'm not sure I know any words containing d (which is not a very strong statement)
 
though many dialects do d => t, v, j :D
 
mornin'
 
cbg
 
6:25 PM
what's up Andras?
 
t <=> d is a consonant gradation thing. There are not that many words in dictionary that have d because they need to have closed syllables. Sade = rain, sydän = heart.
 
I got a little debate question for you : what are the pros/cons of consulting for a junior developer ?
 
a junior developer as a consultant?
 
@coldspeed not much, recovering from the loss of the rest of my wisdom teeth
 
Well, you could phrase it like this. The pros/cons of actually doing consulting, as a junior dev.
 
6:27 PM
yes... as opposed to "helping junior devs" :D
 
(being paid by someone, that finds you missions to do for other companies)
 
wow, sounds painful. I might end up doing that soon. My wisdom teeth are causing me some problems
 
@AnttiHaapala Marquis de Rain? Sounds lot less scary
 
the cons are: you're junior.
 
ok so no cons
 
6:28 PM
In Sanskrit there are variants of r & l which are considered to be vowels! In the usual transliteration to the Latin alphabet those variants are written with a dot underneath. The vocalic l is pretty rare, but the vocalic r isn't.
 
@wim any ideas on regex?
 
@PM2Ring pirates have vocalic r's in pretty much every word :D
 
@coldspeed fortunately mine were mostly removed as a preventive measure (they have messed up my bite a bit but that's not an acute thing), so I'm not troubled too much. Got rid of them yesterday, I took a single pill of diclofenac yesterday but otherwise I'm fine
@PM2Ring wonder if that has anything to do with Czech ř
those guys put consonants in the weirdest places and I think some of those are also vowely? Somehow, sometimes? I vaguely remember hearing something along these lines, but I'm very unsure
 
I am like "Jiri"... that looks like easy to pronounce...
 
Přemysl
 
6:31 PM
in Finnish it would be pronounced pretty much like yiri... and in Czech ... like Girrgzii
 
gif or jif g? :P
 
Jigawatts
or idk :D
 
I'd even understand a few of those, like smrt en.wiktionary.org/wiki/smrt
and what do you know, the r in smrt has a dot underneath, @PM2Ring :)
 
hello
 
6:36 PM
I have small problem, maybe someone can help :))
 
@AndrasDeak I've wondered that too, but I don't know many Czech speakers, and I always forget to ask them.
 
I have python string 'Hello2 Day' and I want to split it to two string s1 = 'Hello' and s2 = '2 Day'
any ideas how to manage that? :)
 
First define the rules by which you want to split.
 
You'll need to provide some more detail... unless s1 = s[:5]; s2 = s[5:] is a valid solution
 
Yes, @Aran
that's enaugh :)
thank you! :)
 
6:40 PM
root canals are the root of all toothaches tbh
 
never had one of those, fortunately
@RolandasŠimkus I suspect you starred Aran's message. I just want to note that stars belong to a common pool in a chatroom, and we usually only star things that are of interest to a broader audience or otherwise amusing. Saying thanks is enough if you get help :)
 
wim
@user3508766 does "avoid regex" count?
 
Is there a room to talk about ML in general ? I can't seem to find one.
 
ahh ok :)
sorry :)
 
@IMCoins not that I know of, but there's a new tensorflow room
@RolandasŠimkus no, it's fine, thanks for understanding :)
 
6:42 PM
@wim im all ears
 
@user3508766 I think @wim expressed the extent of his idea
 
further elaboration may include "like the plague"
 
wim
The data you are dealing with is obviously presented as human readable
go to the source of truth, before whatever component is producing that textual tabular representation, and look for an API or more machine-friendly interface to access the underlying information
 
Since I can't find a ML room, I'll ask here just in case : do anyone here have resources to help building a program that can identify if an object is in an image ?
 
opencv "template matching"
 
6:46 PM
And I mean any object, in any image. Not like pre-built library to detect faces and such.
 
ah.
Either I misunderstood or xkcd.com/1425
 
Hmmmm.
 
data is from API
 
For the example of the bird in this image, it could be it. I would train my program labelling images of bird, and then, If I turn my camera on some birds, It'll tell where the bird is in the image. :)
 
I suspect "research team and [n] years" is exactly what google did until it succeeded in telling you that your image contains a cat. OK who am I kidding, the hard part is recognizing non-cats in images.
oh, and it doesn't always work
Aren't there services that offer you trained neural networks for classification?
 
6:51 PM
I thought there were some known techniques for this. A collegue of mine did this to detect a door knob for instance.
 
hehe, yeah
 
She worked using cv2, and some dilatation, erosing, rotation of image and such.
And I wanted to try and see if ML could do this instead.
 
she must have had a very good understanding of what door knobs look like and what non-doorknobs can look like
@IMCoins of course it can
I can offer the just-a-bit pretentiously titled Deep Learning in 11 Lines of MATLAB Code post which is an example using a pre-trained deep NN
 
start snapping photos of those doorknobs, you're going to need a lot of them
 
6:54 PM
Just watch out because we don't know why complex ML systems work and why they don't arxiv.org/abs/1710.08864
 
@coldspeed I can make a video and use this video to build faster lots of images of door knob. :p
 
figured out my regex
.*?([0-9]+\.[0-9]+\ GB).*?[0-9]+\.[0-9]+\ .?GB.*
 
I'm looking at this
I found another link thanks to your first one.
 
OK, though you'll probably want to switch to python eventually :P
 
If I'm not mistaken, matlab can be reproduced in python pretty easily, no ?
 
7:06 PM
Uuuuh define "pretty easily"
 
I can't. :p
 
OK, then no
I only linked that post as an example because I happened to have read it months ago
I'm trying to convince you that doing this won't be as fun as you think because you either train a ML from scratch using millions of photos (unlikely), or you just use a ready-made system trained by somebody else (not so fun, probably).
Plus you need a system that is trained for what you want to recognize.
 
Hmmhm. You nearly convinced me to find another way. :p
 
*millions of pre-classified photos
 
There are canned object recognition models which let you retrain the last layer on your own images.
transfer learning of sorts. You can use those
 
7:13 PM
that almost sounds fun
 
i have already read about them, but I'll still need the thousands of images. :p
Hmmm. I'll just have to understand how her program did recognize these door knobs.
 
Did it recognize the knob part in images of doors? Or did it recognize door knobs in a bucket of rubber ducks? Huge difference.
 
speaking of rubber ducks... I have a plush toy of Sonic the Hedgehog. I use him for debugging
he sits on my desk next to my workstation
 
The program specifically searches for the barycenter of the door knob it found in the image. But it does some special work on the image, it does find a door knob in other photos where there are not.
I know, it's bad. But I want to enhance her work.
That's why I came in here to know if you guys had some shortcuts you might know. Because I haven't found any. :d
 
 
2 hours later…
wim
8:51 PM
What's the best Q&A about what goes on with
x = []

def foo():
    x += 'a'

foo()
one that gets the scoping subtleties correct
 
Not sure why Zero couldn't post his answer on that one
 
wim
hmm, with integers it's more obvious what's going on because int.__iadd__ doesn't exist
I want one that explains why this is not the same as using x.extend('a') when x is a list
 
I've found two dupes, but neither of them is good
Let me know if you find something so I can hammer them
 
@wim I'm pretty sure I found a good dupe target for that fairly recently. I'll try looking for it, but it may take some time because I'm on my phone. And I think we discussed it in here fairly recently too.
 
wim
9:09 PM
it would be nice if Python supported like with open(fname, mode='r:gz') so we didn't have to use gzip.open
 
...who are you and what did you do to wim?
I'd never have thought you'd be in favor of more magic strings in the stdlib
 
Perhaps it's upside-down day and we're talking to m!w. If only it were rot180 day, in which case he'd mostly be himself.
 
wim
@Aran-Fey well tarfile already use it, so it's not adding more magic strings
just making a consistent api with smaller surface area
 
A lot of people would be confused why they can't use r:zip or the like
Does anyone else get a ton of duplicate search results with duckduckgo lately?
 
haven't noticed that, no
have an example query?
 
no duplicates for me as far as I can tell
 
The recent discussion is around here chat.stackoverflow.com/transcript/6?m=42749093#42749093 I'm still looking for the dupe target. Foolishly, I didn't add it to our canonical collection.
 
first dupes I found while skimming are the bottom two i.stack.imgur.com/gOYxl.png
 
@Aran-Fey I have never opened a zip file of gzip file before, but isn't this already efficient enough ? docs.python.org/3/library/gzip.html#gzip.decompress
 
9:24 PM
@AndrasDeak The "local variable 'L'" one appears twice pretty close to the top
 
Right. As I said I only skimmed. Then it's likely that I have a similar number of different dupes
 
@IMCoins Not sure what you mean. I don't mind using the gzip module instead of open(..., 'r:gzip'), if that's what you're asking
 
In a way, that is what I asked.
 
@wim How about stackoverflow.com/questions/23564955/… or one of the links there?
 
9:41 PM
ugh, summer
all kinds of critters flying around in my room at night
as if there weren't enough bugs in my life
 
need a useful userscript? ;)
 
I actually forgot to reinstall poke's script after my firefox addons died...
 
wim
@PM2Ring good one!
it also explains well why __iadd__ should return self when implemented for mutable types (arguably, you should never implement this for immutable types anyway)
A shame it got closed to inferior posts
 
10:02 PM
@wim I see where you're coming from, but people would be upset if you couldn't do += with int, str, or tuple. It just makes the language a bit complicated that for a mutable a += b is different to a = a + b
 
I don't think "you shouldn't implement __iadd__" means "you shouldn't be able to use += with immutable types"
 
wim
10:21 PM
@Aran-Fey correct
the reason you can do += with int, string, tuple is not because they implement __iadd__ (they don't)
I've been using falcon for a greenfield project at work. It's really nice!
 
Oh, ok. They're built-in types implemented in C, so of course they don't. :)
I'm still unwell, and it's getting late here, so my reasoning faculties are a bit sloppier than usual. :)
FWIW, Lee Daniel Crocker just posted his 1st question on SE Physics.
 
+= falls back on __add__ if no __iadd__, right?
 
Yep
 
And can return NotImplemented from __iadd__ do that too?
I hope so
 
Not sure, but it'd be easy enough to test.
 
10:33 PM
It can
 
Yeah, but I'm in bed. Welp, might as well sleep :) rhubarb
@Aran-Fey thanks, noted
 
@Aran-Fey Thanks.
 
wim
10:44 PM
>>> import random
>>> class X:
...     def __iadd__(self, other):
...         print('in iadd...', end='')
...         if random.choice([0,1]):
...             print('nah!')
...             return NotImplemented
...         print('yeh')
...     def __add__(self, other):
...         print('in add')
...
>>> x = X()
>>> x += 1
in iadd...nah!
in add
 
stackoverflow.com/questions/50688139/… typo, no roomba thanks to a 150k rep user
 
11:13 PM
It's cool that you got an answer from Tim Peters.
 
11:25 PM
I wonder if pylint's ever complained about code written by a core python dev... would be funny to see
 
A lot of modules from standard library aren't compatible with PEP8
 
11:45 PM
Interestingly, there are a good few thousand python tensorflow questions without the tag
 
I know almost nothing about ML, and even less about tensorflow, so I can't tell if that's too broad, unclear, or just bad English.
 
I have seen maybe 3 good tensorflow questions in the 6 months or so I've been answering questions. Most of the time its obvious they just cloned a github repo and are trying to understand it
Which is one of the worst possible ways to learn TF
 
In that case, I'm happy to give a close vote.
 
The problem with tensorflow is that you just don't get it until you actually know ML. Sad thing is most jump into tensorflow before learning ML and as a result do not learn either ML or tensorflow. The result: terrible questions on stack
 
Do they bother learning any core Python?
 
11:54 PM
I would say a good way of tackling the API is to start at the bottom, at the lowest level of the API, and then work your way up to the models and estimators which encapsulate the lower level APIs
@PM2Ring haha not that either. That's a common pandas problem as well. But at least the pandas API is a lot smaller.
 
wim
@PM2Ring yeah! the details about log2 was interesting
 
It seems to be a rule that the more complex the framework, the less likely they are to bother learning the core language first. ;)
 
01:00 - 18:0018:00 - 00:00

« first day (2790 days earlier)      last day (2149 days later) »