« first day (1855 days earlier)      last day (3097 days later) » 
00:00 - 22:0022:00 - 00:00

12:00 AM
also this is very relevant @pyramidface
 
aaa ok
you mean
store variables like os.environ['something'] = sensitive_information ?
@AdamSmith
 
Depends on how secure you want the information
5
Q: How to store passwords securely in my server?

Francisco PresenciaDisclaimer: I know I should use bcrypt to securely store user's passwords. Please, keep reading. I want to store credentials for several email services for each user. So if I log in with my username and password (which is properly hashed), then I can access several emails, including 2 @hotmail, ...

 
hmm well what would be something a beginner could get into
and get started quickly
hmm but mainly I'm looking for something to obfuscate the py variable values
so someone who sees the py file
won't actually be able to read the password
I was reading about os.environ
but if I use something like that, will the env variables always be present on a running server?
I'm afraid one day maybe cache is automatically cleared
or some other event
and the values will be flushed away
 
then do what Adam Smith suggested and maybe look at if bcrypt or pdkdf2 is easy enough to add. Bcrypt is included with some Linux distros and PDKDF2 has a python implementation I know
 
12:15 AM
im a bit of a noob, so if I use bcrypt, the settings files will just have all the values encrypted right?
all I need to do is save the hash
?
like how would my app know what hash to use to decrypt an encrypted value?
 
@pyramidface As long as you don't restart it.
 
hmm that's not too great of a solution for me then
 
The use bcrypt, which also has a python implementation, as it already hashes passwords making it easier to implement
if you don't know what I mean by hashing passwords
6
Q: Is BCrypt enough when saving a password into a database?

Cyril N.In order to allow users to connect to my website, I encrypt their password using BCrypt since it is one of the slowest algorithms to decrypt (making a compromised database longer to be decrypted). But I was wondering if that was enough -- or if combining it with a hashing algorithm like sha256/5...

 
ahh okay
hmmmm but I still don't really undrestand how it hides things
so with bcrypt in this example
0
A: Hashing in python (encrypting)

Padraic Cunninghambcrypt is a library you should have a look at. import bcrypt password = b"super secret password" # Hash a password for the first time, with a randomly-generated salt hashed = bcrypt.hashpw(password, bcrypt.gensalt()) # Check that a unhashed password matches one that has previously been # hashe...

The password is being defined inside the script, but that should be hidden right? But if it's hidden then the application won't know what password to use to decrypt encrypted values right?
 
I'm not sure how bcrypt solves the problem?
maybe I don't understand
I thought he was trying to protect API keys or etc
 
12:25 AM
yea I'm not so sure either
 
with any encryption you store a hash of the encrypted password when it is created, then when a user logs in you encrypt and hash that and check against the stored hashed password - this keeps one from having to save the plaintext password
 
which need to be readable by the script, but not so much by anyone who happens to look at his repo
I didn't get the impression that he was trying to do password hashing
I parsed "server passwords" as being anything but that.
 
like you say adam, I'm trying to mainly obfuscate variables that contain sernsitive information
while allowing my script to run okay
 
cause he asked "how do you store sensitive information in production" and I missed the second part in my skimming - I do it in layers is the answer the the first question btw.
 
what's your server?
some *nix flavor?
 
12:27 AM
it's a mysql
apache
mysql db whoops
 
your prod machine I mean
 
but yea apache2
on ubuntu
 
so add export DB_PASSWORD="hunter2" to your /etc/environment file
and in your script do db_password = os.environ("DB_PASSWORD")
there, you're done.
 
yeah that's true
 
you can still read it on your prod machine, but if someone has access to that, you have bigger problems.
 
12:29 AM
hmmm ok ok
 
or else set up your sql server to allow passwordless access to a specific machine (your prod server)
but I've never done that and it sounds scary
 
yea I don't think I would do that lol
 
(oops apparently /etc/environment doesn't isn't a script, it's just a list of key/value pairs, so it would be DB_PASSWORD=hunter2 not export DB_PASSWORD="hunter2")
 
Bounty on flask-admin question... In case someone know flask-admin.
 
It doesn't isn't.
I know you did were hoping it does was.
 
12:33 AM
hmmm
but that's just moving password to another area
 
yeah but that "other area" is "root access on your production server"
 
ahh
ok
 
it frankly doesn't get any more secure than that
:P
 
hmmm ok
so I'm using supervisor are you familiar?
that sound be root?
the conf file
it's stored in /etc/supervisor/conf.d/something.conf
 
Huh? /etc/environment is the system-wide environment variable list. If you have sudo access, do sudo vim /etc/environment and add the line, then restart (probably?) and ta-da
 
12:35 AM
oooo
 
I Don't think it has anything to do with supervisor, but I'm not familiar with it no.
 
ahh I see all right I'll try that then
thanks for the tip!
wait there is no /etc/environment
 
12:52 AM
actually overall I don't think it's good to store in env
because someone can just printenv
and bam there your env variables are
 
 
3 hours later…
4:04 AM
Cabbage
 
cbg
sometimes I feel like this on SO
 
 
2 hours later…
6:35 AM
Do we have any French regulars? :/
 
Xavier?
 
Yeah. I don't think he lives anywhere near Paris?
@Xavier hope you're doing okay after last night.
 
cel
6:49 AM
Can we reject this? http://stackoverflow.com/questions/33705672/cannot-open-notebook-on-jupyter-ipython
Should have reject-edited it :/
 
@cel what is there to reject about it?
 
cel
this has nothing to do with anaconda
 
How do you know?
I've had Anaconda do strange things when working that with "normal Python" are fine.
 
cel
because anaconda is a software distributor
 
But even so, what's the harm, really? It gives context to the issue.
 
cel
6:53 AM
well people following the anaconda tag get noise, that's all
that's like tagging every third party question with pip, because the package was installed with pip in the first place. IMO this is not adding context, but noise.
 
Unedit it if you feel that strongly about it then.
@cel I'd also suggest you add the Python tag to it.
 
cel
hmh, I added a windows tag
 
So? A lot of people (who could potentially answer) only follow
I know a lot about ipython, but I don't follow it.
 
cel
yea, true
but actually the question is not at all about python
 
Yeah, I wouldn't add [python] there
 
7:00 AM
I would. It's about using Anaconda (a Python distro) and Jupyter notebooks.
 
cel
The problem is very likely a permission issue
so, not even the answer will have python code
 
So? We're talking about using Python, and it gets the answerer more exposure.
It's an issue that Python users could have.
I dunno why I'm trying to convince you to add it though, seeing as how I have the priv myself :P and the 5 minute grace period of yours is gone anyway
 
cel
haha, ya - adding python certainly does not do any harm and is beneficial for the author
it just feels a little bit wrong :)
 
I wonder if I should mention the number of close votes I cast over the time in the nomination... rene was not impressed by the 1381 close votes
> You say you want to improve the quality of questions. I fail to see how you did that given the current number of revisions and comments in your profile.
I posted less comments, but at the same time I edited more posts
 
cel
7:17 AM
do close votes get deleted after some time?
 
Yes, they can expire, but AFAICT the votes tab includes expired CVs i.stack.imgur.com/qGqrL.png
 
cel
okay, but what is the reason for that? That looks like a completely harmful concept
 
I don't know...
 
7:54 AM
Close votes expire, they're not "deleted"
It stops close votes from long, long ago being used to close questions.
After all if I CV something and 2 years from now my vote is used with 4 others to close it, it seems a bit silly.
The Q may have changed, the "rules" may have changed, etc.
I think the more CVs something has, the slower they expire, or something. And a new CV (so going from 3 to 4) will reset the timer.
 
cel
8:11 AM
0
Q: What is the advantage of expiring close votes?

celWhy do close votes expire after some time? To me this concept seems to have mostly disadvantages. Just because some time passed, why should the system or I have changed my mind about the off-topicness of a question? I understand that for frequently viewed/voted questions it makes litte sense to ...

@Ffisegydd, I think this is a valid point, but only applies to a very small number of questions
I guess almost all questions are veeery rarely viewed. So deleting close votes after a fixed time is a very bad idea.
 
cbg
wanna a small help regarding sublime..
In pycharm or eclipse if we do ctrl + left_click on method names will get you to the corresponding function definition.
Likewise I want the same in sublime.
Is that possible?
If sublime has this feature then I won't go with anyother IDE's../
 
Wow, Python is probably the easiest programming language there is. I literally took 2 days to learn it, with learning Tkinter GUIs.
 
@JacquesMarais ya, it's fantastic one when compared to other lang..
 
cel
@Ffisegydd, hmh - I am apparently the only one who thinks that this is harmful from a moderation point of view..
 
@AvinashRaj True
 
8:26 AM
@cel I don't see the issue with it at all.
 
List comprehension is the main reason for me to learn this lang..
 
cel
@Ffisegydd, this system makes it harder to close rarely viewed questions. I don't understand why this makes sense
It's even counter intuitive because these questions are often more likely to be of low quality.
(i suppose, cannot show data for that claim)
 
Yeah you're making some pretty broad assumptions here :)
It also means that I'm not responsible for closing a question 3 months after I last viewed it.
 
cel
if the question has not changed, why should you change your mind?
 
Heyo! Is there a way to add padding to placeholders in format strings in Python (like in C?)? "%s10" % 'a' just prints a10 :/
 
8:35 AM
@cel the rules/meta of SO has changed? Someone has come along and posted an answer that actually makes sense and so I realised it shouldn't have been closed? I could think of more examples but I'd rather eat my breakfast?
If you look at the rules, they're pretty damn generous.
We're talking about the scale of weeks.
 
cel
If the question has less than 100 views, the votes expire one per day after 14 days.
hmhm
If that's true you hardly can call that pretty damn generous
 
Well, I can and I will.
2 weeks, at least? Really? Not generous?
 
cel
Well, I guess 1 view per month is pretty good for an average question
 
Where's your numbers for that value? 1 view per month? Is that average?
 
@AwalGarg How do you mean?
 
cel
8:42 AM
mom, I have to check my questions
okay, should be more
 
@JacquesMarais Like the second example at docs.python.org/2/tutorial/inputoutput.html, but for strings...
 
cel
I guess my questions are a little above average and average ones have about 100 views each
20-30 are probably in the first two days
 
Probably?
 
err, progress, I got an error. debugging...
 
@AwalGarg Sorry, but could you maybe give me an example of what you mean? I don't quite understand..
 
cel
8:46 AM
@Ffisegydd, well you cannot dismiss everything I say just because I cannot show data
 
Oh, I can and I will :P
 
cel
Backing up every single claim with data would take a long time
it's much easier to disprove obviously wrong statements
 
Better get started, I'm going to continue my breakfast :)
 
cel
well enjoy :D
 
@JacquesMarais I am trying to print a table to console. But it is all messed up because the data in cells is of varying length. How to add padding to the data in each cell?
 
8:49 AM
Oh
 
But... with format strings. I mean I can be (and I am) using the regular string functions but could be neat if format strings would let me do that :D
 
@AwalGarg Maybe try pyformat.info (Not a library, just tutorials)
 
@JacquesMarais That really helped, thanks!
 
9:04 AM
@AwalGarg No problem.
 
 
2 hours later…
11:27 AM
0
Q: Using DRF pagination with ListSerializer cause exception

SerjikThe problem is when I'm using ListSerializer with pagination on DRF I get exception. I have the following codes serializers.py class IsDeletedFilteredListSerializer(serializers.ListSerializer): def to_representation(self, data): data = data.filter(is_deleted=False) retu...

Nobody with DRF experience?
 
11:44 AM
@Serjik please don't link your recently asked questions in the room. sopython.com/chatroom
 
12:02 PM
@vaultah Then how should I ask the same theme in the chat room?
 
12:19 PM
@vaultah ok, tnx, I've read it
 
 
1 hour later…
1:44 PM
Afternoon.
 
2:02 PM
Hello @DJanssens
 
user559633
Greetings
 
Yo
 
I've randomly ended up here. :D Is this room only for asking/answering python questions or can one also just enjoy a good (python-related) chat.
 
user559633
2:17 PM
@DJanssens It's decidedly more of the latter and less of the former
 
Snakes. Why did it have to be snakes.
 
Aha great!
 
Not many people chatting, eh? Later.
Snerk, well, not my best material :)
 
user559633
@TomZych Just somewhat off-hours.
 
user559633
 
3:18 PM
Random question, I was struggling to understand how to read the following list comprehension [item for sublist in l for item in sublist]. But am I correct that this is simply read from left to right. (each element in l => sublust and then return element in those sublists)
 
3:37 PM
@DJanssens yes, it concatenates the lists, similar to itertools.chain.from_iterable.
 
user559633
worse somehow
 
user559633
argh, dumb formatting
 
My confusion came because I wanted to read it from right to left, like assignments.
The first format seemed understandable @tristan
 
user559633
 
thanks
 
3:39 PM
@tristan thanks for reminding me to check my candybox status.
 
user559633
if you take the assignment and consider it the yield/return and then go left to right, it makes sense i think
 
user559633
@bereal oh yikes
 
4:12 PM
cabbage
 
Potato
 
user559633
hi
 
5:27 PM
cbg, all
 
user559633
cbg!
 
user559633
how's it going?
 
Well enough thanks. Looking for work if you happen to have heard of anything vaguely appropriate
How about you
cbg @davidism
 
cabbage
 
user559633
I'll keep an ear to the ground for that. I'm doing well enough, almost done with this 4k line database migration
 
5:34 PM
I finally have internet again, ATT couldn't come out for a whole week to fix it.
 
Urgh
My brother's Internet was off when I got there earlier this week, but Talk Talk have got him back online now.
 
I burned through two books in four days instead.
 
Well you got something from the time then
 
user559633
current status
 
5:42 PM
but are you the guy ramming people or the one saving the day?
 
user559633
sometimes you're the runaway golf cart some days you're the guy that falls for no apparent reason at 4 seconds
 
I'm the triangle cone thing pressing the accelerator.
 
user559633
also, laughing really hard at the level of overstatement for "saving the day." i imagine that they carry him on their shoulders through a parade with banners that read "he stopped a golf cart traveling at a moderately slow speed"
 
I could see it as: it is a football game -> people get drunk at a football game -> it is easy to impress drunk people
 
user559633
top scientists are still trying to figure out the origin of the runaway golf cart
 
5:48 PM
davidism just said he did it. Now where's my grant?!
 
user559633
yeah, but where did the cone come from?
 
user559633
oh, some guy is suing over it 'It names as defendant Cowboys Stadium, which is operated by Jerry Jones, and seeks at least $1 million for injuries and "great personal anguish and embarrassment" caused when Amendola was run over by a sentient golf cart in 2011.'
 
user559633
less fun now
 
Look at all this work based on asyncio! http://asyncio.org/
Useful link
 
@Kevin's list.append(A Most Wanted Man) // 8.5/10 from me
 
user559633
5:57 PM
Oh wow, you liked that movie. I thought it was terrible.
 
you didn't like it? how's so?
 
user559633
I thought the pacing was terrible, there was a lack of character/story development, the "twist" was obvious (an american betrayal in a movie about immigrants in europe? quelle surprise!)
 
user559633
what parts did you like in it? it's been over a year since i've seen it, but maybe i missed something
 
I don't think it was that simple.. I mean, sure not all the characters have enough depth, sure the middle of the film was too slow/obvious -- but I liked the ending very much
(and beginning as well)
 
user559633
I feel like as a 60 minute show, it would have worked.
 
6:05 PM
also, I think it wasn't only the americans who betrayed -- I think if they were not there, the ending would be the exact same
I mean, the first few lines (abstract) was pointing out, that the competition between the departments already blewed up 9/11
 
I wasn't in love with it, also due to the story being too obvious and the focus in reality overtaking the need to engage and develop the characters (most of them) in depth
 
which part was obvious exactly? I mean do we know any of motives of the characters?
I don't think so -- ofc there was a general attitude (optimism) in every character: "I want to do what I think is the best for <me/my country/my belives>", AND there were nice answers for eveyone from life (pessimism): "nothing will work out as you wish, or you thought so, no matter what you think is good for <the-previous-token>"
 
user559633
It's been some time since I've seen it, but the "oh he's just an immigrant", that the americans would "double cross", and just sort of how the plot would snail along.
 
user559633
I feel like it had all the ingredients for an interesting movie, but there were just too many flies in the ointment.
 
I remember that Mohr and Sullivan (part of the anti-terrorism team) annoyed me as their attitude was just so wrong for anti-terrorism agents but that might be due to my training in anti-terrorism
 
user559633
6:13 PM
@JGreenwell hah, our American is showing, I believe
 
user559633
"That's not how it works, that's not how any of this would work"
 
probably, also I tend to not like films that go for realism cause I've seen that and you can't capture reality on film (unless it is a film of actual events)
 
user559633
Also, maybe I'm a sociopath, but I didn't care about any of the characters. I didn't care when they lost and I definitely felt no desire for them to "win"
 
either way it wasn't a bad film just not one of my favorites
 
@tristan how could you enjoy any of the movies/series/books then?
:)
 
6:16 PM
books are different cause you can describe events and then its up to my own head to imagine :)
 
@JGreenwell yepp, it wasn't outstanding, it was very very good, that's all, hence the 8.5/10 and no more :)
(maybe it will go down 8.0 later when I put enough thinking into it)
:)
anyway, it's time to go for shopping -- I have to prepare myself, I will go for The Hobbit trilogy and The Lord of The Rings trilogy marathon tonight/tomorrow
:)
 
oh, those films I like (but only the extend addition of Fellowship and Two Towers)
 
@JGreenwell I only got the extended editions of the 6 films!
 
hey I want to make a collobrative note-taking app.
I am using kivy to develop the inerface.
 
(I've learnt that from the HP septology => the non extended/directors cut versions are unwatchable :P)
 
user559633
6:22 PM
gandalf is bad at his job as savior wizard
 
true
 
user559633
and sauron is equally incompetent
 
one of my favorite characters if Faramir and I think his character in the film (Two Towers) is horrible written in the un-extended but the extended makes up for some of this
 
Now how to send and receive data?
 
as in the books he passes the "test of the ring" (doesn't take it and sends the hobbits on their way with provisions) and in the movie he takes them captive and thus basically fails the test
I like Gandalf in Fellowship (when he is basically just a mentor and elder) but yes, his character is not revived correctly as the "savior wizard"
 
user559633
6:27 PM
this is a fun video: youtube.com/watch?v=5We4fg5JUOo
 
any pointers?
 
@AbhishekBhatia did you read the docs you linked to? "This class serves files from the current directory and below, directly mapping the directory structure to HTTP requests." You need to implement your own BaseHTTPServer to receive and send arbitrary data. Or use a real web framework like Flask.
 
user559633
Aww, I really was hoping that the documentation was catty and said " Or use a real web framework like Flask."
 
any there a nice tutorial smewhere/
 
@AbhishekBhatia yes, the Flask docs contain a tutorial. Also, Googling "Flask tutorial" contains tutorials.
 
6:37 PM
I always like how Hobbits were Jewish
 
I am much of flask fan. Could django provide a solution here?
 
user559633
garlic
 
Consider I am intending to do this all in a kivy app.
I am NOT much of flask fan. Could django provide a solution here?
 
user559633
yes, just put a django in your kivy and run it on a docker in the cloud
 
and awkward silence desends
 
6:48 PM
Thank God it didn't descend though, that would have been awful.
Unless you're implying that the awkward silence tried to cancel sending an email, in which case I'm frightfully sorry for my snark.
Spelling banter is the best banter.
 
user559633
spelling banter is the most boring hulk
 
That's like an alternative form of nerd sniping: "Let's make a comic book reference but make it slightly wrong, there's no way someone won't be all "Hnnng...""
 
spell check you have failed me
 
I don't want to run anything on the cloud
I want to built something like jarnal
one app starts the server.
others read from it.
 
user559633
the cloud is the future
 
6:55 PM
The cloud is love, the cloud is life.
 
@AbhishekBhatia how about, if you were already thinking you liked Django, you try something?
 
I don't have the funds to start a cloud server for the project.
can you also tell how does it take care of multiple apps trying to start the server.
 
cabbage rolls for everybody!
 
@AbhishekBhatia your asking a really, really broad question (way too many ways to do this) so why don't you look at the Django docs (like davidism suggested) as these would have answered your follow up questions
 
@AbhishekBhatia no. You're asking very broad (and hence pretty unanswerable) questions. You've been in this room before, and you've been warned/in trouble before.
 
6:59 PM
I already kicked him, just garlic
 
Please ask specific questions, or you'll be kicked.
 
yep, noticed right as I hit enter
Anyway, @idjaw how did you know what I was having for lunch :)
 
:)
My copy of Fallout 4 arrived yesterday. Having fun so far. And that pip-boy is such a great little gimmicky toy. I love it.
I'm really happy I got to save money on the videocard purchase. It runs on medium settings with my videocard. :)
 
Nice
 
sry I was unaware. I have django for create a minor website only.
I want to use django but I don't understand the need of the cloud. If possible can you guys explain.
 
7:07 PM
it was a joke
 
lol, what?
so no cloud?
I am pretty clueless. A push in the right direction would be helpful.
 
You still haven't asked your specific question.
So if you keep on asking these broad questions, the push will be a kick out of the room.
 
@Ffisegydd or we could exercise patience and tolerance in the interests of encouraging more social behavior?
 
7:23 PM
@Ffisegydd did you get a chance to start Promise of Blood yet?
I'm on book 3 now.
 
@holdenweb no. When a user has previously been asked to behave according to the culture (being friendly, not abusing the good faith of other users, etc) of the room, but has then chosen to instead continue to abuse the good faith of people, then I think we're well within our right to kick them out if they continue.
@davidism no not yet, I forgot actually, let me go get by Kindle and have a look at it.
 
I started listening to Writing Excuses, a weekly writing podcast with Sanderson.
 
@AbhishekBhatia thing is, we aren't here so much to provide an overall education as to answer specific questions. Sometimes people are a bit sensitive about clueless newcomers, because they can waste a lot of time. Maybe if you just lurked for a bit until you get used to the way the room is conducted?
 
That was one of the books of the week.
 
@davidism sounds awesome. I've been listening to a lot of podcasts lately.
 
7:26 PM
@Ffisegydd clearly you have access to more history than I, I am simply looking at current evidence
 
Another one by a Sanderson student: amazon.com/dp/B00HVF7OL0
The podcast is really good, each episode's only 15 minutes. They pick apart different elements of writing.
@holdenweb hence why we let ros handle this stuff rather than other users chiming in. Please don't keep up this discussion, we've already had it and it's not going to change.
 
@davidism Shame it's only 15 minutes. I like a bit more meat on my casts, but will look into it.
My podcasts tend to be a few gaming, a few geeky, and a few photography.
 
user559633
In SQLAlchemy/Alembic, is there a way to flush bulk_inserts to the database? I'm doing an initial DML migration and I have a foreign-key constraint that I need to fulfill between op.bulk_inserts
 
They pull it off really well, and they've got 10 seasons of backlog.
 
I can heartily recommend Current Geek to anyone/everyone.
 
7:33 PM
@Ffisegydd this -> frogpants.com/currentgeek ?
 
@idjaw yeah.
I also listen to The Instance and Core from Frogpants, they're both gaming podcasts.
FP also do a Morning Stream podcast which is okay.
 
Retsutalk and Chipod Ironicast for gaming podcasts
 
I'll have a look into them, Instance (WoW and Blizzard games in general) and Core (Heroes of the Storm) are both specific, so could do with a more general gaming one.
 
Taking note of these. I was thinking of changing my morning drive routine to include some podcasts.
 
I've also heard good things about Daily Tech News Show
I listen to podcasts while working.
 
7:36 PM
I haven't actually tried that.
 
user559633
# e.g.
all_countries = [
{
"name": "United States",
"iso3166_2": "US",
"iso3166_3": "USA",
"isd_code": "1",
"ioc_country_code": "USA",
"currency_code_alpha": "USD",
"currency_name": "US Dollar",
"currency_code_numeric": "840",
},
]
...
us_states = [
    {'abbreviation': 'AL', 'country_id': 1, 'name': 'Alabama'},
    {'abbreviation': 'AK', 'country_id': 1, 'name': 'Alaska'},
]
...
def upgrade():

    op.bulk_insert(ad_hoc_country_table, all_countries)

    # this next line relies on the countries having been inserted for a country_id fk to be fulfilled
 
@idjaw it's okay as long as you don't need to go full flow. In which case I go for classical music.
 
user559633
I'm hoping for some sort of op.commit_transaction() that i can run between bulk_inserts
 
yeah....when I have to really concentrate on the architecture of something I need ot keep lyrics to a minimal
 
@tristan that should just work, the migration already happens in a transaction and at least in Postgres it allows foreign keys that have been flushed but not committed.
 
user559633
7:38 PM
*** sqlalchemy.exc.IntegrityError: (psycopg2.IntegrityError) insert or update on table "state" violates foreign key constraint "state_country_id_fkey"
DETAIL:  Key (country_id)=(1) is not present in table "country".
 
user559633
weird, i get this. i thought it worked earlier today, but i've made some non-trivial chances since then.
 
you could always set up a session yourself: session = orm.Session(bind=op.get_bind())
although that would probably execute within the existing transaction
 
user559633
i'm fine with it being a number of transactions. it's weird that this isn't working as i'm almost sure it worked earlier today. if i did my own session, would i do a bind, do a session, session.commit(), new session, do the insert, repeat?
 
create the session, session.execute, session.commit, session.execute, etc.
 
user559633
Oh that is super weird. I had a client session open to postgres and that was keeping the database in some intermediate state. Thanks and sorry for wasting your time @davidism
 
7:44 PM
@tristan me and FizzyGirl are still watching explore.org/live-cams/player/kitten-rescue-cam O_O
 
user559633
@Ffisegydd i was surprised until i hovered and saw the full URI
 
cats
 
It's been 2 weeks since Tristan linked it to us o_o caaaaaaaaaats.
 
user559633
look at dem kittens
 
user559633
pro tip: don't drink a couple of pints of red bull on an empty stomach. you will feel terrible.
 
7:52 PM
10k finally :)
 
pineapple @bereal!
 
@davidism melon :)
 
congrats @bereal
 
unless you've conditioned your stomach to take raw caffeine constantly
 
thanks :)
 
user559633
7:57 PM
well done bereal
 
will now check those admin tools and see if that was worth it :)
 
@bereal I'm sure you've read the sealed letter from Joel that fortells the End of Days, it's customarily given out to all 10k'ers. Make sure you don't reveal the contents to Those Who Are Unworthy though.
 
user559633
@Ffisegydd just switched back the tab i had open with this and almost fell out of my chair
 
Heh. "THAT'S NO CAT!"
 
user559633
"URGH! guy stomach, you're not kittens"
 
user559633
8:02 PM
ostensibly the stomach belongs to a man named Rick
 
They have hoomans go in their quite often to interact/play with them.
 
user559633
8:19 PM
[ too much gif ]
 
8:33 PM
cabbage
 
heya!
 
I've just been working on a mysterious Tkinter problem. I've fixed the OP's main errors, and he's posted an updated version of his code, but he reckons his new code still fails, although it works fine for me. However, he's using Python 3.4 and I'm using Python 2.6
 
9:37 PM
cabbage all!
 
user559633
9:48 PM
cbg
 
I wish I could help the Tkinter guy. He's asked a new question, with a great MCVE and a good explanation of the problem. But I can't reproduce the problem. Does someone with Python 3.4 & tkinter want to see if it runs for them? stackoverflow.com/questions/33713742/…
 
00:00 - 22:0022:00 - 00:00

« first day (1855 days earlier)      last day (3097 days later) »