Developing Basic Google Glass App - google-glass

I'm making a basic Google Glass app that will take some data from the user (i.e. name, date), and then basically run an algorithm prompting the user to do something (i.e. check a patient) every 5 minutes. I've been having some trouble with the structure and developing in general so far. When the app is launched, there's a card that says to "Enter info." How can I prompt the user to input data like the date? And should each one of these data requests be separate activities?
Thanks!

If you intend to use voice, you can follow this sample code.
You could add a prompt on the screen so the user knows what to input:
intent.putExtra(RecognizerIntent.EXTRA_PROMPT, <message you want to display>);
This will give you the text in the form of a String.
Otherwise, you can create a TextView in your activity that is updated by an event such as onScroll().

Related

Django: how to take input as range and store it in the database?

I am beginner in Django and thinking to create a website that asks the user for input (the input here is an hour range) and store it in the data base
e.g. A slider that ranges from 5am till 9pm the user can set the start and end for example 7am-9am and submit it and then it will be stored in the database
I am not sure how to approach it. Also, how will it be stored in the database as a single entry or multiple entries? Your help is much appreciated.
I have been trying continuously to search for tutorials, videos, articles, even any piece of information here and there that could give me the kickstart but I failed

Testing Firebase Funnels

I wanted to know a simple question regarding setting up my first funnel in Firebase. If we wanted to know which unique users (on a specific day) first opened the app and removed it, would the below simple funnel be sufficient ? Note: On the filter date, I selected "Yesterday".
Question:
Would this selection enable me then to view only those users that did "First Open" (my base) AND "App removal" on the same day (on D0) ? or is this an open funnel of a wider base: i.e. users that somewhere in the past did first_open and did a app_remove yesterday ?
I read that Firebase is only considering open funnels by default, and if we want to make funnels more "closed", we would have to log separate custom properties and filter to form closed funnels (Source: How do you create a closed funnel?). So, there is a bit confusion of how open this funnel really is.
Thanks!
As you mentioned, Firebase Analytics funnels are open; meaning that completion of the first step is not strictly a prerequisite of the second step. In this case, your sequence of events is a strict sequence (i.e. you can't log an app_remove without first having logged a first_open), but still, the query for each step is independent for "Yesterday". In other words, the funnel is effectively as you suspect : step 1 shows users who have logged first_open yesterday and step 2 shows users who have logged app_remove yesterday (regardless of when they first opened the app).
Your options are :
Use the "Last 7 days" date range instead of Yesterday and filter the funnel by the built-in "New users" user property.
Create an audience of users who log app_remove whose First Open Time user property = [some future day] and then after that day passes, use this audience as a filter on your funnel.
Perform this analysis in BigQuery instead.

Extjs 6 State management issue with touch devies

I am working in extjs6. I have grid with several columns as well as settings button on grid which hides/shows selected columns on click of apply button. I have implemented state related functionality for each column which will helps to decide which columns to be shown initially when user logs in.
Suppose i have grid with columns as-
{Id,
Name,
Description,
Author,
CreatedOn,
ModifiedOn}
I have selected Id, name and description columns. So as per my functionality, when i log out and again logs into my application, Code checks state of columns and displays only these three columns. Everything is working fine if i use application on Desktop/PC
But when i am performing above functionality with mobile or tab like touch devices, something weird happens. Using mobile if user A selects only some of columns of grid and get logout and log in again..He is able to see only selected columns as per requirement.
but now if i get login with same user A but on desktop/PC, grid is retrieving some wrong state resulting into display of all available columns. [Grid should display only those columns which user had selected before last logout].
So can someone please help me to know why this is happening.
ExtJS is saving state on the client side - meaning, if you login on a mobile phone, the state will be saved only on the phone in the browser.
If you log in on the Desktop, the state will be saved only in the browser with which you visited the site.
The state can be saved to Cookies, or better, LocalStorage
If you want to save states across devices, you need a server-side solution, you can check for one here

Creating dynamic time series plots on web pages

I have the following requirement:
1) A user browser fetches data points (essentially time series) from the server and plots on the web page.
2) User should be able to alter(also view) the data points using the mouse and doing this should alter the plot dynamically. In this way, user can alter all the data points until he is satisfied.
3) Finally, user needs to send his "version of data points" back to the server.
I am new to web development and would like to know if there anything out there already that I can refer to or any set of standard tools that I can use?
Regards,
Vivek
You may have a look at the googleVis package of the R software. The package provides and interface between R and the Google Chart Tools. This can be a convenient way to generate the html displaying a graphic of the data.
In this document the authors of the package explain how to use googleVis along with the packages Rook and shiny. These packages allow the user to upload a data file and update the graphic. The user would have to edit the file outside the browser but you could add a form in order to edit the file through the browser and update the graphic when the data are submitted.

Use a web crawler to get data from a Facebook page

I'm a little bit lost for the moment trying to write my thesis.
I need to collect data from a facebook page, for later use them for network analysis.
I need to collect for each message posted:
ID of the message posted
Content
Type (picture, link, text or game)
ID and name of the person who has posted the message
Date of the creation of the message
If it is case, dates of the possible updates
Number of likes
Names and IDs of the likers
Number of shares
Names and IDs of the sharers
Number of comments
Name and ID of the commentator + content of the comment
Number of page likers at each moment (before each message posted)
Being not from the IT sector, i've got lots of difficulties. What's the easiest way to collect such data?
Moreover, do you think that it's legal to try to get data on public facebook pages?
Use Facebook Graph API. A few lines of simple Java program or perl script will suffice. You will need valid Auth Tokens.