JavaEar 专注于收集分享传播有价值的技术资料

Ubuntu 17.04 - can't install mysql-server-5.6

I searched everywhere for this one and can't get it to work. when running: sudo apt-get install mysql-server-5.6 I get this result: Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that . . .阅读更多

Creating a RESTful API using Flask?

The Flask tutorial site here says that to create a RESTful API, you would write classes that extend restful.Resource, then add them to the API by: app = Flask(__name__) api = restful.Api(app) class HelloWorld(restful.Resource): def get(self): return {'hello': 'world'} api. . . .阅读更多

ZeroMQ PUSH/PULL

Some part of zmq is not behaving in a predictable manner. I'm using VS2013 and zmq 3.2.4. In order to not 'lose' messages in my pubsub framework [aside: I believe this is a design flaw. I should be able to start my subscriber first, then publisher and I should receive all messages] I m . . .阅读更多

How to save a variable

I've got a question in my mind : how to save a variable ? This variable has to be saved when the user left the game. var lvlNumber : Int = 1 Indeed this variable allows to know the level of the player. However, for the moment, this variable is always equal to 1 when the user open th . . .阅读更多

Error: That IP address can't be assigned-to in Django?

I am running Debian 6 stable and I am trying to run Django locally using ./manage.py runserver command. This is what I get: Validating models... 0 errors found Django version 1.4.1, using settings 'genelaytics.settings' Development server is running at http://127.0.0.1:8000/ Quit the . . .阅读更多

What is the purpose of quickfix message store?

What is the purpose of the message store structure in quickfix? I understand that you can log all incoming and outgoing fix messages via the message store interface and quickfix provides multiple implementations like file store etc. My question is why do you even care about the message . . .阅读更多

Angular 5 --aot Vs Angular 5 --aot=false

I use Angular 5.0.0 + rxjs ^5.5.2 When I use this command: ng serve --aot=false, my application is OK but when I use this command: ng serve --aot I have this error: core.js:1350 ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'subscribe' of undefined TypeError: Cann . . .阅读更多