What is currently the best free file hosting script

What is currently the best free file hosting script that hosts files and images in one? I do not want to xfileshaing Yetishare and I played with Kleeja, but I do not see how to work fully. I'm looking for something else.

Godot 3.1: How to create a script?

I have a paddle scene with a script attached.
In my game, I want 2 palettes, one on the left and one on the right.
I can include the Paddle scene in LeftPaddle and RightPaddle without problems, but the script in the left palette must be slightly different from the one in the right palette.
Unfortunately, I can only see the basic Paddle script in the script editor.

Is there a way to create a script?

How to test this matlab script

Please, I would like to test the following script.
It seems to work, but I do not know how to check the result.

These are the input data.

xdata = [0.9 1.5 13.8 19.8 24.1 28.2 35.2 60.3 74.6 81.3]& # 39 ;;
ydata = [455.2 428.6 124.1 67.3 43.2 28.1 13.1 -0.4 -1.3 -1.5]& # 39 ;;
list = [xdata, ydata];

Script file

a function [pax, pay] = extract_parameter (list)

options.Algorithm = levenberg-marquardt & # 39 ;;

m_start = [0; 0];
fun = @ (x) in_func (list, x);
    [parameter, ~] = lsqnonlin (fun, m_start,[],[], options);

pax = parameter (1);
pay = parameter (2);

% Nested function
fun function = in_func (list, x)
m_vel = list (:, 1);
m_ang = list (:, 2);
fun = m_vel + x (1) * cos (m_ang) + x (2) * sin (m_ang);
end
end

The expected parameters pax and pay are calculated.
I have to replace them in the original function at x (1) and x (2) and check the result.
Please, could someone help me check it?

Google Apps Script GetUI, disable buttons

I'd like to display a pop-up while the script is running without buttons so that the user can not delete it until the script is finished. Tried with GetUI and could not disable the buttons.

Any recommendation? Thank you.

Second half of the search script causing me problems

Work on a project that does a search based on the identification numbers of several different sheets and group them together on a single summary sheet for easy viewing, but I'm puzzled over the second half of this part of the script. After that it corresponds to the line corresponding to the ID of the search column 1, I tried to take it to extract the values ​​from a list of different columns ("T" and "AG-"). AK ") and put them in my summary page.

function K () {
var spreadSheet = Spreadsheetapp.getActiveSpreadsheet ();
var tltSheet = spreadSheet.getSheetByName ("TL Training");
var EEID = tltrainSheet.getrange ("C2"). getValues ​​(); // identification numbers

var ss = SpreadsheetApp.openById ("1234567")
var Krecord = ss.getSheetByName ("MATRIX")

lookupk function (tltSheet, EEID, ss, Krecord) {
var searchString = ss.getRange (EEID) .getValues ​​(); // Employee identification number entered in the training plan
var column = 1; // column index
var columnValues ​​= sheet.getRange (3, column, sheet.getLastRow ()). getValues ​​();
var searchResult = columnValues.findIndex (searchString);

automation – Need help automating (or writing a script) a task on my Android phone?

In short, I'm part of a website on which you can watch videos on your phone, earn points and redeem them for points. I want to automate this by writing a script, but I do not know how or even if it is possible.

Basically, the screen will show a video and once the video has finished playing, an "X" will appear in a corner. Once the "X" is typed, I want it to tap on another video, and so on.

I am fairly new to programming and I want to practice it myself, although I am not sure what I need to get started. If anyone can give me advice, suggestions, that would be great. Thank you.

unit – Applying the Y offset to the rotation / position script

I use the script shown below to move a vaporizer around a head.

The code works fine: I've assigned the script to the spray bottle and I've set the head as the target.

However, I was not happy with the center that Unity seems to use for the spray bottle. The vaporizer never aims perfectly at the center of the head.

To find out what's going on here, I've added a long sphere to the vaporizer. Then, I moved the sphere until it perfectly visualized the center used by Unity. As we can see once, Unity uses the bottom of the spray bottle as a center.
I've uploaded a video here to show the effect.

I imagined I had to tell the script that the center of the vaporizer was different. I should include an offset (I suppose a vector3) to define the nozzle as the center.

I have not been able to know how to plug this "offset" into the script.

Can any one tell me where / how I could do that?

Thank you so much!

enter the description of the image here

using UnityEngine;
using System.Collections;

[AddComponentMenu("Camera-Control/Mouse Orbit with zoom")]
Public class MouseOrbitImproved: MonoBehaviour
{

public transformation target;
public floating distance = 5.0f;
public float xSpeed ​​= 120.0f;
public float ySpeed ​​= 120.0f;

floating public yMinLimit = -20f;
public float yMaxLimit = 80f;

public float distanceMin = .5f;
public floating distance Max = 15f;

Rigid private rigid rigidbody;

float x = 0.0f;
float y = 0.0f;

// Use this for initialization
empty Start ()
{
Vector3 Angles = transform.eulerAngles;
x = angles.y;
y = angles.x;
}

void LateUpdate ()
{
if (target)
{
x + = Input.GetAxis ("Mouse X") * xSpeed ​​* distance * 0.02f;
y - = Input.GetAxis ("Mouse Y") * ySpeed ​​* 0.02f;

Quaternion rotation = Quaternion.Euler (y, x, 0);

Vector3 nTargetPos = target.position + new Vector3 (0, 0.1f, 0); // 10 centimeters lower. The center of origin of the target.position would be around the nose. Instead, I want the forehead to be the center, which is why I add 10 centimeters to the y position.

Vector3 negDistance = new Vector3 (0.0f, 0.0f, -distance);
Vector3 position = rotation * negDistance + nTargetPos;

transform.rotation = rotation * Quaternion.Euler (0, -90, 0); // compensates for the spray bottle facing the head (requiring yaw = 90)
transform.position = position;
}
}

unit – Add Y rotation to -90 degrees in the script

Here are four ways to solve this problem …

First:

In the general case, the easiest way to adjust the rotation of something in Unity is to wrap it.

  1. Create a new empty GameObject called "parent"

  2. Take the visual object that you want to rotate and make it a child of that parent.

  3. Take any animation / script / etc directly manipulating the visual object and have it act on the parent object.

From now on, the orientation of your visual object (as well as the offset and scale of translation) is decoupled from what the script attributes. So you can rotate it relative to its parent to get the desired result. You can even do it in the stage view with rotating gizmos, to visually match the look you want, if you have trouble viewing it from the raw code / numbers.


Second, especially when your script assigns:

transform.rotation = rotation;

You can add an extra "hold" rotation to bias the result as desired. for example…

transform.rotation = rotation * Quaternion.Euler (0, -90, 0);

This applies to a rotation of -90 degrees around the local yaw axis before Regardless rotation want to do to the object. To apply this Y axis after / around the world, simply reverse the order of the multiplication.


Thirdbecause you calculate your rotation via:

Quaternion rotation = Quaternion.Euler (y, x, 0);

You can simply compensate for this rotation directly:

Quaternion rotation = Quaternion.Euler (y, x - 90, 0);

Note, however, that since you calculate position based on rotationThis will also rotate your position 90 degrees – you may want to adjust this by changing the way you build. Vector3 negDistance = new Vector3 (0.0f, 0.0f, -distance) or use one of the above solutions without altering the position.


Fourth, your script as it is already has a solution to this problem:

empty Start ()
{
Vector3 Angles = transform.eulerAngles;
x = angles.y;
y = angles.x;
// ...

This indicates "whatever orientation we take when the scene is loading / when I am creating myself in the scene, use this orientation as the starting / neutral point for any future movement."

So, just turn your object 90 degrees into your scene before switching to play mode (or rotate it 90 degrees Instantate ()) and the script will take this starting rotation automatically.

Similar to point 3, this will change the way you assign the position to act at 90 degrees to the rotation.

I'm getting error messages on the field add & # 39; type_login & # 39; in the php script

I want to add a field "type_login" to the one I receive error messages
PHP script. Missing code help me please …

error ->

Warning: mysqli_stmt_bind_param (): The number of elements in the type definition string does not match the number of binding variables in D: xammp htdocs levbux admin member-register.php on line 85

line number 85

mysqli_stmt_bind_param ($ stmt, "ss", $ param_username, $ param_password,
$ param_type);

table login

insert data of this type into a table

user_id | username | password | login_type
1 | abcd | xxxxxxxx | 1
2 | avcd | xxxxxxxx | 2
3 | hbcd | xxxxxxxx | 3

PHP insertion script here …

if ($ _ SERVER["REQUEST_METHOD"] == "POST") {

if (empty (trim ($ _ POST["username"]))) {
$ username_err = "Please enter a username.";
} other {
$ sql = "SELECT user_id FROM login WHERE username =?";

if ($ stmt = mysqli_prepare ($ conn, $ sql)) {
mysqli_stmt_bind_param ($ stmt, "s", $ param_username);

$ param_username = trim ($ _ POST["username"])

if (mysqli_stmt_execute ($ stmt)) {
mysqli_stmt_store_result ($ stmt);

if (mysqli_stmt_num_rows ($ stmt) == 1) {
$ username_err = "This username is already taken.";
} other {
$ username = trim ($ _ POST["username"])
}
} other {
echo "Oops! An error has occurred. Please try again later.";
}
}

mysqli_stmt_close ($ stmt);
}
// ------------------------
if (empty (trim ($ _ POST["type_login"]))) {
$ type_login_err = "Select the type of user.";
} other {
$ sql = "SELECT login_type FROM login WHERE login_type =?";

if ($ stmt = mysqli_prepare ($ conn, $ sql)) {
mysqli_stmt_bind_param ($ stmt, "s", $ param_type);

$ param_type = trim ($ _ POST["type_login"])


}

mysqli_stmt_close ($ stmt);
}



// ------------------------
if (empty (trim ($ _ POST["password"]))) {
$ password_err = "Please enter a password.";
} elseif (strlen (trim ($ _ POST["password"])) < 6){
        $password_err = "Password must have atleast 6 characters.";
    } else{
        $password = trim($_POST["password"]);
    }

    if(empty(trim($_POST["confirm_password"]))){
        $confirm_password_err = "Please confirm password.";     
    } else{
        $confirm_password = trim($_POST["confirm_password"]);
        if(empty($password_err) && ($password != $confirm_password)){
            $confirm_password_err = "Password did not match.";
        }
    }



    if(empty($username_err) && empty($password_err) && empty($confirm_password_err) && empty($type_login_err)){

        $sql = "INSERT INTO login (username, password, type_login) VALUES (?, ?, ?)";

        if($stmt = mysqli_prepare($conn, $sql)){
            mysqli_stmt_bind_param($stmt, "ss", $param_username, $param_password, $param_type);

            $param_username = $username;
          $param_type = $type_login;
            $param_password = password_hash($password, PASSWORD_DEFAULT); 

            if(mysqli_stmt_execute($stmt)){
                header("location: sign-in.php");
            } else{
                echo "Something went wrong. Please try again later.";
            }
        }
        mysqli_stmt_close($stmt);
    }
    mysqli_close($conn);
}
?>

html form here

<action form = ""method =" post ">

<div class = "forms group ">

            

            <input type = "text" name = "user name" class = "form-control" value = "">

            

        
<div class = "forms group "> <type of entry = "password" name = "password" class = "form-control" value = "">
<div class = "forms group "> <input type = "password" name = "confirmation_word" class = "form-control" value = "">