« first day (1374 days earlier)      last day (3590 days later) » 

2:00 PM
Believe me, I need no help breaking diamonds. I've got that down to a fine art.
 
How do you do that?
It is supposed to be very hard to break, right?
 
@davidism is that using the allowed.py list?
 
I understand that jewelers can fracture diamonds with a well-placed chisel and hammer
 
I hit them with another diamond very hard :D
Yeah if you hit them on the right plane I assume you can cleave them with tools.
 
I just stare at diamonds and they turn into carbon...
 
2:02 PM
You're that suave.
 
It would be interesting to shatter a diamond by hitting its natural frequency. Is that even possible?
 
"Hey baby nice diamond neck...oh god...I'm so sorry!"
 
> Somewhat related to hardness is another mechanical property toughness, which is a material's ability to resist breakage from forceful impact. The toughness of natural diamond has been measured as 7.5–10 MPa·m1/2. This value is good compared to other gemstones, but poor compared to most engineering materials.
 
@thefourtheye LMAO
 
2:03 PM
lol
 
@JonClements I used allowed.py to pre-populate the approved group, but they're separate.
 
@davidism where was your wishlist again?
 
Yippie, I just realized I am getting my 9th Gold :)
 
@thefourtheye how come?
 
@JonClements I have got 1001 list answers :D
 
2:05 PM
Actually, no - you're not allowed 9 golds, because then you're level pegging with me :(
and you've already overtaken me on rep. you horrible fellow puppy :)
 
No, I am a beautiful nice little puppy. Ask anyone...
Ready for a barking fight?
 
Okay, I will: @Jon - "Do you think that @thefourtheye is a nice little puppy".... "No @Jon, I don't think he is..."
 
Gr..r.r.r
 
Starts hoovering floor Pipe down the both of you or the hoover will get you.
 
@thefourtheye attack the hoover, attack the hoover!
 
2:08 PM
bow bow, me scared.... looks for a safe place to hide
 
@davidism well, you're not having the quadcopter :)
 
That's my next project actually, I want to build a full sized one with remote video.
 
@davidism Scott Card fan eh?
 
how is my project
 
2:11 PM
@davidism You want a 5x5 Rubix cube? As if 3x3 is not difficult enough :D
 
@davidism pick something around $40 I guess
 
@tilaprimera thats pretty neat
 
@GamesBrainiac yeah, I have the ender series, but not the shadow ones
 
@GamesBrainiac :'> you really think so??
 
@tilaprimera yea dude, its terrific
@davidism Read ender's game but nothing after that.
 
2:12 PM
@tilaprimera even I think so :-) Good job
 
@GamesBrainiac thanks !! : )
hehe , thanks that is my major project btw.
 
@thefourtheye my best 3x3 solve is ~40 seconds
 
@davidism Have you read the "Insignia" series?
 
still not quite good enough...
 
3x3 is easy, the 5x5 ones are annoying as hell.
 
2:13 PM
@davidism :O How do you do that?
 
Just one slip up.
I haven't solved a 5x5 yet :(
 
@tila that's amazing.
 
I do not have experience uploading video on youtube, and my video name is quite a drag in there, screencast bla bla blla.... i see i have no change in editing the title of my video now.
 
@Ffisegydd thank you,
 
2:15 PM
Actually, I think the 4x4 is harder than 5x5, you have to deal with some problems that don't come up with odd sides.
 
@davidism I don't have a 4x4, the only thing I've solved is a 3x3 :P
 
@thefourtheye because this guy taught me in high school.
 
@JonClements Its not even fast forwarded.
Dayyum.
@davidism holy shit, that guy is awesome.
 
@davidism He has the world record for 3x3?
 
2:19 PM
@JonClements surprise me
I'm pretty sure he had it briefly, but not officially.
 
@davidism okay... inflatable goat it is...
 
uh, surprise me from the list
 
> 155 files changed, 1027 insertions(+), 18728 deletions(-)
Removing 20k limes of horribad code...
 
ooo
 
2:20 PM
@davidism oh.... oops :)
 
...I'll take the inflatable goat if it's still going...
 
@ThiefMaster "20k limes of horribad code" - sorry - made me chuckle anyway :)
 
lol :D
horribad is actually valid slang, for "more than horrible/bad" ;)
 
yeah... but limes.... :)
you should know one writes lemons of code :)
 
Debating whether I should link to the "Why can't I, hold all these limes?" meme.
 
2:32 PM
what the heck is my amazon password
 
hunter2
 
+1
I love how the algorithm stars that password there.
 
does apple sell discontinued products? I want to be super cheap right now
 
ebay.
 
ebay makes me suspicious... why is this thing selling for so cheap?
 
2:38 PM
Wow
Just had a client phone me up asking for an invoice
 
@JonClements I just got an email asking for the invoice too.
End of fiscal year coming.
> Our financial year end is 31.07.14 – can you please send an invoice with a July date for hours being claimed up to 31.07.14?
So I get to claim my hours early.
 
Spooky
 
invoice for what? : )
 
don't think we have the same client though :)
 
Nope, this is a university.
 
2:40 PM
I hired both of you.
 
@tilaprimera My services.
 
@JonClements another weird hungarian thingy? ;)
 
so that I may learn your many secrets
 
installing Flask! : )
 
@Crow I think if @Martijn and I were that protective/secretive about our knowledge we wouldn't be on SO :)
 
2:41 PM
thanks mate!
 
I do. Now all is becoming clear...
 
Use codementor.io/mjpieters or airpair.me/zopatista and you can pay direct instead.
 
@tilaprimera whatcha gonna make in flask?
 
@tilaprimera Stack Exchange.
 
15 years of experience in python o.o
 
2:42 PM
i am just gonna learn what it is :D dont know just yet!: )
thanks mate!
@Crow if you mean @MartijnPieters then i read 20* years
 
@tilaprimera 20 years web, 15 with Python.
 
ohhhhhhhhhhhhhhhh :D i am so dead? :D where are my specs!: ) there there, 15 it is!
 
I feel like you should have Flask tagged there too, you seem to know your stuff with flask
 
Codementor doesn't have a Flask section.
Ooh, I can add one now, new feature!
 
yeah it does, I just checked
 
2:45 PM
flask vs django! : ) which one should a noob like me learn at first?: )
 
make a minimal application in a single file, then make a python module out of it
I made some lessons on flask that actually might help you get started if you want. youtube.com/watch?v=fQtxhVQOxK0
 
is that a suggestion to me @Crow ?
such a :D great place! thanks@Crow
 
@Crow added now.
 
yeah, also a lot of tutorials follow that pattern. here's the github to go with the videos btw github.com/DarkCrowz/flask_tutorial
 
There was no Flask expertise available before.
 
2:48 PM
kinda figured, isn't flask itself rather new?
 
@Crow: Could you please use 4-space indent in your tutorial?
Tutorials are usually used by newbies who shouldn't learn bad code style from them
 
is the tutorial for python 3.x onwards only?
was that question funny?
 
@Martijn I'm not 100% sure I've got the best solution here seems a bit heavy hitting - sure it could be optimised further - any ideas?
 
Looks fine to me, actually.
@Crow 4 years now.
I expanded my Python __getattribute__ method explanation further still. Hopefully not too detailed for someone still trying to grasp Python; the basic idea is to state: it doesn't need to recurse to get self.__dict__, but it needed proof.
 
3:05 PM
Well, we all know you're rubbish at Python @Martijn and that you need to provide proof :)
 
@MartijnPieters where's the article?
I've recently learnt a few things about packages.
Going to make a blog post about them :)
 
@MartijnPieters lol, overkill
 
I had to make sure I wasn't going to hit the 16-points-per-answer average for python-internals..
or something.
 
lol
Let me have a read over it. Its pretty neat
@MartijnPieters when you're talking about slots, do you mean __slots__?
 
3:20 PM
@GamesBrainiac No, __slots__ is just a way to have your Python class use slots.
so exposing the C slots to Python.
 
@MartijnPieters Ahh, I see, I get it.
 
The instance object C structure has a variable number of pointers, these are the slots.
One of them is the __dict__ attribute.
but you can have that expanded to contain a number of other pre-defined slots, which is what __slots__ gives you.
 
Wait, let me just look up a couple of references. Haven't talked about PyObject for a while.
 
Your class is then initialised to have additional descriptor objects that access those slots when you access the associated attribute.
In this case, the slots I am talking about are pre-defined entries in to the C type definition.
The entries in the PyTypeObject struct are also called slots.
 
@Martijn ever wanted to go around to one of your client's offices and hit them with a stupid stick?
 
3:29 PM
@JonClements I have a wooden Katana just for such occasions!
 
Can I borrow yours or get advice on where to buy one for myself
Client: "We need to do x", Me: "Errr, no, you don't..."
 
You were correct! I restarted the server, but another error surfaced. I will attempt to fix it myself first before troubling you guys again. — Firkamon 2 mins ago
at least they're being forth-right about things :)
 
Mine is white oak.
 
Which is easier SQL alchemy or Django ORM
 
3:47 PM
In the long run, you will be better off with SQLAlchemy
In terms of speed and control.
 
@user3620828 Neither are 'easy' unless you fully understand SQL relational algebra.
But SQLAlchemy is the superior implementation, by a long shot.
 
DSM
@MartijnPieters: you've been so busy on Meta I consider you a crypto-mod, so I'll ask this: what's the policy on scrapers without attribution? I found a Meta thread but it seemed ambiguous about whether you should report one which doesn't rank above the SO results.
 
Anything I missed here? Little puzzled I got downvoted there.
 
@DSM You report it.
118
Q: Updated procedure for reporting SCRAPERs

PopsSince day one of Stack Overflow, all content posted on Stack Exchange sites by their users (i.e. you wonderful people) has been provided to the whole universe under the CC-BY-SA license. For my fellow non-lawyers, that license basically means: Anyone can use any Stack Exchange posts at any time...

 
3:57 PM
@Martijn unfinished first sentence?
*second
 
DSM
Will do, then. pythoneye, in case anyone's interested.
 
@DSM fix link
 
@vaultah Thanks, that's the kind of feedback I was hoping for. Removed it.
 
I doubt you were downvoted because of that
 
@DSM You trying to trick us into visiting a trojan-installing site, eh?
 
DSM
4:00 PM
That's my plan. Stock of my AbacusTech company will skyrocket!
 
Does anyone have any idea about this? stackoverflow.com/questions/24841130/…
 
@MartijnPieters My best guess is, it didn't satisfactorily answer the question that the OP asked in a comment on his post: "but when we'll use this bool() in code?", or in other words, "what is a practical example of a time when you would explicitly call bool()?"
 
I wonder how Gordon Linoff makes a living, and how he finds 30+ questions to answer in a day.
 
Although, if that's the reason, then Stick ought to have been downvoted too, since he answered roughly the same time as you and also didn't address that follow-up question.
 
Strangely too many people upvote my comments today
Oh well, a Pundit badge..
 
4:12 PM
@Kevin it probably was the vestigial sentence. I added an example.
 
I don't think that that is off-topic, no.
It shows 0 effort, sure, so I downvoted it instead.
 
Isn't it too broad?
I don't think it's off-topic either.
 
It could be too broad, perhaps.
 
4:31 PM
lamb shish kebab...
delicious
fixing critical billing systems - not quite so
if part.get_content_maintype() == "text":
    text = part.get_payload(decode=True)
    # Dates all sent in dd/mm/yy format
    matches = re.findall(r"\d\d/\d\d/\d\d", text)
    for match in matches:
        try:
            return datetime.strptime(match, "%d/%m/%y").date()
        except ValueError:
            pass
return None
I can see what it's trying to do, but don't understand why
 
DSM
Wish me luck, everybody. Today's my first official day having to program in Java! (Insert ProblemFactory joke here.)
 
new LuckFactory('DSM').wish()
 
@DSM not sure about luck - can we just commiserate instead?
Might just be me, but I'd have added a raise to that function instead of a pointless return None... this is why I've been getting silent errors passing through
and traced it back to that...
anyway, rbrb
 
4:49 PM
ah thiefmaster, my .editorconfig was set to a js project so it was still on tabs
 
@DSM My commiserations!
 
@tilaprimera yeah tutorial is in 3.4, I think 2.7 won't be very much different tbh, I ran it once on 2.7 and it worked fine
 
thanks: )
i will look into flask docs.
 
they're pretty good, I'd also recommend "Flask Web Development" by Miguel Grinberg for a book. It's pretty brief to get you up and running
I generally use a mix of his structure and this structure for my flask app
 
cabbage, all
 
4:52 PM
user image
6
 
hi
 
@holdenweb cbg
 
Anyone else at OSCON this week?
 
DSM
Eh, it's not so bad. It's only for one project, so I'll still be able to do most of my analysis in Python and spam this chatroom with my C++ complaints. But if you catch me writing def public void main(String[] args):, please let me know.
 
I'll have the wet washcloth ready.
 
4:56 PM
if I like test a python package (not unit test), the functionality of packege, like
$ pip install -e .
$ my_script # call to script an test
this is a functional test ?
and, what is a good test framework for functional test of script ?
 
... huh?
I hate when I have to write javascript... it seems mostly good, but just lacking those few conveniences which are SO nice in python
 
5:11 PM
@thefourtheye surprisingly they know about IP :)
 
mmm thats fishy ;)
 
5:27 PM
@holdenweb I take it you had a safe flight?
@Ffisegydd @MartijnPieters have either of you guys restarted the new sopython.com server?
 
No
 
sopython - (17458742) Lassie initiated boot: My Ubuntu 14.04 LTS Profile - Completed Mon, 21 Jul 2014 16:23:26 GMT
 
Yeah, I did
I'm messing with temp, installing sopy
 
Oh, awesome.
 
oh okies - proceed - was wondering why I got that message is all
 
5:33 PM
I had updated and rebooted
 
@davidism sorry - wasn't aware you'd been provided root access :)
 
blame @Ffisegydd :)
 
Blame... scans chatroom ...@Kevin.
 
I did suggest it should be so, but wasn't aware it had been actioned :)
I have no qualms with it
someone should probably keep me better informed cough
 
> bark
 
5:37 PM
I refer to the email of 6th July :P
 
Errr...
I have one on the 7th?
 
Close enough.
 
> I won't be giving him sudo privileges or anything but thought I'd let you
> know in case you got confused.
 
TOO LATE MWAHAHA
 
To which I replied: Do as you see needed mate
 
5:41 PM
It's YOUR project mate... you're leading it... if you think that's a
good choice, I'm glad you've gone for it.

Thanks for informing me and keeping me updated... **but no need to really.**
 
@Ffisegydd It's true. I spend all day not providing access to things.
 
(stoopid md...)
 
But sometimes you just need a change, you know?
 
Anyway :P sorry I didn't tell you, I assumed you'd known when you said "I'm happy for sudo privileges to be given"
 
ok, to I'll say something in here first next time :)
 
5:43 PM
no worries.... David's a massively important part of moving us forward, I have no qualms :)
(just one of those - maybe would have liked to have been properly informed things)
@davidism well, I'm torn between the settlers of catan and the opengl book
 
I choose Settlers of OpenGL.
 
Ooh, Catan. I haven't played that in a while.
 
@davidism oh ffs, just pick something you really want so I can order it :)
 
Probably because every time we have a board game night, one of our friends refuses to play. Apparently he played so often in college, he became unbeatable.
Nice of him to spare us the humiliation, I guess
 
I'd go with Catan now.
OpenGL will be great in a year when I have enough time for a game project.
I fixed the list so there's a shipping address, not sure how that works if there's not one.
 
5:51 PM
I despise fly spray.
I also despise flies in general.
 
@JonClements Didn't touch it.
 
What the heck - Amazon offers Visa cards now?
 
Yeah dude.
You get % off your purchases.
 
When did this happen... fairly sure I used amazon last year and didn't see that one
 
Been a while now I think
At least a few years
 
6:00 PM
Umm, looking at it more, it's a credit card of some sort
 
Mastercard I thought? Though I don't have one
bankofamerica.co.uk/amazon Bank of 'Murica.
 
hey davidism you worked with google openid logins before, right?
 
1 item will be shipped to David Lord by Amazon.com. Estimated delivery: July 24, 2014
 
Thank you, that's awesome. :)
 
I thank you for all your effort
It's being sent to "Address Confidential" - so you'd better have the right one on your account :)
@DSM cbg!
 
DSM
6:10 PM
Cabbage, Jon.
Shorter DSM on Java: I now understand why people use IDEs.
 
@DSM do you have a choice of IDE? If so I'd suggest IntelliJ
There is a Community Edition which is free.
 
I think when I've worked with Java, I didn't have too bad a time with Eclipse
 
(It's basically Pycharm but Java)
 
very resource heavy mind you, but completely designed to work with Java
 
Netbeans or IntelliJ
 
DSM
6:12 PM
@Ffisegydd: using Eclipse, both because I have some history with it and because it has a nice GUI tool for one of the libraries we're using.
But the language is sooo verbose compared to what I'm used to.
 
Write everything in jython
 
@DSM feels painful doesn't it :)
 
Heh
 
@DSM rather you than me though... not sure I've got any sins to repent for left :p
 
@DSM better or worse than F77?
:P
 
DSM
6:15 PM
I remember once reading something saying that C++ let you work in the problem domain instead of the implementation domain or something. I thought that was ludicrous given the insane complexity of it, which C++11 doesn't remove but ameliorates, and especially given the relative simplicity of other languages.
But the amount of 'plate here is astonishing.
@Ffisegydd: I'll thank you not to remind me of those dark days. COMMON /stuff/
 
IMPLICIT NONE
 
DSM
Heh. I'll say this for my prof, their project enforced not-insane coding standards.
So we had that everywhere.
 
Yeah it was drilled into us too in undergrad. It was even implied (heh) that the code wouldn't work at all without it.
They just said "You must use IMPLICIT NONE and you must declare all variables"
 
DSM
Although frankly I'd probably call out using i,j,k for anything other than integer indices in a code review..
 
huh. Think I finally got inline validation of wtforms working on jinja2
 
6:40 PM
the renaming of raw_input to input has caused a terrible amount of confusion in people using Python 3 tutorials and Python 2 interpreters.
 
DSM
Probably a few hundred questions by now?
 
Surely.
 
DSM
I think I'd have chosen a different name from input, and then had both input and raw_input raise a new VersionError or something.
 
Same, provided a good synonym exists
 
6:50 PM
nice... o_O it's all in matplotlib
 
user559633
anyone have recommendations for python 3 fuse libraries?
 
Use Python 2.
 
user559633
Fine :(
 
7:05 PM
Mhwhaha. Viva le revolution.
 
user559633
I look forward to 2.7.9
 
user559633
i'm going to try to at least write part of this application in py3, but it's starting to feel like it's not worth ever moving to 3
 
7:20 PM
Any XML or Python dupehammers available?
 
why is javascript so confusing? x.x
 
Because they wrote it in a week.
 
Wheeee, 502 errors on simple Google searches!
Don't want to be a site reliability engineer right now.
 
I found the first thing I hate about low-level programming -- namely the comparison of floating point numbers (eg.: floats, doubles, long doubles). It is just ugly..
@Crow why Crow, why?
 
@PeterVaro what?
 
7:31 PM
Why, "Why?" Crow, why?
 
you know, the usual: you ask a question about something that is.. umm.. weird? and then I react with the form: "why Crow, why?"
 
I said it more concisely.
 
(I'm very disappointed you haven't noticed this, I've been doing this for almost half a year ago)
@davidism yepp.
 
@Ffisegydd Check out temp. Need to migrate wiki pages and common questions from main site.
 
@davidism awesome dude.
I can migrate the content
 
7:37 PM
sudo -iu sopython
sopy shell
to get to the shell on temp
sudo supervisorctl restart sopy-uwsgi
to restart the application
 
user559633
@Kevin week*end*
 
Ok cool. So if I were to make a change to the application (and when it's on sopython.com itself) it'd just be sudo supervisorctl restart sopy-uwsgi?
 
user559633
and they've been making it worse ever since :P
 
Right. It's installed as a release, not as source from github, so you'll have to create an sdist from your machine and upload it.
./setup.py sdist
rsync dist/sopy-1.0-dev.tar.gz ffisegydd@temp.sopython.com
sudo -iu sopython
pip install ~ffisegydd/sopy-1.0-dev.tar.gz
 
Ah cheers dude :P
 
7:52 PM
cbg again
 
DSM
We're like a farmers' market. Drop in for some cabbage; get some rhubarb on the way out.
 
> The word of the day is "Cabbage"!
Isn't that the word of the day everyday?
 
@Ffisegydd wow
how close are we to actually being "live" on the wiki and homepage side stuff?
 
I'm adding wiki content now
 
7:56 PM
so temp is the new server, and we can aim to shutdown the old one before end of month ?
 
Yeah it'll just be a DNS switch over to go to sopython.com
And yeah we can aim to shut down before the end of the month.
 
wooooooooooooooo hooooooooooooooooooo
 
If the new site becomes "sopython.com" while features are still missing then ok, but it saves paying for another month on the old server.
We have the base features now
 
As long as we have the "content"
 
We can add/delete/edit wiki and common question content
 
7:58 PM
@Ahmad I can add 'The word of every day is "cabbage".
 
I am copying the wiki articles across now.
 
@davidism :D
 
temp.sopython.com/wiki/1 useful comments, first wiki page :D
 
All the original features should be there, the only thing "missing" is the new features. Had to get a good framework first.
 
@Ffisegydd the markdown doesn't work :s
 

« first day (1374 days earlier)      last day (3590 days later) »