Maybe I should write a script that crawls the python tag and alerts my via text if any question title contains the words 'return', 'for, 'while', 'print' or 'loop' :)
Keep working on learning, Haidro gave me some good advice. Read questions, read answers, answer the questions you know, learn from the ones you don't.
I'll send it to you when I'm done. I'm having a writers block with the storyline of my Wargames game anyway, so this should be an interesting side project
I'll adjust the time ratio based on time of day. It seems that the late afternoon and night have the most questions
Yea I was just looking through the HTML it's pretty basic. But there's no simple way to get the title because it's saved in a link. I'll have to look at the APO
nevermind about that admin password I found a different way to install
there's actually an extremely simple python api that eliminates the need to write requests and what not. I should be able to get this done in 30 lines or less
When you're feeling discouraged or annoyed with python, learn HTML. Even if you don't want to be a web developer, at some point you're going to have to be able to read HTML and probably even write it. And it's not a programming language so it is extremely easy to learn. You'll understand it in probably just a few hours, to a few days.
I learned python on codecademy, its interactive and they have an interpreter online so its a great environment. Just incase you want another source to learn from!
I'm using Py-StackExchange to get a list of recent questions from Stack Overflow. I know there is a way to get just a constant list of questions:
import stackexchange
so = stackexchange.Site(stackexchange.StackOverflow)
for question in so.questions(pagesize=10):
print question
But this r...
I edited my answer after looking at someone else's, I basically still have the iterative version I originally posted, but I changed up the other guy's recursive function to be more user friendly. Is that a bad thing? I was trying to figure out how to add a comment to HIS answer with an update, but I don't have a comment button on other people's answers, why is that?
Looking through the other responses, I was unsatisfied with both clarity and style (they are not easy to understand at all, in my opinion), so I attempted to provide the clearest and most straightforward implementation of the algorithm that I could using pythonic style.
def riffle(deck):
''...
I like to use the standard library where possible to avoid rolling my own code and inadvertently leaving things out (like accidentally misplacing or forgetting a letter.)
import string
import collections
def vigsquare(printable=False):
'''
Returns a string like a vigenere square,
pr...
I'm aiming for elegant, well-factored solutions with good pythonic style
I know the best answers are supposed to bubble to the top, but it's frustrating when I come in behind others who earned points quickly for being fast. I suppose I keep doing this and I'll get faster too. But who has the time to sit around and wait for answers to pounce on?
@AaronHall I know you're new and all, and just trying to get some recognition, but at some point in time you will have to stop posting your answers, intending for some reputation. Please try not to do this so often.
@Haidro, ok, I expect to be busy at work soon, just trying to get in some starter stuff so I can start offering bounties and whatnot. I feel like I've neglected getting started here for too long and I need to catch up.
I don't want to over-self-promote, that's for sure. I'll annoy the moderators and get kicked off or something nearly as bad. I've been a user of SOF for a long time, and it's time for me to contribute back.
I need your help again.
I want to write a code for context menu.
I have written a code which uploads files from my local machine to the associated Google Drive Account.
It also copies the links of the files which are being uploaded.
Now, what I am looking for is to write a code for Context Me...
Please stop posting your questions here. The chat is NOT the place to bring more attention to your question, it is a place to discuss other things, or more complex questions. If you have already asked a question on the main site - leave it there - don't bring it here!
This chat room co-exists with the main site. Posting a question there is enough. Also posting it here is 2 things; obnoxious, needy. And not many people want to help those kinds of people. Wait like everyone else for your question to be seen by the users of the site. Else - it's like a child putting up a lemonade stand outside, and then going around knocking on everyone's door to let them know he put one outside. Don't do it!
I'm not concerned with my neighbors being annoyed, though, just my profits, right? ;)
For every neighbor that is annoyed, there will be another applauding my child's entrepreneurship and buying lemonade :P
It's not that I think you are wrong, just playing devil's advocate.
Same as how it was a bit annoying with the other guy earlier begging for upvotes, and complaining that he was late to the party and was getting overlooked.
I think I figured out how to raise my own rep, though ;) Just lurk on SO and look for my fellow students asking questions when we have exam and problem sets ;)
I have been looking through the questions on here tonight, and see like 50 people asking the same things, and it's the problems from the last two or three weeks in class.
Cool! I'd like to see yours when you're done. Mine is about to get a lot better. I'm adding a lot of conditionals to help minimize printing and maximize the amount of info that is being displayed. And hopefully there is a module to connect to some sort of text messaging server
Not sure what exactly you are talking about, but for a quick solution could you have it send an e-mail to you? Android phones will connect to your gmail account automatically and tell you when you have an e-mail, while oftentimes a cell phone provider will also have an e-mail to text address so you can generally e-mail your phone number @ whatever their address is and it shows as a text message on your phone.
I admit, I did ask a question pertaining to our midterm. But I had already solved it and been graded, but our forums are shut down for duration of midterm, and I had a question about the actual logic of it.
Anyway, about the text thing I was talking about, I know at least a few years ago, I had Verizon phone service, and people could send an e-mail to [email protected], and it would send it to my phone as a text message.
@IgnacioVazquez-Abrams they use to do a TV show of it here called "Call My Bluff"
@Ignacio a favourite of mine is a TV show called "Would I Lie To You"? Where a team member has to offer a truth or a lie about theirselves, and the other team can question them on aspects of it, and have to guess its veracity
@InbarRose Well... the contestants know which ones are truths as they've had to tell a researcher... The researchers then either use them, or write something that could be plausible for the contestant to pretend is real
@IntrepidBrit yes... it was a horrible upbringing - all my youth I struggled against the ravages of radiation wrecking my DNA and development prospects... then one day...
When I run sample.exe file then it give me below error
Traceback (most recent call last):
File "sample.py", line 8, in <module>
File "ldap\__init__.pyo", line 22, in <module>
File "ldap\_ldap.pyo", line 12, in <module>
File "ldap\_ldap.pyo", line 10, in __load
ImportError: DLL load faile...
@ChristianCareaga I m using Py2exe module for creating exe file of any script but pbm is after creating i run exe file then it gives me ldap dll file load failed
It just so happens not every question is answerable in 2 minutes
Besides, what DLL isn't found... have you found that much out?
Have you tried amending the program to catch that exception so you can narrow it down?
Or, in the hour, have you been sitting waiting?
The best anyone can help you with (unless they just so happen to have had exactly the same problem and have seen your question is)... is asking you what the DLL is that' failing... after that, you should be able to use the question I linked you to to advise py2exe on how to include DLLs...
I have a weird problem with "re.sub"... I'm trying to replace all occurrences of a string with the following pattern: r"[[ort:([\d+):([^]]+)]]" (i.e: "[[ort:1234:some text]]") with a string that references the two captures groups. However, the "re.sub" call will also try to replace strings that only contain the first group, i.e. "[[ort:1234]]", resulting in an "invalid group reference" exception when performing the substitution
(think that's relax mate)... might have been "I hope seagulls swoop down and peck your eyes out and string you up by your balls with cheesewire"... if so, I apologise in advance :)
That stupid question got more attention and more up votes than some of the questions I have asked. This ridiculous attitude where SO is turning into a support page and a tutorial site is very annoying.... What happened to the real programming?
say Hello, World!
Hello, World!
say 3 over 4
3/4
find 3 over 4
0.75
Hello, Jarvis
Good day to you, sir
A little ostentatious, don't you think?
What was I thinking? You're usually so discreet.
but yeah it's just for fun, i know expecting it to be a fully function AI with a sense of humour and sarcasm isn't gonna happen :P just seeing how far i can reasonably take it :)
also it's not very good at distinguishing between conversations, it'll argue for 10 minutes that it already asked me a question 5 minutes ago that it didn't (the sad thing is i'll argue back) and i guess that teaches it how to argue better hmm..