« first day (327 days earlier)      last day (1861 days later) » 

2:08 AM
-5
Q: it is about implementation

Trangga KenHi I have two sections like this: * ButtonHideShowMain.java * HideShowMain.java TriggerA.java public class TriggerA { public interface OnTriggerListener { void onTrigger(); } private static OnTriggerListener proc; public TriggerA(OnTriggerListener vProc) { proc=vProc; } public...

 
 
1 hour later…
3:11 AM
1 message moved from Java
 
 
10 hours later…
1:14 PM
Hehehehehehehehe
 
This code snippet works well:

from threading import Thread

def runA():
while True:
print 'A\n'

def runB():
while True:
print 'B\n'

if __name__ == "__main__":
t1 = Thread(target = runA)
t2 = Thread(target = runB)
t1.setDaemon(True)
t2.setDaemon(True)
t1.start()
t2.start()
while True:
pass
but the following doesn't works the same way:
from threading import Thread
class MyClass():
def runA(self):
while True:
print 'A\n'

def runB(self):
while True:
print 'B\n'

if __name__ == "__main__":
myClassObj = MyClassA()
t1 = Thread(target = myClassA.runA())
t2 = Thread(target = myClassA.runB())
t1.setDaemon(True)
t2.setDaemon(True)
t1.start()
t2.start()
while True:
pass
 
2 messages moved from Python
 
 
3 hours later…
4:25 PM
!!tell Steve alive
 
@Sippy Command are does not exist. (note that /tell works on commands, it's not an echo.)
@Sippy Command alive? does not exist. Did you mean: live (note that /tell works on commands, it's not an echo.)
@Sippy Command alive does not exist. Did you mean: live (note that /tell works on commands, it's not an echo.)
 
1 message moved from C#
 
@Sippy That didn't make much sense. Maybe you meant: live
 
1 message moved from C#
 
 
2 hours later…
6:59 PM
@ZachSaucier just change the extension to gif
imgur is great like that
DAMMIT
spoke too soon
5 messages moved from HTML / CSS / WebDesign
 

« first day (327 days earlier)      last day (1861 days later) »