Questions tagged [instant]

In the context of UX, UI's and programming, 'instant' refers to immediate and automatic. As soon as a trigger activates, the item is updated as fast as possible. Do not use this tag for questions about the `java.time.Instant` class; instead use the java.time.instant tag.

162 questions
11
votes
1 answer

Best way to store chat messages in elasticsearch

We are currently implementing an Instant Messaging system on our platform. We need to provide our users a chat history and be able to show the last 5 conversations that user had ( preview like on facebook). ipso facto we necessarily need to think…
daley
  • 177
  • 1
  • 2
  • 9
9
votes
3 answers

Working example of Rails 3.1 + Juggernaut Instant Messenger?

Are there any decent example apps for an ruby on rails 3 instant Messenger app based on any of the publish-subscribe messaging system Juggernaut? 1-1 chat with method of adding 2 users to a "conversation" Ways to protect the 1-1 conversation to…
Rubytastic
  • 15,001
  • 18
  • 87
  • 175
9
votes
3 answers

date in MongoDB: when inserting Date objects into Mongo database, the date becomes 1 day earlier than itself

My date string format is like this: Jan 2, 2012 After the Instant.parse() method, instant instance becomes the date of Jan 1, 2012, which is 1 day earlier, why? If the original date string is jan 1, 2012, the Instant will be the date of Dec 31,…
CyberPlayerOne
  • 3,078
  • 5
  • 30
  • 51
8
votes
1 answer

(Java) How to get user input without pressing the "enter" key

I was curious and wanted to test this type of thing out in java. I looked it up online and couldn't really find anything that helped out in any of the questions I found; so I decided to ask it myself. In the example I wrote out, you're given a…
8
votes
4 answers

Simple C++ Instant messenger

I want to make a very simple c++ instant messenger for lan networks and internet (direct IP connect). I know little about sockets. I searched the internet, but nothing really helped. I would someone to suggest a howto/tutorial/guide. I just want to…
user197967
8
votes
1 answer

AutoHotKey: Instant text replace

One part of my AutoHotKey script replaces @@ with my email address. Currently, I'm doing this like so: ::@@:: SendInput, example@domain.com return Simple enough and it works fairly well but you need to push space / comma / period / etc before it is…
mythofechelon
  • 3,692
  • 11
  • 37
  • 48
7
votes
1 answer

How to convert Joda instant to LocalDate and vice-versa?

I understand that an Joda Instant is similiar to Unix Timestamp in that it stores the number of milliseconds since 1.1.1970. So I want to insert this in my Android SQLite Database as INTEGER. But in my app, I work with Joda LocalDate, so I need to…
mrd
  • 4,561
  • 10
  • 54
  • 92
6
votes
2 answers

How to round it down to the closest 5 minute interval if it is 1,2,3,4 minutes ahead?

I want to round down an Instant / LocalDateTime to its closest 5 minutes interval in Java. Examples: Suppose the time is: 2021-02-08T19:01:49.594 or 2021-02-08T19:02:49.594 or 2021-02-08T19:03:49.594 or 2021-02-08T19:04:49.594 Expected…
Dev
  • 794
  • 1
  • 9
  • 21
6
votes
0 answers

Android App to play video Instant like Tiktok

I have developed an app where I am displaying users videos, those can be of 15 minutes long, that is why I have transcoded all the videos in HLS format in AWS Bucket with the help of lambda function and I am serving those videos through cloud front…
6
votes
1 answer

Clojure instant/parse-timestamp usage

A clojure newbie question. I am trying to figure out the best way to pass a date from a client (written in any language) to a server written in clojure that rests on a Datomic database. To avoid any problems with language specific classes I was…
Litterate
  • 135
  • 1
  • 6
5
votes
2 answers

Could not get unknown property 'instantRunManifestOutputDirectory' for task ':app:processDebugManifest'

I keep getting the error "ERROR: Could not get unknown property 'instantRunManifestOutputDirectory' for task ':app:processDebugManifest' of type com.android.build.gradle.tasks.ProcessApplicationManifest. " under gradle sync issues ever since I…
Axes Grinds
  • 756
  • 12
  • 24
5
votes
1 answer

How to serialize Java Instant type using redis

I'm using spring boot 2.0.3 and spring-boot-starter-data-redis. Also using jackson-datatype-jsr310. I want to store Object into redis. the object(MyObj): String text; Instant instant; Here's my code: @Test public void test() { …
Noel
  • 83
  • 1
  • 2
  • 9
5
votes
1 answer

Create a Google like instant search in an Android app

I am working on an Android app in which i want to add an instant search feature. Basically I want to show places name when the user writes its initials in a TextBox. How can I achieve this?
5
votes
1 answer

Why setting a client-side timeout when using long polling?

In almost every long polling examples I see, there is something like a timeout of 30 seconds client-side. What is the precise reason for this?
4
votes
1 answer

How to include instant dynamic feature module in instant app?

I have a project with these modules: app bookingfeature (instant enabled) map (not instant) app contains some common code and resources and a starting activity with some logic to route the app to the correct destination, based on whether it's…
Torkel Velure
  • 1,217
  • 10
  • 17
1
2 3
10 11