This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Process Worker-2: | |
Traceback (most recent call last): | |
File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap | |
self.run() | |
File "./proxy.py", line 738, in run | |
operation, payload = self.client_queue.get(True, 1) | |
File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/queues.py", line 113, in get | |
return _ForkingPickler.loads(res) | |
File "/usr/local/Cellar/python/3.7.1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/multiprocessing/reduction.py", line 242, in _rebuild_socket | |
fd = df.detach() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <pthread.h> | |
static int ticketid = 0; | |
pthread_mutex_t lock; | |
// buyticket function remote dial a central store to obtain ticket id | |
void * buyticket() { | |
int *id = (int *)malloc(sizeof(int)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <setjmp.h> | |
void generator(); | |
jmp_buf buf; | |
#define YIELD(i) longjmp(buf, i) | |
#define FOR_RANGE(v,n) { \ | |
int v=0; \ | |
while(v!=n) { \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
panic: Show me the stacks | |
goroutine 16 [running]: | |
runtime.panic(0x29fb00, 0xc208001f10) | |
/Users/abhinavsingh/Dev/go/src/pkg/runtime/panic.c:279 +0xf5 | |
main.main() | |
/Users/abhinavsingh/Dev/....:31 +0x280 | |
goroutine 19 [finalizer wait]: | |
runtime.park(0x14840, 0x3f0da0, 0x3ef8a9) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import zmq | |
def main(): | |
try: | |
context = zmq.Context(1) | |
frontend = context.socket(zmq.SUB) | |
frontend.bind('tcp://*:5559') | |
frontend.setsockopt(zmq.SUBSCRIBE, '') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
run_tests | |
~~~~~~~~~ | |
Run test suite prepared using various test files | |
""" | |
import os | |
import glob | |
import unittest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./jaxlctl shell | |
jaxl 1> $xml_obj = new JAXLXml('message', array('to'=>'[email protected]', 'from'=>'[email protected]')); | |
jaxl 2> $xml_obj->c('body')->attrs(array('xml:lang'=>'en'))->t('Hello World!')->up() | |
....... ->c('thread')->t('id-1234')->up() | |
....... ->c('nested-stuff') | |
....... ->c('nest')->t('nest1')->up() | |
....... ->c('nest')->t('nest2')->up() | |
....... ->c('nest')->t('nest3')->up()->up() | |
....... ->c('c')->attrs(array('hash'=>'84jsdmnskd')); | |
jaxl 3> echo $xml_obj->to_string(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./jaxlctl shell | |
jaxl 1> $xml_obj = new JAXLXml('message', 'jabber:client', array('to'=>'[email protected]')); | |
jaxl 2> echo $xml_obj->to_string(); | |
<message xmlns="jabber:client" to="[email protected]"></message> | |
jaxl 3> | |
jaxl 3> // after this operation rover will point to `body` child node | |
jaxl 3> $xml_obj->c('body'); | |
jaxl 4> echo $xml_obj->to_string(); | |
<message xmlns="jabber:client" to="[email protected]"><body></body></message> | |
jaxl 5> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./jaxlctl shell | |
jaxl 1> $xml_obj = new JAXLXml('message', 'jabber:client', array('to'=>'[email protected]')); | |
jaxl 2> echo $xml_obj->to_string(); | |
<message xmlns="jabber:client" to="[email protected]"></message> | |
jaxl 3> | |
jaxl 3> $child = new JAXLXml('body', null, array(), 'Hello World!'); | |
jaxl 4> echo $child->to_string(); | |
<body>Hello World!</body> | |
jaxl 5> | |
jaxl 5> $xml_obj->cnode($child); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./jaxlctl shell | |
jaxl 1> $xml_obj = new JAXLXml('message', 'jabber:client', array('to'=>'[email protected]')); | |
jaxl 2> echo $xml_obj->to_string(); | |
<message xmlns="jabber:client" to="[email protected]"></message> | |
jaxl 3> | |
jaxl 3> $xml_obj->c('body', null, array(), 'Hello World!'); | |
jaxl 4> echo $xml_obj->to_string(); | |
<message xmlns="jabber:client" to="[email protected]"><body>Hello World!</body></message> | |
jaxl 5> | |
jaxl 5> quit |
NewerOlder