Ryan O'Hara

Canada

Age: 18

If you don’t use code formatting for emphasis, we can probably be friends.

Apr
27
awarded Good Answer
Apr
23
awarded Enlightened
Apr
23
awarded Nice Answer
Apr
22
comment If a function returns None, then don't print anything condition Python
Put getTag(connection, instanceId.split(':')[1]) in a variable. Print if that variable does not contain None.
Apr
21
comment I need to be able to add but there is an error. SYNTAX ERROR INSERT INTO and cmd.ExecuteNonQuery()
A good start would be to stop ignoring the advice you get in comments and apply it instead.
Apr
21
comment How do I code a data encryption program using Python?
But that’s unauthenticated and you’re not choosing an IV safely and you’re not demonstrating how to pad the message. Simple to use, hard to get right: the most dangerous combination.
Apr
21
comment I need to be able to add but there is an error. SYNTAX ERROR INSERT INTO and cmd.ExecuteNonQuery()
Start by using parametrized queries. The problem might solve itself when you do that. If it doesn’t, it will be more obvious and I will also be happy to help then if you still can’t find it.
Apr
21
comment How do I code a data encryption program using Python?
pynacl.readthedocs.org/en/latest/secret
Apr
21
comment I need to be able to add but there is an error. SYNTAX ERROR INSERT INTO and cmd.ExecuteNonQuery()
Use parametrized queries. Sticking input directly into a query opens you up to SQL injection and mysterious bugs. social.msdn.microsoft.com/Forums/vstudio/en-US/…
Apr
20
awarded Yearling
Apr
20
awarded Yearling
Apr
20
awarded Yearling
Apr
20
awarded Yearling
Apr
20
comment Why does this change to the makefile make the performance go up?
-O3 enables a bunch of optimizations. -funroll-loops is an optimization. Together, they turn on a bunch of optimizations plus one. Your program got faster when it was optimized because that’s the point of optimizations.
Apr
19
comment len() function not working properly in Python
If you want to be able to do len(Stat()), the special method name is __len__. The right way to call the len method (as it’s just a method named len) on your current class is just Stat().len(). But you wouldn’t need to inherit from list to do either of these. Pick one of wrapping list (having self.s) or inheriting from it.
Apr
19
comment len() function not working properly in Python
You probably shouldn’t be inheriting from list.
Apr
18
awarded Guru
Apr
17
comment how to develop the same project in github using the different accounts
Add them as collaborators on the repo (in the Settings tab).
Apr
17
comment Overriding styles without !important
@LukeTaylor: Yep, CSSLint is frankly wrong. Just because classes are useful much more often than ids doesn’t mean it’s useful to warn on every single instance of an id. That hides the real problems.
Apr
15
comment Avast AV could read Firefox saved passwords
@Bakuriu: Master passwords are barely any protection at all. Malware can wait until you just type them in…
1 2 3 4 5