« first day (1427 days earlier)      last day (3516 days later) » 

2:01 PM
Damnit I can't post my sarcastic response because there's too few letters!
 
user559633
:D
 
:D see I just wanted to say "Yes."
 
OP seems happy with that answer, strangely.
 

Someone call the copse!

21 mins ago, 7 minutes total – 23 messages, 6 users, 0 stars

Bookmarked 54 secs ago by davidism

 
lol
overtrump with the title there as well, nice
 
2:05 PM
Words cannot describe how disappointed I am in all of you.
 
You've uncovered my secret skill: I'm very good at disappointing people :-)
... :-(
 
@Ffisegydd that ent nice
 
@Kevin so that's what one needs to do to get starred then...
 
Now here's the problem. If I gain the reputation of being a disappointing person, and someone comes in expecting to be disappointed by me, but I fail, would they find that disappointing?
 
Surely you've got yourself a win-win scenario there...
 
2:08 PM
probably, so you see: you simply can't fail with such a reputation
 
It seems lose-lose
 
But when one becomes satisfied with their disappointment, it disappears
 
Unless you like disappointing people, in which case you won't be disappointed
 
But I'd be disappointed if the level of disappointing didn't increase
 
If it makes you feel any better, no matter what you say or do I'll always be disappointed in you...
 
2:11 PM
Ahh... @ffisegydd - I see you've done motivational speaking and pep talks before...
 
Reminds me of the old Addams Family cartoon, where the jack-of-all-trades father is bored because he's succeeded at everything he's ever tried. So he devotes one day to finding something he will fail at; wrestling sharks, etc. But he succeeds all his tasks. At the end of the episode, he laments that he failed to fail. But upon further reflection, he is pleased to learn that he succeeded at failing by failing to not succeed.
 
@Kevin that person would be really, really annoying to be friends with
 
Thanks for getting that blasted theme tune going around my head @Kevin
@Robert I think after meeting Gomez you probably wouldn't want to be friends. If he invites you home to meet the wife and kids... say no!
 
A wife and kids? Dick.
 
On one hand, Gomez has like infinity billion dollars and is willing to share it with you. On the other hand, he'd probably insist on a brisk game of badminton in the man-eating tiger room, first.
 
2:16 PM
I've applied over a decade's worth of technical knowledge and relational database theory to come up with one table with 59 fields
 
(A gesture entirely without malice from his perspective)
So yeah, friendship is tricky there
Even if you don't get eaten by the tigers, you still lose the badminton game.
 
That would be annoying
 
He'd be like your rich friend that has all the newest game systems, but you never ever beat him in multiplayer.
 
2:36 PM
yo guys u know how when u import something in python like:
from com.compski.analytics.math.linearalgebra import CholeskyDecompositionCommons
you'd normally expect an ImportError: cannot find CholeskyDecompositionCommons right?
 
sure.
 
but why the yam do I get ImportError: compski
 
perhaps the module you're importing is importing modules.
and those modules can't be found.
 
thats damn weird.. coz the whole package is called "com.compski.analytics.math.linearalgebra"
there isnt meant to be a module called compski anyway .. i just want it to continue through the dots .. till it find Cholesky..
 
I never use periods in my module names so I don't really know how it works
 
2:41 PM
yea i hardly do that .. but most huge open source projects love making packages with lots of dots
 
Is com.compski... a java library?
Is there a special import method for java libraries as opposed to Python?
I assume you're using Jython btw
 
@Ffisegydd hahah nope
yes i am using jython
so bascially its goes like this ... <project>\ (src/main/java)\com.compski.analytics.math.linearalgebra
 
so it's not a java library, but it's in src/main/java?
 
nahh java imports nearly the same as python like "import com.compski.analytics.math.linearalgebra"
its a package name
 
So the package is actually called com.compski.analytics.math.linearalgebra ?
Can you have packages with periods in them?
 
2:45 PM
@Ffisegydd yeap
 
wait a tick .. so the DOTs are confusing my IDE .. is there a way to quote the package with dots so computer doesnt go full retard trying to find if i got a library in compski?
 
Got a question here where OP is using P and p for two totally different things. Oh fun.
 
Lazy solution: rename package so it contains no dots
 
@Kevin xD
 
3:02 PM
Hello!
 
Ugh... thought my mouth felt a bit sore on one side, just brushed my teeth ready to go out, and my gum's bleeding :( Fantastic...
 
:-(
 
Need some of those canine dentasticks.
 
@Ffisegydd why - it's cheaper to have a pint, steal the glass, smash it up, then chew that
John Prescott has come out about being bulimic - he hid that one well
rbrb for now
 
3:19 PM
Need the accept from this answer for 5800. Then just avoid all social interaction tomorrow to rep-cap and I'll be on 6k...
 
Wrap it up guys, there's no more python questions
and apparently, there never were
 
I think me making a snarky comment and voting to close is too much of a one-two punch. somebody else do it, please
 
Wooble went for it.
1. Learn python. 2. Write sudoku program. 3. ??? 4. Profit! — Wooble 1 min ago
 
this not the first time I saw someone mention Wooble? do u know him personally? why isnt he on this chat?
 
There are plenty of users that answer Python questions but don't come in to chat
Not being in chat is the default; the better question is, "why are we in this chat?"
 
He does occasionally pop his head in
Plus once you start answering questions you tend to run into the same people and learn names.
So even people who don't occasionally pop into chat, you learn who they are.
 
@Kevin lol u tell me =p
cool ok thats true
 
3:58 PM
I have assuaged my guilt by offering him some advice by comment, meaning I'm not a terrible person for crushing his hopes and dreams with my close vote.
 
Someone in the office is complaining that "StackOverflow isn't good anymore".
I really want to go up and say "Ask better questions" but I don't think that would end well.
 
So it goes.
 
cpx
That is funny.
 
@Kevin thanks for pointing out my house needs a roof, I somehow missed that.
 
It's not essential, really. Just good for keeping spiders out.
 
4:07 PM
It's just under construction still :)
 
I noticed our bedrock tunnels collided, as we feared
 
Actually, I've had problems when it's raining. Even well lit areas still spawn witches.
I connected them on purpose.
Add to the mega-tunnel!
 
Oh, minecraft.
 
Fine with me. I'll just do my future explorations in the other direction
 
Ignore the mega-tunnel!
 
4:09 PM
At the beginning of that conversation I just thought it was a reference to a previous joke I'd missed ...
 
I'll start conversations from now on as if they are continuing an earlier one, just to confuse.
 
This room is altering my brain. I now automatically assume "thanks for pointing out my house needs a roof, I somehow missed that" is referring to the real world.
 
welcome @Adam
 
Thank you
 
cbg @Adam :-)
 
4:14 PM
Working on anything today?
 
Just a little backend work for a work project
interfaces with android and ios
with jango
kind of just meandering on the net
how bout you?
 
I'd usually be working on my Python project, but I'm helping out on a Java Play project right now. It's painful.
@Kevin @JonClements time to write a bot: wiki.vg/Protocol
 
Reminds me of back in the day when I'd decompile the Minecraft client and grant myself interesting powers. Flight, diamond radar, etc
At the time, the server would unquestioningly believe anything the client told it, so flying was just a matter of sending the packet "my y velocity is 0"
 
ahh, the "good" old days
 
I had at least two users who eagerly awaited the release of my new client. That makes it my most successful product!
My killer feature was "flight sim mode". contemporary hacked clients usually implemented flight like "hover by default, control altitude with Z and X". Mine was "you travel forward in the direction you're looking", so you'd climb by merely looking up.
That was a fun bit of trigonometry to puzzle out.
I eventually got sick of having to re-un-obfuscate the jar with every release, but it was fun while it lasted.
 
4:27 PM
The fact that the main way to mod minecraft is to decompile it is baffling. I'm pretty sure they were talking about an api at one point but never made it.
Hmm, the last time I looked at the protocol it was about half as complicated.
Might be a good weekend project to start a Python wrapper.
 
I believe Mojang hired the team that developed Bukkit, the most prominent third party server modding API, but they recently left due to infighting or something
 
Just biked to work through a torrent of rain... not a good time
 
think about getting home
 
Don't worry, humans are mostly waterproof.
 
legally you have to say water resistant
 
4:31 PM
Mostly
I am now wearing camo-print pants that are a size too small, borrowed from a manikin
 
Source: this slightly NSFW Biology Stack Exchange question
 
The one Jon posted yesterday?
Yep
 
Do you have many mannequins at your work?
I'm imagining a trendy startup's office, but all the employees are plastic except for you. Imagine the video store scene from I Am Legend.
 
Just one
I am the mannequin
dun dun dun
I do work at a start up, they are about a 5 on the trendy scale, and I'm the only software developer, so you're mostly correct
 
One day you'll show up and the mannequin will be at your desk, and you'll have to model the clothes.
2 spooky 4 me
 
4:35 PM
Would totally be okay with that
Sounds like a pretty good job
 
Because the night before you got drunk and shouted "I could do your job for a day!" at it
Thus obliging the universe to deliver cosmic justice, as happens in 100% of these cases
 
If I am modelling the mannequin's clothes, is he naked?
 
He'll probably borrow clothes from the mannequin at the startup next to yours
Who will then in turn borrow clothes from... etc
 
> I see a few questions that were close, but voted down or closed.
 
4:39 PM
Given a finite set of mannequins at startups, there must be a least one naked mannequin
 
The cycle continues.
 
@davidism LOL
 
That's why you situate your startup in Hilbert's Grand Hotel.
 
bam another sopython-closed-question.
By the rules-that-I-just-made-up that means we now own their soul and their rep.
 
Gee, I dunno. A soul is a big responsibility.
 
4:41 PM
Just toss it in the bin with the other souls, we can have our intern sort them out later.
 
But our intern is a mannequin...
 
is there an equivalent to microsoft access on mac?
 
With all this detailed information about the MC network protocol, I'm surprised no one's written a stand-alone client yet.
Am I just underestimating the amount of effort that would entail? But keep in mind that some modders are extremely dedicated.
 
kevin i found the stupid dot explanation : stackoverflow.com/questions/709036/…
 
4:58 PM
People have, hasn't someone written a client in Python that's some ridiculously small number of lines?
 
There's a lot of information, but it's a pretty complex protocol. There's 3 or 4 different data structures that each have their own parsing rules that might be nested/embeded within other packets.. As well as the whole authentication/encryption thing.
 
Ah, encryption. A dedicated 12 year old can probably mod in a poop block, but he's really unlikely to be able to reverse-engineer AES.
(hmm, by implying all Minecraft players are 12, I just owned myself. Hindsight is 20/20)
 
5:37 PM
Woot, finally got my REST API issues all sorted
 
Quick poll: anyone here prefer lambda s: s[0] to itemgetter(0)? If so, why?
 
user559633
@ZeroPiraeus which profiles faster?
 
user559633
otherwise, 0 advantage
 
Background:
I think the only modification I'd do to this (in addition to your suggested generator change) is to replace itemgetter with a simple lambda. — Reinderien 16 mins ago
 
I prefer the first one because I can never remember which module itemgetter is in
For the same reason, I prefer lambda a,b: a*b over operators.mul or whatever it's called
 
5:46 PM
@tristan Identical for OP's code as it turns out.
 
cbg
 
I like itemgetter, it's immediately obvious what it does, rather than having to read a lambda.
 
Finally a voice of reason ;-)
 
But you have to read itemgetter to know what it does too...
 
itemgetter is a word. lambda s: s[0] is a sentence.
 
5:56 PM
The old "why does mutating one list mutate the other list?"
 
Not sure if it's the best dupe of that specific question though...
 
Andrew Medico beat us to it
 
You mean did it for us!
 
@Johndt6 why not?
 
Yeah, I guess it does, actually!
 
6:01 PM
The titles don't match up super well, but the content does
 
OP just phrased his more like: "Why is this bug happening?"
 
I think I actually just had a really good idea. But now I have no idea what to do with it
 
Put it in a bottle and throw it in the ocean. Merciful Poseidon will know what to do with it.
 
Kevin always gives the best advice
 
@corvid You could ask in here if anyone fancies investing sweat equity in it ...
 
6:07 PM
it was a chemistry based idea. Not entirely sure why it came to mind
 
"C6H12O6 + O2 => CO2 + H20 + energy". copyright Kevin 2015 all rights reserved. Contact me for licensing rights. Violators will be prosecuted.
If any of you are processing glucose in your blood or breathing right now, cease and desist immediately, you are trampling my intellectual property rights.
 
DSM
Debugging someone else's well-written but complex code and thinking about consequences of ebola becoming airborne, but might as well take a momentary break.
Midafternoon cabbage, all.
@Zero: I often write the lambda because it's more robust. I often want to do something with the result of itemgetter, which necessitates a lambda anyway. key=itemgetter(0)*2? Nope. itemgetter(0).lower()? Nope. Et cetera.
 
I found this comment humorous: np.reddit.com/r/tifu/comments/2g37hj/…
 
6:23 PM
Non-technical people like to talk about the cloud like it's some magical entity from outer space
 
The Cloud is like magnets. How does it work?
 
Can somebody help explaining why I'm getting downvoted here: stackoverflow.com/questions/25814399/…
SO community is weird
 
magnets work because of the fundamental forces of physics. Actually, I guess that's why anything works.
@PatrickBassut I can't read the text in that image.
 
@Kevin oh, that might be this, then
 
@Kevin Open it in a new tab
 
6:25 PM
@PatrickBassut Pasting a PNG of your code isn't helping ...
 
And even if I could, I couldn't copy-paste it to see if it runs on my machine. For these reasons, we usually prefer code to be in text form
But even transcribing those five lines may not satisfy the community. They may demand a short self contained compilable example that demonstrates the problem
 
gee, but why people keep downvoting without saying a thing?
 
There's no reason to cross out the original and put "Edit:", the entire revision history is viewable.
Also, there is no requirement to explain a downvote.
 
I think many people silently downvote, because they're afraid of retaliatory action from the original poster
"downvote me, will you? Well I'll just downvote ten of your posts myself"
 
DSM
I've had people revenge-downvote me when I neither downvoted nor close-voted, merely commented.
 
6:34 PM
@Kevin that makes sense, kevin.
 
That's an inefficient strategy. I just downvote every post by everyone who isn't me.
3
 
Or perhaps they simply believe that the poster is unlikely to change their post in response to criticism, so they merely use downvotes to indicate to others that it's not worth their time, or to force it into a lower position on the "questions sorted by votes" page
 
Hmm, does serial downvoting have a penalty? It's all reversed at the end of the day, no rep lost.
 
@DSM That's why every comment you make should start with "I didn't downvote, but...", which should cut down on that slightly
@davidism ok, replace "ten" with whatever is the largest number that doesn't trigger the serial downvote sensor
 
I meant, I'll get all my rep back at the end of the day when it's reversed, but will cause distress to someone in the mean time before they get the rep back too.
 
6:38 PM
Ah, you mean, is the serial downvoter penalized? I suppose it goes on their permanent record somewhere.
 
Not that anyone should ever do that.
 
6:50 PM
wow I suck at 3D modeling you guys.
 
@corvid cbg. And we want a picture :-)
 
How do you know what we look like?
That's probably why you're having trouble.
 
yeah the only pics he's got are 2d, that's why
 
DSM
Some of us aren't as blocky as our images make us seem. Jury's still out on whether davidism looks like he should be sitting at the back of class near the window.
 
Well, that's what a minecraft overdose can do to you...
 
7:12 PM
Oh hai!
 
can anyone answer me if when using Plone with Oracle, how the components behave?
do they work properly?
 
Sure, why not?
 
IDK just guessing.
have you been able to configure Plone to work with Oracle db?
I've tried using cx_Oracle and SQLAlchemy
but it doesn`t work. I want to be able to make a select on database, and see the content published on the website, on my oracle db
 
No idea, I've never used it.
 
7:21 PM
cbg
 
cbg
 
hmm
 
DSM
Cabbage, Jon.
 
It looks like plone uses zodb, but I think you're asking about getting data using an external oracle db. In that case, you should just use sqlalchemy. Show us a paste of how you set up sqlalchemy, maybe we can help.
 
Umm... nice meal... will go there again
 
7:23 PM
Lo @Jon :)
where?
 
A mexican restaurant next to a canal
 
Ah, where abouts you based? (S/N will suffice!)
 
Kent at the moment :)
 
DSM
A Mexican restaurant on a Friday? Way to think outside the box! (Far outside the box. Like crossing oceans.)
 
@davidism I installed instant client, and then I installed cx_Oracle
then, I installed SQLAlchemy via buildout on my plone.
 
7:25 PM
Ah nice :)
 
after that I entered the zope adminsitration and tried to create a connection for SQLAlchemy on the oracle server.
Remember that the oracle server is in another server, so I will try to access remotelly.
 
OK, I have no idea. This is big enough to make an actual question.
 
@DSM it was my Brother's idea
 
LOL
i know
thx anyways.
 
Was quite impressed... for 5 having starters, mains, 3 with deserts and 3 with cocktails, was £137
 
DSM
7:29 PM
@Jon: now I'm wondering if I want a quesadilla.
 
Anyone know why running `heroku run python manage.py migrate` doesn't work, giving: ! No app specified.
! Run this command from an app folder or specify which app to use with --app APP.
 
OK all running away again immediately, decided to not use the computer (Jen pronounciation) tonight - Rhubarb :D
 
@Ian have fun... rbrb!
I feel quite nicely stuffed...
 
Mmm, quesadilla-stuffed dog. Fusion cuisine :-)
 
DSM
Heh.
 
7:42 PM
Devilled crab stuffed dog :)
Mind you, someone also thought they'd try it, had one mouthful and wasn't that keen, so I figured I'd eat theirs as well instead of it going to waste
So we had to order them some ribs, which they didn't quite like, so ended up with half a plate of ribs as well... I might be doing a scene from Alien soon...
 
Sounds like a good dinner companion if you're hungry ...
 
well... I wasn't... but I was adamant that I'm paying for this... I'm eating it
 
user559633
Such a picky eater.
 
user559633
No ribs. No crab. Did the person just eat white toast?
 
Ate some chips...
oh and a bit of a prawn starter and a slice of garlic bread
 
7:51 PM
On the subject of left-field food preparation:
 
Oh... I was my told my 3 years of studying the right hand side would make me sound cool and intellectual... you're telling me I was lied to?
 
In puppy society it probably does make you cool and intellectual ...
 
8:05 PM
Not python related, but what do you think the general policy/feeling is toward these types of answers? stackoverflow.com/questions/25815865/…
 
user559633
shite. I feel like if I don't put in the effort to write the code to demonstrate the answer, I didn't do the work
 
I assume any comment or post with "good luck" in it is satire. Mine always are.
Well. Let's say 90% of the time
(covering my ass here in case I've ever said it to anybody reading this)
 
I just feel like this is a QA site, I asked for clarification and he responded with "I just want to know if this is possible" and well, the only two possible answers to that question is yes or no...
So I responded "yes"
@Kevin lol
oh.. he just removed his question.. So i guess i dont have to worry now
 
DSM
Most of the time -- not always, but most -- when people ask if something's possible they're not really asking if something is possible, and so the answer (even if correct) doesn't really advance the conversation much. I think I've seen a few questions where the answer was really a one-liner, like "Yes, you can still use function X in library version A.B, it won't be removed until A.B+3".
 
Yeah, the implication is usually, "give an example of one such possible solution"
 
8:13 PM
Oh fantastic - new episode of "Would I lie to you"...
 
@Kevin I typically follow the rule of code conservation. "I will put no more effort into my code example than you put into yours." and they provided no code
 
Since he reiterated that he just wanted to know if it was possible, I suppose a short answer is more justifiable
 
If the wsgi file is the first thing that's read by a wsgi server, why does djanfo have a setting to point to the wsgi file? Why does settings need to know that?
 
user559633
because you can likely start your application multiple ways and reading from wsgi can help you dynamically adjust settings in your application to be spawned by wsgi
 
@Zero I was looking at that - nice of the OP to confirm it - as that looked like the obvious answer :)
 
Indeed!
 
9:12 PM
Quiet chat these last few days :)
 
DSM
@Jon: is there an easy way to pull the complete chat history? I was about to say "well, it's midmonth", but then I realized there's a way to test that theory.
 
@DSM umm... you can make a websocket query to pull n amount since a last timestamp
but that's limited... the other way is to scrape the transcripts (I believe @Ffisegydd has something that may do that)
heya @Abhijit
 
Hello @Jon. Just thought will join the chat for an informal discussion :-)
 
You're more than welcome to do so :)
 
@JonClements and @ZeroPiraeus That question is not off topic. While it did originally have a typo, there was still a problem with the code
the typo wasnt the issue
 
9:22 PM
@Humdinger okay... haven't followed it up in the mean time...
 
VTR'd
 
thanks
Sorry, im still a noob with not nearly enough rep to moderate
 
Okay, I've vtr'd as well - we were all "noob" - but you're definitely not that "noob" :)
You could refine your answer even more though if you're going down that route
 
ok. How so?
 
9:32 PM
Well.. think about if var % 4 == 0 and var % 3 == 0
 
it should be i+i not 12?
or where you going another direction?
 
I was going to suggest just check 12, then 4, then 3
 
Thats true, my math skills didnt quite make that step. Thanks!
 
Working with Java again has reminded me why most projects take so long. It takes insanely long to write anything in Java.
 
Oh... I guess it's meant to add the number itself... not just add 12
so that's different... probably mis-read the Q
 
9:38 PM
@JonClements Ya, I cant quite decide if it should be i +12 or i+i
@davidism I would like to argue that projects take long to START in java, but takes less time to maintain (assuming multiple developers work on it)
 
Well, I read it as:
for i in range(1, 20):
    print i + next((n for n in (12, 4, 3) if i % n == 0), 0),
    # 1 2 6 8 5 9 7 12 12 10 11 24 13 14 18 20 17 21 19
Your answer gives:
1 2 6 8 5 9 7 12 12 10 11 16 13 14 18 20 17 21 19
 
It probably depends on the project. This one is not well organized.
 
umm.. I got a 24 and not a 16 for 12. How did you run my answer?
hmm
just re-ran it. Your right... wtf
hmmm
Oh... I made the same mistake as the op
I just removed one case >.<
 
@Humdinger glad to have helped :)
 
Whats sad is he marked my answer as correct before it was. I hope he used my middle example in my Original post, because that was the only one that was correct >.<
 
9:51 PM
You can have an upvote now :)
 
lol thanks.
 
Cyber's answer should probably be flagged as "not an answer" ...
 
@Zero nope - it was fine at the time
before someone bothered reading the post in more depth (@Humdinger) and pointed out the logical flaw
it was applicable to the original edit... so I think it should stand
@Humdinger you might also wish to consider that whole n = i thing anyway
 
Hmm, maybe ... more often than not "you have a typo (unrelated to your actual problem)" is a comment, though.
 
@Zero up to you... I'm not choosing to do so is all I'm saying
 
9:56 PM
Flagged it; will see what comes back.
 
@Humdinger i gets rebound to each item in the range anyway... so the whole += or whatever stuff is still applicable
Wonder if this answer was a little too clever
 
wait.. so are you arguing for just using i and not introducing n?
 
@Humdinger yup - it's basically not necessary
Great... got some mojito mixer stuff, but no actual rum...
 
You have a good point.. My personal opinion is that its cleaner, but maybe that's just me.. What do you think would be more understandable to a new python programmer?
 

« first day (1427 days earlier)      last day (3516 days later) »