Incidentally, I didn't directly address the logic problem because OP never directly asked about it. I'm like an overly literal genie, giving you exactly what you want (but not what you need)
Sometimes a certain answer is more pedagogical. One of the rare questions on which my answer was accepted over Martijn's higher-voted answer is because I added more explanation to help the OP understand what was going on.
dictionary.reference.com doesn't have everything that original oxford edition dictionary does. i am talking about the full size edition and not the itty bitty pocket version.
I still don't think syntaxii is right. Almost certainly not in English, and probably not in Greek either, for the same reason we say axis/axes, not axii.
It's so sad when a question is deleted and I don't have the rep to see if the person found my suggestion helpful or not before deleting :( yearning for more rep, one day.
@DSM Hmm, I wonder if I should bother answering it now that someone else already did with a half-answer that says "I'll try to give you the proper solution", implying they haven't written it yet.
Meanwhile I have the solution in my copy-paste clipboard, ready to go.
Aaand now there's a second answer that has the solution I would have given. I guess we're done here.
@QuestionC it's all good, all that's really important is security in this context and tbh don't fully trust google's api for geocoding/reverse geocoding
@corvid I guess I just don't know what security means. If you're worried about spies then maybe a paid service is for you. The USPS service goes over the internet too, it's just a web API.
I get that, but does it automatically introduce a space? .. but if it didn't, we shouldn't even have been able to run the Python code, unless var1 were empty, no?
@BhargavRao PHP's "safe mode" is a configuration option mostly useful for shared webhosting. It disables some functions and puts some restrictions on others in order to try and prevent major damage: php.net/manual/en/features.safe-mode.php
Using the smtplib, and so far all is well except there seems to be indents in the email (I suspect because of the indents in the code?), and the subject line is also blank
message = """From: Materials <[email protected]>
To: {}, {} <{}>
Subject: subject line
some thank you message here
Sincerely,
Some Person
Invoice Information:
{}
""".format(l,f,o,data)
Now this message string is 4 tabs deep because loops and checks. Would that contribute to some of the lines having indents in the sent email?
And that subject line isn't showing up either. It just says "(no subject)" in my email
if foo:
while bar:
with something:
message = """\
From: Materials <[email protected]>
To: {}, {} <{}>
Subject: subject line
some thank you message here
Sincerely,
Some Person
Invoice Information:
{}
""".format(l,f,o,data)
The indent doesn't continue until after the string is closed.
what do you mean? I always though php had excellent documentation ... (granted once i found python i have completely stopped following php(so its been 5 years or so at least))
compare and contrast http://php.net/manual/en/function.shell-exec.php https://docs.python.org/2/library/subprocess.html#subprocess.check_output
seems like reasonable documentation still ... (I do like pythons slightly better now... but php docs tend to have more examples (ie close to 100% of the functions))
but its very easy to pickup and go and develop a website with some cool features even if you never programmed before ... it also is part of the default stack installed on 99% of machines so you dont have to deal with apache or wsgi at all ... it just works.... where with python its easy to app.run but for a novice setting up apache/nginx/wsgi/uwsgi can be a tricky thing ...
but ive never heard of anyone doing a desktop app in php ... and its pretty rare to hear about a command line interface script even
that said php has lots of uglyness too and wacky naming stuff ... huge polluted namespace...etc
And Joran, do you have the question where me, you and Martijn had a debate?
Twas on JSoN dumps
I had used eval for that
:D
Dear @FranciscI.B It is not according to the rules that you post your question in the chatroom once you post it on the main site. Wait for a few days, if u don't get any response, then post it here