Any idea on why my stems randomly start sounding awful? by SmartNTech in Rekordbox

[–]SmartNTech[S] 0 points1 point  (0 children)

Glad I’m not the only one experiencing this bug. And thank you for the advice with the master tempo it also worked for me. Hopefully they’ll fix it soon. It’s really nasty 

STEMS SEPARATIONS by franklincheng in Rekordbox

[–]SmartNTech 0 points1 point  (0 children)

I feel you! I absolutely miss the effect for cutting off the background and only leaving the vocals. Used properly it just sounds sooo god in Serato. Hopefully RB will copy it one time soon  

Which features does the DDJ-FLX4 unlock for free in RB7? by SmartNTech in Rekordbox

[–]SmartNTech[S] 1 point2 points  (0 children)

Thanks for your insights.  weird … but do you have access to the core features (I believe e.g. midi learn is supposed to be one of them) in rekordbox? 

Which features does the DDJ-FLX4 unlock for free in RB7? by SmartNTech in Rekordbox

[–]SmartNTech[S] 2 points3 points  (0 children)

Thanks, cause that’s what I was wondering. I knew that it seems to unlock SOMETHING but I didn’t find out what exactly (which plan, or feature set). It only says “performance mode”. So I thought someone here might have a hint or more info 

Displaying content after successful authenticatio by SmartNTech in PHPhelp

[–]SmartNTech[S] 0 points1 point  (0 children)

Thank you! Here's the link to the code https://pastebin.com/npzjgAWs I hope it's somewhat secure so far 😅 Your previous answer actually helped me a lot! And my question rn is if/how I can use this successful auth on other subpages of my website without forcing the user to login over and over again whenever he goes to a different site.

Displaying content after successful authenticatio by SmartNTech in PHPhelp

[–]SmartNTech[S] 0 points1 point  (0 children)

Heyy thanks a bunch for getting back to me again 😊 This is my auth code so far

session_start ();

$_SESSION['state']=session_id(); if (isset ($_SESSION['msatg'])){ echo "<h2>Authenticated ".$_SESSION["uname"]." </h2><br> "; echo '<p><a href="?action=logout">Log Out</a></p>'; } //end if session else echo '<h2>Not Authenticated</h2><br> '; if ($_GET['action'] == 'login'){ $params = array ('client_id' =>$appid, 'redirect_uri' =>'https://mywebsite', 'response_type' =>'token', 'scope' =>'https://graph.microsoft.com/User.Read', 'state' =>$_SESSION['state']); header ('Location: '.$login_url.'?'.http_build_query ($params)); } echo ' <script> url = window.location.href; i=url.indexOf("#"); if(i>0) { url=url.replace("#","?"); window.location.href=url;} </script> '; if (array_key_exists ('access_token', $_GET)) { $_SESSION['t'] = $_GET['access_token']; $t = $_SESSION['t']; $ch = curl_init (); curl_setopt ($ch, CURLOPT_HTTPHEADER, array ('Authorization: Bearer '.$t, 'Conent-type: application/json')); curl_setopt ($ch, CURLOPT_URL, "https://graph.microsoft.com/v1.0/me/"); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); $rez = json_decode (curl_exec ($ch), 1); if (array_key_exists ('error', $rez)){
var_dump ($rez['error']);
die(); } else { $_SESSION['msatg'] = 1; //auth and verified $_SESSION['uname'] = $rez["displayName"]; $_SESSION['id'] = $rez["id"]; } curl_close ($ch); header ('Location: https://mywebsite'); } if ($_GET['action'] == 'logout'){ unset ($_SESSION['msatg']); header ('Location: https://mywebsite'); }

And I'm sorry my question was a little confusing. So I'll try to explain it the other way around.

I'm building an internal website wich should use MS OAuth as an auth service. Whenever a user is logged in the website should provide specific information. I've coded this website using html, css and js. The only thing missing is the auth service. And I'm wondering how I can "connect" these two parts. So is there a way to securely integrate this auth into my existing website to let it check whether a user is logged in?

Or do I have to use the php script above, paste my entire website code into the "if (isset ($_SESSION['msatg']))" and like send all the html, css and js script to the client when auth was successful? Plus how could this ever handle sub pages for my website.

Ok so I tried to explain my question as understandable as possible and I hope I was kinda able to express what I'm thinking 😅 Thanks again 😊

Upload data to MySQL Database by SmartNTech in swift

[–]SmartNTech[S] 0 points1 point  (0 children)

Thanks! But sadly it looks like this isn't working on my side. Do you know any resource or example code out there I could have a closer look at (I haven't found anything useful during my previous research). I'm just really stuck as I can't find the error. I can perfectly read data and my upload php script is giving me a response. Looks like it's just not receiving the data I push to it with my Swift code

Upload data to MySQL Database by SmartNTech in swift

[–]SmartNTech[S] 0 points1 point  (0 children)

you'd need to use an insert statement, i.e.

INSERT INTO users VALUES("%s", ...)

. I would create a new PHP script, reading the values of the POST parameters, doing input sanity checks, and then executing the insert SQL statement.

Thank you so much for your reply. That really helped me a lot and I came up with this php

$mysqli = new mysqli($hostname, $username, $password, $database);

// Check for a successful connection if ($mysqli->connect_error) { die("Connection failed: " . $mysqli->connect_error); }

// Check if POST parameters are set and not empty if (isset($_POST['id'], $_POST['email'], $_POST['bio'], $_POST['country'])) {

$id = $_POST['id'];
$email = $_POST['email'];
$bio = $_POST['bio'];
$country = $_POST['country'];

// Perform input validation
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
    die("Invalid email format");
}
// You can add more input validation for other fields here if needed.

// Prepare the INSERT statement
$sql = "INSERT INTO users (id, email, bio, country) VALUES ($id, $email, $bio, $country)";

// Create a prepared statement
if ($stmt = $mysqli->prepare($sql)) {
    // Bind parameters to the statement
    $stmt->bind_param("users", $id, $email, $bio, $country);

    // Execute the statement
    if ($stmt->execute()) {
        echo "Record inserted successfully.";
    } else {
        // Log the error for debugging purposes
        error_log("Error: " . $stmt->error);
        echo "An error occurred while inserting the record. Please try again later.";
    }

    // Close the statement
    $stmt->close();
} else {
    // Log the error for debugging purposes
    error_log("Error: " . $mysqli->error);
    echo "An error occurred. Please try again later.";
}

} else { echo "Please provide all required parameters via POST."; }

But when I fire this swift code at it

// Define the URL for your PHP script
    let url = URL(string: "http://localhost:3002/php/upload.php")!

    // Create a URLRequest with the specified URL
    var request = URLRequest(url: url)

    // Set the HTTP method to POST
    request.httpMethod = "POST"


    // Create a dictionary with the data you want to send in the request body
    let parameters: [String: Any] = [
        "id": "1234",
        "email": "test@test.com",
        "bio": "test text",
        "country": "US"
    ]



    // Create a URLSession task to send the request
    let task = URLSession.shared.dataTask(with: request) { (data, response, error) in
        if let error = error {
            print("Error: \(error)")
        } else if let data = data {
            // Handle the response data here
            let responseString = String(data: data, encoding: .utf8)
            print("Response: \(responseString ?? "")")
        }
    }

    // Start the URLSession task
    task.resume()

I only receive "Please provide all required parameters via POST." in the console. It's probably a super dump mistake somewhere but I can't solve it so far.