real-time

Special polygonial for loop in two dimensional array

邮差的信 提交于 2019-12-24 11:09:31
问题 This is a bit tricky question for you computer scientists. Let's say that I have a two dimensional array/matrix of 100 by 100 entries, arr[i][j]. Where i and j goes from 0-99. This can be envisioned as a square of dots with each dot corresponding to a data value. Now, If I define a 4 point polygon and know the indicies of the 4 points: Is it possible (is there an clever algorithm) to loop through only those entries in the matrix that lies inside of the 4-point polygon? That is, every value of

Pusher doesn't receive events after reconnect

浪尽此生 提交于 2019-12-24 09:25:15
问题 I am building browser application with real-time updates. Application allows to read and edit spreadsheet together with other people online. However, some people have poor Internet connection and disconnects may occur. I want application to be able to update to the latest data after Internet reconnection. Currently Pusher and application work so: Pusher connects to server and receives events. Other people make changes in spreadsheet. Application receives these changes from Pusher and is able

PusherBadRequest Unknown Auth_Key

自闭症网瘾萝莉.ら 提交于 2019-12-24 07:58:02
问题 I'm building this app so that whenever I update an user in the update view, The other view with user's detail displays a change notification. I'm getting PusherBadRequest Unknown Auth_Key, But all the configs are right as you can see in my settings.py. Settings.py INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'users', 'pusherable' ] PUSHER_APP_ID = "340365"

NTP and RTC HW Clock weird results

偶尔善良 提交于 2019-12-24 07:33:15
问题 In an attempt to make the system time on an ODroid as close to realtime as possible, I've tried adding a real time clock to the ODroid. The RTC has an accuracy of +/- 4ppm. Without the realtimeclock, I would get results like this (Synced with NTP-server every 60 seconds). The blue is an Orange Pi for comparison. The x-axis is the sample, and the y-axis is the offset reported by the NTP-server in ms. So what I tried, was the same thing (Though more samples, but same interval), but instead of

Tensorflow Object Detection API with GPU on Windows and real-time detection

风格不统一 提交于 2019-12-24 07:01:48
问题 I am testing the new Tensorflow Object Detection API in Python, and I succeeded in installing it on Windows using docker. However, my trained model (Faster RCNN resnet101 COCO) takes up to 15 seconds to make a prediction (with very good accuracy though), probably because I only use Tensorflow CPU. My three questions are: Considering the latency, where is the problem? I heard Faster RCNN was a good model for low latency visual detection, is it because of the CPU-only execution? With such

Partially editing a document in Google Drive

最后都变了- 提交于 2019-12-24 05:13:25
问题 This is a conceptual question regarding the realtime editing of large files. Imagine we have a 50 Mb txt file in Google Drive that we want to allow users to edit. We require that the user downloads the entire file before they start editing (The user will have to wait for a while, but this is ok). The user then changes a single word in the 50 Mb text file. How can we possibly update the file in Google Drive without uploading all 50 Mb of text. 回答1: If you are creating an Android application,

Partially editing a document in Google Drive

半世苍凉 提交于 2019-12-24 05:13:04
问题 This is a conceptual question regarding the realtime editing of large files. Imagine we have a 50 Mb txt file in Google Drive that we want to allow users to edit. We require that the user downloads the entire file before they start editing (The user will have to wait for a while, but this is ok). The user then changes a single word in the 50 Mb text file. How can we possibly update the file in Google Drive without uploading all 50 Mb of text. 回答1: If you are creating an Android application,

Real-time data in Matlab

这一生的挚爱 提交于 2019-12-24 04:18:12
问题 I'm trying to get data from a server. Right now, I am polling the server every couple of seconds for the current values. I am wondering if it is possible to have Matlab get the data in real-time or if I am stuck with my current implementation. Has anyone done anything like this? If so, maybe you can tell me how you got started with it. Any help would be greatly appreciated. Thanks! 回答1: If you're on Windows, you can listen to ActiveX (COM) events using REGISTEREVENT. You would need to provide

Pusher on route not sending event in Laravel

你。 提交于 2019-12-24 02:43:21
问题 I am creating a test app using Pusher for real-time notification on Laravel 4 . As I am testing the said API, I am having difficulties on making it work. I have this on my routes.php : Route::get('pusher-test', function(){ return View::make('pages.test'); }); Route::any('test', function(){ $pusher = new Pusher('key','sect','app_key'); //my keys are correct. $pusher->trigger('notificationChannel', 'userRegistration', []); }); Then my pusherTest.js file: (function(){ var pusher = new Pusher(

Ideas wanted for analyzing near-realtime data over specific intervals with memory/cpu efficiency

血红的双手。 提交于 2019-12-23 23:45:14
问题 I have some environmental sensors and I want to detect sudden changes in temperature, and slow trends over time... however I'd like to do most of the math based on what's in memory with parameters that may look like this: (subject to change) (note: Items in parens are computed in realtime as data is added) 5 minute (derivative, max, min, avg) + 36 datapoints for most current 3 hours 10 minute (derivative, max, min, avg) + 0 datapoints, calc is based on 5min sample 30 minute (derivative, max,