« first day (2000 days earlier)      last day (2964 days later) » 

2:01 PM
cbg!!
how can I multicast to all except to the guy that sends the packet in twisted using udp?
 
Hell
HellO
Is there anyone?
 
hi, not at the moment
 
hello. Is it me you're looking for?
 
Just nod if you can hear me.
 
anyone say me a good guide for python?
 
Don't take this the wrong way, but if you're looking for a python tutorial, then "Python [...] developer" in your profile might be a bit premature;)
 
You don't know Andras. He could be a snake wrangler.
 
sorry
I know only the basics of Python
 
what I know with python for train me that be easy?
 
2:15 PM
Sorry, I didn't understand that.
Could you please rephrase the question?
 
@Alchimyst I linked you to the tutorials that the room recommends, you should try one of those.
 
What I can program in Python to workout?
@Morgan'Venti'Thrappuccino I will usehttps://docs.python.org/3/tutorial/
 
Ah, I see.
 
2:18 PM
@Alchimyst Mate - program whatever inspires/interests you!
If you want to code stuff that might be useful to others, check out all of the projects on GitHub to see if there's anything you'd like to contribute to.
 
ok
Because all that that I've in brain is hard to programming for me
 
Then break down those ideas into small, solvable bits. Then stitch them all together again
 
denied in programming and so I need something simple
mhh ok
Can I connect in a site
and post a post?
 
with Python?
HOW?
with socket?
 
2:23 PM
You can do it with sockets, but there might be a better solutions available depending on what you eventually want to do.
 
Figuring out how is part of the exercise. Only half joking.
 
mhh ok
i will watch how to
 
My advice would be to look at flask for your site and go from there. Learn from the python tutorial and then read up on the flask documentation.
 
thanks
But there're some chat italian in SO?
 
Absolutely no idea! Never checked ;)
 
2:26 PM
Ok
This anyone is italian?
 
italian.stackexchange.com does in fact have a chat system, yes. Just like every other Stack Exchange site.
Although the only room is about rhymes in opera so I don't know if they could give useful programming advice...
 
lol ok
but I means SO in italian
 
Unless it's actually about rhymes in Opera, the web browser.
 
@Alchimyst try twisted instead of sockets, it will save you the pain. :)
 
@AbhishekBhatia
i will code with socket my python script
But in SO
If I go in a user profile
Can I watch in what chat is he at the moment?
@AbhishekBhatia @Kevin @IntrepidBrit
 
2:31 PM
You can from the user's chat profile but I don't think you can from their main profile
 
Alchimyst, please don't ping people unnecessarily.
 
ok lol
 
 
thanks
bye i go
see to later
 
2:34 PM
Good luck!
And happy Pythoning!
 
user559633
Hello peoples
 
whaddup tristan
 
cbg(tristan)
 
user559633
workin', buying junk and moving into a new place. what's going on with you (all)?
 
2:37 PM
Hungry. Trying to get myself to get to work. Hungry.
 
Trying to work out the most elegant way to stop Ubuntu from storing every single network card it's ever used
 
oh man hummus is so good
 
user559633
truth
 
cbg
Hello all..
When importing a module... Shall I instruct to use another python version ?
 
No, use the same version.
 
2:52 PM
WOW! A lotus notes question
 
DSM
I didn't know Lotus was still a thing. I remember Lotus 1-2-3 from the Old Times.
 
cabbage all
 
cbg davidism
yeah, @DSM that's why I'm so surprised. I thought it had died away.
 
literally "I froze my app to a static site, now I can't handle post requests"
 
@idjaw FWIW, I make my own hummus. The downside is that supermarket hummus is now barely tolerable. :)
 
3:04 PM
@PM2Ring I'm proud of you. Home made hummus is great
 
How does one make their own hummus? Other than getting angry at chickpeas...
 
what do you put in it?
 
user559633
this hummus chat sent me to get hummus
 
@IntrepidBrit at the very least it needs to incorporate tahini. Needs good olive oil drizzled on top of the final product.
a lot of people mix in garlic in there too, which is really good
and actually, this recipe from jamie oliver is really frackin' good
But I stand by my grandma's hummus. I can't go against that. :)
 
I'd also add fresh basil, but I really love basil.
 
3:08 PM
Nice. Seems easy enough. Will give it a shot this weekend
Cheers
 
Shamelessly stolen from javascript room
 
hahah
 
A little chopped jalapeno won't steer you wrong either.
 
there! I fixed it!
 
user559633
a z-index greater than 2^16 actually wraps around
 
3:08 PM
yeah..that's the great thing about hummus....get the base of it done first, and then just add the garnishes you like on top
 
@idjaw Truth. I've never made my own, but I should really give it a shot.
 
and just because the combination is so good, fried haloumi cheese, with some good olives. Fresh pita bread
best. breakfast. ever.
 
Grrr, now I'm hungry.
 
Sunday morning breakfast at my parents was awesome
 
3:11 PM
I really want some naan.
 
chicken hearts, fresh thyme, all the other stuff I mentioned.
 
DSM
Silly Morgan. Naan is a Friday food, for reasons I've never fully understood.
 
Can't say I've ever tried heart, but I like other organ meats, so I'd give it a shot.
Huh, I'd never heard that. I'll eat naan any day of the week.
 
DSM
Broken phone sighting!
 
chicken hearts are delicious. Split them, clean the insides, cook in a pan with olive oil with salt and pepper. That's it.
 
3:13 PM
@idjaw Mmmm, sounds good.
I have some leftover spaghetti for lunch, so you know, that's definitely on par. :/
 
@DSM Here's one I linked earlier, but in the meantime the OP vandalized & deleted.
 
@DSM can you get that hammer I posted above?
 
Is there any point doing a rollback? Will the system even let me?...
 
Don't see much point.
 
@PM2Ring I always assume that you can't edit deleted posts. Maybe it's just modlocked posts? Anyway, if vandalism&deletion happens a lot, consider modflagging
 
3:19 PM
@dsm that answer though..
 
though the problem is usually "asker deleting post with answer" or "answerer deleting-vandalizing answer" (for which BalusC got suspended back in the day)
 
@davidism Rightio. I mainly wanted to fix that ugly vandalized title.
 
DSM
I think I've rolled back deleted questions in the past before leading an undelete campaign. (There were good answers to a bad question.)
 
@AndrasDeak Yeah. It's weird that they vandalized when they didn't even have an answer. But I guess they're just trying to cover their tracks.
 
yeah...I usually don't get these kind of askers
and I always suspect a homework
 
DSM
3:20 PM
@davidism: I looked at it earlier but figured I should add an "even though the error message is slightly different, the underlying problem and solution is the same" comment and was too lazy.
 
@AndrasDeak Oh, it's definitely homework
rbrb. I may return shortly on the dreaded Android tablet.
 
@DSM posted an explanation, I think
 
I'm always annoyed when I see homework questions that were obviously written by a Java programmer in Python :(
 
3:26 PM
@DSM thanks :-)
 
attracting bad answers, too many answers...and never should have been answered.
oh my goodness
@idjaw This is exactly what I asked for. — Lanza 34 secs ago
it does not even match their output that they are looking for.
I give up. I'm done with that question.
 
DSM
Erm, I think it does match it.
 
it does
the code was so bad it broke my brain
 
lol. The underlying question is actually kind of interesting
it was just asked in like the worst way possible
"how do I create a list with repeating elements?" is probably a better title
and then maybe
 
DSM
In this case I'd probably just use a nested listcomp.
 
3:30 PM
I know I can do:

mylist = ['foo_{}'.format(_) for _ in range(1, 101)]

but I'd like to have each element repeated, so

['foo_1', 'foo_1', 'foo_2', 'foo_2',... 'foo_100', 'foo_100']
like that? That'd be a decent question
as it was asked it was just a headache
the integer part isn't really relevant to the question
 
DSM
Strings = ("x1_{} ".format(x)*2).strip().split()? Come on, FB, you're better than that..
 
DSM
I can't believe no one has suggested ['x1_{}'.format(x) for x in range(1,101) for i in range(2)]. The most upvoted answer is crazy.
 
@idjaw I see an eval in OP's future
@AnttiHaapala hey
 
3:35 PM
@DSM Yeah... that or [el for num in range(1, 101) for el in ['x1_{}'.format(num)] * 2] - I'd go with yours though :)
 
['string_{}'.format(_) for _ in itertools.chain.from_iterable(zip(range(1, 101), range(1, 101)))], adapted from stackoverflow.com/a/8769863/344286
 
@DSM -1, use _ for throwaway variable. ;)
 
@DSM but that answer is probably best
 
DSM
@Morgan: I actually don't use _ very often; that's a Python habit I've never picked up.
 
@DSM I mean, it really doesn't matter. I find it a tiny bit more readable because it tells me that I don't have to figure out what the variable is being used for.
But for such a trivial case, who cares.
 
DSM
3:38 PM
Okay, I have to step in. I can't look at that string split thing any longer.
 
do it
 
@MartijnPieters what's the feed reader you use? I'm finally tired of feedly, but now I can't remember the other's name!
 
Also, reject that edit. It's an attempt to reply.
 
DSM
Huh, something's wrong. When I click on edit, I get an empty popup, even though adblock is off..
 
wim
@MartijnPieters For len(X) == 2 , I think you can hit 100% of the solutions. But as the size grows, I think you hit less and less of them. And in the limit to infinity I would conjecture that you are reaching 0% of them.
 
3:43 PM
re-cbg
 
DSM
Ah, no, it's just that the edit popup is at the top of the window, and for some reason it scrolls to view the bottom of it.
@Morgan'Venti'Thrappuccino: edit rejected.
 
wim
When there are more possibilities to swap things around, the extra condition implicit in yr algorithm is more and more restrictive. Anyway , that's a fascinating question .. so simple to state, but quite deep to solve
(and by solve I mean having a uniform distribution on the output) I wonder if it has been tackled already by mathematicians or theoretical computer scientists
 
DSM
@wim: that was an interesting question. I got distracted into Life Stuff(tm) so didn't have time to work out what the best way to try to maintain uniformity was.
 
wim
I burned about 2 hours on it but never thought of anything much better than my original submission
I will keep that question in the back pocket , to use as an interview algorithms question :D
 
@DSM I prefer (0,1) to range(2). If was golfing I'd just use a two element string
 
3:49 PM
well. this was accepted
 
@davidism Inoreader.com
 
DSM
@PM2Ring: the OP described what he wanted as "twice", which I think is natural-- he's counting the number of times he wants each element to show up. It seems weird to choose an enumeration over that count (even if it's the canonical one) and use that instead.
 
@MartijnPieters thanks
Maybe I'm blind, but there's no way direct way to export data from feedly, you have to click a link in a blog post they made three years ago.
 
Word
 
youtube.com/watch?v=Wji-BZ0oCwg rogue one looking goooooood
 
DSM
4:03 PM
Looks like I'll feel the same way about that as I did about the last one: if our heroine makes no mistakes which affect the plot, she's not a character. If she does, and overcomes them, then we might have a story.
 
@DSM Cool, thanks.
 
DSM
@Morgan: ?
 
@DSM For rejecting the edit, it was a bad one.
 
DSM
Oh, yeah. I forgot about that already and didn't see it when I scrolled up. :-)
 
@PM2Ring Hi PM2 - I had a look. Looks OK I think - although I'm not an expert in limits stuff. To illustrate the point, I'd avoid "true for any positive, finite u and v" followed immediately be "set u to 0". You can illustrate the point with u=2 and v=x+2, I think. But you need to be careful that your numbers keep both u and v +ve, finite with x=-1. That probably means (as you've already alluded further up) there's a way to show it without the positive, finite constraint.
N.B. It's a tough task in a way, because the OP is asking for intuitive, rather than formal proof. But you'll be pulled up on the informality almost inevitably with this kind of problem, because it can invalidate the analysis.
 
4:13 PM
@JRichardSnape ta. I'll fix it tomorrow,it'd be too painful to edit it on the tablet.
 
@PM2Ring Indeed it would.
 
4:29 PM
I don't really understand the homework dump people. Even when I was just starting out... well, I was going to say when I first started on SO I didn't ask terrible homework questions, but now that I go back and look, I'd been asking questions quite a bit for work, heh.
So I learned how to (usually) ask questions that don't suck [though apparently I still can't ask a decent Java question] before I started asking homework-related questions
 
My reasoning behind it is that the homework dump folks who come here to put their homework up are the students that left it to the last minute and don't really care all that much to know the material
Not saying I never left things to the last minute....but I left it enough to the last minute that I gave myself the time to actually learn what I was doing so I can do the assignment on my own or in our study group.
 
DSM
I think some of them really do just misunderstand SO and think we provide tutorial services. A fair number say things like "this is homework, so I just need hints, don't code anything for me".
 
that is also true
 
And that OP said they made a good start and just wanted help on a couple of things, but they totally failed to post any code to prove they weren't BSing.
 
4:34 PM
Here's a good example - I literally have no clue what assignment that was for. I know it was something to do with school, but I couldn't tell you what class or what I was doing it for for the life of me. As opposed to these terrible homework questions that are just copying out what was written in their homework assignment, sometimes with no explanation -_-
 
Just-so explanation: homework dumpers have low impulse control and consequently submit half-baked posts before fully thinking about the problem. This is typical because STEM types are brought up fixing their parents' computer by trying every button in every menu. When something's broken, hesitation only delays the ultimate solution.
 
@Kevin Turns out that's actually a good trait in developers. Rather than becoming hyperfocused, as most do, we take a step back and start casting around for other solutions to the problem.
Though obviously they take it to the other extreme where they don't bother applying critical thought, yet.
I would be really interested to see the # of SO questions I've abandoned
I bet it's at least 1/4 of my total actually asked questions
most of the time just writing out the question and creating an MCVE exposes my stupid typo
 
This attitude is unique to tech because, unlike meatspace-based crafts, it's hard to permanently screw up a computer. 99% of the things you can do to it will revert when you reboot. Likewise, 1 rep users see that they can always make a new account if their current attempt fails.
 
cbg people
 
occasionally it's still an interesting enough problem, so I'll end out posting it and answering the question myself. Especially if Google fails me.
 
4:39 PM
@WayneWerner Yeah, "try every button" is an essential diagnostic tool for sure. It just happens to have a negative externality for us, in this case.
 
Indeed
 
@WayneWerner Never underestimate the power of the SO rubber duck.:-)
 
It's solved many a problems for me, that's for sure!
 
But I wish more question askers would learn to do that...
 
4:56 PM
There is really no way to prevent the float problem of getting 52.5299999999 instead of 52.53, right?
 
52.53 doesn't have a terminating representation in binary, so no
I suggest the decimal or fraction modules when you require more precise representations of rational numbers.
 
@corvid But that shouldn't actually be a problem, unless you're using floats when you shouldbe using fixed-point, eg Decimal.
 
and ofc there are ways to display 52.529999999 so that it rounds up to 52.53 when you print it. Not that I can remember off-hand how to do it >_>
 
yeah in javascript it's toFixed to return a string representation of it to a certain number of decimals
I was thinking, since this is currency, should it be stored in number of cents?
 
I kind of figured this was secretly a js question. But I bet they have something like Decimal as well.
@corvid That's the typical approach, yes.
Some financial applications need to deal in fractions of cents, but that seems to be the exception.
 
5:10 PM
Cabbage
This is being closed wrongly stackoverflow.com/q/36411232/4099593
Can any one dupe vote it once, I will hammer re-open it
 
@BhargavRao FWIW I've passed it multiple times
 
@BhargavRao done
 
Thanks
 
no, thanks;)
 
5:11 PM
Fine then, GTG. Rhubarb all \o
 
yeah I always just round up the cent
 
@BhargavRao \o
 
Finally a too broad for which the answer is "too long":D
and I got badly Bhargav'd on that python batch...
 
Rhubarb
 
5:30 PM
bye
 
5:45 PM
cbg guys!
 
hey
 
@AndrasDeak Morning andras :) Your einsum thing helped me so much, thanks!
 
glad to hear that:)
anytime
 
DSM
einsum is cool.
 
@AndrasDeak cbg , what's up
 
5:47 PM
Was able to get about 80% train acc /66% valid acc using CIFAR-10 dataset with a simple 3 layer convnet, and the einsum sped up the process by quite a bit: github.com/OneRaynyDay/CS231n/blob/master/assignment2/…
 
@MarkoMackic hey Marko, nothing much
@OneRaynyDay you can probably speed it up even more without einsum;)
 
true true! It took me about 3 hours for 7 epochs of iterations - but I have no gpu and the python code doesn't use multiprocessing library
 
I can't find any einsum in the code:D
 
The einsum is inside of layers.py
 
5:48 PM
oh, OK
 
for the backward pass of the conv_forward :)
 
DSM
einsum usually does well except for when there's a decomposition into blas basic ops like dot which it doesn't pick up.
 
@idjaw Wooo, I'm 3 for 10.
 
Ah I see. I think I had like 1 dot operation inside, but it still sped up by 10x on average
 
@DSM how about tensordot?
I think that would be applicable for @OneRaynyDay'd problem
but it might need some transposes
no, maybe not
 
5:50 PM
What's the speed of transpose?
 
@OneRaynyDay depends, I guess:P
 
Oh and also, there's another place where I can optimize the speed - it's in the dropout layer
I'm currently matrix multiplying by the full weight, and then multiplying by a binary mask and then passing that through
according to this research paper: arxiv.org/pdf/1502.02478v1.pdf , they suggest just randomly dropping rows of the weight and matrix multiplying by that :oo
 
yeah I can't comment on that
 
@Morgan'Venti'Thrappuccino 2
 
Ah npnp!
 
5:52 PM
@idjaw 1984, Foundation, and Dune for me.
 
DSM
@Morgan: for me it's Dune, Foundation, and 1984 too!
 
1984 and cryptomomicon
Ah xrap....smartphone typos
...again
 
I have Cryptonomicon on my kindle, so maybe I'll read it some day. :P
 
Please read that
 
DSM
I know enough about Delany to know I couldn't stomach his work, but some of the others there look interestig.
 
5:53 PM
It is so good
 
I'm almost done with the last GoT book, so maybe that'll be my book for the next year.
 
Ooo, it's under 1k pages. I might be able to finish it by the end of the year.
 
@AndrasDeak that is always relevant
 
Cryptonomicon is awesome.
 
6:05 PM
Alright, fine, once I finish the last 300 pages of Dances With Dragons, I'll read it.
 
am I stubborn enough to not write something in PHP and manually do something in the UI? Or should I just suck it up....
 
mutable class that implements __eq__ and possibly __hash__ (if not, just close as "needs mcve" :D)
 
Fiction chat. This week I've been reading Mother of Learning. It's a Groundhog's Day-esque story taking place in a generic fantasy world. It's noteworthy to me because I've been able to stick with it despite the author introducing like fifty characters over the course of the story.
Usually I give up around ten...
 
I have not heard of this website
 
Maybe it's because the characters are pretty well compartmentalized. The MC has friends in the main city, and he has friends in the northern forest town, but they never interact because he can only be in one place during any particular time-reset-window-thing.
 
6:14 PM
"as soon as the book has introduced more characters than the number of persons I've have a discussion with in my entire life, I just give up"
 
:-P
 
haha
 
In case of udp when a server is sending packets to client's public address and the client is using s.recvfrom(). Does it work?
It is connection-less how the router port-forward?
 
"it is just implausible"
 
DSM
@Kevin: spoilers!
 
6:15 PM
"disbelief unsuspended"
 
I'm seven chapters away from reading everything that's been written, and have only just discovered that the story isn't finished. Based on chapter numbers, I'm halfway through the second "arc", of which three are planned.
So... Probably won't conclude until 2020.
 
What does s.recvfrom do in UDP in socket library? Does it use udp-hole punching?
that is when connecting
 
I also just finished reading Cordyceps, which you can probably guess what it's about if you read the wikipedia article about the titular species.
This one is actually finished so you won't have to wait four years.
 
Is Dark Tower worth the investment?
 
@Kevin Well, those are terrifying.
 
6:22 PM
Yes, it is known.
@idjaw My enthusiasm flagged around Song of Susannah but ultimately I'm glad I read the series.
 
DSM
I know these itches are psychosomatic in origin, but that doesn't make me feel any less annoyance toward you, Kevin.
 
Yeah, I would definitely read The Dark Tower. I'm actually considering a third reread.
 
noted. thanks guys.
 
6:36 PM
A series I enjoy is the Black Jewels trilogy by Anne Bishop (and other novels in that universe. I need to collect more of them)
 
I quite the first black tower book. It's a bit different.
 
@idjaw Oh God yes.
I can't remember the last time a book series touched me so. I would show you where it touched me on the doll but I can't because it was my HEART!
 
@Morgan'Venti'Thrappuccino Well that's the most adorable thing
 
False advertising. There was not a single heart.
 
6:43 PM
lol
 
The GF and I constantly yell at each other any time it rains now.
 
You can buy the Black Tower series for the low low price of 1,100 USD - amazon.com/gp/offer-listing/0452284953/…
 
"You're not real. I'm real"
3
 
@Ffisegydd Best line ever
 
I just spent 2 days on a course learning to be a consultant.
 
6:47 PM
Does this mean I can come to you when I need help making life decisions?
 
Sure.
 
Got an issue with Django Pagination - for some reason it's always throwing PageNotAnInteger even though the page variable I'm passing in is correct, I've printed everything and not seeing anything that would cause the Exception. Any ideas?
 
Sounds like the page is not an integer </consultant>
 
Agreed. Possibly it is a type that looks like an integer when you print it.
>>> x = "23"
>>> print x
23
>>> x = 23
>>> print x
23
If you're just checking that the variable looks integery, you're still leaving open the possibility of an incorrect type.
 
page_num = int(request.GET.get('page', 1))
paginator = Paginator(training_sessions, 25)
page = paginator.page(page_num)

print page_num
print paginator
print page

print type(page)
>>> 1
>>> <django.core.paginator.Paginator object at 0x10c960a10>
>>> <Page 1 of 52>
>>> <class 'django.core.paginator.Page'>
Everything seems fine to me :|
 
6:52 PM
I've been bit by that before. +1 for logger.debug('%r %r', page, type(page)) or something similar
 
What about print(type(page_num))?
 
I hope at this point it's int ;)
 
Stranger things have happened.
 
Unless Django is just trolling me with request var types lol
 
6:55 PM
>>> <type 'int'>
 
There's a line in Django; if user == Nexion: more_hacks()
 
I wouldn't be surprised, honestly lol
 
class Foo(int):
    def __int__(self):
        return Foo()

print(int(Foo()))
print(type(int(Foo())))
#0
#<class '__main__.Foo'>
 
I've seen strange bugs.
 
I'd request an MCVE but I don't have the proper setup to run django projects.
 
6:56 PM
int doesn't have to return an int.
 
Nice. I wasn't aware that __int__ was like +, etc.
 
I would hope the Django Pagination wouldn't do that >.>
Looking at the source code it isnt
 

« first day (2000 days earlier)      last day (2964 days later) »