It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I'm going to start a pet-project, bringing this board game into web. For simplicity, imagine pvp chess instead.
I have very little expeirence with this kind of async programming. The only one - I wrote a simple chat with sinatra, using its streaming features.
I've got two closely related questions:
How should I organize game flow?
Should I store game-state in database? Or can I have a class, e.g. Game, and store everything in it? Second option sounds easier, and more natural, but is it possible to implement it in an application with client-server async nature?
How should client interact with server?
I'd like the board state to be updated in real-time. Is js EventSource the best option here?
Do I need anything beyond Sinatra application with its stream keyword? Do I need EventMachine?
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
My multicore machine is receiving packets and distributes them evenly (sort-of round robin) among its cores. Each core should decide whether to let the packet pass or drop it, depending solely on its origin address.
I need to find lock-less algorithm and data structure to allow this. Can you help?
If you are happy to use Java, or look at the design of Java source, you could chose a random key and then retrieve a queue from http://docs.oracle.com/javase/1.5.0/docs/api/java/util/concurrent/ConcurrentHashMap.html. Given the queue, you could add the packet to it without blocking if it was a http://docs.oracle.com/javase/1.5.0/docs/api/java/util/concurrent/ConcurrentLinkedQueue.html
Much of java.util.concurrent is due to Doug Lea, who has information on it at http://gee.cs.oswego.edu/dl/concurrency-interest/index.html.
Possibly overkill for your particular problem, but might satisfy a general request for info on data structures in this area.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Has anyone tried to implement Numenta's most recent cortical learning theory (http://www.numenta.com)? I'm working on it and would like to share experience.
I think the ideas from Numeta are very promising. But as with any company that wants to make money they are not verbose enough about the technology so that one should be able to re-implement their system (at least from what I have seen so far). It is probably not in their interest that one could just rebuild the system from which they plan to make money.
Also their system is very general and complex. So unless you have a lot of experience with other kinds of neural networks and learning algorithms, I would not recommend experimenting with their ideas. First try to do Backpropagation and maybe some of the less advanced temporal learning until you are really familiar with that.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
how can i create custom interfaces in xcode 4? i've seen programs like Kaleidoscope (http://designshack.co.uk/images/designs/kaleidoscope-for-mac.jpg) using custom controls or something not available for drag and drop on xode.
any help? thanks
You'll get better help if you take the time to craft more specific questions.
Since you're speaking generally, I'll answer generally: Xcode 4 will not help you create custom interfaces (at least not beyond letting you edit the code to build them). This is done entirely in code.
Learn to draw with Cocoa then learn how controls and cells work, then ask specific questions when you don't understand.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
i never work with DLINQ so i dont know the use of DLINQ. so can anyone show the situation where DLINQ is required and also show me the various use of DLINQ.
"While writing type-safe queries is great for most scenarios, there are cases where you want the flexibility to dynamically construct queries on the fly. For example: you might want to provide business intelligence UI within your application that allows an end-user business analyst to use drop-downs to build and express their own custom queries/views on top of data. "
from: this article
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I am looking for a book that discusses about how to write a GUI libray.
Don't bother reinventing the wheel. It will probably end up being a square one.
Rather use widget APIs like Gtk+ or Qt. Both APIs allows you to create widgets which are drawn with OpenGL-enabled 'painters'. That means that you can use Qt and Gtk widgets just like usual, only within an OpenGL context. The whole process is completely transparent after the initial boilerplate code.
In terms of design you might want to look at the design patterns book. This uses the design of a Windowing system for many examples.
You might also want to refer to other OpenGL GUI libraries, e.g.
What is the best free cross-platform OpenGL GUI library for a video game?