Search found 4 matches

by fjellfras
Mon Aug 27, 2012 5:23 pm UTC
Forum: Coding
Topic: How Do I Learn About [n]?
Replies: 181
Views: 365848

Re: How Do I Learn About [n]?

Unless someone else knows a good source? I was working on writing games in java some time ago as a hobby and two books helped a lot. Killer game programming in Java is quite a decent book, by Oreilly. It needs you to have a solid grasp on certain aspects of Java but you can learn them as you go alo...
by fjellfras
Sun May 16, 2010 10:26 am UTC
Forum: General
Topic: 10,000th Living Day
Replies: 65
Views: 10764

Re: 10,000th Living Day

Mine was last month. I had actually set a reminder a couple of years ago in my (then) new cellphone, I was playing around with its calendar and calculator I believe. Last month one morning the alarm went off and the screen said "I am 10000 days old". Then I remembered about the alarm and c...
by fjellfras
Wed May 12, 2010 5:46 pm UTC
Forum: Coding
Topic: Python Rookie and Zigbee's
Replies: 17
Views: 6131

Re: Python Rookie and Zigbee's

Slight correction, if you import socket, you have to do sd = socket.socket(socket.AF_INET,socket.SOCK_DGRAM,socket.<TRANSPORT>) Thanks. I am just starting out with python myself :oops: The two instances I found for AF_ZIGBEE on google codesearch for python did not include any extra modules, I did s...
by fjellfras
Wed May 12, 2010 11:05 am UTC
Forum: Coding
Topic: Python Rookie and Zigbee's
Replies: 17
Views: 6131

Re: Python Rookie and Zigbee's

The difference in from-import and import-from is that 'from socket import *' will import the socket module into the current namespace, so you do not need to refer to the module functions explicitly and you can use code like sd = socket(AF_ZIGBEE, SOCK_DGRAM, ZBS_PROT_TRANSPORT) If you had used 'impo...

Go to advanced search