« first day (1931 days earlier)      last day (3033 days later) » 

5:00 PM
You can also do wx.YES_NO & wx.STAY_ON_TOP if you want it to well, stay on top.
 
@MorganThrapp How does that differ from MessageBox?
 
my spider plant at home had babies - I call it plant parenthood
4
 
I'm not sure, I've never used MessageBox.
Are you on Phoenix? Or 2.x?
 
user559633
@inspectorG4dget spiders come from plants? brb burning all area trees
 
Windows 8.1 Python 2.7.11 Wx 3.0.2
 
5:03 PM
@MalikBrahimi I've only used the 3.x fork, but that's what I use and it works fine.
 
yes, i know message dialog works. Does it go to the top tho?
 
As far as I know.
 
@MalikBrahimi are you seriously not willing to just try it and see if it does or not? All the how to ask guidelines don't just fly out the window when you ask in chat.
 
I'm trying it as I said. I'm getting an error, as I said.
NotImplementedError: No matching function for overloaded 'new_NotificationMessage'
 
You haven't posted any code, keep slowly doling out more tidbits, and don't seem to be willing to try anything we tell you.
Please use dpaste.com to post an MCVE.
 
5:08 PM
ans = wx.NotificationMessage(MESSAGE, document, None, wx.YES_NO)
That is the only relevant line of code.
MESSAGE and document are both strings.
@davidism Any ideas?
 
Have you tried doing what I suggested and replacing NotificationMessage with MessageDialog?
 
@MorganThrapp thanks, but garlic
@MalikBrahimi my idea is that you read what I posted above about MCVE.
 
Since when are there notifications for kicks?!
 
I started getting pinged by them no later than a week ago.
 
user559633
At least yesterday, maybe longer.
 
5:13 PM
@tristan I once told my niece that spiders come from bubblegum. She freaked out SO MUCH!
 
I find that the pain is a pretty effective notification.
 
user559633
@inspectorG4dget O___O and i thought i was a bad uncle for buying Mega Bloks one time instead of Legos
 
The only reason anyone has children is so you can tell them outrageous lies.
 
Postgres is so powerful .-. it can do so many things, TIL it is super easy to make it stream results from a db, and that it can have schema-less json in fields
 
user559633
@inspectorG4dget wait, so you bite the gum and the spiders hatch? or the bubble is the egg or? either answer would breathe more darkness into the world, to be honest
 
5:16 PM
When I was eight I would chew on the cord for the venetian blinds to verify that they tasted the same as the day prior. I commend my own dedication to experimentation. How else could I tell whether I lived in a universe where cords changed flavors for no reason?
 
user559633
@Kevin how are you so smart now
 
I suspect that this kind of uncertainty is common to all children, although none of them will articulate it as such
 
I really want to steal this spiders come from gum thing, but I"m not sure how to make the lie work.
 
@tristan it only worked because she swallowed the gum - it gestates in your stomach for about a week, during which time it absorbs nutrients from the food you eat. At the end of the week, the spiders hatch from the bubblegum, which is attached to the inside of your stomach
 
@tristan I really don't know.
When I was 11 my bicycle hit a tree root and I flipped over the handlebars onto the ground. Maybe it gave me a reverse-concussion that made me good at math.
 
user559633
5:20 PM
ah yes, the medically recognized "broke something loose" theory of intelligence
 
Everything I know about neuroscience, I learned from episodes of The Flintstones. Blows to the head can give you amnesia, or make you behave like a snooty british person named Frederick who no longer has any time to spend at the water buffalo lodge with his friends.
 
user559633
animal abuse is justifiable if they serve similar purposes to appliances. not referencing flintstones, just stating deeply held beliefs
 
The Flintstones shows outdated science actually, if you want to peek on modern neuroscience you should watch the simpsons: resources0.news.com.au/images/2013/05/30/1226653/…
 
user559633
it bothers me that his hair and eye-meat are visible in the xray. and also it's not transparent at all.
 
I guess light works differently in the 2rd dimension.
 
5:25 PM
@corvid you can use postgresql to combine other databases, files, etc.: postgresql.org/docs/current/static/ddl-foreign-data.html
(still under development, but awesome)
 
user559633
how much would it cost to hire an assistant to snap his/her fingers whenever i deviate from the task i'm supposed to be doing?
 
hella
 
user559633
hella dollarz. mad hesh buckz
 
I also have focus issues. But I'm not sure if it's an ailment or just something all humans struggle with?
I assume other people also do not like to do things that they do not like to do.
 
user559633
I like what I'm doing, but I'm just easily distracted when working from home.
 
user559633
5:29 PM
It's all of your faults for being interesting.
 
When telecommuting comes up on Hacker News, there are often commenters that describe having 6+ hours of uninterrupted focus as if it were easy and typical. This means 1) there are people with perfect mastery over their attention span; and/or 2) there are liars on the Internet.
 
There are some people who crack on, do the job and relax properly at the end of the day.
 
user559633
Back when I took [legal] drugs, I could do 4-5 hour spans of focus.
 
user559633
Now, I just sort of let it goldfish into 14 hours of chipping away
 
I can enter flow state and ignore all distractions for hours, but it's like a bi-annual non-voluntary event.
 
user559633
5:34 PM
I had an easier time when I went into an office hours before other people. Working remotely, I'm normally in the kitchen, so I get distracted by human interactions.
 
user559633
That said, I've found it to be far easier to get uninterrupted chunks of time as a remote employee than as one in an open-office floorplan.
 
I definitely work more easily when I'm in the office, but more broadly the nature of the work affects it a lot. It's easy to get into the zone when you feel like you're really accomplishing something or defeating a problem.
 
user559633
Modern "enterprise" software is really disrespectful of focus though -- hipchat and exchange both want to make alert sounds and bounce windows.
 
When I really dislike what I'm being ordered to do, or am forced to spend a lot of time on things I shouldn't need to, it's difficult to get into the zone.
 
user559633
5:40 PM
Same, or when being pestered for status on a really time-consuming task. Yes, my current day job is in an "Agile" shop.
 
user559633
@Programmer cultural and context dependent
 
user559633
also ugh i went to reddit
 
I feel inadequate when people say "when I don't like the task I'm working on, I'm lucky to only get 20 productive hours out of the week" when for me it's more like <5.
 
Foreign data wrappers are a lot more developed than I thought: wiki.postgresql.org/wiki/Foreign_data_wrappers
 
user559633
the whole "LOL WE HAVE NO IDEA WHAT WE'RE DOING IN THIS FIELD LMAO WHAT IS HUMAN EMOTION" is starting to become nerd blackface
 
5:42 PM
> Can be used to access data stored in any database supported by the sqlalchemy python toolkit.
 
Well said. I can't top that.
 
@Kevin My time is very productive! It's just productive in things other than what I'm paid to do.
This dumb excel parsing project has caught me up on many episodes of Would I Lie to You?
 
user559633
which is to say, there's a big difference between being cognizant of the fact that we're using incredibly complex, generalized tools to perform complex tasks and saying "lamo i poop into sock live with mom DOWN WITH CAPTLism girl dragon tatters"
 
> the Meta FDW! reads this page and returns the list of all the FDWs
 
Remember when I made a raytracer with functional positional lighting and reflections in seven hours? Yeah, I can't do the same thing when the task is "our VB app from 2003 is kind of slow, can you do something about it?"
 
5:45 PM
you can use FDW to SQL query what FDWs you can use
 
user559633
@Kevin i think maybe you're just working the wrong job then.
 
user559633
it actually makes me a little sad to realize the wasted potential of many of the programmers i know
 
user559633
one of the smartest people i know spends all day poop-scooping a project because it's staffed with newbie java devs
 
@Kevin Yeah, that's exactly how I am too. I can get completely focused on a code golf problem for hours at a time, but I struggle to concentrating on anything I'm doing at work for longer than 30 minutes.
 
"A job where I am only ever assigned interesting problems" is up there along side "ice cream taster" as far as feasibility goes
 
user559633
5:52 PM
sounds like you'd be happy as a graphics or art-installation designer
 
I wonder if I could break into the "making fake operating system screens for tv/movies whose plot involves computers" industry...
 
I would even be okay with a job that wasn't "Get yelled at by angry clients and then dive into a 5 million line codebase that you don't know and is terribly written".
Note: I am not joking about the 5 million LoC. That's one of our products, there are 4 that I deal with on a regular basis.
 
I watched Reasonable Doubt last week and at one point a character is frantically copying files to his flash drive before the police chief comes back to her office. The whole time I was thinking "I could make a more convincing file transfer progress bar than that."
 
user559633
accuracy, yes, that's what they go for in "computer sequences," yes.
 
Mr Robot actually did a really good job with it. Like, really, really good.
 
user559633
6:03 PM
not sure if trolling
 
cbg!
 
But yeah, I've never seen another show do anything well.
I'm not, at all.
 
Is there an existing question for the best way to convert a bytearray to bytes that's compatible with both Python 2 and Python 3? I feel like I've seen such a question before, but I can't find one.
 
user559633
oh hey @idjaw
 
heya! Long time :)
 
user559633
6:04 PM
not to weird you out, but just yesterday i was thinking of contacting you to see how you were doing.
 
user559633
wasn't sure if paper towel coffee killed you
 
Is it 100% perfect, no. But it's at least 80% and that's 70% better than any other show.
 
user559633
@MorganThrapp yeah, super fair. immediately thought of the phone hacking/backdoor thing
 
That's actually real.
 
I liked the file transfer sequence in X-Men. Or maybe it was X-Men 2. It was pretty futurey. If you're going to be fake, at least make it flashy. Reasonable Doubt's looked like something out of Windows 97.
 
user559633
6:05 PM
i really liked the "tech support as a predictable backdoor"
 
Wired did a great article showing all the actual tech they used.
 
Office Space's file transfer sequence was Windows 97-ish but that's appropriate for the setting.
 
The only tech bit that bothered me was in the first episode when Elliot and Tyrell were talking about which window manager they used in Linux.
But the fact that they even knew it was Linux, and used actual popular window managers, means it's like a million steps above every single other show.
 
@tristan :) thanks. Not weirded out. Was pretty busy last little while. Re-balancing things now. How have you been>
 
user559633
@idjaw Good, silly busy. Yourself?
 
6:14 PM
Keeping busy....signed up the kids in to swimming classes and I decided to start playing hockey a couple times a week.
I figured it was about time I went full Canadian.
 
@idjaw: where in Canada are you?
 
@inspectorG4dget Montreal
 
brilliant! we're practically neighbors (I'm in Ottawa)
we should totally meet up for some beavertails and poutine at some point
 
awesome!! Speaking of which, it is almost poutine week! so definitely poutine! lapoutineweek.com
 
The stripe of land close to the US border is overrepresented. Just once I want "where in Canada are you?" to get the response "I'm researching migratory bird behavior up in the Arctic circle"
"This research station hut gets surprisingly good broadband"
 
6:27 PM
My friend's girlfriend had to do something similar. But not much amazing broadband there
 
Does "had" imply "did not want to"? I'm trying to imagine what profession involves involuntary trips to the poles.
 
user559633
maybe she had a bipolar order
 
well played
 
Door-to-door salesperson with a very poor relationship with their boss, perhaps.
 
user559633
not my best work.
 
6:30 PM
"Nunavut is an untapped market, trust me"
 
census gathering person in Poland, maybe?
 
user559633
very magnetic personality?
 
if a pimp forced one to be a stripper?
 
Cursed to morph into an arctic tern every day at sundown. Wait, that's not a profession. Uh, mall kiosk worker.
 
but that's more non-voluntary, than involuntary
 
6:35 PM
jello
 
Geographer doing contract work for the Flat Earth society to investigate the properties of the "hub".
And they send one of their own to supervise, just in case your findings are tampered with by pesky round-worlders.
 
voter for hire
 
That's "polls" :-P
 
damnit! I need to make a spellchecker for puns
 
@idjaw Well, I'm hungry now. I wish the US had more poutine, it's so amazing.
 
6:46 PM
@MorganThrapp that's poutine it lightly
 
Is poutine French for chili cheese fries?
 
user559633
@QuestionC 'messed up cheese and gravy fries'
 
With cheese curds.
 
user559633
covered that with 'messed-up cheese'
 
The ultimate form of cheese.
 
user559633
6:49 PM
i wonder if you can feel my disdain over the internet
 
Don't you be hating on squeaky cheese.
 
don't you hate on poutine... I just might start with that battle between Professor Snape and John McLean again
 
user559633
the squeaky cheese wheel gets the grease
 
user559633
John...McLean?
 
Mmmm, greasy cheese.
 
6:50 PM
well, it gets the gravy
yes, that was when John McLean threw Professor Snape off one of the twin towers
 
user559633
huh, weird, the interface for room owners doesn't have a "banish to hell" button
 
... before stealing a ton of money that was contained in a bank therein... after which Nick Fury flew a plane full of snakes into it
ohsnap! I said nothing
 
user559633
 
user559633
a conundrum for a friday night
 
damnit! I'm past the time limit to delete a comment
 
6:54 PM
Oh, right, you mean Action skyscraper.
 
user559633
that's okay, in die hard N: whatever harder, i'm sure they'll blow up a spacestation or something
 
user559633
haha action skyscraper is my favorite thing of this week
 
well, you guys just set up my friday night
 
I also like the Polish translation The Glass Trap
 
6:56 PM
I'm picking up poutine and watching die hard
I think that is totally happening tonight
 
user559633
@inspectorG4dget vegetables is your peace offering? why didn't you just mail be a box of bubblegum spiders
 
My gf has been asking to watch it, so maybe tonight will be getting drunk and watching Very Hard To Die.
 
or maybe I should watch another building based action movie...like The Raid. I haven't seen that one yet.
 
user559633
Very Hard to Make Die 2: Die With Greater Difficult
 
@tristan I was going for the "peas"/"peace" homophone pun
 
6:58 PM
The Glass Trap makes me think it's the sequel to Home Alone.
 
user559633
@inspectorG4dget oh, i'm aware, but it's like asking for the hostage back and being mailed their severed hand, with the middle finger out
 
http://www.drinkamara.com/wp-content/uploads/2015/03/bacon_blog_post.jpg

better?
 
user559633
that reminds me that it's time for my once-every-10-years doctor appointment
 
Die Hard 4.0: The Most Expensive of Your Life
 
chuckle
 
user559633
7:01 PM
i'm tired all the time, so i'm either dying or getting old
 
user559633
die hard 5: turns out it's pretty expensive in america to die
 
user559633
this conversation is dark
 
user559633
i'd watch a movie that combined the plots of home alone and die hard
 
Die Alone
 
user559633
rube goldberg devices, but with a serious purpose
 
7:04 PM
Home Hard.
 
user559633
@MorganThrapp O__O
 
phrasing
 
user559633
Home Hard Alone
 
Reminds me of the comic where the lady is sitting in the examination room waiting for the doctor to come back in and she fantasizes him saying "your lethargy and lack of enthusiasm for things you used to enjoy and a feeling of disconnection from your loved ones is all caused by a vitamin deficiency which we can treat immediately" and then the doctor comes in for real and says "the tests are back: you're perfectly normal. Guess you're relieved about that!"
 
user559633
Sequels just make it better
 
7:05 PM
Die Hard, Home, Alone
 
Home Hard Alone: With a Vengeance
 
user559633
can't even create titles without laughing
 
Live Free or Die Hard Alone
 
I'm actually surprised it has a 7.2 rating on imdb
that can't be right
wait...82% on rotten tomatoes?? what's happening here
 
7:08 PM
Mate he does drive a car into a helicopter.
What else do you want?
 
which one was the one where he was standing on the wing of a fighter jet?
was that even die hard?
 
user559633
Die Alone Hard is kind of going for it
 
@idjaw 2 and it was a commercial plane.
 
user559633
i'm pretty sure that jon clements will join tomorrow morning, scroll back and just mouth out "what the fuck?"
 
7:11 PM
@Ffisegydd Die Hard 4 was a fighter jet - an F35, IIRC
 
Oh really? I only watched it once.
Jeez MacCane find some new stunts.
 
@Ffisegydd , @inspectorG4dget beat me too it. Die Hard 4
on that note, time for end-of-sprint activities
 
was it DH2 in which he blew up that plane after fighting a badguy on the wing?
 
it's been fun chatting! :) Hope to be back more frequently. Until then take care all
 
Rbrb, idjaw.
 
user559633
7:14 PM
take care idjaw
 
I don't think they'll ever beat Die Hard 2 in terms of subtitles. "Die Hard 2: Die Harder".
 
au revior @idjaw
 
Hello bros, i'm trying to build a new API entry with Django REST Framework, but got a problem. Someone used to this framework ?
 
@Addict hello, please read our room rules: sopython.com/chatroom
 
7:30 PM
Thanks, i didn't know, i'm going to format it well
 
any diamonds here? does anyone in here have access to comment cleanup tools?
 
Using Django REST Framework, i'm trying to introduce a new API entry ('/playerslist') to an existing API, but i'm totally new to this, but i don't get what i'm doing wrong actually: Here is my serializer: https://dpaste.de/znys my models: https://dpaste.de/QF2i my views: https://dpaste.de/d5UG

If someone could help me, that'd be great.
 
Hey guys. I somehow messed up my env variables or python. When I run python script trough console (using .bat file) CWD is home folder, not that script location.
Anyone had similar problem?
 
that's not a problem, the current working directory is whatever directory you're working from, not the directory the program is in
so if you just open a terminal and run a script, you're in your home directory
 
7:36 PM
I mean at first when I ran my program (it uses shelve module) the data was stored in its folder. Now the data is being stored in my home folder instead.
 
you were running from a different folder then
maybe you were in it during development
unfortunately, I'm not psychic, I have no idea what your code or directory structure or command line looks like
 
Nah its not the case. Sorry for my dumb explanations, I will try to upload screen shots instead
 
why screenshots? all of those things I listed are text. Use dpaste.com.
but seriously, it's user error
you can use os.path.dirname(__file__) to get the directory that the script is in, if you need paths relative to that
 
The thing is I haven't changed code a bit.
I've installed few atom.io packages, and messed a bit with env. variables.
 
user559633
None of that is helpful. Post your code.
 
7:46 PM
dont paste images of code please ...
or screenshots or anything ... use dpaste or ideone or something else to provide info
 
that will create the file where ever the os.getcwd() says the script is running from
 
So literally exactly what I wrote above.
 
yep
 
7:49 PM
but now that he posted code we know for sure :P
 
user559633
yep
 
yuuuuuuuuuuup
 
cracks beer open yep
 
Oh, I was thinking King of the Hill.
 
user559633
7:51 PM
yup
 
Ehhh :/ I'm guess I'm still too big of a noob to explain something correctly. Sorry.
I know that it creates the file in getcwd() location, the whole problem is, that cwd used to be in the same folder, now it isn't. This is not a huge problem tho, thanks anyway
 
to be fair you left out the bit that os.getcwd() could tell him where it was saving to ... (although your solution of hardcoding the path with os.path.dirname)
cwd is wherever the OS thinks the script is being run from ... its not part of environment variables
 
@JustasSame you were running from somewhere else before. That is literally the only possibility.
 
cwd is not something you can change at will (without actually changing directories)
 
7:53 PM
Cabbage Joran.
 
hi malik
 
I was wondering if you know how to make a wx.MessageBox consistently appear on the top of all foreground applications.
 
noooope
 
nooooope
 
@MalikBrahimi a) don't ping specific people with questions, b) we already went over what you need to post, c) sopython.com/chatroom
 
7:55 PM
lol
 
user559633
noope
 
user559633
@MalikBrahimi didn't we just do this about an hour ago?
 
you cant ... you would need wx.STAY_ON_TOP style
 
user559633
@JoranBeasley garlic
 
@JoranBeasley Yeah, I tried that. But it didn't work.
 
7:56 PM
hold on ill make a separate room ... so we dont cloud this one up
 
user559633
@JoranBeasley i'd appreciate if you don't
 
user559633
don't reward garlic behavior
 
He literally just came in and started doing what he was kicked for earlier. Your call.
 
I missed the conversation an hour ago ... ive helped him with wxPython stuff before
 
user559633
that's why i said "i'd appreciate" instead of pretending to tell people what to do
 
7:58 PM
I don't get this. When I navigate trough CMD to that file it runs like it should. When I try to run it trough .bat it starts misbehaving again.
This is the last post about this, I promise :D
 
@JustasSame your cwd is whereever your bat file is ...
 
user559633
@JustasSame the command prompt and the gui don't share the same environmental variables
 
unless you explicity are doing a cd or something
 
@JustasSame you're describing exactly what I said you were doing: you're going to a different folder then running the code, versus running from the default folder.
the answer is to ignore the current directory completely
 
8:00 PM
okay, thank you guys
 
os.path.join(os.path.dirname(__file__), 'my_shelf') will get you the file relative to the script, no matter what directory you're running from
 
I did this:
os.chdir(os.path.dirname(__file__))
And now it works perfectly :)
 
@ma
@MalikBrahimi dpaste.com/2RJN85Z
@JustasSame davidism's suggestion is much better
 
So I should chdir to his code?
 
@JustasSame no, you should open that file.
you do want to open a file at a location, right?
 
8:10 PM
meh if you have it working at all, i guess thats practically a miracle already and we should just leave it at that
 
user559633
yuuup
 
I should probably finish my tutorial book before posting here
 
O_______O
 
user559633
long shot: dive into python
 
nooope
 
8:11 PM
probably LPTHW
 
user559633
learn python the noooope way
 
@JoranBeasley don't be mean :-P
 
I'm worrried that this OP will reply to my answer saying "the output is still scruffy though"
 
@davidism yeah i know ...
 
user559633
I work with boilers and toilets, toilets and boilers. Plus, that one boiling toilet.
 
8:13 PM
just to make sure you know the right thing, you know that that tutorial is terrible, right?
 
user559633
 
anyway, we have a page for tutorial recommendations: sopython.com/wiki/What_tutorial_should_I_read%3F
 
Scruffy's gonna die the way he lived. sedately turns page of adult magazine
 
@Kevin aha, I know your secret identity
 
user559633
now i wish i starred that before you could edit it
 
8:15 PM
Oh Python, how I love your absurdities. exec('import __\x68e\x6c\x6co__'). Hello world.
 
Thank You so much and also i would like to ask you if it is possible to present the printed info like this: prntscr.com/9wizsdComputer_119911 15 secs ago
Ah, I got "one more thing"'d
 
I never knew converting between .png and .gif could be so hard
 
@MorganThrapp thats not very exciting
you could have also replaced the e and o I think
 
user559633
@MorganThrapp i'm guessing that escape sequence is __hello__, but i'm not sure why it would print something.
 
It is.
Just try it.
 
8:17 PM
>>> import __hello__
 
user559633
"Just try it" - Noike
 
>>> exec('import __\x68e\x6c\x6co__')
Hello world!
 
user559633
oh interesting, __hello__ will only print on the first call
 
user559633
Ξ ~ → python
Python 2.7.10 (default, Jul 13 2015, 12:05:58)
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> exec('import __hello__')
Hello world...
>>>
>>> exec('import __hello__')
>>>
 
exec("\x69\x6d\x70ort \x68\x65\x6c\x6c\x6f")
 
8:20 PM
it's already imported
 
Makes sense I think. every import past the first gets ignored since it's already in the module cache.
Oops beaten.
 
user559633
Oh. F-ing duh. Thanks
 
reload(hello)
 
user559633
Yeah, maybe it's time for me to call it a day on half-focused coding
 
I wonder ... Im gonna try and answer a question with exec("escape sequence")
 
8:23 PM
We should play Question Bingo.
I'll draw up a card.
 
user559633
What's the free square? Python scrapy and expecting mind reading?
 
"Answer a question using no code."
"Answer a question using only code."
"Answer a question with another question but have it be a valid answer"
"Cause someone to rage quit after closing their question."
"Answer a LinkedIn support request"
 
user559633
The only way to win is to not post.
 
"Answer a LPTHW question with vomit sounds"
 
is the current
apparently they pointed here for support, and are ending the product, and there's a ton of "what now?" questions
 
user559633
8:26 PM
that domain name though
 
"Answer a question with > 50% buzzword-density"
 
Bad question bingo: "code in question does not produce error in question", "OP ignored the requests for clarification in your comment", "got a 'one more thing...' from OP in reply to your answer"...
 
user559633
"First, we’re releasing a database migration tool that lets you migrate data from your Parse app to any MongoDB database. " wooooof.
 
"FGITW Margin"
 
I would make "code is improperly formatted" the free space, but sometimes there's no code at all.
 
8:28 PM
"Ninja'd"
 
"Manage to drop the bass in your code"
 
The problem is that everything is so common that it could all be free.
 
Nerd snipe: you are constructing a "[something] bingo" card. You have a list of twenty five events that coincide with [something], each with some known probability. How do you arrange the cells of the bingo card so that each of the possible bingos are equally likely to occur? Ex. You don't want to put all the most common events along the top row, because then you'll get many more top row bingos than bottom row bingos.
 
user559633
I thought the point of bingo cards was a random sort of a subset of possibilities
 
In a perfect world, all the possibilities have the same probability of occurring. This is what happens in actual "pick a number from the spinning basket" bingo.
This is basically a magic square problem where you want all the rows/columns/diagonals to have the same product. Or whatever operation you do on the probabilities of independent events to determine the likelihood of all of them occurring.
1 - Tau(1 - events[i].probability for i=0 to len(events)) I guess.
 
8:40 PM
Have them all be P=0
Nerd snipe dodged
 
I wanted to pick your guys' brains if it's OK:

If comprehension syntax is just sugar (as said here http://stackoverflow.com/questions/16940293/why-is-there-no-tuple-comprehension-in-python and elsewhere) why is a list comprehension ~30% faster than using list()?

>>> timeit.timeit("[i for i in range(1000000)]",number=100)
5.480864745529431
>>> timeit.timeit("list(i for i in range(1000000))",number=100)
7.045617174034142
 
because it's syntax instead of a function
 
OK that makes sense
 
that example also depends on python 2 vs 3
 
3.4 here
 
8:43 PM
Goooooooood
 
\o/
 
user559633
yuup
 
cbg
Has anyone used Pyramids before?
 
"Has anyone used <thing> before?" Yes, if <thing> exists, then at least one person has used it.
If you have a question, just ask, don't ask who to ask. sopython.com/chatroom
 
I kinda meant anybody who is active right now
And the only follow up question would just be their opinion on it
 
8:57 PM
Asking if anyone knows a thing may be fruitless, because:
> Even if you do, the Django experts in the room might not step forward until hearing the actual question. They may not wish to commit themselves to help until they know how much effort it will entail.
 
Fair enough
Sorry
 
Pyramid is a web framework. I've heard it's good. I use Flask. It's good too.
 
I'm evaluating a job offer and they say they use this Pyramid framework. I'm looking at docs now but was wondering if there was any hurdles or other sort of stuff to expect before jumping in
 

« first day (1931 days earlier)      last day (3033 days later) »