« first day (1640 days earlier)      last day (3306 days later) » 

12:43 AM
cbg
 
 
1 hour later…
2:07 AM
Cabbage boys
 
heya puppy! :)
 
Hi Puppy :-) Its 2:30 AM for you. Whatcha doing here? :D
 
3:10 now...
oh - just addressing some server alerts grumble
 
Said no SysAdmin ever, huh? ;-)
 
2:19 AM
Puppy, can you review some text for me? I am creating a pull request and I want to make sure that the words which I used are proper and they make sense.
Cabbage @MartijnPieters :-)
 
@thefourtheye okay... but I'm getting ready to go nap :)
 
Its a small paragraph. This is the original text
> The concurrency limit applies to promises returned by the mapper function (since the operations the promises in the input array are "watching" are already running and thus cannot be limited). For example, if concurrency is 3 and the mapper callback has been called enough so that there are 3 returned promises currently pending, no further callbacks are called until one of the pending promises resolves.
I am changing it to
> The concurrency limit applies to promises returned by the mapper function and it basically limits the number of Promises created. For example, if concurrency is 3 and the mapper callback has been called enough so that there are 3 returned promises currently pending, no further callbacks are called until one of the pending promises resolves. So the mapper function will be called 3 times and it will be called again only after atleast one of the promises resolve.
 
"at least one of one promises are resolved"
apart from that - fine
 
one the last line, "atleast" should be two words
 
Oh, Thanks @JonClements and @MattDMo :-)
 
2:28 AM
or maybe "at least one of the promises resolves"
 
Ah, resolves...
 
and, technically, digits below 10 should be spelled out, but I'm not too picky about that.
 
and maybe consistency with Promise and promise?
 
@MattDMo It is actually the literal passed as value for the concurrency key. So, it should be okay, I guess?
Ya, I ll use Promise, I think that will be preferred.
 
yeah, that should be OK, I was thinking more of "there are 3 returned promises" and "mapper function will be called 3 times". Your choice
 
2:31 AM
Right - nap time - laters
 
rhubarb
 
@JonClements Have a good night Puppy :-) Rhubarb
Thanks again :)
 
no worries - back in 4 hours I guess
 
lol, we all know that :D
 
someone needs to book themselves a holiday they actually end up taking :p
 
2:32 AM
@MattDMo oh, that. I ll change it to three, lets see what the owners think,
 
good luck
 
@JonClements That can wait till the morning I suppose :D
 
if 3 is used as a literal, then keep it as 3... otherwise, as @MattDMo says, it should be "three"
never quite why the heck that's the case, but anything 10 or less should be spelt
 
Yup, I changed it to this
> The concurrency limit applies to Promises returned by the mapper function and it basically limits the number of Promises created. For example, if concurrency is 3 and the mapper callback has been called enough so that there are three returned Promises currently pending, no further callbacks are called until one of the pending Promises resolves. So the mapper function will be called 3 times and it will be called again only after atleast one of the Promises resolves.
 
@thefourtheye oop, missed the last 3
other than that, looks great
 
2:37 AM
Ah, I always overlook things :D
 
you're still my favourite evil twin puppy though @thefourtheye :p
 
and the "at least"
@JonClements Awww :)
@MattDMo Do you have a github account?
Ah, found it :-)
 
yup - MattDMo
 
that's me
 
2:44 AM
@JonClements @MattDMo Here is the PR
 
looks good to me
 
Thanks :-)
 
And, it's bedtime. Work calls so early in the morning...
no prob
rbrb, all!
 
Rhubarb @MattDMo :-) Have a nice sleep :-)
 
 
2 hours later…
5:02 AM
cbg
 
Cabbage :-)
 
@JonClements same in Finnish, now you know it
 
cbg
 
though in Finnish the reasoning is more obvious, reading spelt out numbers is easier because they have been declined properly; but anything in teens and beyond would just be awkwardly long to be spelt out.
and @Jerry cbg
and 4thi as well
 
Cabbage @Jerry :-)
 
5:12 AM
seriously I am not getting any rep anymore on stackoverflow
what's happened?
 
5:28 AM
yeah
 
5:45 AM
cbg
 
5:55 AM
cbg
lol, only I can read the questions written by vietnamese
Thanks, I added " # -- coding: unicode-escape -- " on the top of the code. But what I concern here is that why it makes differences and how to make the first type of input works as the seconde one does :) — Hưng Cao Xuân 22 mins ago
this means: "I had previously added -*- coding: unicode-escape -*-" in the beginning of my source code files, and that is what I am currently using, and happily ignoring what you said about UTF-8, since have a -*- coding -*- already. But now I am concerned with the differences between the 2 statements."
 
Grr, 2 more declined flags
Cbg
 
lol
again:
3 answers:
2 have 2 upvotes
1 has 1 upvote
and only 1 has enough research and understanding behind it, the others were fgitwed 2 minutes before and they look like they are the solution
 
6:26 AM
cbg
 
cbg Jon
 
Crucifers all round.

There's a plot-type specific to astronomy that I can almost get from matplotlib, but not quite: http://stackoverflow.com/questions/29525356/produce-a-ra-vs-dec-equatorial-coordinates-plot-with-python/29556339?noredirect=1#comment47331134_29556339 . Anyone here understand AxisArtist?
 
7:04 AM
Please give me votes.. — Nitesh Khosla Mar 6 '12 at 7:28
^_^
 
@NiteshKhosla you mean downvotes? — Avinash Raj 23 secs ago
 
cbg Robert
 
Cbg :)
 
oh, the comment was posted three years ago.
 
7:07 AM
@thefourtheye That question is great
 
@IanClark Hmmm, but unless OP explains it clearly it will not be helpful to the future readers, right?
 
This is just brilliant. Two VLQ flags.
 
@AvinashRaj delete votes
@vaultah 3rd in the other answer of: stackoverflow.com/questions/10945347/…
downvote the 1 pls
so I can delv it
 
And the question is off-topic
 
done
done that too
 
7:12 AM
@AnttiHaapala Pyramid question of the day
 
Bit of a nothing one, but what's the best way to have a view_config that does nothing other than render a template with no data passed in? pass?
 
return {}
 
Ah okay, that's what I'm doing already :)
Thanks
 
because None is handled differently
only the mappings are sent as the context to template renderers,
the others use a response adapter to convert that to a response
 
7:14 AM
Raised 6 flags in two days #badass
 
lol
I have raised 60 flags a day when hunting the badge
how many do you have?
 
Out of flags for today, again
 
helpful flags, that is
@vaultah been reading android eh?
 
@AnttiHaapala I gathered 272 till now :-)
 
@thefourtheye and they think these guys are the heroes
 
7:15 AM
@thefourtheye ONLY
 
votes -1 and newest, caught in the act
 
@RobertGrant We really are heroes :-) When my friends ask me why do you spend more time in SO, are they paying you money? Just read the answers given by jobless people and get your job done. And then I slowly turn around, put on the glass and say "I am one of them" :D
@AnttiHaapala I got 47 rejected flags :'(
 
@thefourtheye ok hints: go through to the 10k tools new answers to old qs
 
I got 15 declined and 30 disputed
 
7:19 AM
@AnttiHaapala 10K tools? googles
@vaultah I got 25 and 22
@AnttiHaapala Ah, there is this page
I don't remember seeing that before. It always gives me the Review tab I guess
 
@thefourtheye (sorry, I was being completely insincere :D)
 
@IanClark lemon? o.O?
 
Lemon :)
 
lol
The Tools page is awesome :-) It has hell lot of interesting stuff
Lol, This is one of the Privileges given to me
 
@AnttiHaapala oh, thanks
 
7:24 AM
Do you all use the tools page for finding flaggable posts?
 
No, don't have access to tools yet :p
 
How do you find then?
 
Antti improved my query:
9 mins ago, by Antti Haapala
http://stackoverflow.com/search?tab=newest&q=[c%23]%20or%20[android]%20or%20[sql‌​]%20or%20[java]%20or%20[jquery]%20is%3aanswer%20hascode%3a0%20link%20votes%3a..-1
 
@vaultah I starred it :)
 
Also, guys from Tavern on the Meta post many flag requests
 
7:28 AM
@thefourtheye cast delv yourself!
you have 80k
that does not even need a comment for deletion
 
Done :)
I use delete votes for non-flaggable contents normally.
 
@AnttiHaapala But it's an accepted answer.
 
Follow the link in the comment, this shall guide you with the solution - Hehe, no longer link-only answer
 
and OP is not asking for fretchet distance
 
7:32 AM
tomorrow i should get a python dupe hammer :-)
 
the frechet or whatsit was...
omg nooo :D
the good thing about python dupe hammer is that there are so many of them now :D
so if one closes wrong the other can fix it :D
 
Lunch time boys, team mate is dragging me. rbrb
 
dv the whole question
it is a dupe that does not work as a signpost
just some lazy ass guy who didnt google
 
7:36 AM
Done
Okay, really going now :D
 
if you google How to connect MS Access Database to JDBC without using ODBC?
you will get the dupe target already as the foremost answer
 
8:06 AM
Cabbage!
 
Cabbage @poke
 
cbg
os.environ['hello'] = "hello"
exit()
os.environ['helo'] gives keyerror
so what is the solution here ..?
 
s/helo/hello
 
sry .. actually os.environ['hello']
 
>>> import os
>>> os.environ['hello'] = 'hello'
>>> os.environ['hello']
'hello'
works for me
 
8:15 AM
ya that works me too ... but after exit and again i enter into python terminal os.environ['hello'] gives error ..
i thought os.environ set permanently am i right ?
 
no, you are not right
there is no such thing as "permanent environment variables" really
 
oh ..@AnttiHaapala
 
environment variables are inherited from parent processes
there is a way to set default environment variables for parent processes, yes, but it depends on the user and operating system and what not
 
>>> def min_element(tup):
	""" Returns the minimum element in tup.
        >>> a = (1, 2, 3, 2, 1)
        >>> min_element(a)
        1
        """
	length = len(tup)
	def find_min(count):
		if count == length:
			return min
		else:
			min = tup[count] if min > tup[count] else min
	if length > 0:
		min = tup[0]
		return find_min(1)
	else:
		return None
 
We got sucked into the hype of Divergent and watched first two movies this weekend. Probably wasn't worth it.
 
8:23 AM
I get local variable 'min' referenced before assignment
 
@overexchange or how about min_element = min, there replaced your code with 1 line
 
ah I forgot to write return min in else
 
@overexchange you are using tabs for indentation. stop it
 
@overexchange obviously, because here you're using min without initialising:
def find_min(count):
    if count == length:
	    return min
 
no it is not that
@overexchange that kind of code works only in Python 3
 
8:25 AM
In fact how're you getting min in the else statement?
 
in your inner function you must declare the variable min with nonlocal statement
in python 2 you cannot do it with that structure without really ugly hacks
so lets hope you're on Python 3
 
    def find_min(count):
            nonlocal min
find_min does not refer to the min variable of the parent scope
 
yes it is nonlocal min so closure property of function find_min should have reference to parent frame's min
 
@overexchange again what was the place that produced that representation?
it is not nonlocal min if you do not declare it as nonlocal
since you assign to it it is a local variable
and again that shitty tool is representing everything wrong there
@overexchange what was the tool that drew these diagrams?
 
8:28 AM
I need to declare as nonlocal
 
A simpler solution would be to just rename the min variable…
 
@poke no
 
this is the tool recommended by teacher
 
I will go and complain to them that they're out of their mind tutoring ppl in some programming language that they do not themselves understand :D
 
@AnttiHaapala Oh, didn’t see that return min.
Let’s just agree that it’s a bad way to solve this :P
 
8:30 AM
We have some thing called closure that maintains closure property within function find_min object that maintaind outer names, if they are used within find_min, am I correct?
 
So, min is one of that names that will be part of closure property of find_min object, am I correct?
 
yes
and no
it depends on the function body
if you assign to it
it will be a local variable unless declared with nonlocal in which case it is a closure cell, or global in which case it is a global variable
 
if you assign to it I did not get this point. min = tup[0]
Did I not assign outside find_min()? min = tup[0]
>>> def min_element(tup):
	""" Returns the minimum element in tup.
        >>> a = (1, 2, 3, 2, 1)
        >>> min_element(a)
        1
        """
	length = len(tup)
	def find_min(count):
		if count == length:
			return min
		else:
			min = tup[count] if min > tup[count] else min
			return min
	if length > 0:
		min = tup[0]
		return find_min(1)
	else:
		return None
@poke I forgot to return min which I did in the abvoe code now.
 
Flagged for moderator attention as well.
 
Am still not clear with the problem in the above code for this error: local variable 'min' referenced before assignment
 
It’s still the same problem.
 
@Ffisegydd how long a kick?
 
30 minutes plus a mod flag.
But I did a custom mod flag explaining it anyway.
So, for when they arrive, Hi BoltClock!!!
 
Does anyone know why this is leaking? The guy that wrote this code doesn't know (needs Pillow library) pastebin.com/wZ4eGE1Y
The memory usage keeps going up, and up, and up, and won't come back down again.
 
8:49 AM
Image.open(src) – are you ever closing them?
 
I'll see if closing it works.
 
You can also use a profiler to check your application, see this question, or this link.
 
pastebin.com/bDL1DzpP - added src.close(), it still seems to climb and also I probably won't get the award for best variable name :P
Ok, I'll try the profiler, thanks.
 
@VOTProductions add forced gc call after each for loop
 
@poke answer says: You can access variables in any enclosing scope, but you cannot access a variable in an enclosing scope and then assign to it in the innermost or global scope.
am getting error for accessing in innermost scope unlike above answer
 
8:56 AM
does it keep constant, if it does, then it is because of a cyclic reference
@overexchange you were told to add the nonlocal statement in your inner function
why are you still asking about the same thing, I asked if you are using Python 3 and gave the solution
 
@overexchange Change def find_min(count): to def find_min(count, min): and return find_min(1) to return find_min(1, min).
 
office cbg
EnglishMaster being a pain in the backside in the other chatrooms, I see.
 
yeah
Wow, now we’re really flagging all those messages, huh?
 
IMO his account should be deleted.
 
@poke now?
have been flagged before as well but it does not matter it seems :D
 
9:03 AM
Sexual harassment should not be tolerated at all. It shouldn't be a ban it should be a nuke.
And possibly a report to the police
 
I added gc.collect(), which seems to reduce the amount of memory that it's using, but it's still going up. I also added objgraph.show_most_common_types(limit=10) and show_growth(limit=5), this is the result = pastebin.com/z44in9wS
I'm missing the obvious aren't I? :P
 
Did I miss something? I can't see how is his behavior harassing...
 
@AnttiHaapala Yeah, there were 5 or 6 flagged messages popping up.
 
@vaultah the offensive content is deleted now.
@thefourtheye thanks for the contribution, I'd like petka to take a look.
 
It was in other rooms, I suppose? @Benjamin
 
9:08 AM
It was moved to trash.
 
@BenjaminGruenbaum Sure. Thanks man :-)
 
This user has been automatically suspended for posting inappropriate content and cannot chat for 3 hours 16 minutes.
 
Maybe raise this to meta? I think a consensus should be established on dealing with these users with a big red "we will not tolerate these" by SE.
We've had issues with these sort of things in the JS room before, around a year ago with another user.
 
I finally got the Marshal badge, flagged ~150 posts/comments in the last 3 days \o/
 
@AnttiHaapala \o/
He was in here late Saturday night being help vampirish with Adam Smith; I notified him that we already told him to be clear in his questions, and Adam that he was dealing with a known and warned help vampire.
EM managed to behave himself then.
Pity, I was looking forward to using the kick feature.
 
9:23 AM
the kick does not feel anything, I kicked him when he was talking about physiological reactions in his private parts, and it was 1 minute... I was like "whaa".
and ofc I had trashed the msg first, so I had to move it BACK from trash so that I could kick him :D
 
@WayneConrad (very late reply) that image was EnglishMaster being a dick in every chatroom he could find and people got fed up with his behaviour enough to flag the post everywhere he dared spam people with it.
 
@deceze because it wouldn't work. — Antti Haapala 30 secs ago
@MartijnPieters ^ your worst rival is now advising in Python tag :D
with zero knowledge
 
@AnttiHaapala it was innocent enough. :-)
 
hehe I have never seen that guy before the mod elections :D
 
9:42 AM
So I've looked into the issue more and it seems that luts doesn't get cleaned up properly? pastebin.com/ZNPdq2ZQ pastebin.com/Y5g0DhR1
 
Hey up Intrepid.
 
Morning folks
 
cabbage
 
@Ffisegydd !
 
bahahaha
 
9:54 AM
@Ffisegydd watch your cabbage!
 
I even typed "cbg" at first but then changed my mind.
 
Antti doesn't like it when I don't use "cbg"
He gets all angsty.
 
Ah, he's quite Capitata(ist) then?
 
@deceze __str__ exists in both Python 2 and Python 3, and its return value must be defined differently. Essentially that'd be changing the conditionals that my code executes once per initialization time into once per each invocation, hardly handy anymore. — Antti Haapala 8 secs ago
I am so not voting deceze for mod :D
he is into PHP and the fact that he did not even have a steward in CV when all he knows is PHP ... like ???!?!
he has 14k score in php and does not find anything worth closing there?
 
10:13 AM
I found other tags to be very bad at closing questions.
 
10:29 AM
Preloading GTA V for the PC. 60GB download for a game o_o
 
Meh. Comparable to Advanced Warfare and BF
 
I'm celebrating by playing GTA IV, and waiting until GTA VI comes out before trying V
 
...if your PC can run that at a passable framerate :p
Mine sticks at about 20fps no matter what the settings are.
 
10:52 AM
OMG how could I I miss the teaser of CoD Black Ops 3 •﹏•
 
@poke someone asked him in the nominations that why he does not have the steward badge even from close votes
 
@BenjaminGruenbaum Sounds like you should contact management about this
 
If I want to sort based on two fields, I can sort based on the second field first and then by the first field, right? Is there any name for this sorting algorithm?
 
@poke "Being one of the pioneers of this site, you should have known of the problems the Close Review queue was facing, and still is. Is there any reason why you are missing that last badge from your candidate score?"
"Fair question. In practice I find that the queue often presents me with questions I do not have enough expertise in and am as such reluctant to make a definitive judgement on. On the other hand, just trolling the front page, I'm seeing questions which are in my wheelhouse and I'm closing a lot of them as duplicates. This feels more productive to me, which is why I rarely visit the queue."
 
10:57 AM
@thefourtheye "Slow" :)
 
@thefourtheye radix sort
 
@RobertGrant Theoretically, the complexity remains the same, right?
 
Oh, I probably misread what you meant
Nvm
 
"lsd radix sort" but really it isn't
if you can have constant key range, then it can be faster than o(n lg n)
 

« first day (1640 days earlier)      last day (3306 days later) »