« first day (1991 days earlier)      last day (2948 days later) » 

5:00 PM
that could put it in good shape
 
There's a bot named "homu" doing commits on the Werkzeug repo. I laughed.
 
I don't get it
 
@davidism I understand it even less now
 
5:06 PM
It was a joke based on low quality art in scenes from Madoka, where the characters looked like kids drawings.
Names and words were mangled to fit the drawings.
 
I get that reference.
 
wim
homu also merged my numpy patch
 
ah
and Homu is a character?
I'm doing my best here:D
 
Just go watch the show, it's on Netflix. netflix.com/title/70302572
 
wim
tired of people writing IANAL (I am not a lawyer)
if you don't mention you're a lawyer, of course I'm going to assume you're not a lawyer, cut out the boilerplate ...
 
5:10 PM
maybe they mean that they're anal-retentive personalities
@davidism netflix, TV For The Westerners:P
 
It doesn't matter that a sensible ordinary person would assume the speaker isn't a lawyer. It only takes one dolt that assumes a lawyer-client relationship and then does something dumb and sues you for bad legal advice.
 
:D The land of opportunity, where cats are explicitly forbidden to be put into the microwave.
 
And/or you get prosecuted by the state for unauthorized practice of law
 
It's freeleach on bakabt right now: bakabt.me/torrent/169361/…
 
wim
that's ridiculous. stupid people should be free to make stupid mistakes
 
5:13 PM
@davidism isn't that..... illegal? O.O
(if I'm not mistaken, in my country only uploading is...)
but IANAL:D
 
Define "illegal". Small-scale copyright infringement is typically a civil matter.
 
IANAL but I'm pretty sure "illegal" is a very well defined term;D
I mean, breaking civil law is still illegal
of course in at least one American state it's illegal to put ice cream in your back pocket
so breaking the law might or might not make human sense
 
Fellow Game of Throne fans...try this out....I've drawn so many blanks....I thought I would do fairly well.
 
Top 300, so what, 1% of the characters?
I think the hardest part would be trying to remember how to spell their names, and I have the advantage of being currently in the middle of reading the books.
 
5:29 PM
I've read the books a little while ago...I didn't think I would have forgotten so many
 
I'm down to the last ~500 pages of A Dance With Dragons.
 
I only watch the show but I have a feeling they use 'ae' in a lot of places I wouldn't imagine.
 
> He knows the ending in broad strokes as well as the future of the main characters, and will finish the series with bittersweet elements where not everyone will live happily ever after.
Um, duh?
From the wikipedia article on the 7th book.
 
whoa, spoiler alert!
 
I don't think anyone's had even a happy moment, much less a happy ending in the whole series.
 
5:34 PM
even happy moments were just less sad moments. There is no happy in that entire world
 
Joffrey seemed to enjoy without reservation being the worst person in the world.
 
I dunno after everything hover for spoilers on book 5. That's my nomination for worst.
 
@corvid waaaaaaant.
 
did you hear about the thing that happened that made people mad?
 
5:46 PM
I've not gotten into the beta yet, but I've also pre-ordered it, so I wonder if that affects my beta chances.
@corvid I did not.
 
basically they just removed some poses because someone said they looked too offensive
 
Yeah reading about it now
 
how did this person manage to post an answer here . It was closed way before that.
 
27
Q: This answer was posted *after* the question was closed, how is that possible?

Tushar GuptaHow can somebody post an answer when the question is closed (marked as duplicate)? I see a question marked as duplicate 8 mins ago and someone posted an answer 5 min ago. This means the answer was posted 3 minutes after the question was closed.

 
ty
 
user559633
6:01 PM
@wim Worst sequel to I ROBOT ever
 
@tristan Or the best, depending on how you read it.
 
user559633
I had an oldening day yesterday and it was a solid reminder that I'm bad at drinking now
 
user559633
why isn't mixed indentation fine? are you saying you're for segregation?
 
@tristan Happy surviving another year day!
3
 
user559633
6:04 PM
@Morgan'Venti'Thrappuccino :) cheers bud
 
DSM
I thought that wasn't until 31 April!!
 
user559633
my birthday is every day and no day at all
 
@tristan happy birthday mate
 
user559633
thanks :)
 
user559633
Oct 7 '14 at 14:48, by Robert Grant
"Please give me two beers. Here's a beer for your trouble."
 
user559633
6:06 PM
sorry for not appreciating this at the time, because lmao
 
Today is your birthday? The wiki is a lie?
 
user559633
It was yesterday, when I thought a pint of whiskey was a good idea.
 
@tristan Oooo, I've had that idea before. It always sounds much better in my head.
 
@tristan Well Happy Birthday dude!!! :)
 
user559633
Yeah, exactly. I thought washing down the margaritas with that crown royal rye was a good idea. Wasn't.
 
user559633
6:08 PM
Thanks idjaw :)
 
@tristan I'm slightly ashamed to admit that I don't get it now :)
 
user559633
@RobertGrant You order two beers. Tell the bartender "here, have a beer for doing that for me"
 
If you find yourself needing to wash down more of the Crown Royale, I recommend sweet vermouth and camapari in equal parts with 2 parts whisky. Stirred over ice and strained into a chilled cocktail glass with a lemon twist for garnish.
 
Oh sorry yes :)
 
user559633
I find it strangely hilarious as I imagine the bartender will just throw his hands up in surprise and stare at you
 
6:10 PM
Now I'm laughing. Past Rob, you wag!
What's mostly freaking me out is how long I've been here for
 
Hmmm, trying to edit the wiki throws a 500.
 
user2743227
Python isn't concatenating this right... I need it to be like [[0,0],[0,0]] not [0,0,0,0]... but all the concatenating functions do the same thing...
 
user559633
@user1375469 Python is doing it correctly. What are you trying to do?
 
user559633
>>> fart = [0,0]
>>> butt = [0,0]
>>> farty_butt = [fart, butt]
>>> farty_butt
[[0, 0], [0, 0]]
 
user2743227
i'm trying to get a numpy array with n rows of the same vector. But I keep getting an array with one long row!
 
user2743227
6:15 PM
for i in range(0,n):
x = numpy.r_[x,x]
 
@user1375469 when Babbage showed his design for a mechanical calculator, a lady at a dinner party asked him whether if one puts in the wrong question, one still gets the right answer
You saying python is doing something wrong is the same as that
 
I think my name breaks the SOPy site. :P
I blame Tristan.
 
I blame python
 
Yeah stop trying to SQL inject Morgan.
 
Something something bobby tables.
 
6:22 PM
@user1375469 - It sounds like you want np.tile
E.g.
 
user2743227
I see, so if I used numpy append I can do it. Also isn't that exactly what people want? trying to get the right answer even though you don't have the right question.
 
import numpy as np
x = np.arange(10) # your vector
y = np.tile(x, (3, 1)) # Repeated as 3 rows
print(y)
 
@user1375469 as in if you mean to type 4+6 and you actually hit 5+6, it should still say 10?
 
user2743227
x = numpy.array([[1,1,1,0,0,0]])
n=5

weights = x

for i in range(1,n):
weights = numpy.append(weights,x,axis=0)
 
@user1375469 - That works too, but it creates n temporary arrays. It will be rather inefficient as n becomes large
 
user2743227
6:24 PM
@RobertGrant of course not, but people still want the right answer even though they don't know the question.
 
user2743227
@JoeKington you're right, your solution is better.
 
@user1375469 they may want that, but if you think the answer to that question is no then you know that a programming language can't figure out what they want when they give it valid input
 
Better is relative. I just wanted to point out the difference between the way the two work, in case you weren't familiar with the difference between np.append and list.append (i.e. in-place vs. new object)
 
user2743227
thx for the talks =)
 
DSM
Sometimes you can get away without needing to actually tile a vector by using broadcasting, but sometimes you can't..
 
user559633
6:28 PM
@Morgan'Venti'Thrappuccino Welcome to the club. We meet on Tuesdays after happy hour.
 
@DSM please explain that :)
 
@tristan Perfect, I'll be there with a pint of whisky.
 
user559633
Like Momma Tristan always used to say, "sometimes using broadcasting for vectorizing operations is possible, but not if your list lengths are not aligned"
 
user559633
@Morgan'Venti'Thrappuccino Hurrk
 
@tristan Wait, I thought if you took the cross-product of the matrix of the list lengths, you could vectorize the broadcasts and converge on the limit.
 
6:31 PM
Oh sorry - I actually get it
Broadcasting also happens in Spark
 
user559633
@Morgan'Venti'Thrappuccino yeah, but you have to reticulate the splines first
 
Although it turns out Spark's meaning is totally different
 
user559633
or maybe what you're saying is actually possible. idk. "any sufficiently advanced mathematics is indistinguishable from gibberish"
 
@tristan Only if you have enough vespine gas.
 
@davidism I...think I see what you mean about SAO
 
user559633
6:33 PM
@Morgan'Venti'Thrappuccino you must construct additional pythons
 
Otherwise you can get away with frobbing the plumbus, but it's slower. And you'll need a drink or two afterwards to get the screams out of your head.
This is what I imagine PHD programs sound like.
 
@Kevin && @JonClements AT ft DW // IMHO it's simply brilliant ;)
 
I was taught about the tricks of contributing on Stack Overflow by the peers at Python ChatroomBhargav Rao 53 secs ago
:-)
 
@RobertGrant did you finish the first half?
 
@PeterVaro I'll check it out when I get home, thanks :-)
 
6:47 PM
@Morgan'Venti'Thrappuccino - These intertidal rhtymites have significant penecontemporaneous dolomitization. I just can't wrap my head around how a sabkha environment would lead to calcite psuedomorphs after dolomite. Maybe there's some sort of interaction between meteroic waters and the evaporite brines within the vadose zone... I need a beer... (That's a description of an actual research problem... Geology terminology is far worse than math!)
 
user559633
Someone reboot the Joe
 
Heh! I'm usually in need of a good reboot...
 
@davidism without spoiling for others, we're in ALfheim
 
Joe.exe has stopped working
 
6:48 PM
@RobertGrant watch through the first season because at least you get some closure to the story by the end, but be prepared to endure really bad plot
 
Right :)
 
I'm procrastinating, so enjoy the stream of dogs in boots.
 
I demand more pugs
 
DSM
@JoeKington: that.. was incomprehensible. I remember having to teach a planetary geology course.. was barely two weeks ahead of the kids in the textbook!
 
6:53 PM
We geo-folks have a minor obsession with terminology...
 
Cabbage
 
Cabbage, poke
 
> For sure i need to learn more on this topic but expecting a quick help on fixing this issue/scenario first.
Lazy people.
 
cabbage \o
 
wim
If you hate someone, set their login shell to cppshell
 
6:58 PM
I had a gazillion questions to choose from as the duplicate target. The recommended questions list was full of them (I didn’t even have to search!). And OP is too lazy to read them. Great.
 
user559633
@wim that's cool
 
That's what my pug is like now that he's on new meds :p
 
sweet. I'm going to Austin for the Openstack summit. w00
 
DSM
Learn many things! And then share them with the world in an easily-digestible fashion somehow!
 
7:13 PM
Nice! Austin's a neat town, too
 
user559633
if they open the stack arent they afraid the clouds will float out
 
I'm really looking forward to it!
clouds for everyone. you get a cloud, you get a clo....
 
cabbage!
 
@danidee cbg
 
what do you guys do when u can't do anything right no matter how hard you try?
 
7:25 PM
cry and play mario brothers
then drink whisky
 
wim
...but you can't play mario brothers or drink whiskey right either
 
that's what i was about to say
 
well...looks like I definitely know how to cry @wim THANKS!!!
 
it still amazes me that super mario was written in assembly. that must have been one hell of a job for the developers
 
DSM
@danidee: more seriously? I try to figure out where the problem is coming from. Sometimes -- like with me and music -- it's just that I don't have the natural talent. No amount of training is going to fix that. But in something technical, mostly it's because I'm misunderstanding a few basic things, and so all my effort is going for naught because I'm just running quickly in the wrong directoin.
 
7:28 PM
how did they handle graphics?
 
I have to choose an expertise to put on my shirt for the Openstack summit...oh man..I feel like I really need to make this count.
 
@tristan happy birthday:)
so is SoPyCon going to be moved?
 
@idjaw put OpenStack
 
user559633
@AndrasDeak oh cheers. no, sopycon is still on :)
 
@idjaw half-eared painting
you're still van Gogh, right?
 
7:36 PM
I like to go Le Gogh
 
wim
wow had no idea ... those japanese are hardcore !!
 
@tristan Belated Birthday Wishes
 
talk about pixel art
 
user559633
@BhargavRao appreciate it
 
and what's with the disinformation, @tristan?:P
how can we throw a surprise party if you bring your birthday ahead a few days?
 
7:47 PM
@AndrasDeak tristan threw a surprise
 
:D
Does he also give gifts? Hobbit-style?
 
Good afternoon folks. I have a question. My python process has two child threads. One a network client and other a scripts scheduler. Client when receives requests, it lets scheduler know what to schedule. Scheduler when done scheduling lets clients know with the results.

In such intraprocess communication, i can do it two ways. a) have threads signal each other whenever there is something to do for other thread or have two queues where one reads and another writes to communicate.

Which one do you prefer? Assume it's a very critical system and responses and request should not be lost.
 
Hello! I'm not trying to be trying not to be a grammar nazi, but you mean interprocess communication, right? Communication between the two separate processes?
 
communication between two threads within a process.
 
ooooh
OK, good thing I asked:)
thanks
 
7:54 PM
:)
thanks
 
(I know, I could've properly read your question the first time, but I almost never succeed in that:S)
 
What is the client thread doing while the scheduler does its work? Just blocking?
 
@QuestionC listening to server requests.
 
user559633
tweet them to tweeter and have a tweet reader
 
since requests are not so often and scheduling is very fast, context switching between two threads is not very freuqent.
 
7:57 PM
I would use queues.
 
so you prefer polling over signalling?
 
No, use a message queue. A queue where you can block until it has content.
 
@tristan Alright, Dr. Seuss.
 
@QuestionC I created a custom queue. Let me try to paste a small piece of code here.
class Tasks(object):
def __init__(self, priority, task, params_dict, resource_path, devices):
self.priority = priority
self.task = task
self.params_dict = params_dict
self.resource_path = resource_path
self.devices_to_run_on = devices
return

def __lt__(self, other):
return self.priority < other.priority

def __eq__(self, other):
return self.priority == other.priority

def __gt__(self, other):
return self.priority == other.priority
and it has other functions which queue has.
 
docs.python.org/3.5/library/queue.html is what I was referring to.
 
8:00 PM
Sorry @QuestionC. Somehow i lost the formatting of the code i pasted. I use this queue only but customized functions a little bit.
 
You have two threads, client and scheduler. When client gets a job, it pushes it to the queue.
And the scheduler's outermost loop resembles something like this...
while (True)
  x = pQueue.get() # blocks
  schedule(x)
 
DSM
How did I wind up with so many staple removers? The Scotch tape I can understand, I'm Scots and all, but I really don't need to remove staples often.
 
    while True:
        print("queue size",system.q.qsize())
        if (system.q.qsize()!=0):
            task = system.q.get()
            print("Client has added a",task.task,"task to the queue.")
            print(task.task)
            print(task.params_dict)
            print(task.priority)
            //do the work
i already have this.
 
I have a question guys, how complicated is it obtaining args command from terminal?
 
8:04 PM
@QuestionC but now when i push something here in this queue from scheduler thread, how does client know it has to read it?
@user3561871 tutorialspoint.com/python/python_command_line_arguments.htm thats first hit on google to your question.
 
You can't properly construct Office-Mecha-TRex without a lot of stapler removers.
 
@user3561871 command line arguments? Look up sys.argv in the documentation
 
DSM
@AjGauravdeep: yeah, but that tutorial recommends getopt. Not exactly modern style.
 
@AjGauravdeep You would need a second queue, and a third thread. You can't have two threads consuming each others queues like that.
Or maybe the scheduler thread can just do the work that needs done when a task is complete.
 
exactly @QuestionC. So basically we both think have two queues for each of the threads to write which other thread will poll on
Any other better solution? open for anyone to answer.
 
8:11 PM
Awesome @poke
How do you post code in here?
 
@user3561871 Please read chat rules first if you haven't already. Then once you paste code, format it by selecting and clt+k
 
i just found it! My bad.
 
user559633
@AjGauravdeep why don't you qualify what a "better" solution would mean?
 
@tristan better design agreed by you design gurus. I am newbie as you guys know. approval from better designers. not just functionality wise.
 
user559633
@AjGauravdeep yes, but better how?
 
8:17 PM
well this solution (having two queues) will work perfectly fine. Hard for me to answer that with bullet points but i meant something in terms of better designed. like i am not sure if polling is better amongst worker threads than signalling?
 
@tristan takes flattery well;D
 
@AjGauravdeep then you test it and find out. This is what's known as "being a programmer"
4
if it works for you and you aren't having issues, stick with that
if you can actually describe real issues you are experiencing, then we can maybe help
 
8:33 PM
Thanks @davidism I know its little open ended question but what solution would you have implemented in this programming problem?
 
nice
 
That is a good solution
 
@MartijnPieters I sent you a message on the so slack channel. Thought it would be more appropriate to message you there. Hope it's not too much a bother.
 
user559633
there is no sopython slack
 
8:46 PM
it is no longer used?
 
user559633
/me stares meaningfully
 
ooooh
 
Happy B'day tristan :P
 
should that message be sent away to the rotating knives/
 
user559633
it's all good :)
 
8:48 PM
;)
 
418 - I'm a teapot
nothing to see here.
 
9:05 PM
Hey, I saw that:P
 
@poke 'china has been trying to get in'
 
:D
 
9:26 PM
Cbg
 
hey @AnttiHaapala
are you going home tomorrow if all's well?
 
cool:)
 
Best of luck @Antti, Nice to see ya doin well. :)
Rhubarb all \o
 
cbg people :)
 
9:32 PM
hello @MarkoMackic
 
what's up ?
 
the room temperature
just went up by 0.0001 Celcius....i'm very sensitive :)
 
lol
:D
more than the adc on precise temp sensor
 
9:49 PM
people i have a little problem, it's with speed of my program, and i'll post the code just to explain what this program does. So you have N numbers , and let's say that those numbers are 3 5 3 5 9 9 5 3 (which is one test case) so user enters the N ( the numbers of list) and then he enters the list of numbers as shown above. N <= 353535 and each number is < 10^9 , so the program need's to find subgroups of (one after the other) elements that they appear in same amount and the count of all ->
the elements must be divisible by 2
 
How hard would it be to design something that is like
* * * * * *
* *
* * * * * *

With arrays in python?
aww damn
the design got messed up
 
[3 5 3 5],
[3 5 3 5 9 9], [3 5 9 9 5 3], [5 9 9 5], [9 9]
 
that's the solutution for above
what ?
 
I need to deign the mancala gameboard obviously without graphics but I think it would be easy with an array.
 
9:51 PM
@MarkoMackic you're better of asking this question on the main site or codereview.stackexchange.com
 
@danidee i haven't finished
because i have coded the solution for that up
just it burns my processor out, with 350350 numbers in list
i'll post the code now, and you can tell me what i'm doing wrong, or if not, should i post it to main site
the code :
 
it's a good question for codereview.stackexchange.com since you already have working code
 
cool :D i'll post it there , thanks ;)
 
Disclaimer. Very important to read the guidelines on codereview first
 
The code has to work in order to post in Codereview
 
9:54 PM
We recently had a discussion here about sending users to codereview. Make sure that you go through the guidelines to ensure you are putting together a question that will be on-topic and well received by the community there
 
the code works i only have very big performance issues :D
like for 350350 numbers it's working 1h already and solution is not still printed
and for 100 number it does it in milliseconds
just to find the guidlines to read :) thanks on advice
 
@MarkoMackic, completely unrelated: how is your Russian?:)
+Hi! (sorry)
 
haha :) pretty basic, i'm from bosnia , republic of srpska ;) I know to ask for a name but surely not speaking it very good
yours ?
 
@MarkoMackic yeah, I saw it on your profile:)
fairly similar, I'm afraid
I was hoping for someone with a bit more Russian than me
There's this user who posted code only, was asked to explain, and added a Russian wall of text. I gathered my faint memories and google translated and asked him why they think OP will understand, and he told me that code is important, and explanation is not mandatory here...
I'm still not sure what to tell him, I'm discussing this with a few guys
but once I decide, I'll have to leave an informative comment. In Russian:D
 
10:11 PM
i know to translate russian to my lang pretty good, not using g.t. (cause it's fearly simmilar) but when it comes to speaking it, i know almost nothing
 
I'm sorry to say, no insult intended but the russian alphabets hurt my eyes when i look at them
 
@danidee cyrillic is great:)
 
i don't see myself learning russian soon :D
 
@danidee what languages do you speak?
 
English and my local language....not much of a language person
and a little little french....but i know i'm terrible at it :)
 
10:14 PM
oui :D
lol
is that how it's written ?
 
I think so:P
 
yeah
 
@danidee what language do they speak in Lagos?:)
 
Yoruba
 
thanks:)
 
10:17 PM
These chats are so cool because there are so many people from different regions of our planet
 
yup:)
 
Actually a lot of languages...but to interact with people on the streets need to speak English, Yoruba or pidgin English mostly
 
It's hard for me to imagine such situations, since I live in a country where everybody speaks the same language
there are very few nationalities too
 
there are so many languages in Nigeria 500+
 
not bad:)
 
10:20 PM
fortunately pidgin English is spoken everywhere
 
we do the same here, on SO:D
 
SO, pidgin English?....i don't think so
 
Well, yeah, I know.
I've never actually heard any pidgin, I think
 
yikes:D thanks
 
10:25 PM
he almost sounds Nigerian...it's noisy at the background though
 
I'll stick with the Cyrillic alphabet;)
 
lol :D
 
    seed=6

def mancalaBoard():
    for number in range(14):
    	board[number]=seed

    board[0]=0
    board[7]=0
    return;
is my foor loop logic wrong?
 
what do you mean?
 
It says there's a syntax error
 
10:34 PM
what kind?
you'll also have indexing problems with that undefined list
try making sense of the error
 
oh! I had it setup on top forgot to add it
board=[]
 
it's usually helpful
try board=[]; board[0]=3 in the interpreter
see what happens
 
awwww
so what would be the proper way of creating an array?
 
actually that's a list :)
 
aww what would be the proper way of doing a list then :)
 
10:42 PM
look at append()
 
if i knew what you need, i'd help ya :)but i never played mancala
 
@MarkoMackic you don't have to, they have a programming problem;)
 
@user3561871 use a dictionary
initialise board as board = {}
 
the game should be simple, something like "take all the seeds from a box, and put one each in the following boxes, and something happens if something is right"
 
and then you can do board[0] = something
 
10:45 PM
@MarkoMackic I'm fairly certain that a list will be efficient and convenient for this...I'm never sure though
 
I did it in Java but the teacher wants us to learn python by rewriting it
the biggest learn curve right now is the indentation for me
 
it's fearly cool isn't it
cbg #
 
Saw a language discussion here
 
Yeah it's interesting! Getting in the argument commands from the terminal was so simple
 
10:49 PM
@MarkoMackic ack
 
How am I supposed to indent something simple like

def mancalaBoard():
    for number in range(14):
    	board[number] = seed
    board[0]=0
    board[7]=0
    return;
 
yeah
without ;
you're still in java :P
it's indentation is good, just you can't access list index that isn't created :) that's why u should use dictionary ..
i mean your list doesn't have any items, so it doesn't have any index :)
 
@MarkoMackic the solution is not to use a dictionary
the solution is to use a list as it's intended
 
with append
 
possibly:P
 
10:56 PM
yeah, it could be done so
 
I mean, using a dictionary can be a solution, but it shouldn't be the solution to "you can't assign to a hitherto unexisting index of a list"
@user3561871 indentation = code blocks
where you would put {} in inferior languages, put a same level of indentation
 
@AndrasDeak...inferior :D
 

« first day (1991 days earlier)      last day (2948 days later) »