Website Design – How can data be effectively retrieved from the onboarding process?

We currently have one very easy Onboarding process when signing up for the platform.
It consists of 3 screens:

  1. Welcome to the platform
  2. Ask for personal data (birthday, gender, place of residence, country, place of birth)
  3. Ask you to write a brief description of yourself and select soft skills from a drop-down list and professional skills from another drop-down list.

You can say that we are asking for some sensitive data, but the reason is team matchmaking. We want to group users based on their current residence and the combination of soft and hard skills. However, the onboarding process is not motivating and more aggressive.

When I read about various onboarding methods, I mainly collected information that there should be an introduction to the platform and then a kind of tutorial (in simple terms). However, I could not find any information about how users can effectively retrieve data while onboarding.

How can we make it more motivating for users to complete onboarding and not skip? Is there a logical order, which questions must be asked first and which ones last? Do you make it gamified? Maybe make chips instead of dropdowns?

sharepoint online – The client ID POSTMAN can not be retrieved

I'm trying to get the tenant ID of POSTMAN by following Access Sharepoint with POSTMAN. I took the same steps and was able to build the app. However, I can not determine the tenant ID. The answer is:

-2147024891, System.UnauthorizedAccessException
Access denied. You do not have permission to perform this action or to access this resource.

Design Pattern – When will data be retrieved / sent in an Android application?

I am currently creating an Android application and have the following questions:

We have a server that provides data for the app in the form of a REST JSON API. The app follows the MVVM architecture. Now my question is: when should we retrieve data from this server? We could retrieve all the data at once when the user reaches the first data-related screen, or we could make multiple polling calls over the lifetime of the application.

Should we also collect all data first when posting user-generated data to the server and then make a mail request or make multiple requests by sending as soon as the part data is done?

What is your opinion on this topic and can you give me guidelines on this topic?

server-side scripting – If the content is retrieved from wget, there may be a problem if I do not know the content type in the HTTP response.

The content-type is used by browsers to find out how the content is displayed. Browsers must choose the presentation method based on the content type. Rendering simple text is very different from rendering HTML.

wget Performs the same action on all files: they are stored on the hard disk. In my experience, it does not pay attention to the Content-Type Header, it only saves the file. Most file systems have no other mechanism to store metadata about the file than the file name and permissions. The content type is not even saved.

The only exception could be Mac OS. Mac's file systems can store far more metadata about files than other file system references. I have never used wget on the Mac, but it is possible that the content type will be saved there as a file metadata. This would then affect which program opens the file with the default action.

Of course, other file systems will usually guess based on the file extension .html, Since this is also wrong, the systems may behave the same way as the application types selected to open the saved file.

If you use the UUID with a specific script or application, it probably does not matter to you what the operating system would choose as the default editor and viewer for the file. I can not imagine that your use case on Windows, Mac or Linux will cause unforeseen problems.

magento2 – Wishlist Products not retrieved from the user ID: Magento 2

Wishlist added products do not getI am logged in as a user and have added some products to my wish list. It returns a blank array in the API response, but the Web adds the products to the wish list. Please check my code below

   public function __construct(
        MagentoWishlistModelWishlistFactory $wishlistFactory,
     ) {
        $this->wishlistFactory = $wishlistFactory;  

  public function getWishlist($customerId)
            try {
                $wishlist = $this->wishlistFactory->create()->loadByCustomerId($customerId, true);
            } catch (NoSuchEntityException $e) {
                throw new NoSuchEntityException(__($e->getMessage()));
            $wishlistItems = $wishlist->getItemCollection();
            $items = ();
            foreach ($wishlistItems as $wishlistItem) {
                $product = $this->productRepository->getById($wishlistItem->getProductId());
                $items() = (
                    'item_id' => $wishlistItem->getId(),
                    'store_id' => $wishlistItem->getStoreId(),
                    'added_at' => $wishlistItem->getAddedAt(),
                    'description' => $wishlistItem->getDescription(),
                    'qty' => $wishlistItem->getQty(),
                    'product' => $product

Many thanks

magento2 – Magento 2.3 The offer data can not be retrieved

I'm just trying to get it Quote data but it returns like that …


    string(15) ""

Here is my code

scopeConfig = $context->getScopeConfig();
    public function getCheckoutData(){


Does anyone have an idea what's wrong with my code?

server-side scripting – If the content is retrieved from wget, there may be a problem if the HTTP response does not specify the correct content type.

It's a question too wget, I have a simple file uuid.html in the document root, which contains a single line 54da5638-099d-4cf3-9319-c436fcb81334, I get the line in a shell script content=$(wget localhost/uuid.txt -O -), My server, Apache, assigns the content type automatically text/html to the output document in the response returned to wget. Is it reliable to consider that wget completely ignores the content type in the response header to determine what is returned and assigned? $content? I know that Apache would set the content type to text/plain in the response header, if I used another extension for the file. That's not the question. Does the content type need to be specified in the HTTP response header? is a similar question, but the context is different: you think the request is being made by a browser. Of course I also checked if it works on my server. The question is, is this reliable regardless of the environment?

Error 404: API MongoDB Express node.js can not be retrieved

So I create a database for my web application, but the route can not be reached. I do not know why error 404 is displayed every time I try to send a GET request.

Here is my server.js:

    //jshint esversion: 6

const express = require("express");
const mongoose = require("mongoose");
const bodyParser = require("body-parser");

const cards = require("./routes/api/cards");

const app = express();

//bodyParser middleware

//DB config
const db = require("./config/keys").mongoURI;

//Connect to mongodb
  .connect(db, {useNewUrlParser: true})
  .then(()=>console.log("MongoDB connected."))
  .catch(err => console.log(err));

//Use routes
app.use("api/cards", cards);

const port = process.env.PORT || 5000;

app.listen(port, () => console.log("Server started on " + port));

And here is my models / Card.js:

//jshint esversion: 6

const mongoose = require('mongoose');
const Schema = mongoose.Schema;

//Create Schema
const CardSchema = new Schema({
  topic: {
    type: String,
    required: true
  date: {
    type: Date,
  questions: ({
    front: String,
    back: String

const Card = mongoose.model('card', CardSchema);

module.exports = Card;

Here is my routes / api / cards.js:

//jshint esversion: 6

const express = require("express");
const router = express.Router();

//Card Model
const Card = require("../../models/Card");

// @route GET api/cards
// @desc GET All cards
// @access Public

router.get("/", (req,res) =>{
    .sort({date: -1})
    .then(cards => res.json(cards))
    .catch(err => res.status(400).json("Error: " + err));

module.exports = router;

I do not know what the reason is that causes this error

dart – DownloadURL or StorageReference can not be retrieved from DocumentReference in Flutter

With the CMS Flamelink there is a specific firestore and storage structure provided by the CMS. Images are stored in memory and referenced in the firestore. Firestore provides me with a DocumentReference for the asset in memory. However, I have no idea how to get the DownloadUrl from the DocumentReference. I can get the filename from the DocumentReference but not the full path in memory. The full path would allow me to create a StorageReference that has access to getDownloadUrl ().

As a workaround, I'm currently linking the filename to the storage prefix I looked up in the database. However, there must be a better way to get a DownloadUrl from a DocumentReference. Otherwise, in my opinion, this is not really a DocumentReference. What's the right way to get the DownloadUrl from a DocumentReference?

getNewImage(DocumentReference imgRef) async {
    DocumentSnapshot imgSnapshot = await imgRef.get();
    final imageName ='file');

    // How to get path dynamically?
    String storagePath = 'flamelink/media/$imageName';

    StorageReference storageReference = await DataProvider.getStore();
    StorageReference ref = storageReference.child(storagePath);
    String dlurl = await ref.getDownloadURL();

    setState(() {
        _imageUrl = dlurl;

I'm using Flutter 1.7.8 with cloud_firestore 0.12.8 and firebase_storage 3.0.3.

apt – lock / var / lib / dpkg / lock – frontend could not be retrieved – specific to a single .deb package

I have a custom package that I want to install on my device.

It returns this error:

nvidia@tegra-ubuntu:~$ sudo dpkg -i MyPackage.deb 
(Reading database ... 181574 files and directories currently installed.)
Preparing to unpack .../MyPackage.deb ...
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
dpkg: error processing archive MyPackage.deb (--install):
 subprocess new pre-installation script returned error exit status 100

I've already tried all the traditional ways to remove a lock:

None of them worked for me. I can not find any ongoing process related to lock or Lock frontend Files. I also noticed that this problem is related to this particular package. Any other version of the same package or package is installed correctly and does not raise an error.

Any idea ?