Material Design vs Trust – User Experience Stack Exchange

Trust has many dimensions and can be built with the help of known interaction models, effective writing and a branding strategy. Frames are only one dimension.

Which interaction frames (and which models) are your users most likely to be exposed to?


An interaction framework is used both to save development resources, but from the point of view of users, its value is a consistent model of interaction.

If you are developing in a specific context, for example mobile, users may be used to hardware framework framework interactions. But I do not have any research / strict rules to use.

Instead, I consider it as: defining the dimensions of trust.

From the Neilsen Norman group: Variations on the models put into practice cause errors

Familiarity is acquired through repetition. Like any human learning, learning a new interface or a new pattern of interaction obeys a power law: this requires many repetitions before people become as fast and efficient as with a much used old interface .

Trust is not that visual. From the point of view of the system, the reliability is that things work as I understand them. A lot of that is based on past expectations.

Write well, it goes very far

Confidence is also built by writing. It's all about privacy, marketing, and what your business does with all their data. Good clear communication (and help) goes a long way.

Visuals and branding

From the point of view of the brand, you can hang your own graphics. Since your goal (I guess) is to facilitate the realization of a well-defined user need, test and use what you think is most familiar.

web application – What is the difference between Stack Exchange and Wikipedia?

Every successful website is appreciated around the world because of its unique beauty. What is the difference between Wikipedia and Stack Exchange, when both are a basic knowledge system !! Of course, we like Stack Exachage as an online workplace because of its active interactive response features and its protective individuality for comments. Which makes stackexchange universally attractive online.

Robot Game in C ++ – Code Review Stack Exchange

I have a very basic "game" where a robot is placed on a small 5×5 board and commands are given to it. To begin, the robot must be placed on the board, you can then ask him to move or to rotate left and right. I've tried using object-oriented concepts, but that was not an obligation for my task. I think I did a good job and I would like to know what I did wrong.

Here are some "requirements" that have been given:

  1. The "place" command takes an x, y position and a direction or NORTH, EAST, SOUTH or WEST.
  2. No other command can be executed unless the robot has been placed
  3. Move will advance the robot 1 in the direction in which it is located.
    focused towards.
  4. LEFT and RIGHT will rotate the robot in their respective directions
  5. REPORT will print the current position and direction of travel of the
  6. Place is a valid order even after it has already been placed
  7. The inputs that will make the robot fall off the board must be
    rejected or ignored
  8. Invalid or "junk" entry must be ignored
  9. The robot will take orders in clear text, the robot must take this
    text and execute the respective instructions as they are valid

Example of entry / exit:

Output: 0.3, WEST

and here is my robot.cpp

#include "robot.h"
#include "tabletop.h"
#include "helpers.h"

ToyRobot namespace
// used as an interface to provide instructions in text form, the robot will perform
bool Robot :: command (std :: string statement)
std :: istringstream iss (statement);
std :: vector tokens {std :: istream_iterator{iss}, std :: istream_iterator{}};

if (this-> commandList.count (tokens[0])> 0) // is the first token, a valid command?
// the command is valid
if (tokens[0] == "PLACE")
{// check if there are valid arguments
if (tokens.size () <2)
std :: cost << "Error! Not enough arguments for 'PLACE'n";
                    return false;
                        uint8_t arg1 = std::stoi(split(tokens[1], ",")[0]);
                        uint8_t arg2 = std::stoi(split(tokens[1], ",")[1]);
                        std::string arg3 = split(tokens[1], ",")[2];
                        this->place (arg1, arg2, arg3);
capture (...)
returns false;

return true;
if not (tokens[0] == "MOVE")
this-> move ();
if not (tokens[0] == "LEFT" || chips[0] == "RIGHT")
this-> rotation (tokens[0])
if not (tokens[0] == "REPORT")
this-> printStatus ();

return true;
returns false;

// check if a given position is valid (used only by other methods)
bool Robot :: isValidPosition (uint8_t x, uint8_t y)
if (x < 0 || x > TABLETOP_MAX_X || there < 0 || y > TABLETOP_MAX_Y)
returns false;
return true;

// place the robot, ignore invalid positions
bool Robot :: place (uint8_t x_place_pos, uint8_t y_place_pos, std :: stringidingDirection)
if (x_place_pos < 0 || x_place_pos > TABLETOP_MAX_X || y_place_pos < 0 || y_place_pos > TABLETOP_MAX_Y)
returns false;

if (this-> facesDirections.count (directionDirection) == 0) // check if the indicated direction was valid
returns false;

this-> x_pos = x_place_pos;
this-> y_pos = y_place_pos;

this-> OrientationDirection = this-> OrientationDirection[facingDirection];

this-> placed = true;
return true;

// move the robot forward one point, ignoring invalid motions
bool Robot :: move ()
if (this-> placed)
uint8_t sim_x = this-> x_pos;
uint8_t sim_y = this-> y_pos;

// simulate the movement
if (orientation = = 0)
sim_y + = 1;
if not (directional orientation == 1)
sim_x + = 1;
if not (orientation == 2)
sim_y - = 1;
if not (orientation = = 3)
sim_x - = 1;

if (isValidPosition (sim_x, sim_y)) // it was valid, set, and returns true
this-> x_pos = sim_x;
this-> y_pos = sim_y;
return true;
else // invalid movement (would be out of bounds)
returns false;
otherwise // not placed
returns false;

// turn the robot with a direction chain
bool Robot :: rotation (std :: chain direction)
if (this-> placed)
uint8_t sim_direction = this-> directionDirection;

if (direction == "LEFT")
direction_sim = (direction_sim + 3)% 4; //turn left
if not (direction == "RIGHT")
direction_sim = (direction_sim + 1)% 4; //turn right
returns false; //Invalid entry

this-> directionDirection = sim_direction;
return true;
otherwise // not placed
returns false;

void Robot :: printStatus ()
if (this-> placed)
std :: cost << int(this->x_pos) << & # 39;, & # 39; << int(this->y_pos) <<,, & # 39; << (this->Reverse Directions[this->facingDirection]) << " n";
std :: cout << "The robot is not yet placed on the table!  n";


#pragma once

#include "stdafx.h"

ToyRobot namespace
Robot class
placed bool = false;
uint8_t x_pos = NULL;
uint8_t y_pos = NULL;
uint8_t orientationDirection = NULL;

const std :: unordered_set commandList = {"PLACE", "MOVE", "LEFT", "RIGHT", "REPORT"};

std :: unordered_map  facing directions
= {{"NORTH", 0}, {"EAST", 1},
{"SOUTH", 2}, {"WEST", 3}};

std :: unordered_map  Reverse Directions
= {{0, "NORTH"}, {1, "EST"},
{2, "SOUTH"}, {3, "WEST"}};

bool isValidPosition (uint8_t, uint8_t);
Robot () // constructor

bool command (std :: string);
place bool (uint8_t, uint8_t, std :: string);
motion bool ();
rotation bool (std :: string);
void printStatus ();


#include "stdafx.h"
#include "helpers.h"

// split function of python, implemented in C ++. returns a vector of std :: strings divided by a specified delimiter
std :: vector split (const std :: string & in, const std :: string & delim)
using std :: string;
using std :: vector;

string :: size_type start = in.find_first_not_of (delim), end = 0;

vector outside;
while (start! = in.npos)
end = in.find_first_of (delim, start);
if (end == in.npos)
out.push_back (in.substr (start));
out.push_back (in.substr (begin, end - start));
start = in.find_first_not_of (delim, end);


#pragma once

#include "stdafx.h"

std :: vector split (const std :: string & in, const std :: string & delim);

tabletop.h (there is no tabletop.cpp because it is not necessary)

#pragma once

#include "stdafx.h"

constexpr auto TABLETOP_MAX_X = 4;
constexpr auto TABLETOP_MAX_Y = 4;

// 0,0 is the southwest corner
// The table is never used, but it is here if necessary
table class
const uint8_t x_len = TABLETOP_MAX_X;
const uint8_t y_len = TABLETOP_MAX_Y;

and finally my stdafx.h

#pragma once


The header and the implementation of my robot are in a namespace because they must be compiled into a library.

How is the structure of my project? Thank you

Links to product variants Woocommerce – WordPress Development Stack Exchange

When a user selects a different color on the product page, I want to directly open that specific product in the selected color instead of just changing the selected image. This plugin does exactly the same thing, choosing a color changes the product's URL. So, if I have a product A in black and red colors and the user selects a red color on the product page, I want to open the product link. I just need a few tips, the function to which I should refer or usable hooks. I had used to edit some free plugins, but they contain a lot of code which I do not even need. I know that it only takes a few lines to code this, so I want to avoid using a plugin.

how to restart the animation? – Game development stack exchange

the problem is the first time (click of the button) the animation must be executed correctly, when I press the second time, then the animation does not play ??

public void instructionpanel () // (open animation of the instructions panel)
anim.enabled = true; // when the command button is open
animsfirst.enabled = true;
animssecond.enabled = true;
animsthird.enabled = true;

public void closeinstructionpanel () // (animation of the instructions panel)
Debug.Log ("animationrun"); // when the button clicks on the instructions panel close
reanimsfirst.Play ("freverse");
reanimssecond.Play ("french");
reanimsthird.Play ("lreverse");
closeinstruct.Play ("clreverse");


img: 1

enter the description of the image here

img: 2

enter the description of the image here

second time press the button then animation does not play?

One-Way Functions – Computer Science Stack Exchange

Thanks for contributing an answer to Computer Science Stack Exchange!

  • Please make sure to respond to the question. Provide details and share your research!

But to avoid

  • Ask for help, clarification, or answer other answers.
  • Make statements based on the opinion; save them with references or personal experience.

Use MathJax to format equations. MathJax reference.

To learn more, read our tips for writing good answers.

Exchange Forum – What's going on? Promotion Forum

Hello friends of FP!

I wanted to express my enthusiasm for the opening of Forum exchange. Forum exchange is a new website for webmasters / exchanges with one goal in mind: to help you succeed as a webmaster!

As this is our official opening, a few things are happening.

First, since this is our opening month, anyone who registered from 01/04/2018 to 01/05/2018 will receive 300 site credits to register! This is our "grand opening" thanks to those who sign up.

Secondly, we are organizing our first contest called "Name On!" It is for us to engage our community to give a name to the virtual currency of our website. Each person submitting a name will receive 50 site credits only for their submission. Our winner will get 500 credits.

Third, we are looking for team members for a package team. We are currently looking for a team leader for the package as well as members of the team for the package.

Stop by, say hello and get free site credits that you can use later for services.

Postgresql Vacuum and Duplication – Exchange Stack Database Administrators

I have a cascaded replication architecture with 3 db postgresql

enter the description of the image here

The master becoming too big (~ 170Gig), I wanted to perform a "cleaning" work on the weekend that would perform several DELETE operations on millions of lines per batch and on a VACUUM table just after.
Unfortunately, my cleanup script was not successful because the DB2 disk is full (pg_xlogs?)

2019-06-21 17: 41: 08.770 UTC [1136] FATAL: Unable to expand file "base / 34163166 / 44033600.20": no available space on the device
2019-06-21 17: 41: 08.770 UTC [1136] TIP: Check available disk space. 2019-06-21 17: 41: 08.770 UTC [1136] BACKGROUND: Repeat xlog at 662 / 6A087C30 for Heap / INSERT + INIT: off 1 2019-06-21 17: 41: 09.188 UTC [13036] FATAL: Can not write to "pg_xlog / xlogtemp.13036" file: no available space on the device

So I have to run my script, but I wonder how I should do it so that my database db2 does not implode (does not stop replication) and does not reconfigure it? Also, I'm not sure why the db2 disk was filled: /, have you any idea?

Thank you for your help, bravo

json – JSONDecoder error – code revision stack exchange

enter the description of the image hereI found the code of an automated meal planner at this link (meal plan of the week), but when I run this code, errors occur and I do not know why. I am fairly new to Python, but I would like to use this code as the basis for a final meal planning program.

                "" "Program that helps you decide what to eat for the week
You should start adding some recipes and ingredients you need
for the recipe. If you have at least 7, they will be
the usual to tell you what you could cook and give you a list of groceries

The keywords are add_recipe and get_meals
"" "
import system
import getopt
import json
global import
randomly import

Using the class (exception):
def __init __ (self, msg):
self.msg = msg

def main (argv = None):
"" "Take the keywords add_recipe and get_meals and
calls the underlying functions.
"" "
if argv is None:
argv = sys.argv
opts, args = getopt.getopt (argv[1:]"Hamg" ["help", "add"

except getopt.error as msg:
increase use (msg)

for o, args in opts:
print (args)
if o in ("-h", "--help"):
print ('Valid options are -a to add a recipe and -m
to get meals and -g to get meals and a list of groceries
& # 39; & # 39; & # 39;)
back 1
elif o in "-a":
save_recipe (add_recipe ())
elif o in "-m":
recipes = get_recipes ()
daily_meals = return_shuffled_max_seven (recipes)
print_meals (daily_meals)
elif o in "-g":
recipes = get_recipes ()
daily_meals = return_shuffled_max_seven (recipes)
print_meals (daily_meals)
print_grocery_list (daily_meals)
increase usage ("No valid option")

except Usage as err:
print (sys.stderr, err.msg)
print (sys.stderr, "to get help --help")
back 2

def add_recipe ():
"" "Ask the user interactively to enter a recipe name
and the ingredients

A dictionary with the name of the recipe and the list of ingredients

"Apple pie":['Apple','Pie']}
"" "
print ("Name of the recipe  n")
name = entry (">")
recipe = []
    while true:
print ("Add the ingredients or finalize the recipe with" q ")
ingredients = entry (">")
if ingredients in 'q':
recipe.append (ingredients)
returns {name: recipe}

def save_recipe (recipe):
"" "Saves the recipe to a json file" ""

# Get the first dictionary key: Name of the recipe
name = next (iter (recipe.keys ()))
with open (name + 'recipe', 'w') like f:
json.dump (recipe, f, indent = 1)

def get_recipes ():
"" "Gets all the recipes and returns them in the form of a list" ""
grand_list_of_recipes = []
    for the recipe in glob.glob ("*. recipe"):
with open (recipe, & rsquo;) as f:
grand_list_of_recipes.append (json.load (f))
return grand_list_of_recipes

def return_shuffled_max_seven (a_list):
"" "Returns 7 elements from a list" ""
random.shuffle (a_list)
return a list[:7]

def print_meals (daily_meals):
"" "Print a weekly plan for meals" ""
week = []
    for meals in weekly meals:
name = next (iter (meal.keys ()))
week.append (name)
if len (week) <7:
print ("You only have" + str (len (week)) + "recipes")
for i in the beach (7-len (week)):
week.append (& # 39;)

print ("Monday:")
print (+ # + str (weekends)[0]) + & # 39;  n & # 39;)
print ("Tuesday:")
print (+ # + str (weekends)[1]) + & # 39;  n & # 39;)
print (on wednesday: & # 39;)
print (+ # + str (weekends)[2]) + & # 39;  n & # 39;)
print ("Thursday:")
print (+ # + str (weekends)[3]) + & # 39;  n & # 39;)
print ('friday: & # 39;)
print (+ # + str (weekends)[4]) + & # 39;  n & # 39;)
print (on Saturday: & # 39;)
print (+ # + str (weekends)[5]) + & # 39;  n & # 39;)
print ('sunday: & # 39;)
print (+ # + str (weekends)[6]) + & # 39;  n & # 39;)

def print_grocery_list (daily_meals):
"" "Print the grocery list" ""
meal = []
    for meals in weekly meals:
name = next (iter (meal.keys ()))
meal.learn (name)

recipe_list = []
    for idx, meals to enumerate (meals):
recipe_list.append (daily_meals[idx][meal])

grocery_list = set ()
for the ingredients in recipe_list:
grocery_list.update (ingredients)
print ("Shopping List:  n")
for the ingredient in the grocery list:
print ("* {}  n" .format (ingredient))

if __name__ == __ hand __:
sys.exit (main ())

Any help would be appreciated! I would also like to take a tip on simplifying / configuring this code to email both the grocery list and the weekly meal schedule. Thank you!

how to exchange bitcoin to paypal

Stack Exchange Network

Stack Exchange Network consists of 176 Q & A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange