Eof Questions
Ad
C: sizeof struct of structs to find number of elements in struct
I have two structs: struct point { double x; double y; const char *description; }; struct geomap { struct point points[];
GeoFire read ops efficiency
I'm using geofire to query firestore as a user walks around. here's my question: let's say my firestore database has 5000 geohashed
Gettimeofday not working when assigned to variable
I have a simple timestamp issue. i am trying to get a timestamp using gettimeofday and it all works as it should when i print the
Firebase & GeoFire fetch double adds new post to collection view
Getting double posts in my posts array when adding new posts. resulting in 2 identical new posts in my collection view im running firebase
I am trying to under eof and getchar ()
In the piece of code given below. whenever i am inputing a set of characters with a ctrl+z at the end, which should mark eof for getchar(). it is
__builtin_object_size always returns -1
I understood, that __builtin_object_size should give information about the size of an object, if it can be determined at compile time
If struct type is defined in another .c file, it becomes incomplete type?
I can have no problem with this code: #include <stdio.h> struct foo { void * data; }; int main() {
Double parenthesis around expression in While loop
I was attempting to read a file as such: char c; while ((c = fgetc(fp) != eof)) { ... } and was not stepping into
Why is the sizeof operator working differently for some expressions?
I know that expressions like x++ or function calls don't get evaluated in the sizeof operator. when i ran the below code, i
Swift 4 and Geofire: dealing with invalid geolocation error
I am using the swift 4 language and geofire library to find points on the map within 3000 km of where i am. when the query encounters the latitude
Ad
My database reference does not show up in the tree
I have a method that i cdreated called getassignedcustomerlocation that creates a database reference with the variable name assignedcustomerref
Different sizeof results
Why does n not equal to 8 in the following function? void foo(char cvalue[8]) { int n = sizeof
How to change size of labels of x and y-axes?
How to change size of label of x and y axes? when i left click on labels and choose position and size, i can see the options in screenshot.
Why isn't sizeof for a struct equal to the sum of sizeof of each member?
Why does the sizeof operator return a size larger for a structure than the total sizes of the structure's members?
How to display multiple markers on a google map using GeoFirestore (Java/Android)?
I am trying to add more than one marker on my map fragment using geofirestore, but i don't understand how to do so. i have tried to
How to track user location across all view controllers in an ios app?
I am building an app that tracks a users location while the app is open and query it with geofire. i would like to keep the location updating from
Does the way my firebase database is structured affect scalability of firebase with geofire?
I am creating an app with firebase. i am using geofire to allow each user to find nearby users of my app. i was wondering if the way my database
Load Geofirestore documents results into RecyclerView
I use geofirestore to find the nearest location, it worked but i need to load the documents that i got into
How to access nested Hashmap
I want to access the inner hashmap so i can great a geofence, where each geofence has a custom radius. i have looked all over the internet
Data structure in Firestore using GeoFirestore
I write an android application and use geofirestore. i can't to get a list with users from firestore
Retrieve users from Firestore within a range using GeoFireStore Android
In my android application, i need to get a list with users from firestore within a range using geofirestore.
Ad
GeoFire Query Callback Not Firing
I am trying to implement geofire into one of my firebase cloud functions and can't understand why the query callbacks
How to use Geoquery on another project with geofire real-time database in android?
I am having 2 firebase project, one for user app and second for the driver app. i am storing the latest location(lat-long) of the driver app on
How does ACCESS_BACKGROUND_LOCATION introduced in Android Q affect Geofence APIs?
In order to use the geofence api the user
GeoFire Firebase Query not able to Store userID in ArrayList
I am using geofire to get all users with in a certain radius. when i the addgeoqueryeventlistener & then use a for loop to get all the user
GeoFire observeReady gets executed prematurely in Swift
In the following function i am am performing an initial geofire search query and wish to process all keys found, append them to an array and send
How can I use GeoFire plugin to update my location in background
I am using this plugin to update my location in firebase. when
Trying to get firebase values out of Promise
I am new to react native and i am having hard times getting values out of a firebase query inside a promise. i tried to setstate in the
how to get alert when geofence exit notification is fired in cordova
This is asked previously but not in cordova. hi all, i want to get alert when user enters the geofence region and also want alert when
How can I edit a plugin to add my own attributes?
I am using the flutter_geofire plugin, from here
How to implement GeoFirestore in Firebase Cloud-Functions the right way?
I try to implement geofirestore to my firebase cloud-functions. when i try to deploy my code this error occur "typeerror: geofire is not
How can I add fields named Latitude and Longitude using GeoFire in Firebase?
i'm developing a location tracking app with android studio
Ad
Geofire is archived, should I still use it?
I recently noticed that geofire has been archived on github:
Pass the value outside of a method
I have declared the location source and destination as global variable. but though i am not getting the right value in dist. what should i do pass
Limit results of GeoFirestore?
I would like to limit the results of geofirestore results similar to the capability within firestore. i have tried to use limit() on the query in
Geofirestore documentation
I am attempting to use geofirestore with my vuejs/firestore application but can't seem to find the complete set of documentaton of the
How to fix " java.lang.NoSuchMethodError: com.google.firebase.database.DatabaseReference.setValue"
I'm setting up a current location in my application.where do i need to set the encoding? @override public void
GEOFENCE_NOT_AVAIBLE (code 1000) while trying to set up geofence
The problem occurs on android older than oreo and both oreo and newer. i can't get geofences working even though following steps are done:
Android Geofencing Not Triggering in some mobile like OnePlus, Xiaomi etc
Am using geo-fencing code under guidelines of android document. tested in real device such as sony xa1, samsung j7 nxt, xiaomi 5a, poco f1,
Why can't I add offset hours in datetime Flutter project?
I tried to add offset hours to my datetime object now, but it doesn't show the added time that is actual time. it is my flutter project in android
Script works in shell but not as IDLE file
When the following code is executed line by line on shell, it is giving the expected output : >>> name=input("please
Find selected MapKit Annotation's postID
I'm trying to set the selected mapkit's annotation id (mapeventid in my case) on didselect and to use when swift is preparing the
EOFerror on startup
After loading script on startup i got a error eoferror: script is running in cli mode. eof when reading a line. barcode:
Ad
Canot Resolve symbol 'GeoFirestore'
I am creating a map based app on android platform . i am using firebase firestore as backend database in this project. i wanted to add geofire in
getting data from server and passing it around pages Angular
I have a service that fetches data from an api endpoint in my ionic app. here is the function that gets data from the server.
Save geoFire location under random firebase id swift 4
I'm trying to save the geofire information under each postid but currently not quite sure how to do so. could someone please help me figure out
iOS -GeoFire ExceptionThrown 'Precision must be less than 23!' when Search Radius is to Wide
I have a mapview and the users can choose a zoom radius of 1 mi, 10 mi, 20 mi, and 30 mi to search for restaurants from wherever their device is.
What type do I specify for react components?
Pretty straight forward question. i come from a qt/c++ background, and so i regard it as good practice to be explicit, thus
How to query all geoqueries in a set radius with geofirestore?
I am trying to make a query to a cloud-firestore which should return all geopoints within a radius of, say, 10.5 km of a given geopoint. i am
Swift iOS Firebase -How to Combine a queryOrdered(byChild) and GeoFire observe(.keyEntered) to get a snapshot and location result at the same time?
Using an uisearchcontroller if i want to perform a search for a user's favorite book who's title is harry potter i would do the
Merging k sorted lists in Python3, problem with trade-off between memory and time
The input is: the first line - a number of arrays (k); each next line - the first number is the array size, next numbers are elements. max
how can i count the available user in specific loaction radius with geofire query?
Right now m using datasnapshot.getchildrencount but it only counts the node available in a child. here is my code
Geofire is trigring onGeoQueryReady instead of onKeyEntered
I want to retrieve data from a firebase database with geofire location query but its just trigring ongeoqueryready instead of onkeyentered.
Querying Geohashes in Firestore
Recently i've been playing around with geohashes and firestore. my
Ad
Problem with the set() function from GeoFirestore
I want to use the set(...) function, but firebase-log says that this function is not available. the firebase-cloud-function
App crashes when the current location is on the geofence area
I created an app that detects if the user is on the geofence area. but the problem is that when i enter the geofence area, the app closes.
Call Function within const javascript react native
I'm new to react native and javascript. i've come from java and android dev. i'm looking to call a function within a const, but i just get a load
GoogleMap with Firebase Realtime Database - Javascript
How can i show lat, lng data from realtime database on google maps ? my database structure : /driversavailable
Which method will be called first ? onKeyEntered (Assume like some data has been returned) or onGeoQueryReady
I am using geo fire in my app ,assume like i am having some data in my geo firebase and i know , if the given location nearer to any of the stored
Remove Duplicates from an Array of GeoFire Objects
I am working with geofire and firebase on angular 6 to store locations and unfortunately it's storing a lot of duplicates this is an example
GeoFire observeBlock are only called once in Swift project
This is my simplified code for geofire observing: the problem is that observeready are only called once, on initial observation, however when new
Use Geofirex with React Native and rnfirebase
I'm creating a react native app and i am using react native firebase (rnfirebase). i making an app that uses firestore to store a list of items
Firebase cloud functions find nearby locations
I need to find nearby vehicles within a specific radius to a given point and have those sorted by the distance from the given point. does
Geofire - not found locations
How can i get the all locations that are near to a passed geolocation(double lat, double lng) using
how to make geofence work when app is not in foreground or it is killed?
I am working on an app where i have to implement a feature that when user enters a particular range or location with particular radius like in
Ad
Can not have multiple default rules
I am using geofire to store location in firebase realtime database. i have 2 tables table-a and table-b. for both of
Flutter - Convert minutes to TimeOfDay
Currently i get a number from the be that states like 750 minutes (int) and should represent the time of day. 750
Find difference between to times in TimeOfDay class like (10:50 - 08:00 = 02:50 )
I should have two times, one is the current time and the other i get it from time picker as shown below. how can i get the difference
Retrieve a list of users based on distance with geofire & firebase
Hey all i've seen a number of questions on this but none that seem to answer my particular question. i'm trying to retrieve a list of users based
getsizeof() function returns different output in Python 2 and Python 3
Small code: import sys x = true print(sys.getsizeof(x)) python 2 output: 24
Geofire onKeyEntered is never triggered though onGeoQueryReady is called endlessly
The code is given below. i have seen all the previously asked questions there they have made the mistake of writing wrong reference or not setting
Firebase RTDB: updating/merging new with old data from CLI
I have multiple (big) json files that i want to add to firebase real-time database (rtbd). i'm using geofire, so all the children nodes need to be
Remove from Firebase Database - Swift
This is how my firebase database looks like: firebase database
GeoFire - How to set security rule such that the geofire location is only writeable to the auth user?
So i have a geofire data structure shown in the picture below. each of my geofire location represents the location of where a photo was taken. so
Map inside geoquery returns null
I am trying to retrieve values from geoquery. the values are getting added to the map but when i return the values the map is empty. here
Ad
Add AM or PM when converting from 24 hour to 12 hour format in flutter
I have a time-picker that displays the current time the user selects. i am able to convert it from 24 hour to 12 hour format. but i want it to
Instanceof current class in nodejs
I want to test if a variable is an instance of the current class. so i'm checking within a method of the class. and i was hoping there's a more
GeoFire SetLocation Not Working
I am trying to save a location to geofire but not getting any response from console and in logs. i have added the dependency in gradle
Firestore - Possible GeoQuery Workaround
Since native geoqueries are not yet supported, i've thought of a possible solution but would like to know of its validity and effectiveness.
Cannot add multiple circles and map markers
I am creating a geofence application and it has a map interface for the user to view where the geofences are located. the problem i have is
Activity is an instance of MainFragmentListener, is it true?
I'm wondering, how it is possible. i have mainactivty and mainfragment with listener: mainfragmentlistener. of course i implemented this
GeoFire Results Coming Back Unordered By Distance
I am using: geofire#4.1.2 bower_components\geofire └── firebase#3.9.0 i wrote this function to return a
How to add background service in Geofence android
I am trying to create a geofence with background service for monitor. the geofence create successfully and work when apps activity is open but
GeoFire on iOS with Firebase 5
The update from firebase 4.x to firebase 5.0.0 broke my geofire installation. i was installing geofire via "podfile" like this:
Query Location by Radius with GeoFire
I know this is a basic question, but i’m having a lot of trouble with it nonetheless. i have a firebase database storing community
Ad
Load existing Geofire location if one exists
I would like geofire to do one of two things; 1 - look for a venue location in firebase and if none exists, 2 - create one. so to
GeoFire Query on lists of data
I have my data for posts structured like this in firebase realtime database: posts: key1: author: jake
GeoFire orderByChild filtering
I seem to have stumbled on an issue with geofire, in that i can't seem to filter my geofire queries. on my platform users create posts and their
I need to know whether device is in geofencing or not in backend of NodeJS
I am creating nodejs backend for uber like app for android and ios. locations of users will be taken from phone and coordinates i.e. latitude and
Using GeoFire to save current location in Firebase (React Native)
I am trying to use geofire in my react native application to get the currently authenticated user's location and save this as a geolocation in the
How To Display Multiple Markers Coordinates Stored In Firebase Database On Google Maps
I am trying to get the coordinates that are saved in the firebase real-time database and display them on a map using the google maps api. this is
Unable To Retrieve Location GeoFire Firebase Android
I'm trying to retrieve a geofire location saved on firebase but it's returning null. tried saving the location lat & lng with
use geofire for a one time location update? swift 4
So the geofire documentation said this: there are three kinds of events that can occur with a geo query: key
What's the meaning of UnaryExpression of ES6 Spec documentation?
I'm curious about the meaning of unaryexpression of es6 spec documentation.
Dereferencing an uninitialized pointer to pass into sizeof()
In a recent post, i realised that when allocating a structure variable, passing the dereferenced pointer deemed a better practice in contrast to
Ad
Looping through a double pointer array and multiply or not multiply with sizeof in C?
#include <stdio.h> #include <stdlib.h> int main(void) { double *array; unsigned
Distinguish EOF from error for the Getchar () function
Rewrite the program to distinguish eof from error for the getchar () function. in other words, getchar () returns both during the error and at the
Ad
Blog Categories
Ad