#programming

1 messages · Page 13 of 1

crystal fable
#

right

lilac patio
#

but dont have remotely connection

crystal fable
#

why do you need remote?

#

if your web and php are on the same

lilac patio
#

so i can pull and push data

crystal fable
#

you don't need that to pull and push data

#

in PHP, you should look at PDO

#

and mysqli(NOT PLAIN MYSQL)

small ermine
#

^

lilac patio
#

well i do because i need pull so reads rank and push if thy setup MCname on server

#

thne same thign as other stuff like subs

#

and more

crystal fable
#

you should be able to do all SQL using PDO in PHP

lilac patio
#

because no way remote it i got no other way

crystal fable
#

PDO is a database connection driver for PHP

#

you write your SQL in PHP

lilac patio
#

so should i get PDO

#

is it free thow

crystal fable
#

PDO is free

#

yes

#

it's a massive part of PHP

lilac patio
#

is it CMS

crystal fable
#

no

#

it's only a way to connect PHP to your database to pull/push data

#

SQL is a language entirely on it's own

#

but PHP can use it through database drivers

#

MongoDB is another example of a database

#

and PHP has a driver for that too

lilac patio
#

yeh i got that

#

just i cant access outside only local

crystal fable
#

if your provider doesn't offer PDO, look at mysqli

lilac patio
#

thats all i need know

crystal fable
#

and your provider should offer a control panel

#

like phpmyadmin

#

for accessing it outside of the php environment

lilac patio
#

thy do have phpmyadmin

crystal fable
#

that's what you want to use

lilac patio
#

thats where i try plan get data from

crystal fable
#

so in phpmyadmin you can write SQL statements(transactions) that retrieve, update, delete, and insert data

#

you can also manage your databases, tables, and columns and any other database items

lilac patio
#

i need way do like this

#

and finds it then after finds it puts in list acess it

crystal fable
#

right, that would be in your php file using PDO/mysqli

lilac patio
#

yeh

#

thats why i confused about

#

i need way exicute find it

crystal fable
#

read up on SQL statements

#

to query rows, use a SELECT statement

#

to add rows, use an INSERT INTO statement

#

The w3schools site has a lot of good info

#

and walks you through what you want to do

lilac patio
#

@crystal fable can i say something, ik how SQL and PHP works just what i try say is idk how to exicute to put data and recive data if there

#

thats issue

crystal fable
#

it's a simple SELECT statement

lilac patio
#

i made login system with spififc rank

#

but i need way find rank by php without strictions

crystal fable
#

right and each result set can be queried with the result count

lilac patio
#

whats quarry needs be

#

so confirms it

#

cant say like ok

#

like needs find sipfic ranks

#

like 4 or 5 ranks on SQL rn

crystal fable
#

what do you mean?

#

like a list of unique ranks?

lilac patio
#

no give me sec

crystal fable
#

or....?

lilac patio
#

i run local site for sec

crystal fable
#

ok....

#

I guess I don't understand what you're trying to accomplish

lilac patio
#

somethign liek this

#

i need way make api checks ranks and calls them

crystal fable
#

you mean use the same database between your local site and the live one or?

lilac patio
#

yes all in 1 database rn

crystal fable
#

or do you mean the session?

#

sessions can't be read by other sites

#

this is for security

#

it's just how that works

lilac patio
#

and i need way call it in php say if user have this kie example if user = "name" has VIP+ then True if not Fausle

crystal fable
#

well you could build a backend authentication api

#

on the live site

lilac patio
#

thats what i gonna do but problem is requires sql scans but hsoting im gonna use doesnt have remote hosting

crystal fable
#

....?

lilac patio
#

like sql remote

crystal fable
#

It's a select statement, not a scan

lilac patio
#

yeh needs scan sifific name get i mean

crystal fable
lilac patio
#

and if user has this goes true

#

true what im confused how set on

crystal fable
#

then the response can be a json object

#

with the user info you need

lilac patio
#

so gonna have to pull out in jasn

crystal fable
#

yes

#

that's how most cross-site systems work

#

they have a central backend auth api

#

or use a redis server to manage the sessions

lilac patio
#

other thing is like 1 more, how gonna make users login from C# program too

crystal fable
#

same deal

lilac patio
#

when no data gonna be recive and php only option

small ermine
lilac patio
#

hmm

crystal fable
#

you can make HTTP requests in c#

#

including POSTing data

lilac patio
#

so ?username=name&passord=iguiguigiugf then verifys it

small ermine
#

nononononono

crystal fable
#

also C# has some nice serialization/deserialization methods for json

small ermine
#

😂

crystal fable
#

and nononononono

#

NEVER

small ermine
#

don't put the password in GET

crystal fable
#

EVER

#

PASS

small ermine
#

POST!!

crystal fable
#

THE DATA

#

IN GET

small ermine
#

😂

lilac patio
#

geez

small ermine
#

😉

crystal fable
#

always use POST

small ermine
#

OI!

#

XD

lilac patio
#

so how i pose do that in get even no way checks it

crystal fable
#

ALWAYS

small ermine
#

GET is not good

crystal fable
#

^

small ermine
#

for that stuff

crystal fable
#

^

small ermine
#

😦

lilac patio
#

well gonna have to ignore c# then

crystal fable
#

a POST request simply means there's more data

#

like when a form is filled out

#

it usually makes a request to another file

#

each field is then included in a field

#

and that field is sent as part of the request

lilac patio
#

how i gonn amake request even thow need something like ?username=

crystal fable
#

you dont

small ermine
#

:/

crystal fable
#

not a GET

lilac patio
#

this why fang not helping much :/ well om gonan leave out for now

#

and i cant make own auth

#

not that good ish

crystal fable
#

just do some research

#

it's really not that hard

#

the difference between GET and POST is that the variables are moved from the URL to fields

small ermine
#

POST is GET but hidden

#

😉

crystal fable
#

so people can't guess at the proper values

#

and bots

small ermine
#

^^^

lilac patio
#

well never made Post or Gets

#

so thats why i was struggle hall year for

#

for c# program work

#

im like screw it make local database test there

small ermine
#

how do I make an array from this stuff? I tried and failed 😂

lilac patio
#

@small ermine mine mostly sometimes failed but i break tuns stuff 100%

small ermine
#

Well I don't do much JS sooo

#

that's why I'm asking for help 😂

#

and then it'll be trying to run it since it's node

#

🤔

lilac patio
#

@crystal fable is this correct ?? $query = "UPDATE users SET email='$email', bio='$biosocial', twitch='$twitchsocial', mixer='$mixersocial', googleplus='$googleplussocial', website='$websitesocial', youtube='$youtubesocial', BGImage='$BGImage', avatar='$avatar', country='$region', firstname='$firstname', lastname='$lastname', mcname='$mcname', dob='$bday' WHERE username=$logged_in_user";

#

for update info

crystal fable
#

I have no clue I can't chat as I'm leaving for the airport

#

maybe @small ermine can help

small ermine
#

si?

#
$query = "UPDATE users SET email='$email', bio='$biosocial', twitch='$twitchsocial', mixer='$mixersocial', googleplus='$googleplussocial', website='$websitesocial', youtube='$youtubesocial', BGImage='$BGImage', avatar='$avatar', country='$region', firstname='$firstname', lastname='$lastname', mcname='$mcname', dob='$bday' WHERE username='$logged_in_user'";
#

except if you're doing an image

#

it's a bit more complex before just banging it in there

#

then you have to do something like ```php
if(mysqli_query($dbconnection, $query)){
//it works
} else{
//something went wrong, error handling goes here
}

lilac patio
#

ehh

#

ddint detect username logged in

#

@small ermine can ya check this ove rfor sec pls ❤

#
function edit(){
        global $db, $username, $errors;
        $logged_in_user = mysqli_fetch_assoc($results);
        $email               =  e($_POST['email']);
        $region              =  e($_POST['region']);
        $firstname           = e($_POST['firstname']);
        $lastname            = e($_POST['lastname']);
        $mcname                 = e($_POST['mcname']);
        $bday                   = e($_POST['bday']);
        $avatar              = e($_POST['avatar']);
        $twitchsocial         = e($_POST['twitchsocial']);
        $mixersocial         = e($_POST['mixersocial']);
        $googleplussocial     = e($_POST['googleplussocial']);
        $websitesocial         = e($_POST['websitesocial']);
        $youtubesocial         = e($_POST['youtubesocial']);
        $BGImage             = e($_POST['BGImage']);
        $biosocial             = e($_POST['biosocial']);
        $user_type = e($_POST['user_type']);
        $query = "UPDATE users SET email='$email', bio='$biosocial', twitch='$twitchsocial', mixer='$mixersocial', googleplus='$googleplussocial', website='$websitesocial', youtube='$youtubesocial', BGImage='$BGImage', avatar='$avatar', country='$region', firstname='$firstname', lastname='$lastname', mcname='$mcname', dob='$bday' WHERE username='$logged_in_user'";
        if(mysqli_query($db, $query)){
            $_SESSION['success']  = "Updated your Profile!";
        } else {
            $_SESSION['success']  = "ERROR: Could not able to execute $sql. " . mysqli_error($db);
        }
        mysqli_close($db);
    }```
#

cant find user

#

to edit :/

small ermine
#

you do global $username but then you do $logged_in_user...

lilac patio
#

what mean as that?

small ermine
#

change $logged_in_user to $username

#

in the query

lilac patio
#

did that

#

to me didnt changed

#

still same

small ermine
#

🤔

north flax
#

Both of you: Look up prepared statements.

lilac patio
#

what idid for name this

small ermine
#

😂

lilac patio
#

echo '<div class="profileinfo"><center><h3>'.$row["username"]."'s Profile</h3></center>";

north flax
#

Concatenating variables users can input into queryes like that is not safe at all.

lilac patio
#

thats on profile.php

#

well has login system 🤦

#

thats perpuse for

#

if look here? ```
<?php
include('../includes/functions.php');

if (!isVIP()) {
    $_SESSION['msg'] = "You must log in first";
    header('location: ../login.php');
}

?>```

#

thats output for login

#
function isVIP()
    {
        if (isset($_SESSION['user'])&& $_SESSION['user']['user_type'] == 'VIP' ) {
            return true;
        }else{
            return false;
        }
        
        if (isset($_SESSION['user']) && $_SESSION['user']['user_type'] == 'admin' ) {
            return true;
        }else{
            return false;
        }
    }``` this fuction i made from it
small ermine
#

ok

#

what's the problem with it

lilac patio
#

so means idk how get username

#

cant update stuff

#

like cant even find username :/

small ermine
#

if (!isVIP()) {

#

what's that

lilac patio
#

checks if users_rank is VIP+

#

or VIP

small ermine
#

does it work?

lilac patio
#

yes

small ermine
#

good

lilac patio
#

main problem this

#

```WHERE username='$logged_in_user'";````

#

cant find username on login

small ermine
#

session?

lilac patio
#

did that didnt came out

#

all gone is true

small ermine
#

XD

lilac patio
#

no fausle at all

north flax
small ermine
#

yeah I know 😦

north flax
#

Escaping the user inputs is not safe, and you should learn good habits from the start

small ermine
#

haven't got around to looking at pdo

lilac patio
#

what about ID

#

i can do by id if like

north flax
#

You can do preparet statements in Mysqli as well.

lilac patio
#

hm

#

rn i dont have clue of PDO

#

im not on that way i setup first place

small ermine
#

that's pretty interesting

north flax
lilac patio
#

no clue how that work

small ermine
#

humane, are you JS-competent? 😛

north flax
#

A bit at least

small ermine
#

Wellll

#

I got game data from ETS2, and I can log the data

#

but I want to get that to my API somehow, so I can put it in my database when the job is completed

#

i know how to do the completed bit

#

just getting it from the JS stuff to the API

lilac patio
#

idk why i got this still but meh i still got project key generator

#

for c# later on

north flax
#

You'll need to have the client finding the completed logs contact an api or something similar when the job is finished, then that api can put it in the database

small ermine
#

yeah

#

I have the data, I know how to determine if it's completed

#

I just don't know how to send it to my API

#

or what my API needs to be receiving

north flax
#

A restful api call is plenty. Just make a POST request with the data you need to store as POST parameters

#

And ofc with some sort of token or some way of verifying who the client is.

small ermine
#

how? 😂

#

I've only ever done GET the ID and show me the name and website

#

all online

north flax
#

Making an api listen to a POST request is identical to making the script that listens to i.e. a login form being submitted.

#

Making the request depends on the client, but all languages have simple-ish ways of making a http request

small ermine
#

I can do that on PHP/HTML... but I don't know how to get that stuff from a program

#

to the site

lilac patio
small ermine
#

since usually it's already on the site

north flax
#

The program should contact the site.

small ermine
#

yeah, but I don't do much JS

#

so I don't know how 😅

lilac patio
#

i coded nodejs with discord bots

#

and call discord bots be bad hammer on apis

#

like call them and checks them over

north flax
#

@glass rampart uses the Axios library to make a bunch of her requests

small ermine
#

ahh cool

#

let me fiddle

lilac patio
#

@small ermine this example i did mine

#

but thats only game side

#

depends try post in

#

@north flax is there way i can use apis i made corrently be exicuted 1 page

#

like for example Battlefield 4 and put username and press lookup then tells info below it

#

but all in 1

north flax
#

You can check if post parameters are present when you load the page to make it a single file.

Or oyu could make a javascript script that contacts the backend and gets the information it needs from your server, without needing to reload the page.

small ermine
#

That should send the data right??

north flax
#

At a glance it looks alright, but I can't remember the syntax for axios on teh top of my head.

small ermine
#

I copied it from their thing

#

then just put my data in instead of 'fred' and 'flintstone'

north flax
#

Then it's probably fine

lilac patio
#

whats easy way do it

north flax
#

You can now access the data it sends as POST parameters, so $_POST['steam'] etc

small ermine
#

ahh good

lilac patio
#

all my apis been called in php

small ermine
#

i'll have a look very shortly

#

sorry

#

wrong thing 😂

lilac patio
#

like i need easy way because im working on mobile app RN

small ermine
#

it's meant to say if the status is 2 or 3, and it was finished, thennnnN

north flax
#

You might want to add some parentheses to make sure it is parsed as you intend it to

lilac patio
#

with tuns game stats

small ermine
#

ah ok

#

but basically ok?

north flax
#

Put blah ===2 || blah === 3 in parantheses.

cinder spear
#
[2,3].includes(data.jobData.status)

for readability

#

although personal preference probably

north flax
#

Also a good option :p

#

REpresentational State Transfer (REST) is an architectural style that defines a set of constraints and properties based on HTTP. Web Services that conform to the REST architectural style, or RESTful web services, provide interoperability between ...

A Web API is an application programming interface for either a web server or a web browser. It is a web development concept, usually limited to a web application's client-side (including any web frameworks being used), and thus usually does not i...

small ermine
#

@cinder spear so that's the same but shorter?

cinder spear
#

it returns true if data.jobData.status is found in the array, which contains 2 and 3

small ermine
#

ah okay

cinder spear
#

so yes, does the same check

small ermine
#

nice

#

righty

#

my API works

#

I now need to test it going from my program.

wicked lava
#

1⃣ Got tagged in here?

small ermine
#

axios isn't working 😂

#

yeah I wanted to say It's almost OK

#

just won't send the data to my API because axios won't work

#

😛

wicked lava
#

The function request() takes two parameters: an object with the request options (typ, url, data etc) and a callback function

small ermine
#

example POST?

#

I don't get it 😂

wicked lava
#
const request = require('request')
...
request({
    method: 'POST',
         url: '/urlToYourPhpApi',
         data: {"key": value}
}, function() {
    //what to do after the request is accomplished
});```
small ermine
#

what if there's more than one thing to post?

#

and they say its key: 'value'

wicked lava
#

basically you pass a javascript object which is surrounded by {}. Inside that you can store all data you need by using the key-value concept.
For example, the data you're passing could look like this:
{driverId: 50, action: 'job accomplished', salary: 5000, jobFrom: 'Berlin', jobTo: 'Poznan'}

small ermine
#

yeah

#

except it isn't adding to my db

#

i tried without quotes, with quotes

wicked lava
#

try to replace the object by a stringified JSON like that:

data: JSON.stringify({...})

instead of

data: {}

#

additionally, add this property to your request options:

contentType: 'application/json'```
small ermine
#

I'm getting the info in the PHP API just with $_POST['this']

#

is that still OK?

wicked lava
#

I've never worked with php so I don't know how to process an ingoing http request

#

¯_(ツ)_/¯

small ermine
#

xD

#

well It'd send it as JSON

#

but it wouldn't because it doesn't have a name

#

🤔

cinder spear
#

PHP would parse as application/x-www-urlencoded by default

#

you can parse JSON bodies as well, but it's a little more complicated and PHP won't do it for you like it does $_POST

small ermine
#

:/

opal arch
#

Tracking users? kappa

small ermine
#

😂

#

seriously I can't get it to send!!

#

😭

lethal willow
#

@small ermine You still trying?

small ermine
#

yeah

#

now trying https-post

#

but it's just mess after mess 😂

lethal willow
#

Mind if I try the request too?

#

actually nvm, I'll test it locally, 2 secs

small ermine
#

k

#

😛

lethal willow
#

@small ermine add this as an option for request ```js
headers: {'content-type' : 'application/x-www-form-urlencoded'},

small ermine
#

I figured it out

lethal willow
#

also, for the callback, there are 3 parameters, error, response and body

#

error will be null if successful (obviously)

#
,
function(error, response, body) {
    if (typeof error === null) {
        console.log(error);
    }
});
small ermine
#

xD

lethal willow
#

@lilac patio bit late, but for random strings it's probably better to use ```php
bin2hex(openssl_random_pseudo_bytes(12))

small ermine
#

now i need my logger to work for other people

#

apparently electron is helpful

lethal willow
#

What are you trying to do?

small ermine
#

my logger (thing i was making) is node

#

but it needs to run on everyone's computer somehow 😂 preferably without doing all the faffing with node app.js etc..

lethal willow
#

well, there is node2exe, not used it but yeah. What are you trying to create?

small ermine
#

i have the logger app

#

to log jobs

#

but it's node

lethal willow
#

I assume you're using etcars-node-client?

small ermine
#

yeah

cinder spear
#

nwjs

small ermine
#

it's all done and works

#

except it has to be run tthrough cmd

lethal willow
#

Well, if you wanna keep it with Node, I'd say Electron is the best option, or just move it to another language like C#

small ermine
#

o.O

crystal fable
#

Electron is heavy on resources

#

Since it runs more code than windows

#

Be VERY careful

crystal fable
#

Also it's basically another chrome window

#

And since it's JavaScript anyone can extract resources from it to copy it

cinder spear
#

electron is overkill and built for applications with a UI

crystal fable
#

But people want the UI

small ermine
#

i don't have a UI

cinder spear
#

if all it does is log stuff, it doesn't need a UI

small ermine
#

it just runs

#

and submits

cinder spear
#

a tray icon is enough for such applications

small ermine
#

basically, is there a way I can install my app and the etcars plugin all in one? 😄

quick glen
#

C++ & Qt ❤

opal arch
#

OMG, I hate Windows ... always when I switch from Linux, I use Control + Alt + Arrows ... and it turns my screen GWfroggyFacepalm

small ermine
#

XD

cinder spear
#

change your linux keys to match windows and won't have that issue

small ermine
#

XD

cinder spear
#

ctrl alt arrows does nothing on my windows

opal arch
#

What version do you have?

cinder spear
#

1709

opal arch
#

I mean of Windows

small ermine
#

😂

nova sphinx
#

1709: Windows 10 Fall Creators Update.

cinder spear
#

...that is windows

#

lol

opal arch
#

Oh, LOL

#

I saw 17 and I thought you meant Linux. But there is no 17.09 picardfacepalm

cinder spear
#

and those are ubuntu numbers anyway

#

I use arch linux

small ermine
#

😂

lethal willow
#

I used to use Arch but I found myself switching to Windows a lot because of games, so just stuck to Windows in the end and just run nix on servers

cinder spear
#

I have 3 computers with different operating systems

small ermine
#

👀

cinder spear
#

Windows desktop for gaming, Linux and Mac laptops

lethal willow
#

I was gonna get a laptop, just never got around to it. I should.

small ermine
#

I did it! 🎉

#

I managed to get the app into a 6mb installer, that actually works quite well. It'll install the app to the desktop, then you just click the icon and it starts 😛

#

However, I would like to add some extra bits, but it's a great v1.0 for someone who barely knows any JS

#

😂

wicked lava
#

Not bad 👌

unkempt hamlet
#

So, I finally moved my Helper to Hetzner Cloud.

#

I am happy enough 😃

#

3 euro instance is pretty powerful

#

You can't find any cheaper in Russia anyway 😃

north flax
#

Let's just hope it won't be blocked within 2 days 😛

unkempt hamlet
#

It won;t be accessible in Russian but still will be working

#

That is what my goal was

small ermine
#

😄

opal arch
#

Here

small ermine
#

👋

opal arch
#

What API do you use to get those hours?

small ermine
#

Idk the steam one 😂 😂

opal arch
#

That is? 😄

#

URL

#

@small ermine URL, please 😄

small ermine
#

I have no idea 😂

#

It normally works

opal arch
#

Normally works thisisfine

#

I want the URL! 😄

small ermine
#

😂

#

The one steam gave me in the docs

opal arch
#

Okay, I will use Google 😄

lethal willow
#

@small ermine With the new Steam privacy settings, if they do not have game sharing (hours disabled in profile), you cannot get it from the API.

small ermine
#

Sooo

#

They have to choose to show it?

lethal willow
#

That is correct

small ermine
#

Ouch

#

Well I assumed that, so I've already put a note on the page

lethal willow
#

That'd work, but if disabled then it wouldn't (obviously)

small ermine
#

👌

#

It's total playtime I use 😂 😂

#

So let's not tick that

lethal willow
#

😛

small ermine
#

😂

small ermine
#

@unkempt hamlet were you having trouble with that interNyet in Russia troll

unkempt hamlet
small ermine
#

Bad pun

#

But worth it

#

😂

opal arch
small ermine
#

No it can stay 😂

#

I'm trying to get it redirecting

#

But it doesn't work so it's fine

opal arch
#

And fix selecting the game

#

It looks terrible 😄

small ermine
#

😂

#

I will

#

Probably use tickboxes 🤔

opal arch
#

"Give me the cookies!" Oh, please!

#

And with milk!

small ermine
#

😂

#

🍪

opal arch
#

I agreed with it and only cookie what I got was that I accepted it picardfacepalm

small ermine
#

😂

#

But the PHP session is kinda the same thing

#

I just wanted a cookie bar OkAY?

#

😝

opal arch
#

Huge cookie bar troll

#

Now I am not sure if I have it, too. Let me check 😄

#

Oh, I do not 😮
Please, no report! troll

small ermine
#

😂

#

You should have cookies

#

I love cookies xD

#

And wookies, but still

opal arch
small ermine
#

Wooop

#

🎉

opal arch
#

The website is ready for release (still many ideas to do), now I must write all texts 😄

small ermine
#

😄

#

Nah it's broken troll

opal arch
#

What? Are you sure?! 😠

small ermine
opal arch
#

Try it out on PrivatePage troll

small ermine
#

😂

opal arch
#

Creating a new page

#

I almost forgot how to do basic HTML structure picardfacepalm

small ermine
#

😱

#

+removerank Dev @opal arch

opal arch
#

😢

#

Just kidding. In 2 hours I believe I will be able to show you the result

small ermine
#

😄

opal arch
small ermine
#

PHPStorm 👌

#

😂

shy swan
#

Callum... please... not that big "emote"

#

You spam it everywhere now... TTL...

small ermine
#

😂

#

But it's coool

shy swan
small ermine
#

That cowboy one you did in TTL was good

#

The bloooob

shy swan
small ermine
#

😄

opal arch
#

You should send a big emoticon with SORRY troll

small ermine
#

😂

#

A joy with sorry written in the same emoji?

#

😝

opal arch
#

Yes troll

small ermine
#

😂

#

I do need that

opal arch
lethal willow
#

What were you coding with VS?

opal arch
#

Nothing so far. But once I tried it and it stopped responding 3 times in 10 minutes ... 🤔

royal wharf
#

😹 nice

#

Gotta love windows crashing for no reason

lethal willow
#

I mean, were you coding C++ or C#, or likewise, or something like PHP?

opal arch
#

PHP mainly

#

And since I have made an API for getting info from those servers, I can easily use it at this GWfroggySheepAww

small ermine
#

😂

#

😄

#

APIs are brilliant

lethal willow
#

Try Visual Studio Code @opal arch

opal arch
#

PhpStorm ❤ troll

small ermine
#

^^

lethal willow
#

I'd rather use something better for web development and coding in general, rather than PHPStorm

small ermine
#

Depends what you're doing

opal arch
#

Something better? What are you developing? 😅

small ermine
#

😂

lethal willow
opal arch
#

As I can read, PhpStorm is better for PHP. That is what I am doing 😄

lethal willow
#

Which is why I said web development and coding in general and not PHP.

small ermine
#

xD

#

It's personal preference though really

#

Doesn't affect the outcome

unkempt hamlet
crystal fable
#

I've got a pro cdn for that

unkempt hamlet
#

I've got Pro components anyway for free)))

opal arch
small ermine
#

👀

#

Looking good

#

I've updated my logger 😛

opal arch
#

Nice

small ermine
#

😜

small ermine
#

Hmm.

#

I've just tried taking a job

#

But as soon as I click the job to take it at the company, it crashes

#

MP, SP, with and without a logger 😂

#

Asking here because of this, and the fact that you guys might know

pearl badger
#

oof

#

@opal arch should make the graph lines like a ligt or dark green

#

or white

#

the black on the black background isnt nais

opal arch
#

Yes, I was talking with my designer

#

I was just testing it

pearl badger
#

:c

opal arch
#

Fixed already. I forgot to upload a plugin there 😄

pearl badger
#

also

#

should just make it show the last bit of the map name

#

so it would just show seek lakehouse 2017 by also replacing the _ with spaces

opal arch
#

I keep data only from last 6 hours ... ¯_(ツ)_/¯

#

Oh, this

#

It is map name

pearl badger
#

ik

#

but you should remove the workshop/844458766

#

by a simple string ✂

opal arch
#

Nah ... it is fine

#

But not bad idea to cut it, change _ with spaces and make it with capital letters 🤔

#

So it would be Seek Lakehouse 2017 GWfroggyWeSmart

small ermine
#

👀

opal arch
#

Also I was doing the app with notices. It crashes on every launch, I must fix it 😄

left fern
#

ah FML why does ETS2 crash without properly logging stuff... How the hell am I supposed to find out what I did wrong lol

small ermine
#

😂

#

Mine crashes if the logger I made is installed, even if it isn't running. Apparently uninstalling the logger fixes everything, even though all it does is change what it writes in the command prompt when you take the job..

#

So I'm concerned about that 😂

#

@crystal fable send welp kappa

crystal fable
#

Not my problem lol I'm also on vacation

#

Don't mess with the command prompt. Period.

small ermine
#

😂

#

I just changed what it did for console.log 😂

#

In the JS file

#

Except, the issue is when I take a job, and that just changes it from "no job" to "ooh, you have a job" 😂

#

And then uninstalling the logger makes everything work again

lethal willow
#

show code.

small ermine
#

Will do

opal arch
#

Do not! He will steal your code! troll

small ermine
#

😂

#

It's only when I get to the company and I click to collect the load. Then ETS2 crashes, but my logger starts telling me I've now got a load. So it seems like the logger is doing its job..

#

But the logger uses Visual C++ Redist. 2017, so idk if that's causing a problem, or if it's mod related, or graphics, or updates, or what. Honestly, it could be anything 😂 😂

#

But 1.0 worked, so it's something I did with 1.1, which means it might be related to the Redist.

small ermine
#

okay. Apparently it's only some loads..

small ermine
#

That. Is. Amazing. 😂😂😂

#

}02SHIs

lethal willow
#

That's something to do with invalid JSON. When I was parsing it I had several of those, some was related to the buffer size and some was just weird characters being thrown in for some reason.

#

I just added a try and a catch around the parsing of the JSON.

small ermine
#

But that shouldn't kill ETS2?

wicked lava
#

I'm currently facing an issue with a html video...
the progress slider doesn't show any impact... as soon as I move it, it jumps back to its original position and the video continues as if nothing had changed.
It occurs only on chrome, it works fine in Firefox/Safari.
Does somebody know how I could fix that for chrome?

#

<video class="video-frame" src="/media/video.mov" preload="none" controls="" poster="/media/vidplaceholder.svg"></video>

small ermine
#

🤔

opal arch
#

Do you remember when I was asking at Android notifications?

#

I got it. 😎

#
              Package: com.discord```
small ermine
#

😄

opaque vault
#

Some days ago I made in HTML an IP Lookup and it said
IP: <h1>

lethal willow
#

How is that even possible in HTML unless you're using an iframe?

opal arch
#

Finally ❤

old plank
#

Who is "GGF MD"? GWfroggyBlobWokeThink troll

opal arch
#

One big fail picardfacepalm

small ermine
#

😄

#

Still looking good!

opal arch
#

Thanks!

#

I used it firstly today while playing ETS2. I appreciated it since Messenger shows whole messages! 😄

small ermine
#

😄

opal arch
opal arch
#

But it is pretty interesting to develop Android app and desktop program at the same moment

small ermine
#

🎉

opal arch
#

"������" when someone sends me an emoji. Does somebody know how can be this fixed? 🤔

cinder spear
#

on Discord?

opal arch
#

No 😄

cinder spear
#

on Windows?

opal arch
#

I am connecting my phone with PC through sockets

cinder spear
#

it's because the font or application doesn't support unicode properly

opal arch
#

The application does. I have it on my announcement on the mobile

#

But not on the computer

cinder spear
#

or the application/platform the other guy is sending them on doesn't support them properly

#

too many moving parts to really know without knowing the full picture

opal arch
#

Yep ... so I will ignore it thisisfine

#

Thanks for help ❤

cinder spear
small ermine
opal arch
#

When you are too lazy ... thisisfine

small ermine
#

😂

#

Fair enough

#

That's pretty cool though

opal arch
#

Do you know what is coming next? 🤔

small ermine
#

If you're otherwise engaged and want to load it up

opal arch
#

Yes. I will use then one button called "ADMEEEEN"

#

Oh, wait

small ermine
#

😂 😂

opal arch
#

Too early

small ermine
#

😜

opal arch
#

My plan is to do sets then

#

I will click one button

#

And recording, logging and music program will start up + TMP

small ermine
#

Woo

opal arch
#
  • those announcements
#

small ermine
#

🙃 🙂 🙃 🙂

opal arch
#

Man

#

I was on the toilet

#

And I started up TMP

#

Beautiful kappa

rich flint
#

I bet it was pretty shit

#

😆

opal arch
#

😢

small ermine
#

😂 😂

#

That's the purpose

#

You load things when on the 🚽

#

🙃

opal arch
#

Okay ... now I set all my programs

#

Since it is my private app, I do not need any settings 😛

small ermine
#

😄

pearl badger
#

GWempMoan when people suggest feayures for 3rd party bots

small ermine
#

😂

cinder spear
#

It makes sense

#

If it's something already configurable, the Discord's admins can do it. If it's not, but they want it, they can forward it to the bot devs.

#

What has more weight? Some random guy asking for a feature that might not even get used or a manager of a Discord with thousands of people in it asking for a feature that would get used by them

cinder spear
#
701 upgraded, 44 newly installed, 0 to remove and 0 not upgraded.

whoops haven't remembered to update in a while

opal arch
#

So publishing my website ... ^^

rich flint
#

lmao

north flax
#

Hm, neat. Downside is that because of node's dependency mess I have no idea which of my dependencies use that dependency though.

#

Found it.

#

Well, it's a dev dependency of that to be more precise, but still.

amber oasis
#

I knew that, hence not updating deps blobcateyes

amber oasis
#

blobcateyes that moment you find that Virtualbox doesn't support nested hypervisor, and that it's been a feature request for almost a decade

crystal fable
#

VMware esxi ftw

amber oasis
#

esxi isn't desktop virtualization though

#

also esxi isn't that great

small ermine
#

O.o

#

o.O

amber oasis
#

o.o

small ermine
#

°-°

crystal fable
#

Actually it is

#

I can do everything via web browser

rich flint
#

Freenom you ass

#

It was free

north flax
#

Randomly says "Nope, not your domain anymore unless you pay", etc.

crystal fable
#

Lol gg

rich flint
#

well time to change EVERYTHING to my .uk domain now

molten dagger
#

That's outrageous for a none premium domain.

small ermine
#

😂

#

It cost me 6 quid for a .net from them

#

I'd complain

rich flint
#

like i got a .uk domain from crazydomains for £1.00 (then 80p VAT added and then i added protection on it too then discounts as well) which came to a total of £4.84 plus i saved a total of £6.75 from the discounts so lols

left fern
#

I got a russian domain for 5$ lul

unkempt hamlet
#

Russian domain for a 5 bucks? This is the most expensive russian domain I've ever encountered, @left fern

small ermine
#

XD

amber oasis
#

I can 1-up that blobcateyes

unkempt hamlet
left fern
#

Really? That was one the cheapest ones on that website o.O

small ermine
#

😂

pearl badger
#

Im making a automatic ets2 driving thingy 👀

#

step one is get the navigation working

pearl badger
#

daym navigation marker

crystal fable
#

how you building the maps?

pearl badger
#

I just steal the navigation thingy

#

Then blend similar colours to nearest 64

#

To remove noise and such like the dots

#

Then extract colours

#

Need to fix that navigation marker and also speed limit thing

small ermine
#

Can you not just make dots transparent or does it not work that way?

#

😅

pearl badger
#

noh

#

coz that wouldnt be easy

#

¯_(ツ)_/¯

#

they have gradients and they are semi transparent

small ermine
#

Ah ok

#

😂

crystal fable
#

What do you mean steal?

sweet hornet
#

Or you can disable dots...

small ermine
#

FiNaLlY!!

opal arch
#

Good job, mate! 😃

small ermine
#

😛

#

this is what I do at 7am 😂

opal arch
small ermine
#

no i got it working

#

but i changed the actual email content

pearl badger
#

@sweet hornet how 👀

#

well i mean its not useful anymore as i sorted it

#

but

#

¯_(ツ)_/¯

#

trying to find some sort of steering whell emulator thingy

#

👀 Keyboard steering still stucks

#

but it works!

#

it got stuck turned arround and started driving the wrong way but i mean it stayed on the road, just the wrong way

sweet hornet
#

In options just uncheck them

small ermine
#

😂

north flax
#

Kind of annoying when I plan a project thinking I'll use a language, then a day later I just can't decide what language I want to use for it x3

small ermine
#

😂

pearl badger
#

just use english 🎉

small ermine
#

XD

nocturne drum
#

Callum did you fix whatever you needed to fix

small ermine
#

Hmm?

#

With the emails orr?

nocturne drum
#

No my bitbucket access

small ermine
#

This probably isn't the place to talk about that bit, and no, I haven't had chance yet

#

😂

nocturne drum
#

Gr

small ermine
#

O.o

unkempt hamlet
pearl badger
#

Oof

#

Js

north flax
#

I found a python library with a "Hall of shame" in their docs for stupid questions x3

small ermine
#

😂

crystal fable
#

lol and I'm sat here working on my PHP final project

#

which is to build a simulated online store

#

minus the payment gate

#

not too hard, already halfway through milestone 2 of 3

small ermine
#

Wooop

pearl badger
#

🤔 only if you had flask

crystal fable
#

I know this is off of dev chat, but holy crap I just got done watching Anon for my film class

#

and holy sh*t it's awesome

#

"It's not that I have something to hide, I have nothing I want you to see." - Anon

crystal fable
#

Is anyone interested in testing ETCARS and it's webhooks?

#

(for delivery reporting)

small ermine
#

Maybe

shy swan
#

sure

small ermine
#

This is a really helpful feature if you need search stuff, it's great for my use, it puts the chrome 'tab to search' thing up

rich flint
#

😛

small ermine
#

👀

#

BIIIG embed image

#

I need that 😂

rich flint
#

I used these to do that and it works perfectly

<meta name="twitter:title" content="SgtBreadStick">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="https://sgtbreadstick.uk/">
<meta name="twitter:description" content="I'm a web developer that does many sites & a developer of VT-RPC.">
<meta name="twitter:image" content="https://sgtbreadstick.uk/img/Thumbnail.png">
small ermine
#

Ohh Twitter ones

rich flint
#

ye

shy swan
small ermine
#

😂

rich flint
#
<meta name="msapplication-TileColor" content="#007FFF">

This is also good for Windows stuff

small ermine
#

I'm using OGP

#

That's cool

#

I'll have to look at that eventually 😂

rich flint
#

Yeah, Freelance bootstrap to MDBootstrap, horrible going from one crappy thing to another new and better thing

#

Material Design is rly good tbf

lethal willow
#

Indeed

crystal fable
#

Mdb is gold

small ermine
#

😄

crystal fable
#

Even better when you get pro version for almost nothing

small ermine
#

Oooh

#

I'll have to take a looook 👀

crystal fable
#

well

#

I had a special deal go through

#

it's rather expensive

#

esp for a css/js package

left fern
#

anyone here got experience with ESP8266 (ESP-12E to be precise) and Arduino?

drifting wasp
#

Me

#

I literally bought one the other day 😂

small ermine
#

O.o

left fern
#

did you get it to work? Because I can't lol

drifting wasp
#

Struggling to flash the Firmware?

left fern
#

I got it conncted with an Arduino but I'm unable to upload stuff onto it

#

I wanted to try it with an "empty" sketch in order to test it via Serial Monitor but I'm getting errors when trynig to upload onto it from the Arduino IDE

crystal fable
#

Did you change it to the right kind of arduino in the IDE?

left fern
#

yep

crystal fable
#

and the com port

left fern
#

yup

#

it's not a com error

crystal fable
#

did you try resetting

left fern
#

yes

#
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed
#

I probably got some settings wrong, idk

unkempt hamlet
#

@rich flint MDB is really good indeed, but the development process suffer from Pro version...

crystal fable
#

Lol guess who has it... :)

drifting wasp
#

Ahh you’re using an Arduino, I didn’t, I just plugged it in with usb

unkempt hamlet
#

Also, New Material Design everyone! https://material.io/

unkempt hamlet
#

Uuum, I mean Material System

rich flint
#

Material System? gg

unkempt hamlet
#

Uuum, wait

rich flint
#

It's both

#

😂

unkempt hamlet
#

It is actually Material Design with Material System, Material Foundation and Material Guidelines

crystal fable
#

yeah

#

personally I still prefer mdb

#

still easier than that

unkempt hamlet
#

Uummm, Material Design is not a framework

#

It is a design system

rich flint
#

ye

#

Bootstrap+Material Design=Heaven For Web Devs

unkempt hamlet
#

MDB is the one of implementations (not so clever actually)

#

Also now MDB is old troll

crystal fable
#

beg to differ but whatever

#

rather assign 5 classes and import 3 javascript / css files to make it easy

#

it's what's being taught

unkempt hamlet
#

Btw, Polymer 3.0 should be much easier now. It uses ES components rather than HTML-imports

#

Btw, Google Sans font is AWESOME

small ermine
#

Oooh

royal wharf
#

I'm a programmer so

#

¯_(ツ)_/¯

small ermine
#

:joy:

crystal fable
#

omg yaaaassss

royal wharf
#

Konfig0 gonna hit us all 😖

small ermine
#

😂 😂

crystal fable
#

no joke, this legit was how I felt in one of my programming classes that was all about agile, c#, pages(not forms or new windows, or custom controls, meaning the navigation interface), and group work

royal wharf
#

lol

crystal fable
#

my group people screwed me over

royal wharf
#

😦

small ermine
#

They always do 😂

crystal fable
#

they knew nothing and basically caused me to flunk the final

small ermine
#

;-;

crystal fable
#

cause I had to do the work of 2 other people

#

in addition to my own

#

it was bad

rich flint
#

Do what i would do and say certain things they made but were very shit but things you made were good. That worked for me many times Kappa

crystal fable
#

Didn't work since it was graded as a group

#

Regardless of who did what

#

Which is gay

#

Not my fault Tom didn't do his part of the work, why should I be penalized

drifting wasp
#

^ watch the Language

north flax
small ermine
#

👀

cinder spear
#

I haven't had very good experiences with their previous book bundles and a quick google search about Packt isn't very convincing

small ermine
#

This was my day 😛 there's a couple of pages but they aren't fully PHPd yet

#

🙃

pearl badger
#

OH NO

#

@small ermine stop

#

WAT IS DIS

#

aaaa

#

the top text isnt vertically centred

#

the middle box is 1 px taller D:

#

you have to throw the entire site away

crystal fable
#

g.g.

left fern
#

😂 😂

rich flint
#

It removed the external link icons, removes players trucking, changes new logos to old ones too

#

So ye

#

I got bored so i did that

#

unfortunately i couldn't make it so it changed the forum logo to old one rip

small ermine
#

I've tried fixing it, it's fine

#

😂

unkempt hamlet
#

I love it

left fern
#

looks pretty neat

opal arch
small ermine
#

😂

crystal fable
small ermine
#

^

#

😂

crystal fable
#

my frustrations have been expressed

rich flint
small ermine
#

Ooh

lilac patio
#

@rich flint are sure better now 😛 no flood messages.

#

btw i got 2 radio stations now 😛 got normal mode and 2nd 1 mainly for Remix musics.

#

because i notice this then im like why not get 2 then 😛

sweet hornet
#

God praises the founder of phpmyadmin, I had to make a SQL diagram I tried using "Visual Paradigm" but unless I'd buy the full version they weren't letting me import my sql script, and then I remembered that pma has a tool for that 😍

small ermine
#

😄

lilac patio
#

rip SQL

#

well for me i need intergrate my SQL data from somewhere :/

cinder spear
#

SQL is great

lilac patio
#

gg bois

#

liveshare out

#

now time to use it more with development

lilac patio
#

no jokes but dat gif so fast cant even catch up gif

amber oasis
#

that prefix doe...

#

userhostile trigger 😛

small ermine
#

xD

#

&>°$€9çYj¶np kappa

amber oasis
#

lol

#

not every day you see a keyboard with ¶ available on any levels 😛

#

it's about as useful in every day use as ¤

small ermine
#

XD

#

I've seen that before

amber oasis
#

I know ¤ is often found on old lable printers when 8 bit letters that don't map nicely to ASCII gets downsampled to 7 bits, because bits was expensive 40 years ago

small ermine
#

Ah

amber oasis
#

or something along those lines

#

usually you get that or yen or similar

small ermine
#

I can't get it on my keyboard :(

amber oasis
#

I don't think I have yen on my keyboard either, but for some reason, ¤ is there x.x

small ermine
#

I have Yen

#

¥

lilac patio
#

lel well all bots sues my &! prefix all time

#

im like well &> not taken so i taken it

#

everytime i do &! like 10 or 50 bots exicuted with it

amber oasis
#

pst, you don't have to use special characters only for the trigger

lilac patio
#

well i tryed make as tag as prefix

#

but never worked well

#

@amber oasis it kinda not bad bot anyways, like i worked lot on there

#

thats all commands i have RN

amber oasis
#

smells copy of some other bot blobcateyes

lilac patio
#

nah

amber oasis
#

so you "made" a bot

lilac patio
#

this my custom coded

#

yes

#

100 liget coded it

amber oasis
#

Odd collection of game related commands blobcateyes

lilac patio
#

well most bots using Pyton

#

mine uses Nodejs

amber oasis
#

typically how pre-made bots are

#

that's not a staple of not being premade blobcateyes

lilac patio
#

well i coded mine frrom request addon

#

and get-json

#

thats files

amber oasis
#

as if that is any better sign blobcateyes

lilac patio
#

yeh

#

my bots

#

😛

#

all in 1

#

twitch, mixer, youtube, discord, steam bot in 1 coded

amber oasis
#

"your" bots blobcateyes

lilac patio
#

moatly replacement of this bot i mainly made as when discordjs was at 8.10 and i upgraded to v11 and broken tuns stuff back then