## c # – How to bounce a sphere as it moves forward

I'm trying to bounce at the same time a sphere that I anticipate. Here is what I tried.

By adding a physical material to the sphere and securing it with a minimal combination, the rebound setting is optimized.

Adjustment of the collision detection on the rigid body of the sphere on continuous.

After trying all of this, everything was provoked when the sphere touched the game object staying seated and advancing without bouncing. Here is the code that I have to move the sphere.

``````public floating forceMulti = 50f;

Private Rigidbody rb;

private empty Awake ()
{
rb = GetComponent();
}

// Start is called before the first update of the frame
empty Start ()
{

}

// The update is called once per image
void Update ()
{
rb.velocity = transform.forward * Time.deltaTime * forceMulti;
}
``````

If it was possible to bounce the sphere into the code as it advanced, that would be great and I would really appreciate the suggestions.

Thank you.

## Twitter cards do not display when I tweet

I've set up the following HTML code, which passes with the Twitter validation tool and displays correctly. When I then send a tweet, no map appears. Ideas that I'm doing wrong?

``````

``````

## public transport – How can I know (without going to the train station) if RTAP offers the tickets to fight against pollution?

The Paris public transport system (RTAP) offers a reduced rate on days of high pollution, as described here: https://www.ratp.fr/forfait-antipollution (Google Translated).

This rate is a very good deal, especially as a tourist!

This has been offered until now every day of my visit, but I know it only because I went to the train station and saw it advertised. Is there a website on which I can check if a particular day is a pollution day?

## Show Selected Options of Ionic / Angular Option – Spanish Stack Overflow

I m adventure in the ionic world and I found something that I can not solve.
I have a list of buttons each containing an image, you should be able to select / click on several buttons and the selection ends by clicking a button at the end of the page, this button should display a pop-up window with the information of the options you select.

Example:

• A list with 5 options: A B C D E F.
• The user selects: A B C D E F.
• The user clicks the submit button
• A popup with the content is displayed: B E F

Thank you

## 8 – Print the customized product variant field in the e-mail confirmation of the order

Added custom field (& quot; field_secretkey & quot;) under Commerce – Product Variant (types admin / commerce / config / product-variation).

I can get this value in the Orders view by adding the "Product Variation" relationship.

I just want to print this value in the order confirmation email (trade-order-receive.html.twig). It can have multiple elements with different values.

Example:

No | Product Name | Custom field

1 | Product 01 | XYUSNMAI

2 | Product 02 | AYUSSAAA

3 | Product 03 | PAUSNPPP

Update: tried under the code, but does not work.

public function getPurchasedEntityId () {
return \$ this-> get (& # 39; entity_buy & # 39;) -> target_id;
}

public function getCustomField () {
return \$ this-> get (& # 39; field_custom_field & # 39;) -> value;
}

{{}} Order_item.getPurchasedEntity.getCustomField

## The theory of cleanliness calculates the CDF of the joint cleanliness function

I practiced for my exams and I noticed a question about which I have no elaborate solution to be very difficult. After spending the night on it, I decided to ask it here to hope that people will help me discover where I am wrong.

In 1 question C:
j & # 39; I $$W = y-x$$ and limits $$0 leq x leq y$$. Now I need to find the CDF because that 's where it' s wrong, I first decide to integrate it at x from 0 to y. (because that's the limit)
$$int_ {0} ^ {y} 6th ^ {- x-2y} dx$$, so I get $$6e ^ {- 3y} (- 1 + e ^ y)$$
After that, I see that the domain for W = y-x goes from 0 to infinity because there is no upper bound specified. But to keep checking, I've also tried 0 to w.
$$int_ {0} ^ {w} 6th ^ {- 3y} (- 1 + e ^ y) dy$$
But that gives me: $$1 + e ^ {- 3w} (2 – 3rd ^ w)$$
And I need to $$1-e ^ {- 2w}$$

I hope that one of you can guide me in the right direction and thank you in advance.

## json – What does an appropriate server response look like?

tl; dr
What is the best server response for an endpoint to get the age of a user?

`30` or `{"age": 30}` or `{"metadata": {"hour": 1561919615, "status": 200}, "age": 30}` or something else?

Newb incoming question! I write a server using Firebase functions. I'm trying to determine the best way to send my answers. My server-side experience is minimal.

Sometimes the data I have to send is an object for which JSON makes perfect sense.

```getUser: {"name": "John", "age": 30 years, "car": null}```

Sometimes it's a number, where JSON seems excessive.

```getAge: {"age": 30}``` or `30`

Is it better to always send fully formatted JSON files? Performance is not a major concern in my case.

On the other hand, should I create a predefined type that I always answer?

`{"age": 30}` or `{"metadata": {"hour": 1561919615, "status": 200}, "age": 30}`

To sum up, what does a proper response from a server look like? In my particular case, it is a mobile application where pricing is dictated mainly by the number of responses, not by the size of the response. As far as I know, JSON is the norm, and I think I just send `30` would be bad practice. (But I do not know for sure.)

Should I use one of the 3 versions above or is there a better approach to take?

## strings – JSP, what is the difference between javax.servlet.http.Part and java.io.File?

good afternoon everyone, I simply fit with JSP and want to know when java.io.File and javax.servlet.http.Part are used.
What is the difference?.
I could work these commands or libraries together or not?

``````                                String Directorio_Archivo = "D: /Alumno.txt";
File file = new file (Directorio_Archivo);

try{
Rope line;

while ((line = br.readLine ())! = null) {
Chain[] arr = line.split (",");
String sql = "insert in ALUMNO (Codigo, Number) VALUES"
+ "(& # 39;" + arr[0] + "& # 39;" + arr[1] + "& # 39;);";

PreparedStatement ps = cn.prepareCall (sql);
ps.executeUpdate ();
}
br.close ();
} catch (Exception e) {
System.out.println (e.getMessage ());
}
``````

Now this code.

``````                                String Directorio_Archivo = "D: /Alumno.txt";
File file = new file (Directorio_Archivo);
``````

Can I change this order File ** to ** part. I want the same example to work for me but to capture through

``````
``````

## magento2 – the FedEx shipping method is still unavailable

I am moving the Magento Online Store 1 to 2 and I have problems with the FedEx shipping method in the shopping cart. The problem is that FedEx is still unavailable (even after filling in Account, Counter Number, Key and Password for my FedEx account).

In the Magento Administrator -> Stores -> Operators, I can see the alert "To add and manage operators first Enable Magento delivery":

But the Magento Shipping account costs at least \$ 99 a month:

Is it possible to use FedEx without paying for a Magento Shipping account? I ask because it is possible in Magento 1.

thank you so much

## node.js – Erro ao enviar email ReactJS

``````src /
backend
mailer
index.js
index.js
components
Contato.js
app.js
``````

backend / mailer / index.js

``````import nodemailer from & # 39; nodemailer & # 39;

const transport = nodemailer.createTransport ({
host: & # 39; mail.site.net.br & # 39;
port: 465,
secure: true, // true for 465, false for 587
auth: {
user: 'contato_site @ site', // generated ethereal user
pass: & # 39; marc34 & # 39; // generated ethereal password
}
tls: {
refusUnauthorized: true
}
});

const send = ({email, name, text}) => {
const of = name && email? `\$ {name} <\${email}>`:` \$ {name || email} `
const message = {
of,
to: & # 39; contato_site@site.com & # 39 ;,
topic: `New message from \$ {from} to create-contact-forms-with-nodemailer-and-react`,
text,
};

return a new promise ((solve, reject) => {
transport.sendMail (message, (error, info) =>
Fault ? reject (error): solve (info)
)
})
}

default export send
``````

backend / index.js

``````import & # 39; babel-polyfill & # 39;
import express from & # 39; express & # 39;
import bodyParser from & # 39; body-parser & # 39;

import the mail from & # 39; ./ mailer & # 39;

const app = express ()
app.use (bodyParser.json ());
app.use (bodyParser.urlencoded ({extended: true}));

app.get (*, #, (req, res) => {
res.send (& # 39; The server is running. Send a message to "/ contato_site" to send a message.
})

app.post (& # 39; / contato_site & # 39 ;, (req, res) => {
const {email = ", name =", message = "=======================================

mailer ({email, name, text: message}). then (() => {
console.log (`Sent the message" \$ {message} "from <\${name}> \$ {email} .`);
res.redirect (& # 39; / # success & # 39;);
}). catch ((error) => {
console.log (`Can not send message" \$ {message} "from <\${name}> \$ {email} with the error \$ {error && error.message} `);
res.redirect (& # 39; / # error & # 39;)
})
})

const PORT = process.env.PORT || 4000;

app.listen (PORT, () => {
console.log (`App listens on the port \$ {PORT}!`);
})
``````

components / Contato.js

``````import React from "react" & # 39;

// Importanto Imagens
import bg picture of ../images/bgimage_m.jpg & # 39;
// import mapa from .. / images / map.png & # 39;

const Contato = props => {

return (
``````

{/ *Know us* /}
contato

contato

{/ *

* /}

Name Completo

Telefone

E-mail

Mensagem

)
}

default export Contato
``````

app.js

``````import React to 'react';
import {BrowserRouter, Route} from & # 39; react-router-dom & # 39;

to import Cabecalho from "./ componentes / Cabecalho & # 39;
import Inicio from "./ componentes / Inicio & # 39; ./ componentes / Inicio & # 39;
Institucional import of "./ componentes / Institucional & # 39 ;;
import Sober from "./ componentes / Sobre";
Import Contato from & # 39; / componentes / Contato & # 39 ;;
import customers from './ componentes / clients';

App () {function
return (

)
}

default export App;
``````