api design – REST for WatchKit Firebase

Firebase does not yet have a full watchOS SDK so I would like to know how to approach building the watch app for networking.

The watch app will be fetching a list of chats and chat messages from Firestore naturally originally created by the phone users. The Firestore database for the iOS backend is already active. Both apps are looking good using mock JSON payloads. Now it’s time for production, but I do not have much experience in networking.

WatchConnectivity is not efficient, there’s no SDK and Apple Watch apps can be separately downloaded on the app store so the watch needs to have its own networking.

Usually when a chat app like WhatsApp loads, the list of chat messages automatically populates into the table view since the user is always logged in. I read on Stack that Firebase does not have an event for logging e.g. onLogin() like Firebase has for signing up like onCreate(). Someone used .onAuthStateChanged(function(user) to get around this. If Firebase had a watchOS SDK, based on that info, I could write something to fetch the list of chats like:

exports.fetchChatList = functions.database.ref('userLoginEvent').onUpdate(event => { // send chat list trigger when user logs in. Maybe there will be a full SDK next year.

Is the only option to use the direct endpoint url for the function https://us-central1-my-app-api-5c717.cloudfunctions.net/user? If so, based on typical chat list tables, how would I retrieve each user item e.g. avatar, username, last message from the chat session?

interaction design – Is it easier for the user to have all the options at a glance?

I am working on an internal webapp where we ask users about very different issues.
Users have the option of not answering, but now we want to know if they really don’t answer because they don’t understand the question, so we want to give the option of “I don’t understand the answer”.

What do you think would be more user friendly? Having all the options displayed on a first screen with different buttons? Or give a button that says “skip question” and then ask the user with a pop-up?

database design – Structure to store/analyse Typeform results

I am working at a company which sends surveys to companies using TypeForm, we now want to fetch the data from TypeForm using Webhooks, this is not an issue, here is an example of the payload I get from a webhook once an answer is sumbitted:

{
    "event_id": "LtWXD3crgy",
    "event_type": "form_response",
    "form_response": {
        "form_id": "lT4Z3j",
        "token": "a3a12ec67a1365927098a606107fac15",
        "submitted_at": "2018-01-18T18:17:02Z",
        "landed_at": "2018-01-18T18:07:02Z",
        "calculated": {
            "score": 9
        },
        "definition": {
            "id": "lT4Z3j",
            "title": "Webhooks example",
            "fields": (
                {
                    "id": "DlXFaesGBpoF",
                    "title": "Thanks, {{answer_60906475}}! What's it like where you live? Tell us in a few sentences.",
                    "type": "long_text",
                    "ref": "(readable_ref_long_text",
                    "allow_multiple_selections": false,
                    "allow_other_choice": false
                },
                {
                    "id": "SMEUb7VJz92Q",
                    "title": "If you're OK with our city management following up if they have further questions, please give us your email address.",
                    "type": "email",
                    "ref": "readable_ref_email",
                    "allow_multiple_selections": false,
                    "allow_other_choice": false
                },
                {
                    "id": "JwWggjAKtOkA",
                    "title": "What is your first name?",
                    "type": "short_text",
                    "ref": "readable_ref_short_text",
                    "allow_multiple_selections": false,
                    "allow_other_choice": false
                },
                {
                    "id": "KoJxDM3c6x8h",
                    "title": "When did you move to the place where you live?",
                    "type": "date",
                    "ref": "readable_ref_date",
                    "allow_multiple_selections": false,
                    "allow_other_choice": false
                },
                {
                    "id": "PNe8ZKBK8C2Q",
                    "title": "Which pictures do you like? You can choose as many as you like.",
                    "type": "picture_choice",
                    "ref": "readable_ref_picture_choice",
                    "allow_multiple_selections": true,
                    "allow_other_choice": false
                },
                {
                    "id": "Q7M2XAwY04dW",
                    "title": "On a scale of 1 to 5, what rating would you give the weather in Sydney? 1 is poor weather, 5 is excellent weather",
                    "type": "number",
                    "ref": "readable_ref_number1",
                    "allow_multiple_selections": false,
                    "allow_other_choice": false
                },
                {
                    "id": "gFFf3xAkJKsr",
                    "title": "By submitting this form, you understand and accept that we will share your answers with city management. Your answers will be anonymous will not be shared.",
                    "type": "legal",
                    "ref": "readable_ref_legal",
                    "allow_multiple_selections": false,
                    "allow_other_choice": false
                },
                {
                    "id": "k6TP9oLGgHjl",
                    "title": "Which of these cities is your favorite?",
                    "type": "multiple_choice",
                    "ref": "readable_ref_multiple_choice",
                    "allow_multiple_selections": false,
                    "allow_other_choice": false
                },
                {
                    "id": "RUqkXSeXBXSd",
                    "title": "Do you have a favorite city we haven't listed?",
                    "type": "yes_no",
                    "ref": "readable_ref_yes_no",
                    "allow_multiple_selections": false,
                    "allow_other_choice": false
                },
                {
                    "id": "NRsxU591jIW9",
                    "title": "How important is the weather to your opinion about a city? 1 is not important, 5 is very important.",
                    "type": "opinion_scale",
                    "ref": "readable_ref_opinion_scale",
                    "allow_multiple_selections": false,
                    "allow_other_choice": false
                },
                {
                    "id": "WOTdC00F8A3h",
                    "title": "How would you rate the weather where you currently live? 1 is poor weather, 5 is excellent weather.",
                    "type": "rating",
                    "ref": "readable_ref_rating",
                    "allow_multiple_selections": false,
                    "allow_other_choice": false
                },
                {
                    "id": "pn48RmPazVdM",
                    "title": "On a scale of 1 to 5, what rating would you give the general quality of life in Sydney? 1 is poor, 5 is excellent",
                    "type": "number",
                    "ref": "readable_ref_number2",
                    "allow_multiple_selections": false,
                    "allow_other_choice": false
                }
            )
        },
        "answers": (
            {
                "type": "text",
                "text": "It's cold right now! I live in an older medium-sized city with a university. Geographically, the area is hilly.",
                "field": {
                    "id": "DlXFaesGBpoF",
                    "type": "long_text"
                }
            },
            {
                "type": "email",
                "email": "laura@example.com",
                "field": {
                    "id": "SMEUb7VJz92Q",
                    "type": "email"
                }
            },
            {
                "type": "text",
                "text": "Laura",
                "field": {
                    "id": "JwWggjAKtOkA",
                    "type": "short_text"
                }
            },
            {
                "type": "date",
                "date": "2005-10-15",
                "field": {
                    "id": "KoJxDM3c6x8h",
                    "type": "date"
                }
            },
            {
                "type": "choices",
                "choices": {
                    "labels": (
                        "London",
                        "Sydney"
                    )
                },
                "field": {
                    "id": "PNe8ZKBK8C2Q",
                    "type": "picture_choice"
                }
            },
            {
                "type": "number",
                "number": 5,
                "field": {
                    "id": "Q7M2XAwY04dW",
                    "type": "number"
                }
            },
            {
                "type": "boolean",
                "boolean": true,
                "field": {
                    "id": "gFFf3xAkJKsr",
                    "type": "legal"
                }
            },
            {
                "type": "choice",
                "choice": {
                    "label": "London"
                },
                "field": {
                    "id": "k6TP9oLGgHjl",
                    "type": "multiple_choice"
                }
            },
            {
                "type": "boolean",
                "boolean": false,
                "field": {
                    "id": "RUqkXSeXBXSd",
                    "type": "yes_no"
                }
            },
            {
                "type": "number",
                "number": 2,
                "field": {
                    "id": "NRsxU591jIW9",
                    "type": "opinion_scale"
                }
            },
            {
                "type": "number",
                "number": 3,
                "field": {
                    "id": "WOTdC00F8A3h",
                    "type": "rating"
                }
            },
            {
                "type": "number",
                "number": 4,
                "field": {
                    "id": "pn48RmPazVdM",
                    "type": "number"
                }
            }
        )
    }
}

Our applications are currently using a MongoDB base (I am more of a Postgre guy, but I am willing to learn NoSql)

I was thinking about the design of the structure which should hold the results of the survey, but I was looking for some advice/feedback.

Here are the constraints:

  • Each time a company wants to take a survey, we create a new survey for the company in TypeForm, which means that technically Typeform_id <=> A company answer to a survey.

  • The surveys are not always the same, they can change, or have additional questions

  • The survey measure numeral “traits”, that are defined by several questions

  • However for some of these questions, I need to be able to aggregate all the answers given from all the companies to generate a benchmark.

  • A company can take plural surveys at the same time, or take the same survey after some time passes

  • For now we are talking about thousands of answers, but these numbers could grow quickly

I am coding in (java, spring), so i saw that i could use a DBObject and parse the json into it, but I keep thinking that I need to somehow sort the data before :
Using the field ref i was planning to provide data that I could parse to compute a score for the answer provided to each question.For example :

  • From the ref of the survey, i could get the company name, the survey name, the language, and the number of times the survey’s been taken
  • From the ref of a question, i could get the name of the trait being measured, the maximal value, and the name of the question (so that I can compare its results to the result from other surveys)

For my dashboard I need to show: the questions, the answer given to each of them, be able to segmentate based on some answers, show the score on each “trait”, a global score (age, size…etc)

I am aware of the maximum size of a document, so I was wondering, if i should create a document for each survey with its answers ? or create a collection containing all the answers and keep the surveys appart ?

Or am I going the wrong way ?

Thanks for your time !

design – How to share data among multiple subscribers?

Data is supposed to be received in sequence, by a subscriber.

Every data item published cannot be dropped.

Data items have relationship among them

Publishers and subscribers are distributed.

Each data item is structured with pre-defined attributes.


What should be the shared communication mechanism , for a publisher to send data to subscriber?

Graph db…

website design – Does a Wireframe have to match the Prototype?

I feel like this is a UI question so apologies if I’m in the wrong place…

Does the wireframe have to match the prototype in terms of structure and layout, or can it differ to show progression/ development between the two stages? I’m working on a UI/UX course on Coursera and the layout of my prototype keeps changing (maybe my approach is wrong?). I keep thinking that I have to constantly adjust the wireframe to suit?

Thanks for your help in advance.

Contest – 100$ Package Design Contest

Hello Everyone.

I need a design for packaging for tights/pantyhose that my company sells. Before you start designing, you will have to download our Logo, the template and the Pictures that I’d like you to use. The download also contains two Examples. The examples give you an impression of what a final product could look like. They are not actual Examples of a design I want.

Please download the zip file here: https://hirogato.com/PH_Design.rar

Here are the specifications for the design (so far… I might add some minor requests or changes later, please follow my posts in this thread)
SEMrush

1. File needs to be in AI format
2. The Zip File contains two examples of a final product. You will need to leave space for a see through hole like in the examples. The see though hole doesn’t have to be like in the examples, it can have any size or shape and it can be placed ANYWHERE on the front. I wouldn’t want it on the top edge, like in example02, I would prefer the bottom edge or anywhere else as stated before.
3. Please refer to the Template.ai file. It has the exact proportions of what the final design needs to be like. You can add your design in a new layer above the template.
4. Please use our logo somewhere on the font side (logo.ai).
5. Please use one or more or ALL of the pictures provided in the Zip File (01.tif – 04.tif)
6. The Pictures can be altered, you can remove the background etc. No Censoring or further retouch of the model.
7. The Main Tagline or Logo should read “Hiro’s Lightning Pantyhose” and should be well in the focus of the design (bigger than the logo)
8. Also Add “70 DEN – GLOSSY TIGHTS” to the front side
9. For the Backside please use only the top Half, because we’ll place a sticker on the lower half.
10. The Backside should also Have the Tagline / Logo “Hiro’s Lightning Pantyhose
11. Please add a secondary tag line saying “Quality Design From Japan
12. Regarding the coloring and design I like it plain and simple, black on white or white on black is great, but if you like to do other colors or have a more colorful design I am certainly open to it.

Please post your design proposals in this thread, maybe start with the front side and see what I say before you go ahead with the backside.

The final design must be made available in AI format.

$$$ The Winner gets 100 US $ by Paypal $$$

The contest runs until Monday the 28th 10am Tokyo Time. I reserve the right to extend the contest for another week if I’m not satisfied or not to announce a winner if little entries with no matching design. However so far you guys never let me down… :)

GL and Cheers!

D.C.

 

Contest – $40 Design Contest – Transport Company

Hi All,

I am looking for a logo design for a company named ” Trigga Transport “

Design guide is something like a gun being shot out of the barrel of a gun to indicate fast delivery.

The logo is going to be on black clothing, so something that would work with that.

Feedback will be provided to all.

Winner will be paid $40 USD via paypal..
SEMrush

Thank you in advance.

 

game design – How do farming simulators handle updating a fields texture when cultivating or plowing it?

So, I have been wanting to make a farming simulator on Unity for a while now, and I have finally decided to give it a shot. This would be my first project. However, I would like to know how to update a field to show a cultivated or plowed texture based on where a plow or cultivator is. How do the developers go about changing the field texture based on where the cultivator or plow is at? I am assuming its a simple texture overlay wherever the tool is at, but I am not sure. Anyone have any idea how they do this?

api design – Securing API with JWT and elevated access using MFA

At my company we have a central auth server running IdentityServer. There are a number of applications providing some API to client applications. API requests are authenticated with JWT tokens issued by said auth server. It works fine for our purposes.

We have a new requirement that basically needs a secondary verification for some actions.
Scenario goes like this:

  • User logins to an app.
  • User wants to perform an action that requires elevated access and he is asked to confirm the action.
  • User enters a one time password from TOTP/SMS
  • Intent is confirmed and API responds to action.

Now the implementation I have in mind follows:

  • API gets a request, checks JWT amr claim, sees no otp, returns 401 Unauthorized/403 Forbidden with WWW-Authenticate: mfa (or something along those lines) and a unique id for action
  • App gets 401 response and notices it needs to verify the action with OTP redirects to auth server with given id
  • Auth server verifies OTP and returns a new but short-lived JWT (with amr=otp) that only authorizes said action
  • App uses this JWT to resend the request to API
  • API performs restricted action
  • App continues using regular JWT (discards JWT used for OTP)

Now my question is, do you think this is a valid/good approach?
Are there better ways of handling this operation?

Design creative mobile app ui ux 5 Screen for android and IOS With prototype for $100

Design creative mobile app ui ux 5 Screen for android and IOS With prototype

Welcome and thanks for taking interest in our work!

If you want your web application or mobile app UI UX design professionally without crashing your bank account, simply order my gigs! I will provide you a unique, modern, and high fidelity UI UX Designs for your website and mobile.

What this gig includes

  • Pixel perfect UI UX design for as many screens as you need
  • Fast delivery
  • High-quality mockups
  • Very quick responses
  • Latest UI UX design trends
  • Modern and clean design
  • Several revisions
  • Full satisfaction

About me
I am a Computer Science Engineer specialized in UI UX. I am passionate about user experience and love creating pixel-perfect mobile UI. I am working as a freelance UI UX designer in Australia.

Software used

– Adobe XD

– Adobe Photoshop

– Adobe Illustrator

Note

I will not develop your application, I design what your app will look like. The deliverable doesn’t include code, it is a prototype made with Adobe XD / Adobe Photoshop.

Any question? Feel free to leave a message me, I will answer very quickly!

.