« first day (1306 days earlier)      last day (3870 days later) » 

04:44
Huh. The new at method for ufuncs in NumPy 1.8 is pretty nice.
>>> x = numpy.arange(5)
>>> y = numpy.arange(5)
>>> x[[0, 1, 0]] += 5
>>> x
array([5, 6, 2, 3, 4])
>>> numpy.add.at(y, [0, 1, 0], 5)
>>> y
array([10,  6,  2,  3,  4])
Brassica oleracea
add.at(x, y, z) is like x[y] += z, except if an index appears repeatedly, it actually applies the operation to that index repeatedly instead of just once.
 
2 hours later…
06:57
cbg all
yep
07:26
cbg
grr ppl posting links to py2 tutorials to questions with py3 code
any1 knows a good, easy to install svn viewer
web
07:44
Nope - bet it's written in PHP though :)
Cbg :D
@JonClements this time it didnt matter, installed websvn
crappy it is
but at least easy to install
08:08
@Ian is that good Ian/evil Ian today? :p
08:22
bbiab
cbg all! :)
08:46
WTF
again
I just read the edit and it is rejected already
it is like if a 1 rep user makes improvements to answers in C then they are rejected outright, bc "hey that user is just 1 rep user, and I got 2000 rep already by answers to Java tag".
What would you do to fix it though @Antti? Have it only so you can edit questions within a subject you know (say that you have tag badges in)? Don't know what else you can do :/
@Ffisegydd I mean... the edit queue is almost always empty
so why do ppl just click "REJECT" on anything they do not have any idea on
When I do Suggested Edits I tend to look at all tags but only accept an edit if I understand what they're trying to do.
there is a skip button
I would have Skipped that as I don't know if the user is correct or incorrect.
I probably skip more than I accept/reject :P
08:57
yeah that is the good way
but too many ppl just "REJECT REJECT REJECT"
and "this should be a comment"
how the hell does a newb write a comment when no 15 rep :D
ppl come across broken code and post edits
and then a php newb with 2k rep rejects it
"bc I do not understand" :D
only...
IF I DIDNT read it carefully
and then click accept, I would not even have known it was rejected
cbg
OMG LOOK AT THIS
THIS SHOULD BE A REVIEW AUDIT FOR EDITS
puts his hands over his ears.
Can we use our indoor voices, Antii? :-P
@MartijnPieters :D
I am just going through my 20 suggested edits
I do not know what has changed but my blood pressure rises significantly only when I use this feature on the site :D
I'd now review Pinal and shaik riyaz review history and see what else they missed.
Then, if you find more such stoopido approvals, flag em for moderator attention, so they get a timeout from reviewing.
is in the Close review queue hammering dupes.
09:09
@MartijnPieters I am not angry bc of the stupid edits :P
moreso thinking that the edit review system is so flawed
bc of all badge hunters
Yeah, and that's why moderators have been given more power to ban users from reviewing edits.
IMO ought to be code audits like this in the edit audits
not just vandalism
2
Q: "Acceptable" Honeypot Suggested Edits

Cole JohnsonCurrently, the "Suggested Edits" audits only are edits that should be rejected a vandalism. Why aren't there any that edit code, but are valid edits? Look at Suggested Edit #1978835. If the reviewer were to look at the edit comment, it would be apparent that the edit was valid. As such, I accept...

hrm, not that one.
@MartijnPieters should be in meta.so IMO
Nah, it's on-topic in both places.
Feel free to create a feature request on MSO.
09:14
cbg all!!
@MirkoCianfarani: cbg!
09:32
Since the morning I only have found 2 questions worth answering, in both Python and JavaScript.
Looks like my legendary badge dream has to wait :'(
0
Q: Edit review audits should contain code edits

Antti HaapalaThere is a problem with the edit review audits that they only address obvious vandalism - even a simple Bayesian filter could catch whatever audits there are and hit reject on them, and beyond that many reviewers seemingly only look at the reputation of the editor, not on what is being edited. T...

I have a log file (utmp) and I read here that you can use the last command to read it, but mingw is telling me that this command was not found. Does anyone know what package I should install to get this?
@Antti looks good. Hopefully it'll be well received.
@thefourtheye: btw, you were entirely justified in that dupe close vote.
Ridiculous conversation about the question having to be an exact dupe.
The concept was the same, the other post provided the right answer.
@MartijnPieters Thanks :) We told him the same in the comments of the original question, but he wouldn't accept that. So, I had to post it on meta.
09:49
@thefourtheye +1
@MartijnPieters is it possible to view edit review history as a normal user?
edit review history?
yes
of someone else
I'd now review Pinal and shaik riyaz review history and see what else they missed.
@MartijnPieters 10k?
You can go to their profile and look at their activity tab.
erm.
no, just a sec.
can you see reviews here?
under activity > reviews (except there's all the reviews there, not only edits)
I'm pretty sure non-10k users can see that. :-P
09:55
ah yes
:D:D:D
2 bad edits approved in among 4 checked already
3
2 points for adding grey boxes about bullet lists :(
@Antti that way madness lie... stay away from SE's - it'll just make you bitter
anyway - off out for brunch with a friend... rbrb
10:28
cabbage
10:38
cbg
cbg @Terfin
 
1 hour later…
11:42
cbg again
@Antti I did warn you about the queue :)
heya @Martijn - how goes the day - not enjoying a couple of hours in a nice cafe again I hope? :p
heya @Mirko - long time no see - how ya doing?
Nope, at home on the couch.
With The Roots on loud.
I'LL TALK LOUDER THEN!
11:44
The Roots - Phrenology - Water
turns up the volume some more.
/me mumbles a source control system starting with g under his breath
did i hear a yellow puppy bark?
training course of java, offered by an agency...
@Eric nope - just your imagination :)
ohk , looks like i'm hearing stuffs :) . rhubarb
11:47
I search the first job of programmer and there isn't a job advertisements Python programming :(
There is a one advertisement only with Ruby and with 1 year of experience...
Umm... what area are you looking for work?
Italy
where live Paolo Casciello in Rome
Umm... not a big european tech capital, but have thought there'd be something
eheheh .... with much difficulty, now in Italy is most frequently used Java
seeing what happens after this course
How long's the course for?
@Martijn not sure if it's your cup of tea - but they're doing another season of "Barely Legal Drivers" which I find quite amusing: bbc.co.uk/iplayer/episode/b0441x4m/…
12:04
@JonClements sorry for iggying your warnings :P
@JonClements Looks like something to show my teenagers if they are going to learn to drive.
Currently, they are more focused on learning to fly.
@Martijn I saw the picture you put on G+ - looks like fun :)
heya @pulimon
dumb question, but what is the use case for wtforms?
@AnttiHaapala No blaming me later then - I did try to save you! :)
The one in the glider, right?
12:12
Greetings and salutations @Kevin
@Martijn yup - that's the one
Hi
She prefers the motorised plane; because she can do aerobatics in that one.
@JonClements But I don't see anything shared by the lord recently :(
Well, actually - not sure if it was a glider or not - just looked like a small plane with her in it to me... :) She sounds err... nutty adventurous :)
The close hammer is awesome.
@MartijnPieters: Thank you! The 'duplicate' helped and I managed to understand the problem and fix it. — Abhi 52 secs ago
@JonClements there are a lot more safety precautions, luckily. :-) Not like driving on the road with all the other nutters, in any case.
12:18
Oh... I see they're putting little gold badges next to it now
@Jon Excuse and the course runs until June 3
@Mirko should be a relatively comprehensive course then... not one of these 3 day jobbies :)
Wait, @thefourtheye, don't you have a gold Python badge?
Why wasn't stackoverflow.com/questions/23654505/… hammered when you voted to close?
Ah, perhaps you didn't use a dupe vote.
@Martijn I was looking at that... guessing though that he didn't vtc as dupe
@MartijnPieters I have one
Oh, I closed it with lacks sufficient information, didn't know what to choose actually :(
12:21
Strangely - doesn't put the gold badge indicator retroactively...
ehehe I know that this is a course complete but I need a money
12:38
Aww... that Tom's polite
this article deserves a read
Nikola Tesla , awesome man !!!
@JonClements That's because it was not a dupe hammer close.
@Martijn fairly sure it was
Am I doing something wrong here?
Ah, right.
Yes, the nice little gold indicator is only added to new closures.
12:46
@Crow Yes. Yes you are.
@advanced.route('/form_route', methods=['GET', 'POST'])
def form_route():
  form = MyForm(request.form)
  if form.validate_on_submit() and request.method == 'POST':
    def stream_data():
      # what is here is irrelevent because it never reaches this point
    return Response(stream_template('advanced_search/advanced.html', form=form, data=stream_with_context(stream_data)))
return render_template('advanced_search/advanced.html', form=form)
the problem: it never actually validates or goes into that if
Hrmz, why was this question deleted?
The 'minimal understanding' close reason was rightly removed again.
And today that question would not be off-topic.
@Eric
That tesla infographic, damn!
@Martijn question might need a slight edit, but the answers are useful... so I'm gonna vote to undelete
Needs one more
12:55
Undeleted now
I noticed! Thanks!
One I wouldn't mind an undelete on if I could find it :)
cbg all
heya @JonClements
@Crow did you test form.validate_on_submit() and request.method == 'POST' in a pure way ?
@WalleCyril in what sense? It seems to validate if I type in something wrong, but it doesn't seem to go through otherwise
13:01
I mean did you see which value form.validate_on_submit() alone returns ?
and request.method == 'POST' alone ?
@Crow after you can climb all the way back to the root of the problem
DSM
DSM
Cabbage, all. (I'm in early to work today.)
user3444876
Cabbage ALL
user3444876
Been up since 3
@DSM Cabbage good sir!
@JonClements deleted in the past 60 days? Then it'll be linked from your profile.
Go to your answers tab, there is a link at the bottom.
13:05
I think I may be doing this the wrong way. I have a Command object which updates the Model when one calls Command.execute. I created a GuiCommand that inherits from Command - similarly, it updates the model when you execute, but it also updates the View as well. It feels weird to mix the Model and View in this way. Does this make sense?
Umm... I feel a bit nasty doing so, but I think this deserved a downvote - I have left a comment explaining why though
@WalleCyril with just request.method, it works fine.
I'm basically trying an alternative approach to my usual technique of "stick callbacks everywhere so model and view can be maximally separated". I'm not really sure I'm gaining any clarity by doing that.
DSM
DSM
@JonClements: as written, won't it only read the first lines? Doesn't seem to be any loop visible.
Oh... haha.... @DSM good point
13:08
@Crow I see that you re using a decorator with static arguments ? Are you sure it works as intended ?
yeah it's flask, it's made that way already
@DSM went to add a comment to that effect, but the owner's deleted the post now... but did make an effort with a try/except block :)
@Martijn it was this one it's not a great question, it's a reasonable answer, I'm just peeved about it cos they got the answer, deleted the question and ran - matter of principle! :)
Sigh, why is design hard -_-
Probably a good dupe target for it as well
@Crow I can't help you more then because I don't know what comes before and after what you have shown
13:10
That was a self-delete
Voted to undelete
but if you flagged that one for moderator attention, I'm sure it'd be undeleted for you.
Hit-n-run deletes are not appreciated.
@Kevin So you have a command who changes both model and view ? What I m doing is: When model changes it can change view and commands, but command can only interact with the model, e.g. when the command changes data in the model, the model setters will by the way change the view
@Martijn what I did first ^^^
Hrm, marked as helpful
Thanks for vote though
13:14
not that helpful.. :-/
@Kevin what does sigh mean ?
@WalleCyril yeah it's hard... I'm trying to replicate the documentation.
@Martijn I'd forgotten about it - your fault for reminding me :)
> Sigh - n. A deep and prolonged audible inspiration or respiration of air, as when fatigued, frustrated, grieved, or relieved
Still got one active flag from a week ago :)
13:20
I don't really like making setters for every attribute on my model...
Ok, here's a catch in my proposed design: there isn't necessarily a one-to-one relationship between model and view. a model can have multiple views.
Or a view requires access to multiple models?
GuiCommand only really works if the Gui is the only view.
Hmm, maybe some kind of decorator could be used...
@Kevin do you have a lot ? Because if you use lists and dicts you can reduce the number a lot of attributes
Then I could do command = GuiCommand(TextOnlyViewCommand(my_base_command))
then command.execute updates the gui view and the text only view, in addition to the model
@WalleCyril Not really. I hate writing setters even if I don't have to write many.
or you can
13:27
@Jon I don't wanna worry you or anything but I think I've managed to get the Tags data into mongo :O
runs around the room barking... what's going on... I'm confused... runs some more
but if you re too lazy to write solid setters then I m sorry for you
me fetches scooby snacks
@JonClements Yes, although that doesn't harm the proposed design. I'd just have multiple Commands, which the infrastructure already supports
welcome @Vabs
Well @Ffisegydd I've got a text editor and putty installed on this windows partition now, so will have a look in a sec
Can't find the keyring with memory sticks on it
Might just have to pop out and get an 8gb stick to create a live linux from instead to have a go at fixing whatever issues I introduced
13:29
I made a separate database for it, not sure if you want that or not, so it's in sopython-tags now
@Ffisegydd in your homedir yeah?
Yeah ~/sopython/nidaba_analysis/tags.py
@WalleCyril I bet they told the inventor of Fortran, "If you're too lazy to write raw assembly, then I'm sorry for you". Laziness is the mother of invention :-)
hrmph... my search algorithm is terrible you guys.
@Kevin You're right !
13:36
@JonClements thanks
And the reason I won't find it on the old server is because it's not there... smart puppy, smart puppy
arhggh... haven't got ssh keys on this machine either
think I remember the password - else you might have to sudo change it for me stewie
Close hammer makes me self-regulate.
0
Q: A random number generator (Float)

user3146888I am using Blender, which it can incorporate python into it, and now I need a random float generator, no range, how can I do this? I have found ways, but it is with range.

@Jon the python code itself is short and sweet, I can copy it into a pastebin if you'd prefer?
@Ffisegydd nope... going to need to make sure I have access to the server on both partitions anyway... so, this is just forcing my hand to do so at the moment
Okay, I'm in... we're using Python 3.3/4 ?
Yeah 3.4
virtualenv is at ~/sopython/nidaba_venv/
13:42
Um.... would need to check but the zip(blah.keys(), blah.values()) looks really odd... is there not just an .items() ?
I compared using {key:element.get(key) for key in element.keys()} for element in .... to that
And this came out faster
Zipping two separate function calls is faster than a single method that internally does it... I'm having my doubts :)
DSM
DSM
Stranger things have happened, but that's not the way to bet.
I'll test them again using timeit, just a sec
@Ffisegydd don't worry about it... how's your cold doing?
I'll have a look at the db itself... one sec
13:46
Blergh still ill. Think I've got a chest infection.
Damnit can't work out how to copy from an ipython terminal
> use sopython-tags
switched to db sopython-tags
> db.tags.count()
36942
That's a lot of tags
I may have accidentally ran the code twice during testing.
DSM
DSM
Too many. There can be only one.
Might be worth dropping the db and running the code afresh.
@Ffisegydd you know how to drop the collection?
13:50
I was looking it up just a second ago but got distracted.
> db.tags.drop()
true
Done :)
Would you like me to re-run the code? Don't want both of us doing it
show dbs still shows sopython-tags as being there for me
why mongo :(
Because it has a funny name.
And I know nothing about databases and Jon suggested it.
but it is bad otherwise
13:56
And it is, after all, his server :P
:D
"you have a problem, then you decide to use mongodb, now you have 2 problems" :D
true, less of a curve maybe yes
behh. Just trying to implement a very simple search algorithm and it is not working

« first day (1306 days earlier)      last day (3870 days later) »