I was writing a bot in python for Facebook. Here is my code:
!/usr/bin/python
import os
import pycurl
import cStringIO
import re
import time
username = "username"
password = "password"
returnpoke = True
newpoke = True
def login():
try:
os.remove("pycookie.txt")
except:
...
I recently asked a question on stack overflow however I was told it might be better to move it here. Since i cannot find a way how to move it here is the link. http://stackoverflow.com/questions/28529810/c-ping-pong-paddels-are-not-acting-as-expected
It is the government trying to protect children's privacy from scum and advertisers (who are worse because they cannot go to jail for stealing your information).
Also, kinda makes it funny when you think about the tragedy of teen pregnancy; "That feeling when you want a toy but your mom can't buy it for you because she's not 18 yet"
This is my first test at making a key event dispatcher. Some of the code is unnecessary if one is interested in separating lower and upper cases, however I want to treat them as the same. Hence my wonderfully named method keyToLowerCaseIfUpperCase(char c). I also want to lock the key if it has be...
I am writing a class that contains data. It exposes methods that allow to query the data, while the data is also being updated from an external source (web service, for example).
All the methods expose tasks that are started on a worker thread using the default task scheduler. So the structure o...
"Because you're accessing sensitive info, you need to verify your password." no, msdn. i'm just trying to read your documentation. why do you make me sign in at least once a day?
@Hosch250, This is a theoretical question, I have not yet written anything, I am just trying to design an architecture. I thought I provided all the necessary code here, the missing code is only supposed to make some calculations using the shared data, but it does not really matter which calculations are made. — Kobi Hari3 mins ago
i had a (maybe obvious to others) realisation the other day about the rules of CR. it's just like a real CR at work -- you don't submit stub code, design ideas, broken code etc for code review at your job. you have an actual, working commit (or commits) reviewed
Okay, I've started a little challenge on a website, and the first one was about counting different DNA letters inside it. I've done it, but I found my method very brutal. I have a little work experience, and I know that hard-coded information are not good. Any way to boost this code?
chaine = "A...