« first day (2341 days earlier)      last day (2611 days later) » 

1:41 AM
Hmm what is the "cleanest" way to handle this: "an class whose instances constructed provided a unique key, there should be no two instances with the same key"? (Oh and the unique key can't be generated by the class itself).
I think about using a meta-class to intercept creation and throw when it tries to create a new instance with an already existing ID. - Are metaclasses the right tool for this job? Or am I trying to hammer a bolt?
 
@wim awesome! 😀 Good to hear. I really need to attempt pytest soon.
 
Bleh, tired now
@paul23 I am no expert at this bit but could you shove a call to a static method into the class's __init__() call, and have the static method take a default args set and the specified key and adds the key to the set if it doesn't exist, and return true to init (or false if the key is already in the set) and if the method returns false, throw an exception from __init__()
(There may be horrible things wrong with that, but it might be worth a proof of concept before doing metastuff?)
 
Well yes, I'm just wondering if metaclasses wouldn't make the code better: I'd move the list maintenance & checking then to a different "layer" - single responsibility idea etc.
 
1:57 AM
Could be. At this point I'm not sure of the best shape for the code structure (layers etc), so I will bow out :)
 
wim
2:37 AM
@ZeroPiraeus I added another answer
My main argument is that a codec which "encoded" from bytes to text would be weird/out of place, because it goes against the opinions that Python 3 has about bytes and text
 
@paul23 naah, you'd have a registry - but then why would you have a single registry - that is usually an antipattern. An anttipattern would be to have a class represent the registry, then you can have multiple registries would you want to do that.
 
So basically a factory class that keeps track of this?
Where the creation is done through a CreateInstance method in a class which contains the registries.
 
2:54 AM
well, or even get_instance which will create if necessary
 
3:34 AM
@wim We'll browbeat OP into submission yet ;-)
Interestingly, I got an unupvote after replying to OP's comments on my answer.
 
4:07 AM
Cabbage :-)
 
 
2 hours later…
6:24 AM
Is there a canonical dupe for my_list = [desired_length] and then my_list[0 <= num < desired_length] = value resulting in IndexError?
 
6:48 AM
0/ cbg
0 Kevins has happened. Omg.
 
7:05 AM
@paul23 What's wrong with using a class attribute?
class Test(object):
    next_id = 0
    def __init__(self, data):
        self.unique_id = Test.next_id
        Test.next_id += 1
        self.data = data

    def __repr__(self):
        fmt = 'Test(data={data!r}, unique_id={unique_id})'
        return fmt.format(**self.__dict__)

for s in 'abc':
    print(Test(s))
#output
Test(data='a', unique_id=0)
Test(data='b', unique_id=1)
Test(data='c', unique_id=2)
 
If you want unique keys, why not just use UUIDs?
 
7:19 AM
Well yes. But we don't know how unique these unique ids need to be. If they must be unique across runs of the program then UUIDs are the obvious choice, but if they only need to be unique within a single run of the program then a simple incrementing int should be adequate.
 
8:26 AM
Hi can anyone help me with this stackoverflow.com/questions/42688453/…
 
8:49 AM
@pythonRcpp why do you want to use unique() ? Multiple subset conditions should work, add one for ResponseType == NEW_ORDER_CONFIRM
 
9:02 AM
hey has anybody used the accuweather api here?
because I keep getting a '{"fault":{"faultstring":"Failed to resolve API Key variable request.queryparam.apikey","detail":{"errorcode":"steps.oauth.v2.FailedToResolve‌​APIKey"}}}' error
but nowhere in the documentation for GET requests does it say to enter an api key
 
@Sword did not understand what you mean. I used unique only to get 1 OrderID (because every orderID has 3 entries usually)
 
@pythonRcpp ok, I understood what you want.
 
from functools import reduce

def mathPractice(numbers):
return reduce(...)

For numbers = [1, 2, 3, 4, 5, 6], the output should be
mathPractice(numbers) = 71.

Here's how the answer is obtained: ((1 + 2) * 3 + 4) * 5 + 6 = 71
I have to fill the reduce function can any one help me ...
 
One possible solution is to create a dictionary with the order ids(keys) mapped to the error code. then use it to create a column.
 
9:21 AM
@Sword, yes I know how to map to a different dataframe key , but unable to do it in the same dataframe
 
could any of you help me with how I would go about parsing this data? imgur.com/a/P6kFd
Im only familiar with parson json data right now, I was thinking of bs4 but I've only used that when there was classes I could pick from
 
anu
9:40 AM
hi, i m trying to convert a recursive function to a generator.
	def print_in_order(self,node=DEFAULT):
		if node == DEFAULT:
			node = self.root
		if node is None:
			return
		self.print_in_order(node.getLeft())
		print node.getData()
		self.print_in_order(node.getRight())
I turned this into a generator as follows
	def in_order_traversal(self,node=DEFAULT):
		"""
		yield node in inorder traversal order
		"""
		if node == DEFAULT:
			node = self.root
		if node == None:
			return
		for x in self.post_order_traversal(node.getLeft()):
			if x is not None:
				yield x
		yield node
		for x in self.post_order_traversal(node.getRight()):
			if x is not None:
				yield x
however, when i tested this for a binary search tree the recursive function prints the nodes in ascending order, whereas the generator does not
7->(3->(2->(1->(NONE,NONE),NONE),4->(NONE,6->(5->(NONE,NONE),NONE))),11->(9->(8->(NONE,NONE),10->(NONE,NONE)),NONE))
1
2
3
4
5
6
7
8
9
10
11
vs generator printing
[3, 2, 1, 4, 6, 5, 7, 11, 9, 8, 10]
clearly my generator is incorrect
any ideas on how to fix my generator ?
oh shit, nevermind! :)
i m calling found the problem
 
9:59 AM
@anu You may enjoy looking at this code
 
10:23 AM
Yamming opinionated 1-reppers who don't understand what SO is for and who claim that they're entitled to help from SO for their totally off-topic question... stackoverflow.com/questions/42782701/… 10k+ only
 
@PM2Ring "anyhoooo"
 
@TigerhawkT3 cbg autobot
 
@Sword cbg fleshybot
 
10:40 AM
Morning cbg y'all
 
Morning cbg to you all
 
10:57 AM
Cbg of the day to all.
 
Cbg cbg
 
11:22 AM
Here's a classic track from controversial British artist, the late great Kevin Coyne - Eastbourne Ladies
 
11:54 AM
@PM2Ring Lol, that's amazing!
> Ok ok, i realise this question will get seriously under peoples skin but i am actually getting stressed from not finding an answer to this question...the answer will allow me to start/ embrace a language and learn it properly without always wondering where the greenest grass is...( have i learnt the wrong program?!!!)
That's the first paragraph of their original question
er, "question"
 
I just hope they don't decide to learn Python and then inflict us with questions...
 
"learn go"
 
Send them to Ruby
 
"Python is a fantastic language, with powerful frameworks that make it straight-forward to do what you want to achieve. So I strongly suggest you learn PHP."
 
12:14 PM
31
Q: Movie about a boy, two men, a robot and a war

Phil14I saw this movie about 12 years ago (2005) when I was about 8 years old but it probably came out way earlier than that since I saw it on local TV in West Africa. I remember there being a little boy who built a full-sized humanoid robot with wires/cables everywhere. I have a vague memory of this r...

That is amazing
 
Accepted answer is the first thing I thought of :-)
 
I've only seen the first 3 original Star Wars movies. I saw the first Star Wars a few times at the cinema when it first came out, but I've only see The Empire Strikes Back and Return of the Jedi on TV / video, and even then I've always fallen asleep, so I've never seen either of them in full.
 
AM 2Ring judges you
 
I was actually trying to think if any movies I've not actually seen applied, like the robot punching one. I forget what it's called, because I never saw it.
 
Yeah ! Racist comment right here. Did you ask him "have any information about lo". How to redirect a port from interface to lo. You haven't any idea about answer but judging. Mind your business kid ! @davidism — dsgdfg 6 hours ago
First time I've been called racist for saying an answer wasn't useful.
 
12:25 PM
hi fellas
i've got a question in scipy fmin_bfgs and i've asked it but nobody answered my question
can any body help me fix my problem ?
 
@davidism ... what on earth?
 
I wonder what AM Turing would've thought of the Star Wars robots. For that matter, I wonder what Isaac Asimov would've thought. I know he wasn't pleased with HAL in 2001: A Space Odyssey. He was invited to the premiere, and loudly exclaimed in the theatre "They're breaking the First Law!"
 
@davidism I want to reply, but I honestly don't know what to say
Check your ability to parse the question privilege, bro!
 
@davidism I thought racist === bad
@WayneWerner nooooooooo
 
I've gone with "authoritarian" - perhaps (s)he'll respond to that
 
12:28 PM
OK enough shock for now, rhubarb till later:D
@RobertGrant teach them the word "fascist"
 
TIME TO GIVE THIS HIPPY A DOSE OF REALITY hefts water cannon
 
Uh, just flag the comment, don't keep commenting.
 
I think that comment should be framed and put on a wall for all to enjoy
 
Luckily, it will stay in the transcript long after it is deleted from the post.
 
also, I love "mind your business kid" :D
 
12:31 PM
I refuse to accept they're doing anything but trollin'
 
gibberish username, profile says "delete me"
anyhoooo, I'm off :P
 
@RobertGrant can you delete your comment, since theirs is removed now? Don't want to fee the troll.
 
61
Q: Is it ok to upload joke papers to arXiv?

Franck DernoncourtI have recently stumbled upon this paper on arXiv: Stopping GAN Violence: Generative Unadversarial Networks (mirror), which is a parody/joke paper. Is it ok to upload joke papers to arXiv?

Sorry
 
12:52 PM
" The framework is both theoretically and electrically grounded in game theory, [...] Our work builds on a rich history of carefully argued position-papers, published as anonymous YouTube comments, which prove that the optimal solution to NoN violence is more GUNs."
 
I read GUNs as GNUs :|
mentally pronounced gnoo
 
@PM2Ring Suomi mainittu, torilla tavataan: "We now turn to the results of the experiment. Inspired by the Finnish education system, we do not test our models during the first formative epochs of development"
 
@davidism done
 
There was an old Western TV series called Have Gun – Will Travel. In the early days of the Net, various people adopted Have GNU, will travel as their sig, and you still see it from time to time.
 
1:09 PM
Not a new show. Mmmhh
 
I did say it was old. :)
 
lol @PM2Ring
 
It's rather clunky by modern standards, but it was very influential on the next generation of TV series.
 
damn Franck is publishing now
he was a friend of friends, when he was still in eng school. Now he is doing his thesis in MIT. major leap.
 
Coworker sent me a link about the Switch
 
1:16 PM
@Programmer Nice
 
\o snowy cbg :D
 
I virtually told this OP that I'd upvote his question if he clarified it by adding some sample input & output, but he responded by saying "I'll do it next time."
You shouldn't use list as a variable name because that shadows the built-in list type; and calling a dict "list" is doubly-confusing. — PM 2Ring 45 mins ago
Ok, my comment offering a "bribe" was made after he said he'd do better next time, but still...
 
1:34 PM
@AnttiHaapala what is that ? is the red sphere thing a button or an LED?
 
button
that's a mouse!
 
=O..... caveman technology :D
 
@MooingRawr What's funny is that a roller ball mouse isn't much different than the original mouse. They just stuck a rubber ball in between the desk and the... well, whatever the feedback wheels are.
 
@WayneWerner I remember the days where I had to clean the ball...... but prior to that I didn't know the ball could fall out, and I was scared that I broke the mouse when I unscrewed the ball holder..... scary times :\
 
I guess that was before you learned about taking things apart and putting them back together, eh? ;)
 
1:44 PM
well if you don't include legos... then no, I thought electronic stuff were not meant to be open, and all I knew was it was important to the family and I shouldn't play with. :\ I didn't even knew I had to change the batteries out of my Mom's Gameboy... I remember the thing not turning on and me being upset. of course this was way back in the day and I could be miss remembering somethings :\
 
Heh. Awesome. I don't remember when I first took something apart, but I'm guessing I probably did because I watched my dad take something apart.
Probably the vacuum cleaner to stick the belt back on the beater bar because someone tried vacuuming up the carpet or some such.
 
MoRnInG CbG
~o~
 
Eh. my mom calls these moments of mine, precious. Moments like when I got upset I couldn't beat the first stage of Mario, to when I finally beat it but finding out there was more to it and wanting to give up (which I did in the end, still to this day I've never beaten the full Mario without warps :\ )
 
Mario 1 is the Dark Souls of Mario. And "The Lost Levels" is its extra brutal DLC.
 
I mostly agree with that. But, if you try to collect everything in Mario Sunshine, you soon realize that Mario Sunshine holds a dark secret of being a brutally difficult game.
 
1:52 PM
@PM2Ring Did this also inspire Terry Pratchett in "Going Postal", I wonder?
 
But, I guess in terms of just finishing the main part of a game...yes...Mario 1 can have that title.
 
(nsfw language)
The pachinko level of Mario Sunshine has broken grown men.
 
@IntrepidBrit I guess it might have had some influence. But PTerry would've known about GNU anyway, having been active on Usenet in the days before the Web.
 
Sorry, I was meaning influenced by the "Have GNU, will travel"?
 
@IntrepidBrit I'm sure he was aware of the show, it was quite popular back in the day. But Pterry was an inveterate punster and could easily have arrived at The Smoking GNU independently.
 
2:01 PM
I remember drawing a 5x5 grid for the NES Mega Man, oh good times.
Is there a universal law for 'everything you want coming out at the same time just to mess with you'? Maybe the universal law of attraction would apply?
 
It wasn't unusual for PTerry to have correlations in his stories that he wasn't consciously aware of until people commented on it. But that kind of thing happens when you're a creative person with a huge repertoire of material to draw upon.
 
How would you layout this? I think it looks a bit messy. gyazo.com/e345cd697cff418c0a8d933b266e6ebd
 
@SebastianNielsen can you use a paste service so we can copy and paste your code. Don't want to just type it out :\
 
I'd probably do something like this...
 
2:10 PM
uh yeah, one sec.
while True: # Checks if valid move
    start_0, start_1 = [int(x) for x in input('Type the start position: ').split(' ')]
    end_0, end_1 = [int(x) for x in input('Type the end position: ').split(' ')]
    try:
        if self.grid[start_0][start_1] != 'o' and \
               self.grid[end_0][end_1] == 'o' and \
               (start_0, start_1) == (end_0 - 1, end_1 - 1) or \
               (start_0, start_1) == (end_0 + 1, end_1 + 1) or \
               (start_0, start_1) == (end_0 - 1, end_1 + 1) or \
 
I'd probably delete all the clauses separated by "or" and replace them with abs(start_0-end_0) == 1 and abs(start_1-end_1) == 1
 
    try:
        if self.grid[start_0][start_1] == 'o' and \
               self.grid[end_0][end_1] != 'o':
            print('That spot is already taken')
    except IndexError:
        print('The entered coordinate was out of the board.')
    else:
        if (start_0, start_1) == (end_0 - 1, end_1 - 1) or \
               (start_0, start_1) == (end_0 + 1, end_1 + 1) or \
               (start_0, start_1) == (end_0 - 1, end_1 + 1) or \
               (start_0, start_1) == (end_0 + 1, end_1 - 1):
@Kevin That would improve my option a lot, too
 
That was really smart thanks.
 
Rather than using backslash continuation, wrap your expressions in parenthese: that will let you continue them over multiple lines. Eg,
if (self.grid[start_0][start_1] == 'o' and
    self.grid[end_0][end_1] != 'o'):
 
ergh....the cables on my work MBA are on the right which overlaps on the bottom part of my extended monitor and it is driving me nuts
if I shift a bit to the left it's just outside of where I want it
 
2:23 PM
@idjaw you have an android with degree of Master of Business Administrator?! Either AI has advanced quite a bit recently, or MBA requires even less than I'd have believed.
 
From PEP-0008 Maximum Line Length "The preferred way of wrapping long lines is by using Python's implied line continuation inside parentheses, brackets and braces. Long lines can be broken over multiple lines by wrapping expressions in parentheses. These should be used in preference to using a backslash for line continuation."
 
@AnttiHaapala Yes. I've been doing machine learning before it was cool.
it paid off
don't tell the G-Man though. They're gonna shut me down
 
stackoverflow.com/q/42787936 question asked entirely as two links to images.
 
@idjaw beep boop? When are we going to lose our jobs to Machines D:
 
next week
apply to dairy queen
 
DSM
2:33 PM
I don't think that would be good for my health cabbage for all!
 
cbg DSM
 
DSM
Annoyance of the day: Python refactoring libraries leave a lot to be desired. RedBaron has many frustrating bugs, and rope has a lot of nice features but doesn't support some very straightforward manipulations. I need to start a kickstarter to hire someone to combine the best of both. :-/
 
Hire another minion that would do it for you :D
 
DSM
Yeah, if you knew how frustrating it can be to get work signed off on for [reasons redacted] here at NumberFirm, you'd be less optimistic..
 
welp then, maybe a nice lunch will cheer you up in an hour or two :D
 
DSM
2:42 PM
I do get to talk Python for an hour, so that's a plus.
 
-38
Q: Provide 24*7 Online help centre facility

Jeba MosesMany programmers are struggling during their office time due to critical bugs and doubts. If you provide online immediate assistance it will save lots of developers careers and life too.

still laughing at this
 
haha
 
This already exists. It is called Stack Overflow. — Oded ♦ 4 hours ago
Nier Automata update: I've finished Ending C and while I now have an explanation of what's going on, it makes no sense and I think it might be all lies.
It's freaking amazing though.
Still have two more endings I think, aside from the other 21.
 
3 more days T>T Please work week end faster!!!!!
 
DSM
\x1b[38;5;15mpa\x1b[39m\n <- I suspect some highlighting is sneaking through..
 
Emi Evans <3
 
Uh, don't look at any other links on that page.
Probably don't read the OST titles either.
 
DSM
"The Death of [Important Character X]" and so on?
 
rb
 
@DSM nothing quite that obvious I think, although I have all the related content on YouTube adblocked right now.
 
2:53 PM
Did you pick up the CE? or just the game ?
 
Just the game, although I kinda wish I got the Black Box Edition.
 
I really want that figure, art book and soundtrack. But I don't know if it's coming to the PC :\
 
I need more people to play it so I can start discussing things.
One guy at work is playing it, but is way behind me.
 
Can I finish an ending in one weekend?
 
I got through ending B plus ~70% sidequests in 40 hours.
You can definitely finish A in a weekend and there's no reason to do that many quests up front.
I just get distracted by sidequests easily.
 
3:01 PM
K no sleep grind for me over the weekend to try to get an ending done, :D Hopefully I can come to you with an ending on monday :D
Do I need to remember the ot her games to full appreciate this game ? Cause I forgot almost everything about the other games
 
I was only a little familiar with Drakengard 1 and Nier's stories, and it was fine. I'm sure I've missed a bunch of little references, but it's not required.
 
3:15 PM
back2back
the anime nowadays seems to me dull, with stories that are incomprehensible
that was anime
 
3:40 PM
That clip was completely comprehensible
 
3:57 PM
Hi
question
are integers in Python guaranteed to have just one instance? is a number, say, 8 going to be the only 8, so that "8 is some_function_that_returns_8()" returns always True?
 
No, use equality not identity to compare integers.
 
Really?
 
x == 8, not x is 8
 
Integers?
 
Some small integers are cached, but that's a CPython implementation detail.
 
4:00 PM
indeed integers in Python are actually objects, not like in Java regarding the literals
 
282
Q: "is" operator behaves unexpectedly with integers

Greg HewgillWhy does the following behave unexpectedly in Python? >>> a = 256 >>> b = 256 >>> a is b True # This is an expected result >>> a = 257 >>> b = 257 >>> a is b False # What happened here? Why is this False? >>> 257 is 257 True # Yet the literal numbers compare properly...

 
@nbro the only guarantee is that if you use assignment then it is guaranteed to be the same instance, e.g. x = 8; y = x; print(x is y) - should be True always
 
ok, thanks guys, I will see if I have time to read those articles ;)
 
just made a fried egg wrap and I put ketchup in it. I'm in heaven right now
 
4:05 PM
ok what am I doing wrong, my brain is killing me today:
     from ...authentication import <stuff>
     with patch('...__authentication__.open', mo, create=True) as mocked_open:
how do I actually use that? lol
 
anyway, using the unittest module, I'm having the error "8 is not 8" even though I'm using assertEqual...
 
@idjaw you had me until ketchup... now I need to think of something to soothe my disgust before lunch... was that your plan? to ruin my lunch :D ?
 
do_thing_that_uses_open()
assert mocked_open.calls
@nbro mcve or it didn't happen ;)
 
?
lol
 
I'm getting Valueerror: empty module name but I'm not sure how to reference that other module
 
beat me to it :)
 
@davidism Dude, I know what are those things, I've been around for a while
 
an nevermind a ID10T error
 
@nbro so why don't you provide an mcve with your 8 is not 8 problem?
 
If I had your life, i.e. if I had all the time to satisfy all your suggestions
I would do it
 
4:11 PM
This is getting weird. Calm down.
I linked it because you seemed confused when someone asked for an example of the problem you were having.
 
Hes gone :\ That was .... unexpected...
 
that was the weirdest conflict I've seen in SE chat ever
and I've... seen a lot of them
 
@davidism check your time in your life to create an example of a problem privilege, bro
 
best not to hop back on that train actually ...
 
@RobertGrant so many privileges need checking today
@MooingRawr good idea
 
4:14 PM
On a different topic - anyone getting snow? Nothing here, but there is where I was :D
 
Check your got time to keep track of how much privilege you have, bro
 
@WayneWerner we got a few inches sunday night
 
@enderland jealous :)
 
man working with python unittesting after doing other languages is such a brain messing thing
@WayneWerner we've not had much this winter. my wife doesn't approve...
and frankly if it's going to be cold it should snow!
 
@WayneWerner site can't be reached :(
 
4:15 PM
No snow. No rain. Not even any clouds. San Diego!
 
@davidism ........
 
It's been in the mid-70's (F) at night.
 
I got 5 cm with another 10 reported... still snowing... Hasn't stopped since yesterday lunch time
 
@MooingRawr must be blocked by your proxy?
 
Apparently we're getting snowpocalypse tonight
If it actually is, I'll send you some pictures @davidism. Then you can look outside your window and smile
 
4:16 PM
@enderland that's always my outlook
 
@WayneWerner ahh make sense I'm at work which they block a lot of stuff :( can you give me a tldr of what's on the site ?
 
@davidism land where weather varies between 70 and 80F and that's the weather? :)
 
@idjaw West side of the North city, got 25 cm and still being hammered :|
 
@WayneWerner we are consistently about 50 miles south of the major snowfalls
 
The great falls has 25 cm and still being hammered... #globalWarming
 
4:17 PM
I should totally cross country ski when things get really snowy here. Would totally be a great way to get around
 
OK, I was exaggerating a bit, it's been in the low 60s at night, outside.
 
low 60s?! that's what our thermostat is at now :P
 
I think that's us, too ;)
 
Inside my house it was around 75. I was actually considering the AC.
 
4:18 PM
how do you handle the heat of past 75 F ? I cease to function above those temperature :(
 
lots of AC :D
 
Solar panels and AC.
 
It's 14 F where I'm at with wind chill it drops to 0 F :|
 
I wish solar was viable here
 
> actually considering the AC
LOL
still a few months away from that, here.
 
4:21 PM
@idjaw amen, I'm not looking forward to driving in the heat though... the thought of getting into a hot car :(
 
looks out window to snow falling
 
Snowy weather makes Pho and Ramen taste sooo good though :D
 
@WayneWerner that website confuses and angers me
 
@MooingRawr do you deliver?
 
@MooingRawr we got a black car with a darkish interior last November, not sure how I'll feel about that in summer...
 
4:24 PM
@Programmer no. I'm a bad delivery boy when it comes with food. I end up usually picking at it on the way to where ever my destination is.
@enderland Oh rip you.... :D I drive an silver Acura with black leather seats .... so I might be in the same boat as you... but maybe not as bad :D
 
@MooingRawr leather is probably worse, ours are cloth
 
I'm also not a fan of pre-igniting my car to warm or cool it down... something something bad for the environment that I drive already so try to do the little things.
 
we have remote start... :v
 
yeah it's the same thing :\ not a fan of it but that's just me
 
Side note - don't you both share a hatred for geese?
 
4:27 PM
I don't HATE them, I just wish they would go somewhere else and leave me alone :D
 
Yeah I think running the engine for a couple of minutes is next to nothing in terms of consumption
Fuel required to turn engine over and run air con/heater is not much compared to fuel required to do the same and move the car
 
17
Q: How to approach getting rid of geese from workplace?

enderlandI work for a location which has quite a few acres and around 2,000 employees. We recently built a new building, part of which was some nice landscaping, including a pond on the campus. Well, now we have a problem with these on the campus: In case you think they are pretty and cute, enough of ...

> @MichaelGrubey I guess I am much more interested in the process to approach others with getting rid of them. As a heartless bastard, I have no problem picking from the variety of methods to.. convince them to stop being around. Others, however, don't view them as nicer looking flying rats. – enderland♦ Jul 3 '13 at 15:41
I definitely dislike geese. lol
 
@RobertGrant Fills me with surprise and delight. Oh wait, no that's schadenfreude, I keep getting the two mixed up
@Programmer geese are delicious. Or maybe it's whatever the guy who gave me that goose jerky smoked them with.
Where I used to live in Arkansas we had too many geese
Once in my teenage years some of my compatriots chased through a flock of geese with their skateboards.
 
5/day isn't hardly enough to matter though
you can get that trivially lol
 
This isn't the ones at the lake, but close enough
They probably went and hung around the lake. All that poop :(
You basically have the choice - goose poop all over your shoes, or running/riding through the minefield.
Yeah, 5/day would be pretty easy. Not sure what's the best place to hit a bird to kill it, but I can imagine that shooting them even in their head wouldn't be much harder than shooting fish in a barrel
 
4:43 PM
we have trees around our parking lot and they nest in them
 
Tomorrow voting time here. Time to throw the dice ;).
 
I think you'd really need one of those to do enough of a dent in the bird population though with those geese to get them to stop pooping so darn much
although, they would probably poop a whole bunch at first o.O
 
rb folks
 
@WayneWerner such a great show
 
4:50 PM
TFW your 10 line script (including imports) is too advanced
This script is a little bit advanced for my skills but I'll study it very carefully. Thank you very much for your help — ADMMTL 6 mins ago
but they know that glob is a thing o.O
 
@enderland the new MythBuster isn't the same anymore (or rather the show where they were trying to find hosts). I'm sad on how that series ended :(
 
@enderland Do you watch any of the Tested stuff on YouTube - like Adam's one-day-builds?
 
@WayneWerner a few complicated bits in there
 
@WayneWerner no
 
@WayneWerner google is a wonderful thing. It allows people to copy and paste and try to understand things even if it's not the proper way to approach this issue.
 
4:52 PM
@RobertGrant Yeah... I guess maybe it was just an order of exposure for me - I didn't even know about glob until long after I knew about list and generator comprehensions
 
I don't know what that loop is meant to do, for example :-)
I'd need to figure it out
 
@enderland I recommend the one-day builds, especially on 2x speed. At least they scratch my itch for Adam's infectious enthusiasm for his projects
 
I also don't know glob, so possibly that's the missing link. I'll look later.
 
@WayneWerner I have never heard of glob either until now :(
 
@RobertGrant it's just creating files - opening them in 'write' mode
 
4:54 PM
what are the chances of 2 10ks in a row :D
 
@enderland You've probably used it. At least if you've ever done ls *.txt
or something similar
 
@MooingRawr Funny how actually some mythbuster episode is used by our university to teach people how to test & verify results.
 
the * pattern thing that you use on the command line is globbing
@paul23 Mythbusters isn't science, but it's science-y!
 
@WayneWerner ooh, creating. Got it.
I didn't really read the question, which didn't help :)
 
and at the very least, it's more science than most of the Internet ;)
 
4:56 PM
@paul23 I loved that series, but I don't think I will support the newer episodes. The cast was what made the series for me.
 
@WayneWerner It is used to explain the idea of "reference measurement, test, verification & repitition of results"
 
@RobertGrant Well, I just did that part so that you didn't have to do anything - just copy and paste the script and you'd have a working example that you could see the effects of. Otherwise you'd have to touch a lot of things.
 
Also it's a great way to show some concept, maybe an introduction to certain things or examples.
 
I didn't know there were newer MythBusters. I only knew about the WhiteRabbit series on Netflix
 
\o cbg Moinuddin :D by the time you get here I'm going to be gone for lunch :D catch up the history :D
 
4:57 PM
tried an episode or two, but got a bit bored. Might have to try some of the later episodes to see if it gets better
 
@WayneWerner They have a new crew going (or rather they had a show like a contest of finding the next set of hosts)
 
youtube.com/… there it is
 
and they were planning to move to continue the show with the new hosts
 
Didn't mythbusters stop 2 years ago?
 
polygon.com/2016/3/31/11336658/… click bait link source but w.e I have to go for lunch so yeah :D
 
5:06 PM
@paul23 now I want to go bash dents in my car with a ball peen hammer
time to attempt productivity rbrb
 
Bashing your car?
 
5:52 PM
feedback requested: OP gave his program that basically transpose a 2D list. Someone post an answer with a sentence along the lines of "Transposing isn't too hard, try this:" or something like that, which he posts a code that was incorrect (wrong output). I left a comment saying something along the lines of "This doesn't give desired output given by OP, before you say something isn't too hard maybe test your output". Answeree deleted his answer, and Tiger dup hammered the question.
I feel bad for leaving such a mean comment, was I wrong in this case to leave such a harsh comment or am I over thinking it?
 
in python multiprocessing, can I quit main program and also allow child process to continue?
 
@yasar stackoverflow.com/questions/5772873/… or do you have to use multiprocessing module?
 
@WayneWerner smoirt
 
@MooingRawr I don't have to use multiprocessing, but the code I want to spawn is not a standalone python script, so multiprocessing seems to be better approach
@davidism So, setting daemon = False should do the trick?
 
5:59 PM
Should do it, yes.
 

« first day (2341 days earlier)      last day (2611 days later) »