News for hackers. Stuff that matters.

jaspersfather

Re:HN Announce: Meetup in Munich on Thursday March 08, 2012 @05:57AM (#3679314)
No, please don't. Those are reserved for different things.
Re:Python Enums for Humans on Monday February 27, 2012 @09:20AM (#3639030)
What makes that better than just using strings?
Re:Show HN: reddit.py - View reddit's RSS feed from your terminal. on Wednesday December 28, 2011 @06:04AM (#3399382)
Instead of

    if bla in [bla, blubb, bfoo]:
      return True
    return False
you can write:

    return bla in [bla, blubb, foo]
Re:Design Patterns in Python (Free Book) on Wednesday December 28, 2011 @04:09AM (#3399155)
Absolutely. I have not seen a factory pattern in use in ages. I think the last time was before http://dirtsimple.org/2004/12/python-is-not-java.html was around.
Re:Apple’s Latest Patent Victory: In-Call Multitasking on Thursday December 22, 2011 @10:09AM (#3381721)
The idea of patenting it has roughly the same amount of hilarity.
Re:ØMQ: Mission Accomplished on Thursday November 10, 2011 @08:47AM (#3220006)
That depends more on whether your algorithm is easily distributed. If it is, zeromq will be good for you.

I am currently using it to transfer model parameters learned on machine #1 to machine #2 where real time prediction takes place. The predictions are then sent out via 0mq to a robot controller.

The great thing of building systems with 0mq is that you just add another component without having to think too much about 'but then I will have to implement a protocol for it and HTTP will probably to slow and the request/reply pattern doesn't really fit there blabla'.

> Only one will get there first, so only one will be able to arrest the person.

Where do you buy them real world semaphores, eh?