w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Data driven real time graph
Have you tried the D3.js library? Although it is not specifically graph-based (it is a data driven library), it is useful to display information and there are many apps working with graphs. Maybe it can help to process your data. But its just an idea, I haven't tried with the stream frequency you are dealing. See here some beautiful examples when displaying graph data: http://bl.ocks.org/mbostock/929623 http://redotheweb.com/CodeFlower/

Categories : Javascript

Is it possible to get real-time update on conversations?
No this isn't possible without polling the thread id. You can see the list of available connections at https://developers.facebook.com/docs/reference/api/realtime/

Categories : Facebook

How to update DataGridView real time execution? C#
The simplest way to do this,(as said by shahid Iqbal) is to use a timer and re-bind your datagridview to the datasource at the specified time interval but then it is possible that user has not changed the related datasource. But if you want a more robust approach take a look below: Real-Time DataGridView? As you see it takes some time to implement this functionality.

Categories : C#

Instagram API Real-time Photo Update not working
it was necessary to go through the authorization APIinstagram or follow the link specified in the authorization application documentation https: //api.instagram.com/oauth/authorize/?client_id=CLIENT-ID&redirect_uri=REDIRECT-URI&response_type=code After that, POST requests began to come in callback url

Categories : PHP

Update transparancy of jFreeChart in real time with JSlider
The critical issue is to notify the chart that you've modified "the pie chart that is used to draw the individual pie plots." chart.fireChartChanged(); Simplified SSCCE: import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.EventQueue; import java.math.BigDecimal; import java.math.BigInteger; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JSlider; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; import org.jfree.chart.plot.MultiplePiePlot; import org.jfree.chart.plot.PiePlot; import org.jfree.data.category.CategoryDataset; import org.jfree.data.category.DefaultCategoryDataset; import org.jfree.util.Table

Categories : Java

Real Time mySQL, PHP Google Maps API Update
You realize that your PHP code is executed on the server, not the client? When this line is executed: alert('<?php include 'getgps.inc.php';?>'); you'll end up with something like alert('foo'); embedded the javascript you send over to the client. When your autoUpdate() function is executed in the client, the PHP code is LONG since gone and NEVER re-executed by the client, so that 'foo' text never changes. You need to use an AJAX call to fetch a FRESH copy of that file's output each time, not simply re-alert what was embedded in the page when it was generated.

Categories : PHP

Coldfusion - How to update Table Cells in Real time?
I think you could rewrite your question and get at least 5 answers in first hour. Now to answer it, if I understood well what you're asking. IMHO websockets aren't there yet, if your website is for wide population and you are not 100% sure that they're coming with most recent Chrome or FF, forget it. You could use some javascript websocket library which would gracefully fallback to flash or AJAX HTTP polling, like http://socket.io/ or cloud service like pusher.com . But this will complicate your life because you have 2-3 times more work in backend if you implement polling and websocket. Regarding amount of requests, if you want real time data on screen, you gotta have server to support it. You could optimize if you request once and refresh data for all the table, so not per cell. You

Categories : C#

How to update the parent page from the modal popup in real time
Since your domainUser variable in the parent view is a ko.observableArray containing all your users, all you need to do is pass the ko.observable of the user you want to edit to the activate() method of your popup dialog view. Then you don't have to do an ajax call in your modal view to get the user; thus, saving you a round-trip to the server. You almost have the right idea with ko.dataFor(), except that function returns the raw data, not the observable its associated with in your array. You already have all the data loaded on the parent, so leverage that advantage. :)

Categories : Jquery

Real time update for voting system with an ajax call
You can give $.ajax a success callback that updates with something like: $.ajax({... success: function(data) {$('#element').val(data)}}) This will update the vote count right after casting the vote. However, if you want the vote to update without any user interaction, you can do some kind of polling or publish/subscribe.

Categories : Javascript

Are there any free compression utilities that zip in real time like Xceed Real-Time Zip?
What you are looking for is stream compression approach. Good news is you have quite a lot of options. Please also note you have to think about memory because some solutions (dictionary-based) might require a lot of memory, so test and tune. In order to keep my answer short I would suggest to give LZ4 a try. LZ4 - http://code.google.com/p/lz4/ LZ4 is a very fast lossless compression algorithm, providing compression speed at 300 MB/s per core, scalable with multi-cores CPU. It also features an extremely fast decoder, with speed in GB/s per core, typically reaching RAM speed limits on multi-core systems. Benchmark: Name Ratio C.speed D.speed MB/s MB/s LZ4 (r97) 2.084 410 1810 LZO 2.06 2.106 409 600 QuickLZ 1.5.

Categories : Dotnet

Move in real time JavaScript
There is two general approaches to sync client with servers state. First of all server should have loop on its side, where it will perform all updates of game objects, move them, change states, etc. This is called update and there is ups - Updates Per Second. For MMO it can be in between 2-10, based on how much 'close to real-time' you want. Then every certain period, no more often than ups but can be more rare, you need to send state to client, with positions of objects. It can be done for example 5 times a second (every 200 ms). Client will have to interpolate or extrapolate, it is called dead reckoning. Second approach would be event based, where server would send events to client, for example object_1024 moved to x,y, then client would need to have own loop in order to move object f

Categories : Javascript

Facebook Real Time Update return only "changed_fields":["feed"] and not the actual comment
Update: found this, sounds promising: http://allfacebook.com/page-posts-real-time-updates-api_b111225 I have the same problem. As far as I can tell, this is what FB's system was designed to do, even though we would really LIKE to get higher granularity information pushed (and it would likely be more efficient for FB's servers, since as it is now, developers may have to write code that digs through the feed to find the relevant comment or such, possibly fetching quite a lot of stuff we through away, just to get one comment). Bummer. If anyone has any good ideas to offer, I'd be grateful. We want our app to react to certain comments on a user's wall, which we do already for the user's own status updates, but to do it for comments it looks like we would have to scrape the whole feed (which

Categories : Facebook

WPF converter to update in real time background colour of textbox on text change
You need to add UpdateSourceTrigger=PropertyChanged to your Binding: <TextBox x:Name="forenameTextBox" Grid.Column="1" HorizontalAlignment="Left" Height="23" Margin="3" Grid.Row="1" Background="{Binding Staff, UpdateSourceTrigger=PropertyChanged, Converter ={StaticResource StaffNameToBackgroundColourConverter1}}" Text="{Binding Staff.Forename, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true}" VerticalAlignment="Center" Width="120"/> <TextBox x:Name="surnameTextBox" Grid.Column="1" HorizontalAlignment="Left" Height="23" Margin="3" Grid.Row="2" Background="{Binding Staff, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource StaffNameToBackgroundColourConverter1}}" Text="{Binding Staff.Surname, Mode=TwoWay,

Categories : C#

Getting real time interval between diffrent clients interaction with PHP and JavaScript
Do you mean something like Smartupdater or RealtimeAJAX ?

Categories : PHP

How to real-time detect keyboard input and do NOT waste too much CPU resources on Javascript
You can keep a timer variable which captures the setTimeout id. And clear it whenever there is a keypress event. The only thing I can thing of causing performance problems is setTimeout , as you seem to unnecessarily creating an extra scope for each key press. Also once you clear the timeouts you would not be needing the pressed attribute as well. $(document).ready(function () { var chars = [], timer; $(window).keypress(function (e) { // Clear the timer here clearTimeout(timer); console.log(e.which + ":" + chars.join("|")); // You don't need the next statement if the // keycode does not match in the first place if (e.which < 48 && e.which > 57) return; chars.push(String.fromCharCode(e.which));

Categories : Javascript

Fixing Javascript animation timings in inactive tabs with real time fix
So I ended up figuring out a fix to make it stay in sync. http://jsfiddle.net/bwCmk/ I changed the animation code entirely so that it is running in jQuery. The fix however comes in how I dealt with changing to the next animation. I just made a different function for each pulsing element and had the next one called at the end of the previous function. So: FunctionA { code functionB(); } FunctionB { code functionC(); } etc it worked. Just putting this up so that if anyone else makes something along these lines, they can find a fix for it. Thanks to everyone who answered.

Categories : Javascript

Real time web update client to client
That technique called as server push.Among them Comet is widley used and for PHP Pusher – Who I work for- Here is the real time list Messaging: with focus on delivery to clients (e.g. Web Browsers)

Categories : PHP

Converting date from SQLite manager to real time (mountain standard time)
Try this: SELECT datetime(399082293, 'unixepoch', 'localtime'); the result given for me is: 1982-08-25 01:11:33 There is more information about various date formatting options in SQLite on this page.

Categories : Sqlite

Change the real time into a given span of time, with jquery, mysql and/or php
Interesting problem. I would think the algorithm would go something like this: Calculate what percentage of an actual day has passed. Use that to calculate how much time has passed in a virtual day (multiply times 32400 to get the number of seconds, probably). Add that number of seconds to a date object that has been set to 20:00PM on today's date.

Categories : Javascript

Update time descriptions every minute using jquery/javascript
You've got this error because floor() is not a function in JS. Each time you use floor() use Math.floor() instead.

Categories : Javascript

iOS - How do I convert float time to real time (hh:mm)
Probably you would like to do the conversion to time like in this example but before you need to get the integer values from float. Fot this you can use modulo to sparate things before and after comma.

Categories : IOS

Meteorjs how much of a real time is it really?
If you use two databases without DDP your apps are not going to operate in real time. You should either use one complete app or use DDP to relay messages to the other instance (via Meteor.connect) This is a bit of an issue for the moment if you want to do the subscription on the server as there isn't really server to server ddp support with subscriptions yet. So you need to use the client to make the subscription: connection = Meteor.connect("http://YourOtherMetorInstanceUrl"); connection.subscribe("messages"); Instead of Meteor.subscribe("messages"); In your client app, of course using the same subscription names as you do for your corresponding publish functions on the other meteor instance

Categories : Meteor

Real time wav playing
You didn't post the question, so answer will be general. The wav file has a strictly defined format. It contains a header and data (sound samples). The header defines the number of data in the wav file. To play audio the header provides additional information like sample rate. If you open the wav file with AudioInputStream it parses those information. Due to data length defined in header you can't appending the data to wav file. You could modify the wav file data samples but you must be sure the exchanged data has the same format. When you open the docu for Class AudioInputStream the first statement is: "An audio input stream is an input stream with a specified audio format and length." From OS perspective. Using a file as a buffer in real time player may be a problem. The filesystem i

Categories : Java

Real-time save in Qt
I suggest you to use tiles to save the image. Split the canvas to many e.g. 64x64 rectangles. And save each rectangle into separate file. When something is changed, you need to rewrite only few small files instead of rewriting the whole picture. Also there is another dangerous thing in your code. When you run QImage::save, it most likely will erase file contents and write new contents. If the system was shutted down between there two actions, your file will became empty. So it's important to write new contents to a temporary file and then move it to the proper location. Keeping several old version of a file also can be useful. Who knows how the file system will react on the shutdown.

Categories : C++

why does my textArea not work in real time?
If you do things like that, they will be executed in EDT(Event Dispatch Thread). You should move your logic outside of EDT by starting a new Thread to allow Swing to repaint UI properly and post updates to UI as following: SwingUtilities.invokeLater(new Runnable() { public void run() { // Your Code Here } }); Also consider use of javax.swing.SwingWorker, javax.swing.Timer and take a look at Concurrency in Swing.

Categories : Java

websockets and real time updates in iOS
I would take a look at these two projects: SocketRocket is an Objective-C WebSocket library. socket.IO-objc is an Objective-C Socket IO library that uses SocketRocket.

Categories : Iphone

Real time web applications with Scala
Atmosphere - Real Time Client Server Framework for the JVM, supporting WebSockets and Cross-Browser Fallbacks Support SignalJ - A port of SignalR ideas to PlayFramework and Akka

Categories : Api

Is it possible to edit a Lua file real-time on ios
You can use luaL_loadstring to load arbitrary C strings, so yes. Just write the code that accesses the iOS filesystem yourself and use luaL_loadstring to load them. See the Lua manual for details. (By the way, it's Lua, not LUA. It isn't an acronym)

Categories : C++

QTableView real-time filtering
You create QSortFilterProxyModel and destroy it immediately in your function. It's incorrect use. You need to create one object of QSortFilterProxyModel (maybe using new), then call QTableView::setModel for attaching proxy model to your view. After that changes will take effect. In the initialization: ui->setupUi(this); my_model = new QStandardItemModel(); // or any other model class proxy_model = new QSortFilterProxyModel(); ui->table_view->setModel(proxy_model); proxy_model->setSourceModel(my_model); In textEdited slot: proxy_model->setFilterRegExp(arg1);

Categories : C++

Real time speech recongition API?
You could try the Dragon SDK. I believe that you may have expectations about the state of the art in speech recognition that may not match reality, however. Both Microsoft desktop SR and Nuance SR typically require at least some training, and tend to run slower than realtime, even on a fast desktop.

Categories : C#

Real time tracking of hand
This research paper describes a method to track hands, without using gloves by using a stereo camera setup.

Categories : Opencv

Real Time Data Binding
I have done some projects with market feeds and your chart looks fine conceptually. To avoid scalability issues, or to design proactively against scalability issues, you can consider making your producer/consumer box have multiple instances to accommodate multiple feeds and/or multiple instruments within the feed. If, for example, a given market becomes densely volatile, you don't want all the other instruments starved for data. Also, some people like to switch feeds for a given instrument based upon arbitrary criteria, like getting YEN from London until the gold fix, and then switching to NYC, and then again switching to Tokyo. The other thing I can mention is for the arrow going out of the producer/consumer box to pass POCO DTO's only. It adds to the value of your application and a

Categories : C#

Real Time Collabarative editor API
I would suggest looking into Firebase (https://www.firebase.com/), here is an example of what are you are looking to do: http://www.firepad.io/ which is opensource.

Categories : Javascript

TextView output in real time
It looks like your problem is that you're trying to update the UI from a thread not meant to do so. You made the function append_output seemingly for this purpose, but then never used it. Since your arrival thread isn't running on the UI, it can't update the textbox in real time. So basically, instead of having a bunch of useroutput.appends in your arrival thread, change them all to append_output(text), and that SHOULD fix your problems.

Categories : Java

Sql real time synchronization between non-like tables
There is a couple of ways you can solve this issue. (in no particular order) Create an incrememental ETL process that picks up changes from database A and loads them into Database B. You can do the transformations in the ETL package or load the data into a staging table for processing. You can run this every x minutes. Create triggers on your tables in database A that use linked servers to load the data into database B. (* You could even leverage service broker to create a message to send to b with the data) Create some form of messaging platform that is initiated when the tables in A have a DML operation. This will then send a message to database B to grab the data from database A and insert it. Note: (this could also take the form of a remote stored procedure execution on B that s

Categories : SQL

Android Real-Time Plotting
Some suggestions that may help: You could repaint only the part of the graph that you know has modified using repaint(left, top, right, bottom) where the parameters define a rectangle on the screen that must repaint. It may help repainting only once every second or so. It may help removing some older values. You definitely don't want several 1000s of values in your series.

Categories : Android

Real-time audio modulation
A somewhat coarse solution that does not employ OOP is to place the sound generation code within a loop, for instance in pseudocode: Fs = ...; while 1 % generate your signal here ... signal = .... % ... wavplay(signal,Fs,'sync') end However you want to include an escape clause to break from the loop in a nice way. You ultimately will want to have some OOP-like solution, basically a listener so that you can escape the loop and optionally modify your signal interactively. The listener can be very basic for instance implemented as a figure with a pushbutton.

Categories : Matlab

real time data and MS chart
I tried MS Charts a while, but things were not going very well. Now i use Highcharts. Don't know about your clientside coding skills, but with not that much jquery code and some async calls to get your data (in JSON for example), this will work very well... Sorry, no solution, just a suggestion.

Categories : C#

JTextArea real time output
One way you can do this is using the model-view type of program design. Basically, you have 2 threads: one that handles the GUI (view/controller), and a second thread that manipulates the data (model). When an action is performed in the GUI, you start the second thread and tell it to go muck with the data. Then, as the data model thread starts changing values, it tells the GUI thread to go update the GUI by sending an event of some sort. For more about the Model-View-Controller design, see http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller In pseudo code, here's how this would work: GUI Thread Initialize UI While program is running Wait for event (like action performed, or ready to update event) If button was pressed Add task to data model's work queue

Categories : Java

Real time file scanning
FileSystemWatcher will give you notifications of file activity. An AV program also has to scan and possibly block access prior to the data being returned - they'd do that with a file system filter driver. I don't think there's a supported managed equivalent.

Categories : C#



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.