@John Welcome to the Java Chat, the room for Java enthusiasts! Please use a code snippet tool when posting code snippets. If you have an Android question, you're in the wrong place! And remember: this is not tech support! Thanks for visiting and have fun! :D
@SteephanSelvaraj Welcome to the Java Chat, the room for Java enthusiasts! Please use a code snippet tool when posting code snippets. If you have an Android question, you're in the wrong place! And remember: this is not tech support! Thanks for visiting and have fun! :D
optimistic locking is a difficult concept to explain to the client
The client understands and even accepts being prevented from editing something because it is being "locked" by another user, but nobody expects an update to fail because it is already updated by another user
It makes it look like your program failed, not that you were preventing inconsistent data to be written to the database.
What do you mean by properly applied? in the App theme I added the property. I also added it in the <RecylerView... tag android:soundEffectsEnabled="false"
In the Youtube App in Android TV the sound effects go away when I scroll quickly any idea how did they implement that? They also use custom sound effects. may I could try somehow play a custom sound that is already muted
Or I could implement a custom selection in RecylcerView that does not use focus. It is very stupid that such a simple thing is so complicated.
I have no idea how sound effects work it is probably something unrelated to recyclerview. When the OS detects a focus change it plays them (At least that is how I think it is)
@Neil :) Hopefully. My friend has high rep in SO so I'm gonna convince him to start a bounty as well because there are many great android developers here so I might get an answer.
Betty Botta bought some butter; “But,” she said, “this butter's bitter! If I put it in my batter It will make my batter bitter. But a bit o’ better butter Will but make my batter better.” Then she bought a bit o’ butter Better than the bitter butter, Made her bitter batter better. So ’twas better Betty Botta Bought a bit o’ better butter.
Peter Piper picked a peck of pickled peppers. A peck of pickled peppers Peter Piper picked. If Peter Piper picked a peck of pickled peppers, Where's the peck of pickled peppers Peter Piper picked?
Does anyone know how to "hide" null value nodes on a JavaFX linechart? When I add a null value on a series, the chart behavior is to link previous node to next node, just as if there was something at the null time on the chart.. but it should not, there should be an empty space
I need to see on my chart that, at time X there was nothing
When I put things on my chart, it goes fine till time X. From time X to time Y i have null values, they DON'T appear. That's fine. At time Z I start to have new values again, actual behavior is that the chart traces a straight line between last X value to first Z value...
I'd like the chart to keep empty space between last X value and first Z value...
what I actually tried is set node visible (false) on each node with null values, but that does not solve the problem since it still traces that "imaginary" line
You just need to create a 4th to draw over the places you want to be hidden
you have to imagine how it's drawn.. it draws the axes and the background if there is one. It then draws the series one at a time and one point at a time
so, 1st series goes to 1:00, 2nd series start at 1:00 and goes to 2:00 and 3rd goes from 2:00 to 3:00. at 3:01 my 1st series goes again with new values, and default it "draws over" 2nd & 3rd series
In non blocking IO programming model, a thread blocked on data available channels, as shown below,
in python,
while True:
readers, _, _ = select.select([sys.stdin, sock], [], []) # blocked select()
for reader in readers:
if reader is sock:
print(sock.recv(1000).deco...
@overexchange welp, you tend to pop into conversations and usually say something on a completely different topic but that (at least to me) looks targeted at the existing discussion
@Julo0sS Each series in the line chart can have its own color..
So make a series for each invisible line (and consequently a series for the drawn points inbetween) and give it a class whose color is invisible / not drawn
maybe if you told me what you don't understand I could elaborate..
The sound of crunching adds to the pleasure of eating chips. Snackers who eat chips with headphones on report becoming bored with chips more quickly. (source)
@motaa Yeah I know, someone mentioned it, and I asked you sth about that about a month ago
@motaa While we are at it, actually the plots update slowly as the size of charts increase. I maintain a constant size of Series<>() by deleting the oldest entry
All my processing and updating GUI (charts, textFields) are done in a Platform.runLater()
They also update GUI and do all processing in a single Platform.runLater() call. I guess this is the reason of my software's slowness when data-rate is high?
@motaa I'm using a popular Serial (the one Arduino itself uses I think, jSerial?)... The problem is, once I get the data packet, I do all processing and updating charts and GUIs in the single Platform.runLater()... Do you think this method causes delay and latency?
@motaa Yes. If I make my Series (about 15 of them) lighter (by reducing their size), GUI seem to update faster
I really think that I should not do all my processing + GUI codes in that Platform.runLater(). I guess I should create another Runnable (I'm not that pro and I'm not sure if that solves my problem)
this is strange to read :D String s = sb.toString(); if (s.endsWith("\n")) { line.set(Long.toString(System.currentTimeMillis()) .concat(SEPARATOR) .concat(s.substring(0, s.indexOf("\n")))); sb = new StringBuilder();