Questions tagged [emit]

Emit is a Python library for realtime data processing.

Emit is a Python library for realtime data processing. It can distribute work with Celery or RQ, coordinate execution in other languages, and let you swing from the trees of your graph with Tarzan-like precision.

387 questions
0
votes
1 answer

Johnny-Five multiple Arduinos connecting, but not emitting "ready"

I'm having a little difficulty with johnny-five (Multiple Boards) ; can anyone shed some light on this for me? I have 2 Arduinos connected and I can access them individually perfectly fine with the "var board = new five.Board()". I can successfully…
topkoa
  • 3
  • 3
0
votes
0 answers

How to implement shallowcopy with IL (C#)?

I want to implement a shallow copy with C# IL instead of reflection directly. • ShallowCopy version with reflection directly: public T ShallowCopy(T instanceToShallowCopy) where T : class { Type type =…
Jason Cai
  • 1
  • 1
  • 1
  • 2
0
votes
0 answers

Send event to client, from server, and then disconnect the socket (from server)

I want to send an event back to a client, in Socket.io, and immediately after that to disconnect the client. The problem is that calling socket.emit() will not emit anything... Do you know, or stepped into this kind of problem? my code is like…
0
votes
2 answers

Communication between child and parent directive

I'm trying to figure out how to make a child directive communicate with it's parent directive I basically have this html markup In the myData directive, if there is no data available, I…
mrb398
  • 1,277
  • 4
  • 24
  • 32
0
votes
1 answer

Emit(OpCodes.Ldfld, textBox) fails with casting

I am using Reflection.Emit to build a simple dynamic method which gets Text property value of a TextBox object in a simple WPF program (MyTextBox.Text). This dynamic method cannot be called correctly with Invoke and I found out something wrong at…
0
votes
0 answers

Difference between class value and local value in socketio

This code is not working because of some reason. function process() { this.socket = null; } process.prototype = { makeCode : function() { this.socket = io.connect('/socket', {'force new connection': true}); this.socket.on('connect',…
DK2
  • 651
  • 1
  • 7
  • 34
0
votes
0 answers

Dynamic proxy for class

I have a simple class: public class Some { [F("some text")] public void Foo() { //Do something } } External code use my class by calling Foo method. It's search an attribute F, creates an instance of the Some class and then calls Foo method.…
Gattaka
  • 147
  • 1
  • 9
0
votes
3 answers

AngularJS + Ionic - how to call method on the second controller from first controller with deffer promise?

I need to call method for initialization user setting values (which are set to rootscope) from second cotroller in method of the first controller. After the values are succesfully set to rootscope return premise and continue in executing of the…
redrom
  • 11,502
  • 31
  • 157
  • 264
0
votes
1 answer

How to implement emit to work in a synchronous manner

I am trying to display a spinner during page load using angular $emit and a command file. My model is: Model: model.load = function(){ model.loading = true; $rootScope.$emit('loadMyPage', model.loading); return…
Jyotirmoy Pan
  • 837
  • 2
  • 10
  • 28
0
votes
2 answers

PySide: emit() signal with a list as a parameter

I'm new to GUI application development in Python. I'm using PySide to develop a GUI. I need help with passing parameters across two threads. I know how to use custom Signals and Slot mechanism. I wish to transmit a list from my second thread to my…
HaggarTheHorrible
  • 7,083
  • 20
  • 70
  • 81
0
votes
1 answer

Reflection.Emit Performance

Here's a simple question. Let's say we want to unroll a looping method such as: public int DoSum1(int n) { int result = 0; for(int i = 1;i <= n; i++) { result += i; } return result; } Into a method performing simple…
Olograph
  • 45
  • 7
0
votes
2 answers

Storm emitting array of integers and retrieving it

I'm turning an image to a 2D array of integers. Doing some process on that then I'm trying to emit the array in this way : collector.emit( new Values ( scaledImageMatrix ) ); then I'm trying to retrieve the data in another bolt like this : int [][]…
Maziar
  • 81
  • 1
  • 12
0
votes
1 answer

Node.js emit to a specific listener

It's possible emit to a specific listener in node.js? A example: emitter.js var EventEmitter = require('events').EventEmitter; module.exports = function() { var controller = new EventEmitter(); return { set: function(opts) { …
Santos
  • 436
  • 1
  • 5
  • 11
0
votes
1 answer

nodejs socket.io server emit with an answer of server on

if I emit from serverside it is imperative that the code can only respond with "on" at clientside? My Problem is that if a user login he gets a specific users list as object. Imagine A logs in, this gets a custom object with the contents of user B,…
EDNA
  • 139
  • 2
  • 11
0
votes
1 answer

Socket io heartbeat is not emitting

when i try to communicate with my socket io, the connection is established and the websocket writing is taking place, but the hearbeat is not getting emitted on the server ..so im not receiving anything on the client side. but when i disconnect and…
user3361879
  • 85
  • 2
  • 8