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
9
votes
1 answer

socket io emit failed callback

Is there any way to know socket io emit failed and success, something like ajax callback methods: onSuccess, onError? For socket io emit i only find: socket.emit('publish', {message:'test message'},function (data) { alert("")}) This callback…
fcbflying
  • 693
  • 1
  • 7
  • 23
8
votes
2 answers

How to create multi-dimensional array using Reflection.Emit

I want to create a multi-dimensional array using Reflection.Emit and set it's element. Like the following C# code: int[,] nums = new int[2, 2]; nums[1, 1] = 2; And turn into IL code: IL_0000: nop IL_0001: ldc.i4.2 IL_0002: ldc.i4.2 IL_0003:…
nineveh.Y
  • 167
  • 7
8
votes
3 answers

$emit vs callback in parent child directive communication best approach

Im trying to understand what is the best GENERIC approach to communicate between parent and child directive with isolated scopes (they might be reusable items). meaning if child directive needs to update parent directive in some manner (both have…
Jony-Y
  • 1,579
  • 1
  • 13
  • 30
6
votes
2 answers

Using emit function in node.js

I can't figure out why I can't make my server to run emit function. Here's my code: myServer.prototype = new events.EventEmitter; function myServer(map, port, server) { ... this.start = function () { console.log("here"); …
Itzik984
  • 15,968
  • 28
  • 69
  • 107
6
votes
1 answer

Is there any good assembly generation module for Python?

I'm searching for a good assembly generation module for Python. I have found this one: PyAsm But it's not working well. I want to execute and generate assembly executable file for simple operations like add, sub, divide and multiply. Something…
Seishin
  • 1,493
  • 1
  • 19
  • 30
5
votes
1 answer

Dynamically Append Code to a method .Net-Core

I'm interested in dynamically appending code in .Net-Core. Note: This is for education purposes only. Currently I have a class which swaps methods: public static void Inject(string targetFuncName, string injectFuncName) { …
johnny 5
  • 19,893
  • 50
  • 121
  • 195
5
votes
1 answer

How to export Socket.io instance on other files of the project

I'm kinda new to Web Dev, especially in node and I'm struggling with socket.io. The problem is that I need to export my "io" in an other file to emit messages but it's not working, cause I probably do it the wrong way. I've tried many of the…
Cosack
  • 63
  • 4
5
votes
1 answer

Vue.js emitting object to parent component

I'm having trouble figuring out why I cannot listen for changes from my child component in my parent component. I have a custom component which contains several input fields for a user to enter an address like so:…
Marcus Christiansen
  • 3,017
  • 7
  • 49
  • 86
5
votes
3 answers

VueJs Tree recursive elements emits to parent

How do you emit event inside recursive child components vuejs Taking the tree example from vue site https://v2.vuejs.org/v2/examples/tree-view.html How would you transmit on click to the parent each clicked elements id?
fefe
  • 8,755
  • 27
  • 104
  • 180
5
votes
2 answers

vue2 call a parent function using $emit from component

i'm trying to call a parent methods from child component, but it seems not working.. here the code: index.html
component Vue.component('lista-percorso', { template:`
Pds Ink
  • 765
  • 2
  • 12
  • 38
5
votes
3 answers

How to create a C# class (according to an existing class) dynamically at runtime

Background: We have a project with client side(Javascript) and server side(C#). There is a calculation logic need to run in both sides, so it is written in both Javascript and C#. We have many unit tests for the C# version classes. Our goal is to…
Zach
  • 5,715
  • 12
  • 47
  • 62
5
votes
1 answer

Why emit(meta.id, NULL)

I've read some sample code (especially from the Couchbase Model Views demo project link) and realized the map() function is so strange. function(doc, meta) { if (doc.type == "beer" && doc.name){ emit(doc.name, null); } } Why the emit…
Phillip
  • 141
  • 8
5
votes
3 answers

Read and write YAML files without destroying anchors and aliases

This question has been asked before: Read and write YAML files without destroying anchors and aliases? I was wondering how to solve that problem with many anchors and aliases? thanks
Max
  • 1,526
  • 2
  • 16
  • 19
4
votes
1 answer

How to map-reduce group, sort and count sort values

I have some problems with mapreduce. I want to group, sort and count some values in collection. I have collection such as: ---------------------------- | item_id | date | ---------------------------- | 1 | 01/15/2012 |…
4
votes
0 answers

ILGenerator: How to generate a Func<> to pass as an argument

I am attempting to create a proxy wrapper around services that are defined by an interface to "hide" the client specific calling code from the developer user of the service. I have already been able to generate most of the wrapper class itself but…
Euan
  • 150
  • 2
  • 6
1
2
3
25 26