« first day (2069 days earlier)      last day (2896 days later) » 

1:40 AM
5 hours ago? dead night? sheeesh
 
so the Mediterranean diet is the easiest thing ever. What kind of diet tells you to drink red wine?
 
does it?
 
2:00 AM
It basically just says "drink delicious wine and eat delicious food", it's kinda ridiculous
 
2:35 AM
That sounds like a diet I could actually stick to.
 
I thought that was the one which said eat more seafood, olive based stuff, and rice....though all my Spanish relatives do love their wine
 
google web result says: a diet of a type traditional in Mediterranean countries, characterized especially by a high consumption of vegetables and olive oil and moderate consumption of protein, and thought to confer health benefits.
pretty much what I grew up eating :P
 
rice, olives, and seafood. That's all I remember about my Mediterranean family's cooking - and that it was delicious
 
We had barrels of rice growing up
so much rice
 
the only vegs I remember were bell peppers (a lot), eggplant, and asparagus
tomatoes only if you count them as vegs :P
 
2:50 AM
speaking of eggplant. If you like pickled things, there is a stuffed pickled eggplant recipe called magdoos
let me see if I can find a good one.
 
I am in favor of anything that involves me eating olives.
 
user559633
i wish i had wine
 
I have vermouth, does that count?
 
user559633
it's a type.
 
I also have chocolate wine.
 
2:52 AM
this seems like a decent recipe for magdoos: cookican.com/recipe/magdoos
 
Mmmmm, that looks delicious.
 
I really should make a batch of these at home. I always steal my parents jars :P
 
I have a similar one, but substitute walnuts for (largish) pine nuts
espresso wine is good
 
I was joking that I was going to can things while the gf is away, maybe I should make some.
 
I need some help designing a data model in SQLAlchemy - I'm trying to model Actors, Writers and Directors. They all have a many-to-many relationship with movies. I don't know the right way to do this in flask. I know that I have to use inheritance - so I'd have something like Individual, and then Writers, Directors, and Actors would inherit from that.

But a a beginner, I'm totally lost. Any help?
 
2:55 AM
@JGreenwell that's generous for what I have. It's more like yoohoo wine.
 
yoohoo is also good
 
@tristan since you're on a veggie course now. Here is one of my favourite veggie dishes I learned from my mom. food.com/recipe/…
 
fried cauliflower is good too (I also like to just roast the whole head) - with a little olive oil on top for crunchy bits to stick too
 
user559633
bookmarked
 
user559633
i need to get on a lifting and running routine
 
2:57 AM
Oooo, that looks good too. I love cauliflower.
 
user559633
has anyone ever mentioned that startups wreck your health before? because they do.
 
@tristan I lift whisky into my face as I run away from sobriety.
 
throw in a run here and there. Start with that.
 
user559633
yeah. i'm going to write down a formal routine tomorrow. i haven't been outside other than to grocery shop in 2 weeks :X total diminishing returns too
 
:(
alright...are you staying online for a little while?
I'm writing down a few dishes my mom made. At least get you eating well
 
3:00 AM
@WasifHyder I would start with asking why do you have so many many-to-many relationships; normalize the database model first then look at how to model
or classes (same principle)
 
user559633
@idjaw Yeah, I'll be here for another 5 hours
 
user559633
python's pretty awesome you guys
 
user559633
it's so good and expressive for first-pass prototyping (and flexible enough that there's no rush on replacing it)
 
@JGreenwell - my data modelling skills are weak, which puts me in a tough spot. I'm trying to build an api for a movies database. Each movie has associated actors, directors, writers. In that, a movie can have many people associated with it, each person can be associated with many movies.

I would think there are three ways to get this done. What I started with was different tables for actors, writers, and directors. But that's a bad approach. Second way would be to use class inheritance in data modelling. I only know enough about this to know that this could be a viable solution. Otherwise
 
user559633
@WasifHyder Is this an assignment for a class with a deadline?
 
3:06 AM
Deadline yes, class no. Its for an interview assignment. I could easily implement it using python's data objects in-memory, but I want to create a good solution. I'd also get to learn.

I don't want to be spoonfed, but the manual is going a bit over my head. If anyone can point me in the right direction, I'd really appreciate it.
 
15
Q: How to design a movie database?

Keith DoneganI'm trying to get my head round this mind boggling stuff they call Database Design without much success, so I'll try to illustrate my problem with an example. I am using MySQL and here is my question: Say I want to create a database to hold my DVD collection. I have the following information th...

^ change that into code
There are quite a few other questions like that too
 
user559633
@WasifHyder I'd make learning the priority and spend some time reading about database design.
 
user559633
You can throw Python into the mix, but honestly, this is more a "how should i model my database" question than a "how do i code this" problem
 
@JGreenwell, @tristan - Thank you both so much. I really appreciate.
 
user559633
you can do inheritance in your models, but that will only help you DRY up your code, not help you with the core problem of "how do i deal with many-to-many relationships"
 
3:10 AM
@trist
 
user559633
this is also a normalization level question
 
Also if this is an interview assignment, knowing how to normalize data models correctly is a key aspect of database design - and if that is your interview question I assume this will involve DBA activities - so learning it half-way will not really help you in the long run
also class design (or at least really similar)
 
user559633
i'm "not your real dad, so do what you will," but if you're comfortable doing this with python data structures, do that first, so that you have something to show for your time, but then go into reading about how to structure databases
 
also a basis of data classification, association, and grouping type modelling
 
user559633
^^^ 100% what JGreenwell is saying
 
3:11 AM
@tristan - I've made my skills and weaknesses clear. I'm applying for an entry-level role, so they're interested in seeing what I can learn and do. But I appreciate what you have to say. I'll take your advice to heart.
 
user559633
@WasifHyder Yeah, to be completely honest, I'm thinking about what will help you learn. I hope you don't take any of this as out of line or rude.
 
user559633
Trying to learn SQL via SQLAlchemy is like trying to figure out how cars work by sitting in a self driving car
 
@tristan - Don't worry about being out of line or rude. I can take it :) I just want to learn and do well, and I know your intentions are in the right place.
 
user559633
there's probably a better source, but i'd see this on "normal forms" en.wikipedia.org/wiki/Database_normalization
 
user559633
for your purposes, stop at 3NF, sleep on it for a week, come back to it
 
3:16 AM
Will do (Y)
 
actually it was research on the use of normalization with deductive and object oriented databases that lead me to NLP (when searching for articles on recursion)
which lead me to Python
which lead me to information systems and here :)
 
alright
@tristan here you go: pastebin.com/q1UxKFrp
let me know if you have any questions :)
 
user559633
i got to python by way of someone telling me that "python was a better ruby"
 
There are tons more, but a lot of the ones that are coming to mind have meat in them.
 
user559633
@idjaw this is great, thank you.
 
3:25 AM
no prob. Happy to share
 
I started with python because of Udacity's CS101
 
user559633
i'll let you know on any protein replacement fronts too
 
user559633
that Shakshuka photo is making my brain hungry
 
shakshuka is so good. And the great thing about that one, is that you can throw anything in there to make it even better
When I make it, I usually just toss in whatever veggies I have lying around
it's like a mega omelette
 
user559633
there's a mention of 'Arabic flat bread ' in the fasolia khadra bzayt dish -- does this look about right? food.com/recipe/khubz-arabi-pita-or-flat-bread-348502
 
3:32 AM
you can use seitan as a substitute for meat with Fasolia blahmi (green bean stew) btw - could use beans, mushrooms, or very firm tofu to but lamb flavor is harder to emulate with spices
or khadra bzayt (same thing)
if it is talking about Khubz that is, basically, just toasted pita bread
 
@tristan yeah that's one type of it. There are other varieties. The one more common in my household growing up was much flatter pita bread. Something like this: static.lufa.com/uploads/products/resized_240x160/…
You might be able to get better dipping with the thicker one though :)
 
user559633
i'm pretty excited for all this.
 
btw. shakshuka is one of my all time favorite dishes
 
user559633
i've been on a veggie wrap, pasta, potatoes loop
 
oh cool!! One of my favourite dishes growing up was called makloubeh. I just found a veggie version of it: ottolenghi.co.uk/vegetable-makloubeh-shop
 
3:39 AM
I need to stop checking the chat room and go to sleep. You're all making me hungry.
Now I want shakshuka.
 
can never get the eggs to poach like my dad or grand-father did though
 
this is the one that I liked growing up: chefindisguise.com/2011/12/22/makloubeh
 
I only made it once, but it was delicious.
 
one trick my mom did for that though, was line the bottom of the pot with potato slices, so the rice does not stick to the bottom of the pot
 
^ dad did the same but with zuchini
 
3:40 AM
awesome
 
or eggplant
depending on what we had
 
user559633
i've never cooked this type of food before, so i'm excited and glad i have someone to help me eat my practice runs
 
Hi guys, anyone of your tried to do a query on dynamodb with multiple attribute indexes?
i am using boto3 btw
 
3:47 AM
peppers stuffed with goat cheese is still one of my favorites so simple and creamy (little lemon juice in the cheese and topped with toasted pine nuts)
 
user559633
@JGreenwell added to the list, thanks
 
that is a good mujadara recipe.
I have one I gave you tristan, might want to take that one too, to compare
 
user559633
`Prep Time: 2 Hours`
welp, that's not happening. lol oh wait, i can tell tristanovka to make it and pretend i didn't know. game on.
 
you have to soak the lentil
so really just rinse/sort lentils for 5 minutes and then let sit in salted water for 2 hours
or buy canned ones
 
user559633
oh, let sit for 2 hours. nbd.
 
3:51 AM
heh...yeah, you get that kinda stuff with a lot of spanish cooking
like if you ever smoke a tomato that takes an hour of just letting them sit on a smoky grill but is included in "prep time" a lot
 
4:19 AM
guys?
IDLE returns different results than running python on Windows Powershell
I figured it out!
 
4:42 AM
Hi all, I can't figure out why my scrapy isn't looping? The first example loops fine, but when I add the if statement, it won't continue looking for URL's dpaste.com/1AY7QR4
 
5:10 AM
cabbage
 
user559633
cbg
 
Oh, we have another tristan now!
 
user559633
we do!
 
5:39 AM
PhD student sent chatroom@sopython.com an email asking to interview "George" and then follow their activity on SO for their research.
Looks semi legit, could probably check their credentials with their University
 
user559633
You're up early.
 
Who's George?
 
I always get up at 6am
Don't always speak though
No idea.
 
user559633
I marked it as spam and moved on because it's blanket "help me with my social-whatever thesis, we'll tell you that you've entered in a drawing for some pissant gift certificate"
 
George Stocker? o_O
 
user559633
5:42 AM
I wasn't going to bring it up, but on thinking about it, I don't feel it's a breach of confidence as it's generic spam
 
There's more than one George in the world
It is spammy, but it's not spam.
 
user559633
"The main aim of this research is to develop an understanding of how social influences drive people to participate in co-creating services with others in social networks...If you participate, you may enter the draw to win one of two $50 Amazon book vouchers."
 
user559633
Well, seeing as I'm not named George, and as it's looking for generic SO users, not specifically something for ROs, I think it's a wide net.
 
Social science students don't have many better ways to reach potential study targets than through an initial cold email.
 
I'm going to get a PhD in why people add co- to things when other parts of their sentence make that redundant
 
5:44 AM
I'd imagine that the user found sopython and got the email address from our site.
 
user559633
Well, popping in here would work, but they (singular they, it's 2am here), went with the "find email alias, copy/paste"
 
The incorrect name is part of what makes it spammy.
Need 20 rep
 
user559633
And book voucher.
 
Plus it would be a very small and biased selection group if they only used chat.
 
user559633
If you don't have 20 rep on SO and you're a social "scientist" you need to jog the fuck on if you can't even be arsed to participate with a sample population you want to pretend to be an expert on studying
 
user559633
5:46 AM
"nah it's cool, i've seen like most of an episode of curious george on netflix" - modern day jane goodall
 
You can study something but not directly participate. Would you rather have them ask crap questions for rep?
 
user559633
yes. if we're going to pretend that a generic PhD is to be even slightly respected, yes.
 
And so again, you fall to hyperbole to cover your lacking arguments and your general bitterness, nice.
 
user559633
not generally bitter -- having a bad question closed out is better than nothing for first hand experience.
 
Brb shower
 
user559633
5:49 AM
i'll make sure to water down my expressions from now on for you :)
 
Whatever man. My unsaid point before I had to go scald myself is that since your start up, you've generally been a much less pleasant person to be around, at least in my opinion. A lot of the time now you'll speak out stuff and slate things, you can't complain too much when someone calls you on it.
 
user559633
Oh dang, my bad. I'd prefer you bring that up to me privately, but good feedback is good feedback.
 
user559633
Honestly, I wouldn't think it controversial to expect someone writing a thesis on a topic to try to get as much first hand experience as possible or approach subcultures within a realm more carefully.
 
This isn't really one of the main ones, just like the straw that broke the camels back. Frankly I don't care about the student :p
 
user559633
If others feel the same way, please let me know
 
user559633
6:00 AM
I'd rather take a break from the room than poison the room culture
 
cbg
 
@khajvah Cabbage
 
6:27 AM
Do you guys know of any tool that would spit out a tex code from a pdf?
 
Cabbage!
 
@Gemtastic cabbage
 
What's up?
 
Nothin much, Just another day. You gotta tell :)
 
6:42 AM
I have another day of lots of python to learn. I think I'm starting to get somewhere with imports now
 
Good progress, Best of Luck.
 
Thanks :)
 
Just don't learn python the hard way ;)
 
Not sure what you mean by that XD
I'm learning it the haxor way; build something
I haven't even had a full run-through of the language syntax XD
(I'm gonna pick up a book on it this weekend)
 
@Gemtastic He meant, you shouldn't read "Learn Python the hard way"
 
6:52 AM
@Gemtastic What ^ said and See sopython.com/wiki/LPTHW_Complaints
 
I'll make a note of that
If it is what I think it is then it's full of supposed bad practice
What's the preferred way of writing docs? """ text \n second row of text \n """?
 
@Gemtastic docstrings? There's a pep for that.
pepe 257 and here in the official style guide python.org/dev/peps/pep-0008/#documentation-strings
 
7:11 AM
That's what I've been doing, so I suppose I'm good on that one
The single quote version I understood it as not being docs, just multiline comment?
 
I have dictionary like this:
data = {'city': u'', 'first_name': u'John', 'last_name': u'Doe',
'street_line2': u'', 'street_line1': u'', 'cvv': u'',
'zipcode': u'', 'exp_mo': u'12',
'card_number': u'4222222222222', 'exp_yr': u'2020'}
I want to convert it into other dictionary which should look like this:
 
@Gemtastic single quote version? 'this is not a multiline string'
 
credit_card={
'card_number': '4222222222222',
'expiration_date': '04/2020',
'card_code': '900'}
 
@arshpreet Please use 4 spaces at the starting to format code.
 
@BhargavRao '''I have seen people substitute the docs \n with this'''
 
7:16 AM
@BhargavRao Sorry, is there any keyboard shortcut for this?
 
@arshpreet ctrl + k
 
ok Thanks!
I will take care
 
@Gemtastic Hmm, Not sure bout that, But afaik, Both are equivalent. (But again not sure)
 
Yeah, I noticed that in the answer
 
7:17 AM
tried the method as follows:
m = {'expiration_date':str(data['exp_mo'])+'/'+str(data['exp_yr'])}
n = {'card_number':str(data['card_number'])}
o = {'card_code':str(data['cvv'])}
 
It's read as docs either way if it's the first thing after the method or class
 
mm = "{"+str(m).translate(None, ''.join(chars_to_remove))+','+str(n).translate(None, ''.join(chars_to_remove))+','+str(o).translate(None, ''.join(chars_to_remove))+"}"
 
@Gemtastic Yes you can do that, but you can also use multiline strings as normal string variables.
When they're the first thing after a definition, they can be treated as special docstrings.
 
but it is not considering "mm" as dictionary
 
like this?
variable = '''This is a
    multiline string
   '''
 
7:20 AM
@arshpreet What the hell are you trying to do?
 
@arshpreet mm is a string. It will not be a dictionary.
 
'This is a \n string' == '''This is a
 string'''
 
Interesting!
 
That resolves to True
 
@Ffisegydd @BhargavRao I am trying to create new dictionary from existing dictionary
 
7:22 AM
By making it into a string?
 
But if you just write:
variable = 42

'''I am a random
multiline string
'''

another_variable = "get to da chopta"
Then the multiline comment will be ignored?
 
@Gemtastic it'll be ignored in the sense that it won't be assigned to a variable.
 
@Ffisegydd no idea, :P any other method/way is there?
 
Nor will it be in the docs
Right?
 
@arshpreet try reading some Python tutorials.
@Gemtastic indeed yes.
"Docstrings" are only at the top of definitions/modules.
 
7:23 AM
Great, then I understood that part correctly :)
 
ok
 
@arshpreet Really? {'card_number':data['card_number'],'expiration_date':"{}/{}".format(data['exp_m‌​o'],data['exp_yr']),'card_code':data['cvv']} is your best bet.
Dictionary -> String -> Dictionary is like going to your neighbors house via a different continent.
 
@BhargavRao not the best betm but quick try, yes
 
and r"there won't be a \n newline here" will print \n instead of a new line as r defines it as a rawstring that won't be parsed?
 
@Bhargav dude. Teach a man to fish and all that.
@arshpreet in the long run it'll be better for you and us if you go away and go through some tutorials.
 
7:26 AM
@Gemtastic You can always try.
 
> Teach a man to fish, and he'll use Stack Overflow for a day. Give him a fish, and he'll use Stack Overflow for a lifetime of free fish.
 
May 26 at 9:13, by Ffisegydd
I prefer the Fizzy version. "Teach a man to fish and he'll be fed for a lifetime, give a man a fish and they'll keep on coming back for fish over and over again."
 
Hah, That's better.
 
@BhargavRao @Ffisegydd I am looking for tutorials but even I am not getting that If I will access a key+value from a dictionary It will come out as string, no?
 
@khajvah I have, but sometimes you think you see a behavior when you actually have a different one
 
7:28 AM
> I am looking for tutorials
Start here
 
and as you see I also have to change the names of the keys for second dictionary
 
The value will be of whatever type the value is.
 
@Gemtastic Then you can refer to the documentation.
 
Similarly, the key will be of whatever type the key is.
 
teach a man to ><> and he'll have fun programming for the rest of his life
I get it, I shall not ask for confirnation that what I've learned is the correct thing.
 
7:30 AM
But if you do need clarification or need pointing in the correct direction, then do ask.
 
or in dictionary 1 I have 'exp_mo': u'12', 'exp_yr': u'2020' but in 2nd dictionary I need it as 'expiration_date': '04/2020' so don't you think I need string manipulation ?
 
How are those tutorials going @arshpreet?
 
I need a lot of pointing to resources, if you have a book to recommend for 2.7 I'm all eyes
 
I'd recommend no book for 2.7 :P mostly because I would never recommend 2.7.
 
The pointing out that "learning python the hard way" is a bad resource was excellent. I have already been warned, but it's better to not assume that
 
7:32 AM
@DSM have you seen conda-forge.github.io?
 
I have to learn 2.7 initially
 
For work reasons?
 
Yep
I'm learning through building
 
Unfortunate, but fair enough.
 
But personally I like to have a deeper understanding than "I built it and it works afaik"
 
7:33 AM
@Gemtastic You are lucky that Antti is not here, Else he would have punched you right through your computer screen.
 
Programming Python by Mark Lutz is quite a good resource. It's pretty hefty and not necessarily aimed at beginner programmers, so your experience in other languages will help.
 
Ah, work, The ultimate reason to either learn 2.7 or ditch the company.
 
@BhargavRao so much for "we're friendly" and XD
I like this company, they pay me
And they feed me
For a junior fresh out of vocational school that's a fair deal
 
I don't like mine :( I have to do web development here.
 
I took a java job just coz they pay more than a py job. Yet to start working
 
7:36 AM
@khajvah My condolences :(
 
I just applied to vmware though. Hope they will call me.
 
backend devs should not be forced to do web dev
 
I work on both front and back ends
 
At least you get some fun then :)
I'm a fullstacker but I prefer backend
 
yeah, back end is fun.
 
7:46 AM
@BhargavRao You'll come crying back.
 
Hehe, I know that py is anytime better than java.
Anyone agree with the dupe here? (I don't)
 
@bha
 
I don't agree to that it's a dupe
even if the answer might be similar
 
@BhargavRao @Ffisegydd thanks guys I was doing quite bad things . :p solved as:
credit_car = {'card_number': data['card_number'],
        'expiration_date': data['exp_mo']+'/'+data['exp_yr'],
        'card_code': data['cvv']}
 
@arshpreet That's a good way to solve. Look at format the next time. Cheers.
 
7:53 AM
@BhargavRao Any specific reason for not good vies about using python 2.7?, ok
 
It's old?
 
Cabbage!
 
@arshpreet From the page that I previously linked
> Use Python 3. Most libraries now support Python 3, and it contains many pages of new features and improvements. Official support for Python 2 will end in 2020, so don’t get stuck in the past!
:)
@poke cbg
 
Only 4 more years of support
 
@Gemtastic Ouch, 3.5
 
7:59 AM
@BhargavRao Indeed.
 
Mmmm
 
I did not know that was a thing
 
@JonClements Happy Moddiversary!
 
Who can approve things?
I can't find where "admins" are on the Team.
 
8:32 AM
@Ffisegydd Anyone in the team (all the 131 members) can approve.
 
Does that mean all 131 members can remove others?
 
They are yet to implement the hierarchy there.
 
As I seem to be able to do that.
Amateur hour.
 
Yeah. We can throw you out :D
 
gulp
Please don't throw me out of the team that I've literally never used and forgot existed D:
 
8:33 AM
Confirmed, Anyone can remove anyone.
 
1 min ago, by Ffisegydd
Amateur hour.
 
Hah, Yeah. Trial and Error
 
Whimsical thought, hastily implemented.
And with that - good morrow, fine citizens.
 
Waves
 
The Prof has entered the room, Everybody sit down.
Morning @JRic
 
8:45 AM
So, prof. Snape will teach us about the dark arts of python?
5
 
Morning @Bhargav. I see you've been tempted by dollars for the Java bean.
The very darkest arts.
 
@JRichardSnape Yep, The bean temptations were very strong to not let go.
 
That's how I earned my first programming wage, too.
s'OK
 
Just an year of work, After that I will be back to studies (Hopefully)
 
The sympathy circle of "I'd rather be doing python"
 
8:49 AM
@BhargavRao On anything interesting? (and disclosable - tell me not to be nosy if its secret)
 
@JRichardSnape Thinking of doing a Masters in CS. Yet to decide.
 
I meant the year's coding, to be honest, but a Masters is interesting too. Finding an interesting project (mainly interesting to you, with some interest to others) is the key IMHO.
 
Working for one year in EIG, on Java. Have no idea about what I will do there, But there'll be a month of training.
The masters plan is completely undecided. A few months down the lane, I will need to decide the next course.
(Bit afk, Going for food)
 
Are you moving to Mass. to work?
 
9:31 AM
Nope, I meant, I will work for an year and then enroll for a masters program.
 
9:53 AM
Yeah I understood that bit, but as EIG are based in Mass., will you have to move there for work?
 
good morning people
i can dl a file to my hd and load it, i can use urllib in my code to dl it, is there a way to use urllib, but only dl it once(not dl it anymore after i executed it for the first time), maybe writing something of a check ( is that file already existing? )
 
Yes.
You have literally answered your own question.
 
so i should thank myself
:)
 
Why bother asking in the first place?
You have a solution already.
 
i was very unsure
makes a huge difference for me, because now when i share code that uses files that are dl, i dont have to send links or send data.. i can just send it that way.. the people will dl it once and all is well
 
10:49 AM
Cabbage
 
Hi @pm2
 
@hmmmbob You may find this answer helpful.
 
@PM2Ring cbg
 
Greeting, JRS & Hrrundi Bhargav. ;)
 
@PM2Ring Ah, you know you're a veteran when you've answered them all before ;)
 
10:52 AM
:)
 
@PM2Ring I need to see that film soon ;)
 
I just wish it were a little easier to use SO search facilities to find your old answers. The main reason I put SO links in my docstrings is to make it easier to search for SO answers by grepping my local Python directory. :)
@BhargavRao You do! Yes, The Party does make fun of certain Indian stereotypes, but it does it in a friendly way. I once watched it with a young Indian woman. She said it was a favourite film in her family. While we were watching it she laughed so much I thought she was going to have a heart episode. :)
 
Yep, I'll download it sometime today.
 
11:07 AM
I haven't been answering much on SO lately, the lack of decent questions in the Python tag is a bit depressing. But I've had a bit of fun over on U & L; I guess a big difference is that "gimme teh codez" questions aren't off-topic there, so you can score points answering questions that'd get closed on SO. ;)
 
11:38 AM
@PM2Ring speaking of "gimme teh codez": stackoverflow.com/questions/37834353/python-hexdigest-to-php
 
@IljaEverilä I'll give them 10 minutes to post some PHP code. If they don't, or if the code they post is garbage, I'll close-vote.
 
CBG!
 
@IljaEverilä I really want to write some PHP code that calls Java in a subprocess that executes some perl that executes some ruby that executes some Lisp that executes some Haskell that finally executes that Python, and post that ;)
cabbage, @d-coder
 
@WayneWerner don't really know if that's sadistic or masochistic
 
@WayneWerner Did you miss out the C ? :P
I have quick question here. What is standard line space between two imports ?
The above link suggests
Surround top-level function and class definitions with two blank lines.
does imports too come under this ?
 
11:55 AM
No
Unless you mean two blank spaces after your import block and before your top level function/class def
Imports should look like this...
import aaaaa
import be
import cee
import deee
from a import foo
from b import bar
personally, I like to split up my imports and my from X imports with a space
but they should be sorted alphabetically
 
Oh! Wow!
I usually use clubbed imports but I don't know if it's good or bad
 

« first day (2069 days earlier)      last day (2896 days later) »