« first day (1642 days earlier)      last day (3300 days later) » 

1:00 PM
you'd want to use pprint only whenever file is not specified or is sys.stdout, sys.stderr
but as always, Python 3 is the solution :D
 
from university import poor_undergrad
 
but anyway:
 
@poke sure... but I thought @ThiefMaster had said without from __future__ import print_function - otherwise it's very easy
 
undergrad.convert(all_my_code)
 
You could also overwrite sys.stdout to be an adapter that pipes everything into pprint(x, stream=originalstdout)
@JonClements Didn’t read that part…
 
1:02 PM
@Robert is that followed by Robert.fix_undergrad_fixes(undergrads_fixes) ?
 
anyone seen this project? it was a python project, running some WSGI server that I do not remember; it made a dashboard of independent widgets on web browser including a calculator widget, possibly in green, it was related to some japanese IIRC, and it was all programmed in Python including the client side logic and I do not think it was PyJS. WTH am I talking about?
 
Yes! Closely followed by Robert.ask_sopython_for_help(rob_breaking_undergrad_code_lines)
 
@Antti something to do with brython ?
 
I think it run on server only, I am not sure
but that looks cool
 
Client side logic that runs on the server only? :)
 
1:05 PM
yes
a bit like GWT... or something I dunno
I think the events from widgets were sent via ajax to the server
moreover it was important that it had independent widgets
and I cannot for my life find it anymore ...
this is not about finding a python to javascript compiler or anything such
but to have the web frontend seamlessly plug to the server logic
 
JSF? :)
Sounds quite cool; let us know if you find it.
 
I will not find it ... :(
I've been googling for 2 days
must have dreamt of it
 
@Antti not with that attitude you won't laddy! :)
 
The problem with stuff like that is then a cool client-side thing comes along and tries to take away from the server side stuff, and you want both and it's annoying :)
 
Can this be the best example for beating around the bush?
 
1:11 PM
@AnttiHaapala using a faster algorithm may be premature optimization especially if you have to implement it
 
@Xavier I've been known (I know it's not the correct approach) just to upgrade the hardware and worry about it later
 
@JonClements which attitude :d
@JonClements bobs?
 
@Antti the "I will not find it" one :p
 
Lol, of course not. I am Mr Attitude. Or Mr No Attitude, whichever is better.
 
it would be very much easier if anyone else would remember seeing that :(
 
1:14 PM
@Antti I guess we weren't at the same "party" you were at the time :p
 
1:25 PM
@AnttiHaapala turbogears?
 
pyjs seems to be dead
 
Looks like I got back first
 
@RobertGrant no
turbogears is just a web framework built on pylons, slightly worse than pyramid (unless they started porting it on top of pyramid)
 
According to wikipedia, the two forks of pyjs are still going
 
found it
@RobertGrant not really, last commits in github in 2014
summer
and they didn't even start doing 2.7 let alone 3.4 support
 
1:30 PM
Although pyj.be is not in a language I recognise, so I can't tell for that one
 
umm... that was weird...
couldn't resolve the host for a moment
 
Yeah I couldn't for about 2 minutes
 
@RobertGrant no, it is dead, pyj.be was the "before-the-fork" leader leighton's web page
so it is dead
 
1:32 PM
(if it's not off-topic - then it's certainly too broad)
 
@JonClements first one wrong: "I do not want to use serial module and allowed to use only standard python modules in my code."
though it is windows so...
 
"are their any alternatives to..." etc...
if there was a standard python library... then I suppose it's still somewhat OT... :) If it's "any ideas" - it's too broad - take your pick :)
 
does not say "any alternatives
true
 
"Is there an alternative to pyserial module?"
 
but specifically asking about python stdlib is not really offtopic
yes it means: "can I not use the pyserial" :D
the question says "I can only use standard python modules"
 
1:35 PM
any trigonometry guru here?
 
Depends, what are you trying to do?
 
then they either have to look through the standard python modules/resource about serial ports in python to find it... or it's too broad :)
 
@TheBlackCat I'm trying to find two normalized vectors rotation on each axises
 
@antti all the standard python modules are listed and well documented...
 
I think it's an X-Y problem. The real question is - do I have to install pyserial on the other computers? Or even - can I include pyserial in my own code / distributable project?
 
1:37 PM
I have the acos(vec1<dot-product>vec2) formula
but I want the rotation to be separate: rotation-on-x, rotation-on-y and rotation-on-z
 
That I don't know, sorry.
 
np ;)
 
Got 3 interviews in the next 2 weeks.
 
@Ffisegydd WOO HOOO!!!!!!!!!!!!!!!
 
user559633
@Ffisegydd sorry man, looks like you're going to get a job
 
1:40 PM
@JonClements answered
 
@Ffisegydd umm.. as a physicist or as a developer?
 
And just been on the phone to another recruiter. Turns out a company I previously sent a speculative CV to (in like Jan) are now actively hiring.
 
without any opinionated discussion :D
 
So hopefully something will come of that.
@Peter 2 as a data analyst, one as a software engineer.
 
@PeterVaro Hey. I know some 3d math, but I don't exactly understand what you're looking for.
 
1:41 PM
@Ffisegydd super nice ;)
 
@AnttiHaapala Reckon you've got the best solution for him there
 
@QuestionC umm, which part is not clear?
 
I too know some 3D mathematics.
 
ahh.. I think which part it is.. my question itself is not valid..
:)
 
You just want to rotate a vector around the different axis? (Axsii)?
 
1:43 PM
nagare.org/portal @JonClements @RobertGrant this is what I was looking for
 
Well, it sounds like you want to run the vectors through a rotation matrix.
http://en.wikipedia.org/wiki/Rotation_matrix
 
@Antti oh... the thing you'd never find... that one? :p
 
@QuestionC something like that, but let me think.. I think it is not even clear for me, what I'm looking for..
which makes it super hard to find an answer for it..
:P
 
@JonClements exactly, you know, you'll find when you stop looking for it
@PeterVaro what do you need exactly?
 
Well... if you keep looking for it after you've found it... you're a little bit daft, no? :p
 
1:45 PM
you need to rotate around X,Y,Z or pitch, yaw, bank, whatever?
 
@AnttiHaapala I don't know yet.. one sec, I'm still thinking..
 
@PeterVaro Maybe do a diagram.
 
or you mean: "what is the shortest rotations that will give me this orientation?"
 
crap.. it is way more difficult than I thought...
 
like quaternions
 
1:47 PM
nope, the actual problem I'm facing with is, I have a 3D object, which I'm trying to rotate with two points (like grabbing it with two hands)
but I just find out, that I also have to calculate the axises rotation as well
not only the rotation of the two lines (line between previous hands' position and line between current hands' position)
 
yes...
you'd have the center of rotation...
and you'd grab it at 2 points
 
I have that already
 
which make a plane
then you will have 2 vectors to the center of the plane
 
Let's say I have a vector <10, 10, 5> and I want to rotate it 30 degrees around the Z axis, then you take the 30 degree Z-axis matrix [[.87, -.5, 0][.5, .87, 0][0, 0, 1]] and you get the rotated vector, <3.7, 13.7, 5>
 
and when you move those hands you will get another vectors
 
1:49 PM
Erm, you multiply.
 
@AnttiHaapala exactly, that's what I'm doing right now
 
So, does the object rotate around the vector between the hands?
 
@QuestionC nope, it rotates around 0, 0, 0
which makes it way easier
 
Like I'm holding a basketball and I rotate it by just spinning my fingers?
 
user559633
it is not the ball that rotates, but your perception
 
1:51 PM
I think it is more like putting two finger on a trackball and rotating it by pushing on it with your fingers
 
Duuuude
 
What's the point of having two hands then? If it's rotating around a point? Like, if I have a hovering basketball, then I can make it spin with one hand by just pushing the surface.
 
@QuestionC because of the gestures
 
1:54 PM
So I use one hand to spin it and the other to flip it off?
 
Yeah I wondered that; I guess it depends how the two interact, and which overrides which
 
user559633
@PeterVaro :( childhood leukemia is sad
 
@QuestionC Using two hands allows for more complex interactions.
 
@QuestionC something similar yes, but you are right, I have to trigger the event, when both hands are "grabbing" and then I only have to watch for one hand until the double-grab is happening
@TheBlackCat actually you can do the zooming, panning and rotating with one hand (one point) if it is always around 0, 0, 0
 
user559633
You require two hands to spin a basketball because basketballs are lazy and try to leave the work area as soon as you stop applying force.
 
1:59 PM
@PeterVaro You can, in principle, but at least for me it seems that rotating around two axes at the same time is more natural using two hands. I can do it with one hand, but actually getting it to do what I want seems easier with two.
 
@TheBlackCat in my scenario you have to do it with both hands, but the implementation will work only on one hand
 
Oops! My close-as-dupe suggestion on stackoverflow.com/questions/29650935/… may have been premature. OP's tried the recommended fix, but it doesn't stop the Python console opening. But I don't know cx_Freeze, so I don't know what else to suggest.
 
duplicate stackoverflow.com/questions/29652339/… , But I can't able to find any.
 
2:20 PM
done.
 
The github merch is cool, but I wish it didn't all have GitHub written on it.
Don't need overt branding on my clothes thanks. The octocat will do.
 
I'd love some Github merch but I think it's too pricy
 
I will now predict who is going to win this election.
Martijn, John and Second Rikudo.
 
2:39 PM
Yeah, those would be my predictions too
 
@Games who's John though? :p
 
DSM
Morning cabbage, all.
 
cbg @DSM
 
Oh shit. The puppy's real name :P
 
Cabbage
Have any of y'all messed with Arduinos?
 
2:40 PM
I bet @Peter has :)
 
I'm going to try to make a pen plotter using an Arduino soon
So. Excited.
 
Y'know kids should not be named jon anymore, either Jonathan or John.
I make the mistake of writing John when I should be writing Jon every single time.
 
@JonClements Do people tell you that you know nothing often?
 
I've messed with arduinos.
 
@SomeGuy how would I know if I don't know anything?
 
2:41 PM
But I like rpis better :D
 
@SomeGuy he knows I had :)
 
DSM
@Jon: don't worry, we'd tell you. :-)
 
@JonClements Socrates says that knowing you know nothing is what makes one intelligent
 
@PeterVaro also has messed with rpis ;)
 
But I guess if you didn't know how to know if you knew nothing, you'd be...stupid?
@PeterVaro Anything interesting?
I've been kind of obsessively looking at things people have made with Arduinos
 
2:43 PM
Rbrb
 
user559633
@RobertGrant Destroys the "in-reference" for you?
 
@SomeGuy tbh arduino is not my fav thing, I hate Wiring/Processing, if I can I use MicroPython or the RaspberryPi
where I can code in C and/or Python
which are normal languages
:)
 
@PeterVaro You can't use C with them?
I saw something that let you use JS with the Arduino
 
I can, but then what is the point of an Arduino then?
:)
@SomeGuy you can use a BeagleBone Black with JavaScript within your browser, called BoneScript
 
Oh, yeah?
 
2:47 PM
I would prefer that too, although BBB is an SBC not a single microcontroller as Arduinos are
*single = simple
 
BoneScript sounds hilarious, though :p
 
it is indeed, if you like JS :P
 
Unrbrb
 
@RobertGrant ununcbg
 
@PeterVaro I quite like JS. You don't?
 
2:51 PM
@tristan yeah, and related but different: it turns it into something obviously geeky
 
not really, it has its moments, but I don't like all the quirks it has
 
Also if I had a kid, I probably wouldn't dress him/her in clothes with the word Git on :)
 
@PeterVaro Yeah, that's fair. It's the first language I learned, so I've got a soft spot for it
 
I see
 
Speaking of quirks, trigraphs in C++ can be a PITA
 
2:55 PM
I haven't seen trigraphs in action for a while now..
/me is wondering who are using it?
 
user559633
@RobertGrant So that I understand, your complaint with spending money on a tshirt branded with the logo of a company is that there are letters on it that make the reference too obvious, and thus letting lesser nerds in on the reference?
 
@PeterVaro I doubt anyone uses them
 
@tristan well, also that someone will say, "What's GitHub?" if it's written on the t-shirt
 
although they are quite useful for obfuscation :)
 
@PeterVaro Hey, I got some boss aggro there. I'd say just start off by having the object rotate an arbitrary vector intersecting <0,0,0> and then work up from there. Every sophisticated rotation is going to just be a variant on that theme, but you have to get that down.
 
2:59 PM
cbg all
 
@QuestionC I'm doing this right now: I create a plane (from two vectors) when the grabbing is started, then I update it every single frame => and get the rotation matrix from the previous and the current plane, and then I translate that matrix to euler rotation
theoretically it will work :)
 
@PeterVaro - are Euler angles potentially of use in your problem?
 
@tzaman ^^^^
 
nvm, just saw :)
 
3:03 PM
Aaaand, we're out of my depth. Good luck man. This is the Oculus stuff?
 
it is, actually it is the leap-motion stuff ;)
 
What's leap? Something involving hands?
 
Oh, that's cool
 
That is so cool
 
3:06 PM
A guy here ordered one a few months ago
 
I didn't care about the Rift but this looks like it'd be so fun to play with.
 
is it a security risk to display that an email is already registered on a website?
 
DSM
It's information, so yes, because it means I can spend time trying to crack the password of corvid@site.com instead of doesnotexist@site.com. But if you space a pause after failures, you can limit actual risk to something much more manageable.
 
@QuestionC it is super fun actually
 
user559633
I have a leap motion
 
user559633
3:10 PM
It sucks. It's slow, it requires careful placement, and there's not much use for it. And just read up. YMMV
 
I heard a lot of people saying that, but I actually managed to make it work pretty awesomely :)
 
user559633
@PeterVaro I thought it was an okay toy until I wrote something and then gave the leap motion to new users and said "hey try this out"
 
I've spent money on dumber things. Does the keyboard have a built-in sensor? The website is unclear.
 
user559633
@QuestionC it's a USB-connected rectangle with sensors
 
@QuestionC Really?
Most people can't stop raving about it
 
3:13 PM
@corvid on the other hand I've read articles where people weigh up the security issues vs the user experience issues.
I, personally, have more than one email address. If I can't remember which I've used then I end up having to try multiple email addresses.
 
Umm... well, I installed tomcat on the sopython server @Ffisegydd
downloaded the github project
 
It depends entirely on the site and whether you think security or UX is more important.
 
@DSM yeah it's throttled by a little bit so it can't run multiple times quickly at least
 
@Jon awesome.
 
cofuzzled as to how to install a WAR
 
Air
3:15 PM
What's the most straightforward way to demonstrate the short-circuiting behavior of any and all using division by zero? Context here.
 
might be compiling it from the wrong directory
 
@SomeGuy It just looks like stereoscopic 3d to me. It might be a super cool user experience, but I don't understand what's so great about it from a programming perspective.
 
user559633
@corvid what's the behavior if the email is already registered, doesn't allow creating a fresh account?
 
DSM
I'm having a very hard time guessing what this guy's actual problem is.
 
> Each next level has to be a half smaller than previous. Root has value 1, next level has value 0.5, next level has value o.25 etc. I don't know how to do this.
He has a math problem I think
Not a programming one.
 
3:16 PM
@tristan basically the premise of the accounts system is it is invite only; but since the email is the login, people can't have the same email. It currently "submits" the form, but doesn't add the user, then displays the error afterwards
 
DSM
@QuestionC: but it can't be that he doesn't know how to divide by 2. Can it?
 
Did you ever tutor math? I did.
Like, for 20 year olds.
 
user559633
@corvid for one of my sites, i check if the user is submitting a new account signup with the same password as the existing user
 
People can surprise you.
 
Hey did, the "new account page" just appear on SO?
 
3:18 PM
Hell, my dad was the first member of my family to learn trig.
 
user559633
if so, treat it like a log in. if not, say "if you were invited, you should be receiving a confirmation email." if the user existed and the password was incorrect, offer a password reset
 
Air
Yeah, I tutored a 50-something ex-convict off and on, he had problems remembering basic operators
 
user559633
@jonrsharpe you probably caught the new profile launch
 
DSM
Ehh, new profile?
 
@tristan that was... unceremonious!
 
user559633
3:21 PM
the profile landing page is super noisy
 
@tristan I agree.
I liked the old boring one better. :P
 
DSM
Looks a little weird to me. But my top tags are python/pandas/numpy/list/python-2.7/python-3.x, which seems about right.
 
Air
This profile has been live on MSE for... must be over a month now?
 
@Air yes, something like that
 
Air
I have mixed feelings. I don't tend to use the profile tab at all.
 
DSM
3:24 PM
Oy. My autogenerated avatar is too pixellated at that size!
I do like seeing the time-to-next-badge bit, though.
 
user559633
I use the profile tab to go back and review answers i've left recently
 
Air
If the next badge guesser were smarter it'd see that I'm 4 votes from a tag badge
 
@Air you get next tag badge in the Rep box
 
Air
@jonrsharpe That one's showing a privilege since I'm just shy of 2.5k
 
@Air ah, right
 
Air
3:28 PM
Oh, cool, the little star-icon next to the upcoming badge lets you pick which badge to track. I didn't notice that before.
 
@DSM I thought the same thing lol, I'm a pixelated Donkey Kong now :(
 
rbrb guys
Time to go home :-)
 
@DonkeyKong you get pixellation - I end up missing a leg... that's your first world problems people! :p
 
My gravatar is HD, so I look great no matter what.
 
Okay, rbrb for realsies this time
 
3:36 PM
cbg
 
DSM
rhubarb for the departing!
 
user559633
ugh, since the profile launch, i only have 3k rep
 
user559633
the "you're not my real dad" elections are over a really long period of time
 
Wow, there is a very angry pear in the JS room.
 
@MartijnPieters GET ON MY LEVEL
 
3:40 PM
@BoltClock it's actually much higher, that's just overflow
Pretty sure YouTube ran into the same bug.
 
I'm almost to a million myself actually ;)
 
144k, oh yeah!
 
Go @davidism! :D
It would be interesting if the cuteness of your avatar correlated with the supposed "impact" you're having on stackoverflow.
 
How do you quantify "cuteness"?
Millikittens?
 
DSM
tst
 
3:47 PM
+1 for the new user profile pages reaching SO
 
user559633
"Apparently, this user prefers to keep an air of mystery about them." boo stackoverflow grammar
 
we need platinum badges
 
@AnttiHaapala Any platinum badge ideas? :P
 
5000 tag badge
or 10000
 
3:51 PM
For posterity, translated into salad, some angry pear's rant @BenjaminGruenbaum:
> @BenjaminGruenbaum YOU are a first class, spineless tomato hiding behind a computer. Peach yammer'er YOU started these beans by deleting my earlier corn and by spinelessly garlicing me. I will NOT back down, You can permanently garlic me I don't give a YAM and will get around it. Your sprouts will be appreciated, then maybe we can start over.
 
martijn would qualify for a platinum in Python
@davidism where :D
 
Air
@AnttiHaapala JS room
 
want to read before gone
 
JS room, but it was flagged into oblivion.
 
user559633
can't wait for the "social justice warriors" on this one meta.stackexchange.com/questions/253450/…
 
user559633
3:53 PM
RARGHLE BLARGHLE him/her/them/xhe/ponyself!
 
Air
@tristan you mad
 
@davidism this is great
 
user559633
@Air haha no i'm not.
 
@tristan I prefer Something Awful's "this user claims they are a porpoise"
 
3:54 PM
@tristan we don't know your gender, so ...
 
Air
I was so confused by those blank profile placeholders until I realized they were placeholders.
 
user559633
@AnttiHaapala it's incorrect grammar in english
 
@tristan what are you suggesting it should be? That is not clear from your post
 
@tristan Yeah uh someone actually pulled the SJW card on meta the other day
For a totally different reason (nothing to do with grammar). But SJW nonetheless
 
user559633
him/her
 
user559633
3:55 PM
is proper grammar
 
Guys check your profile page.
 
user559633
I can't believe people are downvoting and arguing for improper grammar
 
where?
 
@tristan you actually think it should be "him/her"? Not only is that awkward, what about accounts that aren't owned by individuals, or are owned by non-binary-identified individuals? And I like apostrophes as much as the next person, but claiming that "they" isn't "proper grammar" is ridiculous (see e.g. motivatedgrammar.wordpress.com/2009/09/10/…)
 
user559633
@jonrsharpe that's the correct grammar
 
user559633
3:58 PM
They really isn't correct grammar, no matter what someone on wordpress is advocating for
 
user559633
"C++'s grammar is awkward, so the way I want to use it is correct (even if it doesn't compile)."
 
DSM
This one's borderline for me. Use of the singular they has a long history; then it strongly fell out of favour; now it's coming back. The fact I think today's motivations for wanting to rewrite the language are silly doesn't make the history go away. (I use the masculine generic myself, for what it's worth.)
 

« first day (1642 days earlier)      last day (3300 days later) »