Python

Room rules: sopython.com/chatroom Code formatting guide: tinyu...
Jul 15, 2015 19:41
@davidism I guess a queue of JSON responses would do the job :)
Jul 15, 2015 19:36
I don't want to involve any databases.
Jul 15, 2015 19:36
@davidism , So I have a service constantly running in background that collects data, I need a way to send the most updated data when a GET request arrives, if any ? Is building a streaming API would be good choice ?
Jul 15, 2015 19:33
Hi, is it possible to build up a streaming API using Python, I am using flask for now for building APIs ?
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Jul 15, 2015 19:20
Looks a bit like the twitter streaming API, when there are no tweets; nothing is send ?
Jul 15, 2015 19:19
Hey, I have a service running on my server which regularly collects some data. The server is a REST server, I want to get the most updated data from a GET request. If the data is not updated send empty object. I don't want to involve any database on my server data. Is there a good way to handle this ?
Jul 12, 2015 19:07
Anybody got a product hunt invitation in his pocket ?
Jul 12, 2015 19:06
@AwalGarg thanks !
Jul 12, 2015 19:06
for u
Jul 12, 2015 19:06
@uselesschien doing public encryption
Jul 12, 2015 19:05
@uselesschien keybase.io
Jul 12, 2015 19:04
Jul 12, 2015 19:03
@AwalGarg I m back, can you send me a keybase invite ?
Jul 12, 2015 18:57
@AwalGarg bye ! going
Jul 12, 2015 18:53
@AwalGarg yeah I don't like jobs here, fucking crap ..cram some data structure stuff and they agree on paying you a > 15 l.p.a job
Jul 12, 2015 18:50
:/
Jul 12, 2015 18:50
Thinking of removing the tag from SO, github profile
Jul 12, 2015 18:50
@AwalGarg @uselesschien everytime I come to this chatroom, guys start yelling at me by throwing questions coz I am from IIT :)
Jul 12, 2015 18:48
@AwalGarg agreed.
Jul 12, 2015 18:46
@AwalGarg yeah they are useless, apart from the culture.
Jul 12, 2015 18:46
@AwalGarg @uselesschien one should have the freedom to choose a college of their interest, but it's India.
Jul 12, 2015 18:44
@AwalGarg why ?
Jul 12, 2015 18:43
@AwalGarg cool, best of luck then.
Jul 12, 2015 18:42
@AwalGarg nope, i wasn't like that , I mean what ..engg ?
Jul 12, 2015 18:41
@AwalGarg cool, where ?
Jul 12, 2015 18:40
@AwalGarg Never had a cs related course in the school.
Jul 12, 2015 18:39
@AwalGarg yeah I know that !
Jul 12, 2015 18:39
@AwalGarg coding with python for 2.5 years now, bored __
Jul 12, 2015 18:39
@AwalGarg yeah, I assume there isn't a python course in indian colleges ?
Jul 12, 2015 18:37
@uselesschien why do you hate IIT guys ?
Jul 12, 2015 18:37
@AwalGarg assembly, microprocessors and all the stuff inside my computer..tronix guy .
Jul 12, 2015 18:36
@AwalGarg thanks , will make something and then inform you
Jul 12, 2015 18:31
@AwalGarg so invoke the server as a child process ?
Jul 12, 2015 18:30
@AwalGarg and listen over the other end.
Jul 12, 2015 18:30
@AwalGarg can't we propagate actions to child processes ?
Jul 12, 2015 18:29
npm install -g
Jul 12, 2015 18:29
@AwalGarg yeah but don't want any deps for a light weight cli app which i can do.
Jul 12, 2015 18:28
@AwalGarg just a few things, not the all logs. some data keeping stuff, how much data used . Assume a json with 3 keys and values strings.
Jul 12, 2015 18:26
@AwalGarg oops sorry, would be reading a log file at start.
Jul 12, 2015 18:25
@AwalGarg Just to fetch stuff and show it and take actions
Jul 12, 2015 18:25
@AwalGarg nope
Jul 12, 2015 18:25
@AwalGarg yeah that's the last thing I'll do.
Jul 12, 2015 18:24
@uselesschien " staying calm with people like you "
Jul 12, 2015 18:23
@AwalGarg yeah :-), anything using child processes ?
Jul 12, 2015 18:23
oops, why dont use http ?
Jul 12, 2015 18:22
@AwalGarg , so why don
Jul 12, 2015 18:22
@AwalGarg I am afraid, I finally end up reproducing a HTTP server like thing ?
Jul 12, 2015 18:21
@AwalGarg then to propagate actions I have to parse the actions on the other end !!
Jul 12, 2015 18:20
@uselesschien then carry on :)
Jul 12, 2015 18:20
@AwalGarg, like it would be requiring some os level actions, that may effect the next data