#programming

1 messages ยท Page 23 of 1

mossy cloud
#

What we do is we ask people to sign up on the TMP site, then we have a Discord Bot that sends us a message when we get a new application, as we have an email scraper that takes the email message then sends it through ๐Ÿ™‚

willow beacon
#

so when someone applies i will reply and send a code or something which they will have to send in the built in application where i will accept

mossy cloud
#

Do whatever works for you ๐Ÿ™‚

willow beacon
#

thats what im going to do

#

yep

#

thx anyways

mossy cloud
#

np ๐Ÿ™‚

opal arch
#

https://laracasts.com/series/laravel-6-from-scratch
@unkempt hamlet Well, yes, but actually no. Most of those episodes are short. In terms of the content, it is similar to previous series. The newer ones just have more frontend stuff

unkempt hamlet
#

Ah, I see

#

But anyways, 3.2 hours in v5 vs. almost 9 hours in v6

opal arch
#

I watched this serie and it was pretty good... 6 hours and 32 minutes. When I checked the version 6, there were not many changes, just more stuff about frontend

opal arch
#

But in general, I think it is the best series for starting with Laravel

unkempt hamlet
#

Indeed

quartz moth
#

So would you recommend using the learn laravel 6 from scratch then take a look at whats new in laravel 7?

#

Since there isn't a series for Laravel 7 from scratch

unkempt hamlet
#

Laravel has a new versioning scheme, so 6 vs 7 is not like 4 vs 5.

quartz moth
#

Ok so there isn't much difference?

unkempt hamlet
#

Pretty much.

quartz moth
#

Ok cool thanks

quartz moth
#

Using Laravel requests can you get post data by input type e.g retrieving all POST data that is a checkbox?

opal arch
#

That is not even possible as the browser does not send input types

quartz moth
#

NotLikeThis Worth a try but I think I've found a different solution

raw notch
#

@quartz moth set names as "chk_XXX" and loop all inputs, if starts with chk is a checkbox ๐Ÿ˜„ be aware not selected checkboxes are not sent in POST

quartz moth
#

Oo thanks for that I'm gonna try that

strong quail
unkempt hamlet
#

myBB what

strong quail
#

Will be webhook for Discord too in the upcoming update

#

Oh... You don't know it kappa

mossy cloud
#

MyBB's alright for starter forums :)

#

Less buggy than IPB you gotta give it that xD

raw notch
#

someone has a working example using a bootstrap 4 datetimepicker with webpack on laravel and mix?

shadow marsh
#

To all members, who are using *unix - OS' -> Which one can you recommend me for my "old" laptop? Currently is Win 7 Pro x64 Installed, but I want to change to Linux. I am known in Linux as headless Server (Debian 9) - now I want to try it out as real useable OS.

TIA^ Maurice B.

lethal willow
#

Ubuntu or Linux Mint Cinnamon I'd say

shadow marsh
#

Okay, which version exactly? The newest one?

#

probably yes

ember canyon
#

Ubuntu / Debian are likely the same.

mossy cloud
#

Hiya,

I have the following code (PHP, using Laravel) ```
try {
$IsUserBanned = $guild->guild->getGuildBan([
'guild.id' => (int)0,
'user.id' => (int)$discord->id
]);
} catch (\GuzzleHttp\Exception\ConnectException $e) {
//Catch the guzzle connection errors over here.These errors are something
// like the connection failed or some other network error

            $response = json_encode((string)$e->getResponse()->getBody());
            dd("test");
        }
This returns a 404, which is expected, but Laravel doesn't seem to catch this. I expect the 
```dd("test")```
 to be executed but it isn't and I get the error in the attached picture.
#

Does anyone have any ideas why it's not catching please? ๐Ÿ™‚

unkempt hamlet
#

400 level errors are handled by ClientException

mossy cloud
#

Thanks, tried that with use GuzzleHttp\Exception\ClientException; at the top but no joy sadly

#

And repacing the catch with \GuzzleHttp\Exception\ConnectException with ClientException obvs

unkempt hamlet
#

You can use RequestException if you don't care about the exact error.

mossy cloud
#

Someone just fixed it on the Laravel Discord, it needed to be CommandClientException ๐Ÿ™‚

#

But thanks CJ ๐Ÿ™‚

lethal willow
unkempt hamlet
opal arch
#

To all members, who are using *unix - OS' -> Which one can you recommend me for my "old" laptop? Currently is Win 7 Pro x64 Installed, but I want to change to Linux. I am known in Linux as headless Server (Debian 9) - now I want to try it out as real useable OS.

TIA^ Maurice B.
@shadow marsh it heavily depends how much you want to customize stuff, and how much experience you have with Linux.
For a beginner, as Nathan mentioned, I would recommend Ubuntu or Mint.

shadow marsh
#

Okay ^^ thanks :3 - well, I am working now over 2 years with Linux Debian 8 & 9 (headless, SSH) and as my Laptop is too good for threwing away - I want to use there Linux. No games will run except Minecraft. Programs like Discord, Google Chrome, LibreOffice are a good thing to run there :3

shadow marsh
#

Heyho - Now I am writing over Ubuntu 18.04.4 :3 Didn't know, that this laptop is that fast LUL Thanks for ur help, Shawny & Nathan catlove

shell egret
#

Anyone good at angularjs?

mossy cloud
shell egret
#

Not really, I'm looking for someone I can pay to do some backend work for me

mossy cloud
cinder spear
mossy cloud
#

๐ŸŽ‰

mossy cloud
quartz moth
#

Lmao

high sorrel
#

lol

north flax
#

Hmm. Set up a work queue, or do small background jobs like sending emails and whatnot by throwing them into coroutines in the main webapp

unkempt hamlet
#

It depends.

north flax
#

Ye, I am just trying to decide for this specific project x3

#

Main thing is trying to predict what kind of background jobs I might do in the future, whether I'll be running heavier jobs later on

mossy cloud
#

Are the emails time-sensitive?

#

If it's things like newsletters, maybe setup a cron job to send them out over time?

north flax
#

Transactional somewhat time sensitive to begin with, maybe things like notifications later

#

Gonna be running a separate cron process anyway, for that matter, so that I can easily scale out to multiple boxes without having the cron functions run multiple times

#

Tbh, a decent portion of this decision taking any time is my tendency to overthink it, trying to think too much ahead

#

Throwing most emails into coroutines would be fine for most of it. For mass emails later on, I can easily just use a coroutine to make batches, and let a cron job do the actual sending of that

mossy cloud
#

๐Ÿ‘

raw notch
#

mail send could fail and this throw an exception to UI or lose the email send. It's better to send them in a service bus, having a service listening on the service bus, taking the message and do what it have to do. Putting on a service bus only for emails, opens to a lof of other opportunities

north flax
#

Mhm :p

mossy cloud
#

Nearly at beta stage of my new site now, looking forward to sharing with you all for testing ๐Ÿ˜„

north flax
#

NootNet

mossy cloud
#

Sadly not but I should register that ๐Ÿ˜›

unkempt hamlet
#

It is occupied already

quartz moth
#

@mossy cloud I'd be happy to help test. Just drop me a DM if you want me ๐Ÿ˜„

mossy cloud
#

Will do, ta :3

shadow marsh
#

I would help you as well, Penguinthisisfine just DM me, if u'r ready :3

mossy cloud
#

We'll be in open beta soon, dw ๐Ÿ™‚

shadow marsh
#

"dw" means what exactly? ๐Ÿ˜…

mossy cloud
#

dw = don't worry ๐Ÿ™‚

shadow marsh
#

Ah blobcatthinksmart

#

thanks :3

cinder spear
#

so simple to configure and securely encrypted by default

ember canyon
#

noot.net is registered since August 1999 ๐Ÿ˜„ wow

#

tbh a webserver in go sounds interesting... but an all in one solution can never be that good...

#

no good admin would realise a WAF in his Web Server directly... caching... has to be an allround function, so no specialisation possible most users would deactivate it to use what they need... varnish/ES/redis etc

#

but as a reverse proxy it could be quite interesting

#

the reverse proxy with load balancing could rly be interesting... thats what i gonna check out at least ๐Ÿ˜›

cinder spear
#

it's highly modular

raw notch
#

TruckyBot has been verified!

shadow marsh
#

Congrats ^^

mossy cloud
#

Wooo well done

ember canyon
#

hm?

#

the discord bot?

shy swan
#

Mine as well Pog

mossy cloud
#

What bot do you develop @shy swan ?

shy swan
#

Last year, I made a bot for small servers with basic music, meme and moderation functions. It was in a some servers but then I shut it down mmLol

mossy cloud
#

Oh nice ๐Ÿ™‚

#

Still used though I guess if you got it verified

shadow marsh
#

Sad to hear.. but why did you shut it down?

shy swan
#

I started it two weeks ago to get verified kappalul I might rework some things.

shadow marsh
#

Oi nice ๐Ÿ˜„

shy swan
#

I didn't want to invest more time in the bot because ยฏ_(ใƒ„)_/ยฏ

shadow marsh
#

I also need to recode my bot.. but this time in JS instead of Java...

mossy cloud
#

That's cool though ๐Ÿ™‚

shy swan
#

Java kowalski

mossy cloud
#

Proper emote usage boi ^

#

๐Ÿ˜›

shadow marsh
#

It's the only known Language ๐Ÿ˜…

shy swan
shadow marsh
#

and I can code only Java... because Minecraft and so on # redicraft cough

mossy cloud
shadow marsh
mossy cloud
#

But honestly it works so well ^ Just discord login and use Discord for Nootifications

shadow marsh
#

๐Ÿ˜„

mossy cloud
#

Before we had to check a flag for VTC drivers to say they're drivers yea

#

Now it's just an automatic laravel gate, if they have the VTC Driver role in Discord, it'll show for them

#

Makes our lives so much easier for VTC Management

shadow marsh
#

that's cool ablobthinkingeyes

#

I tried PHP... but I failed xD

mossy cloud
#

Spammmm

shadow marsh
#

I know this also xD

#

The same on my report system xD Databasespam and Botspam xD (reports are saved in DB + will sent by Bot in Discord)

mossy cloud
#

๐Ÿ˜‚

shadow marsh
mossy cloud
#

Hope your sanitising those URL query tags ๐Ÿ˜›

shadow marsh
#

well, the webdev has left us... so we may do this in another way... or kick it completely out blobshrug the new Webdev is currently LOA (due to an good reason)

unkempt hamlet
shadow marsh
#

also... I don't know, why he wanted this URL... uuid of both players are saved in DB...

#

#stupiddev kappahmm

opal arch
#

I do not think it is bad to use PHP for the bot, tho

#

We also use a bit of PHP for @glass rampart due to Guest/User role

shadow marsh
#

Well, I want to convert the default bot from us from Java to JS blobshrug but the thingy is... I don't really understand JS notlikethis

unkempt hamlet
#

If it works, it works.

shadow marsh
#

It doesn't do anything anymore... due to the recent changes...

unkempt hamlet
#

You can always use a webhook

shadow marsh
#

Also... a good Discord Bot is written in JS, not?

mossy cloud
#

Good is if it works well, not what it's coded in ๐Ÿ™‚

unkempt hamlet
#

Good Discord Bot is written on the language you're comfortable enough.

shadow marsh
#

Hmmm, okay

#

Well, I need to download the latest JDA.... maybe then it works

unkempt hamlet
#

JDA?

shadow marsh
#

Java Discord Wrapper :3

unkempt hamlet
#

0_o

shadow marsh
#

I just know Java... thats it

unkempt hamlet
#

Ah.

#

PHP Discord client doesn't use Java, mind you.

shadow marsh
#

But I even don't understand PHP... or HTML... or JS or whatever PanSweat

unkempt hamlet
shy swan
shadow marsh
#

Hummm Lasse?

#

In which language is your bot written?

unkempt hamlet
#

English troll

shadow marsh
#

CJ LUL

unkempt hamlet
#

I am not wrong though

shadow marsh
#

Never stated it that you are wrong tho ๐Ÿ˜›

ember canyon
#

me in person dont cares which languages my devs are using as long as it is working and others can understand / read their code. i like php and python but my main dev loves JS ^^

#

...and everyone hates ExtJS ๐Ÿ˜„

shy swan
#

It's JS ๐Ÿ˜‰

#

Well, kinda. It's made with a software which uses JS but I created modifications for it to keep it up to date mmLol

mossy cloud
unkempt hamlet
#

Nah.

mossy cloud
#

?

unkempt hamlet
#

It is not so much conditional troll

shadow marsh
#

I feel with you, Penguin LUL

unkempt hamlet
mossy cloud
#

Wooo! Finally hit Public Beta ๐Ÿ˜„

#

https://plasmagc.com/ - Please tell me what you think, any suggestions or improvements I'd love to hear them ๐Ÿ™‚

unkempt hamlet
#

Duh.

mossy cloud
#

Don't attack it then kappa

#

It's Cloudflare, I'll take a look as what's blocking that

#

@unkempt hamlet Can you try again please?

#

Think it was our Geoblocking

unkempt hamlet
#

Working now

mossy cloud
#

Thankss ๐Ÿ™‚

cinder spear
raw notch
#

the menu in mobile act strange :D

mossy cloud
#

Thanks :)

ember canyon
#

What do you think about the design ?

sharp hinge
#

Mhm

#

Looks nice

mossy cloud
#

Minimalistic, but looks nice ๐Ÿ™‚

ember canyon
#

Thanks.

sick anvil
#

Hello all : )
If any of you know how to build job loggers for VTCs and would like to work with a VTC please do me a favour and send me a message : )

high sorrel
#

Kinda ๐Ÿ˜‚

cinder spear
faint sparrow
#

Hello

#

Im so dumb

cinder spear
#

under view

faint sparrow
#

cheers

faint sparrow
cinder spear
#

-=
:;

faint sparrow
#

oh thank you

cinder spear
#

you may want to start from basics of javascript before jumping into an extensive library

faint sparrow
#

im watching off youtube

ember canyon
#

Don't watch tutorial about Discord.JS. Most are outdated.

#

Learn JS first.

ember canyon
#

Erm

#

My website doesn't launch anymore

mossy cloud
#

What error do you get? @ember canyon

ember canyon
#

521

#

526

mossy cloud
ember canyon
#

Hm.

mossy cloud
#

You using LetsEncrypt?

ember canyon
#

Yes

mossy cloud
#

Do certbot certonly on SSH

#

That will update it

ember canyon
#

It's done. Thanks

mossy cloud
#

np, still showing invalid for me, make sure you restart your web server

ember canyon
#

Erm

#

My antivirus detect Linux Trojan

mossy cloud
#

That I can't really help you with, just check what the antivirus is picking up on to see why it's triggering it

ember canyon
#

I have done the backup, restarted apache

#

And now server restart

#

Now Err 521

#

Again

mossy cloud
#

521 is web server down

#

so in SSH do sudo service apache2 status

#

And it should tell you why it didn't start

ember canyon
#
   Loaded: loaded (/lib/systemd/system/apache2.service; disabled; vendor preset:
   Active: inactive (dead)
#
   Loaded: loaded (/lib/systemd/system/apache2.service; disabled; vendor preset: enabled)
   Active: active (running) since Sat 2020-05-02 13:29:05 CEST; 49s ago
  Process: 774 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=0/SUCCESS)
  Process: 725 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
 Main PID: 736 (apache2)
    Tasks: 6 (limit: 9830)
   CGroup: /system.slice/apache2.service
           โ”œโ”€736 /usr/sbin/apache2 -k start
           โ”œโ”€778 /usr/sbin/apache2 -k start
           โ”œโ”€779 /usr/sbin/apache2 -k start
           โ”œโ”€780 /usr/sbin/apache2 -k start
           โ”œโ”€781 /usr/sbin/apache2 -k start
           โ””โ”€782 /usr/sbin/apache2 -k start

mai 02 13:29:04 bot systemd[1]: Starting The Apache HTTP Server...
mai 02 13:29:05 bot systemd[1]: Started The Apache HTTP Server.
mai 02 13:29:53 bot systemd[1]: Reloading The Apache HTTP Server.
mai 02 13:29:53 bot systemd[1]: Reloaded The Apache HTTP Server.
#

Then

#

Here we are

#

@mossy cloud Thanks.

mossy cloud
#

Hmm, seems to be running

ember canyon
#

Back 526

#

Come on

mossy cloud
#

Works for me

#

Clear your cache?

ember canyon
#

Still

mossy cloud
#

I don't know then, sorry :/

ember canyon
#

Let's restart my computer then.

mossy cloud
#

You're running your web server from your computer?

ember canyon
#

Nope

ember canyon
#

@mossy cloud Thanks. it's done.

mossy cloud
#

np โค๏ธ

ember canyon
#

I had some Cert for multilanguage

#

So, it was checking for an another Cert

#

and it seem to loop

#

So I deleted the old cert and remanaged the apache2.conf file

strong quail
#

Yikes... I have issue with mariadb-server... ๐Ÿ˜
I've installed correctly with apt on my WSL Gen2 Ubuntu 20.04, but I forgot that I should run normally mysql_secure_installation instead of going with sudo...
And now I have no idea what to do, MariaDB doesn't even start right now...
Maybe I've crashed it so hard... ๐Ÿ˜ฆ

unkempt hamlet
#

Just remove WSL instance and install it again))

strong quail
#

Just remove WSL instance and install it again))
Will have to, I guess...
Meh... It's time to import again kappa

cinder spear
#

you could just apt purge mariadb

#

I think the exact command would be apt purge mariadb-server && apt autoremove --purge

#

might also need to remove anything left over in the data folders under /var

strong quail
#

Don't worry - sorted out.
Decided to reimport the build.
I purged earlier mariadb and removed some stuff, but I think that I removed some needed files so then it couldn't load in xd

sage rose
#
Exception thrown: 'Newtonsoft.Json.JsonReaderException' in Newtonsoft.Json.dll
An exception of type 'Newtonsoft.Json.JsonReaderException' occurred in Newtonsoft.Json.dll but was not handled in user code
Additional text encountered after finished reading JSON content: 3. Path '', line 2, position 0.

any suggestion? ETCars .Net SDK

unkempt hamlet
#

What is the text you're trying to read?

sage rose
#

I'm trying to read etcars telemtry data

unkempt hamlet
#

Check the text you're actually receiving.

sage rose
#

yeah i saw that and thats a real object but the fact is i'm getting somethink like that

    "data": {
        "status": "TELEMETRY",
        "telemetry": {...}```

what is this -> 17306
raw notch
sage rose
#

ahh i see

#

currenty i'm using that plugin

raw notch
#

etcars doesnt send data completely coherent

sage rose
#

๐Ÿค”

raw notch
#

because data are splitted in one than packet and you have to "build" it

unkempt hamlet
#

All data broadcast is in a JSON format with 1 exception. The string broadcast starts with an 8 character header that represents the length of the string broadcast.

raw notch
#

yes, it's not always a full json string

#

but need to be merged with next packets until the end of the string or next initial bit

lethal willow
somber linden
#

ETCARS is an old sdk which doesn't support the newest features that the current telementy by SCS Software provides. It may give you some data, although it might be incorrect as it's being old sdk. Additionally the telementy send the data by socket (localhost) in a raw format.

ember canyon
#

I've made my first plugins in WordPress

#

My new toolbar

willow beacon
#

This is kind of messed up the link for spring mod on tmp website can maybe download adware on ur system if you dont have a antivirus program like i do here

unkempt hamlet
maiden falcon
#

@willow beacon Thats just sharemods, not TMPs fault.

#

Its how they do their advertising

ember canyon
#

Kaspersky Good antivirus

willow beacon
#

Yes

strong quail
#

All right - it's time to dive into Laravel. :3
Azure is ready, I hope it'll work from the very beginning. ๐Ÿ˜‚
In the mean time maybe finally I'll finish site for my script so I can publish in Unofficial tools...

tardy smelt
#

You can setup Laravel on your PC first to do dev work locally

unkempt hamlet
#

homestead

mossy cloud
#

laragon ๐Ÿ˜›

cinder spear
strong quail
#

Hm... Idk, if I have my WSL with LAMP ready to program, is necessary to setup Laravel Homestead.

#

Or am I wrong? ๐Ÿค”

unkempt hamlet
#

Homestead requires Vagrant.

#

So Virtualbox or Hyper-V.

shy swan
#

Microsoft implementing Visual Studio Code into GitHub lol

strong quail
#

So Virtualbox or Hyper-V.
WSL 2 is using Hyper-V emulation

unkempt hamlet
#

Not quite

#

I mean, not like a standard virtual machine.

#

I am using Homestead (Hyper-V) for TruckersMP development.

strong quail
#

Gonna check

#

I mean - it should work ๐Ÿค”

unkempt hamlet
#

WSL is the (emulated) Linux environment. Why would you need to install emulator in emulation?

cinder spear
#

you don't need anything Windows specific when working inside WSL2

strong quail
#

All right - I'll move back to what I wanted to do that is to download dependencies with use of composer.

#

and then start to dev :3

unkempt hamlet
#

I've tried to use WSL for PHP environment and I wasn't satisfied.

#

Node.js is fine

strong quail
#

Well - I have some extensions that help me (Intellisense and Extension Pack by Felix Becker).
When I'll have ability to dev on my personal VPS in home, I'll dive into other languages.
Right now I limit myself to C++ and PHP

cinder spear
#

WSL and WSL2 are very different

unkempt hamlet
#

Yeah, but still.

#

There is a Valet port to WSL though.

strong quail
#

All right - it's working, now I can get to work :3

#

Do you have any good courses how to dev in Laravel? ๐Ÿค”

unkempt hamlet
#

Laravel from Scratch

cinder spear
#

there's laradock for running a dev environment via docker too

unkempt hamlet
#

Nah

#

I was the contributor btw peek

mossy cloud
#
quartz moth
#

Ye thats helped me ngl

strong quail
#

Thx guys. โค๏ธ

raw notch
#

@unkempt hamlet tmp API having troubles?

unkempt hamlet
#

Not now

raw notch
#

and when? :D

#

continue to have errors from servers api

unkempt hamlet
#

What's the error?

raw notch
#

don't know exactly, http call fails

#

and now I'm trapping it returning 0 servers as temporary fix

#

but as neither friends list is not working I think also player API is not responding correctly

#

I've done some fix from my machine and it worked, but from server seems having some problem. do you banned me? :D

unkempt hamlet
#

Are you using node-fetch btw?

raw notch
#

yes

#

do you banned generic node fetch client?

unkempt hamlet
#

Do you have a cache for user requests? Do you fetch staff profiles in batch?

raw notch
#

i have cache for all, no I don't get batch

unkempt hamlet
#

Do you fetch Discord accounts as well?

raw notch
#

yes

#

but it's not a news... it's 3 years I'm doing it :D

unkempt hamlet
#

There are certain moments when you fetch +100500 profiles in one second

raw notch
#

you know.. with 36 millions API requests per months..it could happen :D

unkempt hamlet
#

Not in bursts

raw notch
#

not voluntarily

#

are friends list probably, I have to fetch profikes

unkempt hamlet
#

Do you have rate limiting on your API?

raw notch
#

no

#

but it's check daily and I've no strange traffic when I have it, ban from cf directly

unkempt hamlet
#

Check 07/May/2020:17:13

raw notch
#

so you banned me? :D

unkempt hamlet
#

I guess it's your IP.

#

Those bursts causing our backend to 502 on other users.

raw notch
#

yes you are right someone tried to get profiles trough trucky

unkempt hamlet
#

Please add reasonable rate limiting as soon as possible.

raw notch
#

next time please notify me

unkempt hamlet
#

We didn't know that is you.

#

Your traffic is not tagged in any way.

strong quail
#

How they can know that this IP is yours :d

raw notch
#

I could add a User Agent in http calls

unkempt hamlet
#

That's gonna be great.

cinder spear
#

it's good practice to set your backend user-agent to point to your service

raw notch
#

should be good ๐Ÿ˜„

cinder spear
#

psst

User-Agent: <product> / <product-version> <comment>
raw notch
#

i havent a version ๐Ÿ˜„

cinder spear
#
httpRequest.DefaultRequestHeaders.UserAgent.ParseAdd("Ohbot/" + CurrentVersion + " (+http://ohbot.3v.fi)");

is what I use for ohbot for example

#
'User-Agent': 'modchecker/1.1 (+https://twitchstuff.3v.fi/)',

in a thingy without a real version

#

(I just hardcoded something)

raw notch
#

why (+url) ?

cinder spear
#

gives a canonical point of contact

#

although really I just did it because it's the way Googlebot's is Kapp

strong quail
#

Hm... Actually - if my script calls to main API from TMP, it calls User-Agent of the user's browser, am I correct?

unkempt hamlet
#

From the browser - yes

cinder spear
#

if it's the browser of the user making the request, yes

unkempt hamlet
#

If so, then catban

strong quail
cinder spear
#

but then it won't be your IP either ๐Ÿ˜‰

unkempt hamlet
#

Referrer athink

strong quail
#

Soon @ Issues @ arusf2011/tachograph

Halp mi, i have been banned from API

cinder spear
unkempt hamlet
opal arch
#

Soon @ Issues @ arusf2011/tachograph
@strong quail well, if you properly cache your data and do not send multiple requests, you should not face such issues

cinder spear
#

such a nice extension

unkempt hamlet
#

psst IndexedDB

raw notch
#

@unkempt hamlet btw i could have said a lie.. because those calls wasnt to tmp but only to mine.. it's an api doesnt rely on you

cinder spear
#

redis is nice

raw notch
#

is great not only nice

strong quail
#

(at)me well, if you properly cache your data and do not send multiple requests, you should not face such issues
In my case, I don't cache.
I call thru file_get_contents() function and then json_decode() on server itself.

opal arch
#

We use Redis for storing users kappa

strong quail
#

If I understand you :/

ember canyon
#

Wow

cinder spear
#

long term storign users?

unkempt hamlet
#

Please take some time to have a cache.

opal arch
ember canyon
#

PHp ftw

cinder spear
#

file_get_contents for http requests squishYikes

unkempt hamlet
#

I did that thing in my v2 of Helper, 3v... Didn't thought about using Guzzle

raw notch
#

someone from an aws machine is trying to scraping who is online

unkempt hamlet
#

That's why rate limiting exists

raw notch
#

every 15 seconds

strong quail
#

dammit kappa

#

file_get_contents for http requests (some emoticon)
Yeah - I'm from the oldish school. kappa

raw notch
#

@unkempt hamlet i rely on people good sense ๐Ÿ˜„

cinder spear
#

lacks error handling and any kind of header processing

opal arch
#

As I said, if you use PHP and fetch data from our API, there is not a single reason not to use our library blobcateyes

ember canyon
#

^^^^^

#

Easy peasy

strong quail
opal arch
#

And add caching, too, please

strong quail
#

Will need to add some code in order to manipulate it, maybe some class

unkempt hamlet
#

What is the error handling?
@file_get_contents($url)

cinder spear
#

"handling" LUL

#

that's like handling user input with a >/dev/null

opal arch
unkempt hamlet
strong quail
#

As for now I'll dive back into studying Laravel

raw notch
#

@unkempt hamlet user agent added

#

and which is good as rate limiting? tmp api doesnt expose particular headers in response

unkempt hamlet
#

Hm...

#

I mean, limit the rate for requests coming to you

raw notch
#

ye i know, i have to inspect logs to understand normal usage which rate limiting could hit

unkempt hamlet
#

I mean, realistically, 60 requests from one session is enough

raw notch
#

60 request per second?

unkempt hamlet
#

Minute

shy swan
quartz moth
raw notch
#

shit happens

rotund lance
sick anvil
#

Hello, is it possible to show a tracker's rich presence over TMP's one without having to disable TMP's rich presence?

raw notch
#

@sick anvil no

next pumice
#

oh wow...

mossy cloud
#

Hey guys, looking for some advice please, I've got a Laravel Socialite login with Discord on my site, but I'd like for it to be that the user is redirected back to whatever page they clicked the login button from after a successful login. I can't find what I'm looking for on Google, is anyone able to point me in the right direction?

unkempt hamlet
#

There should be a redirect method

#

Or you can do that manually

raw notch
#

@mossy cloud I've achieved this setting a temporary cookie before going to diiscord

mossy cloud
#

Do you have any example code you could share please? ๐Ÿ™‚

opal arch
#
Socialite::driver($provider)
    ->with(['redirect_uri' => "YOUR_NEW_URL"])
mossy cloud
#

Yeah I know that one, but it's setting that URL to whatever the user was last on ๐Ÿ™‚

opal arch
#

You can use url()->previous() for it afaik

#

Or save it to the cookie as downmeister suggested

mossy cloud
#

I'll give it a go, but I have a feeling that'll kick the user back to the discord login

#

I'll give it a go, thanks

raw notch
#

it's quite simple, store a cookie before going to discord when come back, check if cookie exists, redirect to the cookie value

#

like arriving to login page with ?redirecturl=xxx and login page saves the cookie if returnurl parameter exists

#

it's not a good solution tho, but it works :D

strong quail
#

Meh... Best error for today...
After moving databases to new MariaDB - Table 'some_name' is read-only... kappa

strong quail
#

Don't worry - I have workbench, will deal with it like that ๐Ÿ™‚

mossy cloud
#

Done the cookie method, thanks guys blobcatpenguinheart

#

All working ^_^

north flax
#

@mossy cloud Name suggestion for that emote: ":blobguinheart:" ๐Ÿ˜›

mossy cloud
#

๐Ÿ˜‚

#

@forest hedge made it for me โค๏ธ

north flax
#

Neat :p

mossy cloud
#

It's good the redirect got done, my biggest pet peeve with ETS2C is after you sign-in, you have to find the event again xD

shadow marsh
#

After having two commands for a ingame-reportsystem - I decided to rework the system.

The system checks, if the given user is online or not and it will be saved in the database + discord

View discord here: https://prnt.sc/sdpcvx
View database here: https://prnt.sc/sdpdsh

What do YOU think about it? (and yes, it's about minecraft x3 )

Lightshot

Captured with Lightshot

Lightshot

Captured with Lightshot

#

And also, I know, that "Hey + admin.getAsMention() + etc. -> I've done this as I don't want to ping my admins useless for testing xD

mossy cloud
#

I like it ๐Ÿ™‚

graceful belfry
#

does anyone know if the open source botranktir discord bot requires a database to connect to?

#

cuz i dont have a database lol

cinder spear
#

it requires a mysql database

#

it doesn't require much from it, so you can run one on the same server with the bot very easily

graceful belfry
#

Yeah lol. I got one but now im having issues implementing it into my existing bot

regal scarab
#

Hey Devs, can someone answer a weird question for me? I know 1.37 was released about 3 days ago from ETS2 and more than a week for ATS. Why was there a hotfix for MP posted Wednesday, but not a full conversion for 1.37?

opal arch
#

This is not a chat to talk to developers of TruckersMP ๐Ÿ˜‰

meager spoke
#

@regal scarab Next time use #support please

regal scarab
#

Shh, i read it wrong OK!?

ember canyon
#

Can someone invite me to the burple server ?

#

nvm

willow beacon
#

How does the verification for the server work

#

Where you must link your discord account to access all channels and I was thinking about doing in a server if it's possible

mossy cloud
#

It uses OAuth2 then a bot to give a role to users who added their account

willow beacon
#

Can I make the same system from this server work in another server?

mossy cloud
#

Yes, I have done for my server. You need an understanding of basic OAuth2 though

ember canyon
#

I use a WordPress plugins for my website

#

I'm working on a php bot for do this.

willow beacon
#

Could you help me do it?@mossy cloud

mossy cloud
#

Afraid not sorry, I don't have enough free time.

#

Google will help you out though!

willow beacon
#

Np thx

rugged copper
toxic turtle
#

If im gonna build up a website from scratch, which "platform" would then be best to start out on?

unkempt hamlet
#

What are your skills?

toxic turtle
#

0

unkempt hamlet
#

Learn HTML first

toxic turtle
#

oh haha

#

I can alittle, but not much lel

quartz moth
#

I think html and css would be a good starting point imo because it teaches you how to do all the front end @toxic turtle

#

Also JavaScript

#

If you can master all those then it becomes relatively easy to make what you want

#

If you learn those to a basic level then I'd recommend using frameworks such a bootstrap and jQuery as they massively speed up developing

#

Finally if you aren't familiar already, start using GitHub for your projects as it is really useful to keep track of code etc

toxic turtle
#

Hmm, well my level about html/php is decent, usually just using google when i get stuck on my line

#

Is GitHub also for webpage projects?

quartz moth
#

You can host any kind of code on there

#

It's good for version control and syncing between your dev machine and your host

toxic turtle
#

Hmm

lost rose
toxic turtle
#

Oh lol, theres a full video guide about everything on there ๐Ÿ˜ฎ

toxic turtle
#

Does anyone know how i delete a "repositories" on GitHub if i made a dubblicate by a mistake?

thick flower
#

Yeah, go to the repo, click settings -> options and scroll to the bottom and there will be a delete this repository button

#

Hope that helps

toxic turtle
#

OH, thank you SM!

opal arch
#

It is three years old, tho

#

But it still shows languages we use

north flax
#

Long time since I've had a look at anything related to TMP code, including those Gource videos :p

#

The client and server themselves are mainly C++ and Assembly, most of hte other languages are used for things in the libraries they use

quartz moth
#

But it only happens sometimes

raw notch
#

it happend to me yesterday on multiple users too

quartz moth
#

Ye it only does it with the default profile pic as far as I can tell

unkempt hamlet
#

@tidal zodiac ^ ohgodwhy

quartz moth
#

Oof xD

raw notch
quartz moth
#

I assume the 23% would be the default avatars @raw notch xD

north flax
#

Nah, if a user doesn't have an avatar it will just give you the url for the default avatar in the api, instead of an (incorrect) user specific url

#

Also, @raw notch, which monitoring/metrics system is that? ๐Ÿ˜›

raw notch
#

firebase

north flax
#

Ahh

raw notch
#

the firebase console like to app analytics, crashalytics and perf

quartz moth
#

Ye @north flax it does, however we said above that the default avatar isn't loading sometimes and giving a 502 error

north flax
#

Ye, I missed it since I skipped over it earlier today, before Dowmeister posted the screenshot :p

quartz moth
#

Oof xD

north flax
#

Anyway, might use the measurement api to throw app metrics into Google Analytis like that. The measurement collection api is simple enough

#

Or I might just throw it into Postgres, that would also work

#

Could try the postgres timeseries db extension

raw notch
#

@north flax firebase is really easy to implement inside an Android app or a react native app, also on iOS. is a bit challenging in react native because needed modules are a bit demanding as configuration and tweaks in dependencies but it work flawless

north flax
#

Not using react, I was thinking of metrics from requests I send from my serverside app :P
Also, those metrics are sent to Google Analytics, from what I see, so I can implement that manually

raw notch
#

ah yes

unkempt hamlet
sick anvil
#

How do I put some specific files into the plugins folder inside ETS2 folder when a user decided to install my application.

unkempt hamlet
#

Use an installer script, like Inno Setup or NSIS.

sick anvil
#

Could it be done using Visual Studio?

unkempt hamlet
#

I don't know what MSI installer is capable of.

cinder spear
#

you can do it with custom actions at least

ember canyon
shadow marsh
#

xD

strong quail
#

meh... Idk what's going on with MariaDB local server, but it's awkward...
In order to import to DB,... I need to firstly drop database to which I import xd

raw notch
#

@sick anvil registry keys, no need to put in a special directory

#

or inside the plugins directory in x64/bin of each game

mossy cloud
#

Showing off latest code project, inactivity calendar for my community (staff + VTC Drivers + CC) ๐Ÿ˜„

#

Using FullCalendar ๐Ÿ™‚

strong quail
#

Noice. ๐Ÿ˜Š

#

I'm still learning Laravel, but I'm starting to know more and more with every next lesson of the course.

opal arch
#

FullCalendar is really nice imo

quartz moth
#

Just a quick question. Krashnz gave me access to the ets2map API. Are there any other end points other then the one he provided or do I have to figure all that out based on the data provided?

north flax
#

There's 3 endpoints iirc, one for the full map, one for regions, and one for getting a specific player

quartz moth
#

Ok, does anyone know those endpoints because Krash only gave me the full map one?

unkempt hamlet
#

You can look at the ets2map source code in browser.

unkempt hamlet
cinder spear
#

for some reason I thought XP.css was somehow related to ets2map APIs

unkempt hamlet
#

That's a great idea ๐Ÿ˜‰

shadow marsh
#

Same, but if I would be known in Webdev. then I would do it this way x3 I love Win XP BlobAww

strong quail
#

How to deal with localization in Laravel?

unkempt hamlet
opal arch
quartz moth
#

Is the discord snowflake your discord ID because it's different to my ID?

unkempt hamlet
#

U wot?

quartz moth
#

On the API

unkempt hamlet
#

Your Discord ID is 237968676614045696.

quartz moth
#

Yeah

#

But on the API, the new response

#

The changes which Shawn said

unkempt hamlet
clear drift
#

lol

unkempt hamlet
#

Oh no

#

int...

shadow marsh
#

isn't a discord id a long?

unkempt hamlet
shadow marsh
#

String and long probably thisisfine (correct me, if I am wrong)

unkempt hamlet
#

Thank you for pointing that out.

shadow marsh
#

I am right - that's so rarely LUL

quartz moth
#

Np ๐Ÿ˜„

mossy cloud
#

@unkempt hamlet Great change thank you ^-^ Could the snowflake id be returned for VTC Members endpoint please? Would make it really easy to match up our list of discord users to VTC Members to make sure everyone on the VTC is in our Discord server

#

(Happy to write this up as a forum suggestion if you think its a credible suggestion)

unkempt hamlet
#

You can submit a suggestion on our Forum.

mossy cloud
#

๐Ÿ‘ thanks

unkempt hamlet
#

@quartz moth fixed.

quartz moth
#

PES_ThumbsUp Thanks for the update

unkempt hamlet
#

That field is string now.

cinder spear
#

IDs should never be treated as ints rooSip

unkempt hamlet
#

It depends

shadow marsh
#

^this

I mean - If I am coding my discord bot in JDA -> then it always wants a long or string (I prefer long)
My own ID-System has only 5 digits maximum -> so I can treat it as Integer ๐Ÿ˜„ (but if we(I) need a longer Number, then it's fast to update it ๐Ÿ˜„

toxic turtle
#

Is it possible to link up the VTC apply button for external website application?

meager spoke
#

Nope

But you can just put it in the website section

toxic turtle
#

Aw

tall pewter
#

is there a way ti make a free web no watermarks

shadow marsh
#

Yes - do it yourself blobshrug I mean - if you want to do this over a CMS you have mostly a Watermark in it - if you do it yourself, then only, if you code it in ๐Ÿ˜‰

tall pewter
#

@shadow marsh can i dm u

shadow marsh
#

You can - but don't expect an answer (I am not the person you are looking for)

tall pewter
#

are there any videos on how to set it up for free

#

??

shadow marsh
#

For sure there are - use google PanSmart but only designing and coding a website is still not enough - you need to host it somewhere and you also need to pay the Webspace then

tall pewter
#

oh so u cant do it completly free?

shadow marsh
#

Nah

tall pewter
#

oh

shadow marsh
#

If you don't want to code a website you need a CMS then (or you rent a webdev (if that's possible)) but both can be very expensive, depends on what you want to have

tall pewter
#

id code it

shadow marsh
#

Have fun then - but still, you need a webspace somewhere to host your homepage then ๐Ÿ˜‰

toxic arrow
#

If you have a second computer at home, you can turn it into a server

tall pewter
#

nope

quartz moth
#

It also takes a lot of time to code a website from scratch especially if you're new to it

tall pewter
#

well i just wanna do it for free

unkempt hamlet
#

It's in your own hands then.

tall pewter
#

but were do i host it

high sorrel
#

I believe you're after setting up a site for your new VTC?

shadow marsh
#

You need to rent a webspace somewhere (and this costs money)

high sorrel
#

It's not great, but there's a huge amount of smaller companies that will use Weebly, Wix, and other website builders at least temporarily while they're starting up, and then once things have gotten going they'll most likely switch or upgrade or something.

#

It's not my favourite option, but it does give you a lot of personalisation and it's great for a simple site when you're starting up

cinder spear
#

A short lesson in web application security:

  1. never put secrets in the URL
  2. be mindful of your referer policy

For example: Streamlabs OBS sending valid Streamlabs API auth tokens to my service API. (Don't worry, they fixed it after I contacted them)

mossy cloud
#

IDs should never be treated as ints :rooSip:
@cinder spear Question, why? We store our users Discord IDs as BIGINT but why would you recommend we dont do that?

sick anvil
#

Hello there,
My VTC's tracker closes by itself. When I run Task Manager it shows suspended. Why is that happening and what could be the possible solution to such an annoying problem? If anyone can help, that'd be great

shadow marsh
#

Well, I store ID's always as String + Bigint (and in the code as long) thisisfine

cinder spear
#

@mossy cloud because IDs should be opaque values. Forcing a type on them you arbitrarily limit the possible values IDs can have and in many cases have to do unnecessary parsing or type conversions.

mossy cloud
#

True, but at least in our case we know Discord IDs always have a certain type, and by limiting it we ensure only correct data can be inserted there.

#

Obvs I do validation checks as well but thats kinda a last defence on the Database

#

And we dont have to do type conversions becuase we write the code expecting it to be a (big)integer, because it always will be. If Discord change their snowflake ID system thats the only time we'll need to update our code

quick glen
#

@mossy cloud And right there you covered one of the flaws of storing it as a specific type. The big "what if it changes". As your application grows and grows, imagine the work it takes to a single value to a new type? Thats time wasted. You never know what change a 3rd party could do.

As an example: When TMP introduced arcade servers they added an A to the end of your server player id if you are on one. Before that all server player id's were integers. That change was done unannounced and without any info. If one were storing that id as an integer then poof. Instant broken application just like that.

I'll personally never trust external ID's and prefer to have them stored as strings. But its kinda up to whatever you want. Both works.

mossy cloud
#

I personally wouldnt agree it's time wasted, its necessary time spent, although we dont know what changes others may make, if we rely on 3rd parties, we as devs must make sure we're reacting to that and keeping up to it. Just setting everything to string when it doesnt need to be is laziness imo

opal arch
#

When TMP introduced arcade servers they added an A to the end of your server player id if you are on one. Before that all server player id's were integers. That change was done unannounced and without any info. If one were storing that id as an integer then poof. Instant broken application just like that.
ID's are still treated as integers. The ID prefix is just displayed, that's all

unkempt hamlet
raw notch
#

@opal arch I had always a question on that: why add the prefix?

#

I mean, it has some functional or programming reason in tmp code?

opal arch
#

So we know where the report comes from ๐Ÿ˜‰

#

If a player gets reported for blocking, and the "A" ID prefix can be seen, we know it is the arcade server for sure and thus, the player should not be punished

#

But to be honest, I would love to get rid of it. It just feels so bad to have the player ID as a string in certain situations

winter geyser
#

Is there a reason it taking so long to update for ats and ets for 1.37 support

shadow marsh
#

That's the completely wrong channel

Also I've got a question about Minecraft Java - You all know PermissionEx - I want to avoid PEx and want to code my own Permission system over MySQL (MariaDB) -> Can anyone send me points to figure it out? ๐Ÿ˜„

north flax
#

Haven't done it myself, but the org.bukkit api does include the basics for a permission system, so I think the main thing you need is to add permissions to user, and update them as needed

#

You can probably find more information about it by searching a bit

#

@shadow marsh

shadow marsh
#

Yeh, fine ๐Ÿ˜„ Thanks HumaneWolf :D

I asked here as maybe anyone may know something about Bukkit + Permission ๐Ÿ˜„ but thanks ^^

north flax
cinder spear
#

True, but at least in our case we know Discord IDs always have a certain type, and by limiting it we ensure only correct data can be inserted there.
@mossy cloud
Discord's API returns snowflakes as strings so you're already doing some conversion

mossy cloud
#

The RestCord library handles that so although true, not really my concern unless there's no package update ๐Ÿ˜›

cinder spear
#

bad library Kappa

Given that all Discord IDs are snowflakes, you should always expect a string.
โ€”Discord API Reference

raw notch
#

RestCord sucks :D

shadow marsh
#

JDA not feelsgoodman I can get IDs as long and Strings thisisfine

mystic ridge
unkempt hamlet
#

I am more exited about Windows Package Manager

somber linden
#

Hey guys,

I see most of you are talking about web development stuff but I'm gonna still ask this.
Does anybody of you know how to implement Scripting language such as LUA, Python, C# or etc to C++ project. Game Engine for an example.

cinder spear
#

Lua is almost certainly the easiest of the three

somber linden
#

Thanks

#

I know LUA is very easy and light but it also has its restrictions ๐Ÿ˜›

cinder spear
#

and C# requires compilation to bytecode for the .net virtual machine (similar to java)

#

(embedding .NET code in C applications)

somber linden
#

I will look onto them, thanks

ember canyon
#

Lua is a good language for beguinner

raw notch
#

maybe stupid question, {{ Form::text('query', null, array("placeholder" => "Search query", "class" => "form-control" )) }} this should reassign the input value with the posted value, right?

quick glen
#

@raw notch If I recall correctly you need to move the posted data to session flash data for it to show

raw notch
#

@quick glen I thought it is automatic...

opal arch
#

Was Form not removed in Laravel 5.0?

quick glen
#

^ Pretty sure about that

unkempt hamlet
#

It's a separate package now

opal arch
#

5 years without any update

unkempt hamlet
#

No, the other one

opal arch
#

What is the other one?

#

This one also includes Form builder

unkempt hamlet
#

Laravel Collective

raw notch
#

iirc I'm using it from add-on package but it's not what I've asked for :D

opal arch
#

Well, it would be hard to give you an answer if you were using something that is almost as old as TMP

raw notch
#

and what's the correct way in latest laravel versions to generate forms and manage values in postback?

opal arch
#

To generate forms? Write HTML. If you setup templates in your IDE, writing a form is a matter of a minute at max

#

If the form is sent, you can use old('field') in the view to retrieve its value iirc

unkempt hamlet
#

Not the most beautiful way, but more flexible

opal arch
#

I mean writing HTML gives you much more freedom than relying on a library and hoping it includes all features you need

#

Especially in something that is that trivial

#

PhpStorm has a template for input by default. I think that using it saves you more pain than writing echo for a form builder

raw notch
#

I disagree. I did several projects in MVC and Razor using similar html helpers and I think it's wonderful for standardize html components, if you haven't a method or a suitable override you can implement it but usually don't need to.
For example i find useful laravel html helpers to print select from an array or a model without doing a loop. or maybe there is another way and I don't know it

unkempt hamlet
#

@foreach?

#

Or even @each

raw notch
#

and have to print option bla bla bla bla

#

manage the selected value doing an if... why? it's stupid tasks a dev shouldn't do for each field, helpers are for this

unkempt hamlet
#
@each('view.name', $jobs, 'job')

Easy.

#

Selected value can be done with one statement

raw notch
#

so you implement a view to replace helpers?

unkempt hamlet
#

It's virtually the same, but helper is not that flexible as view.

#

imo

raw notch
#

for me it's not the correct way to do it . In Razor you can add extensions to HtmlHelper and virtually extend it infinitely to manage every view component without logic

unkempt hamlet
#

There is no "correct" way to do that ๐Ÿ˜‰

#

It's up to standards in your development

raw notch
#

for example I had Html.Icon to manage all icons via fontawesome, without writing the i tag every time, a day we decided to implement our icon font and I've changed the icon extensions not a find and replace in the whole code.

#

exactly, I've added "for me"

mossy cloud
#

Showing off latest code milestone, Dark Theme ๐Ÿ˜„

#

Really happy with it tbh โค๏ธ

unkempt hamlet
mossy cloud
#

Good shout CJ, thanks - Will take a look at those to make them a bit clearer, ty

unkempt hamlet
#

Looks slick, ngl

mossy cloud
unkempt hamlet
#

ahem old news page on tmp ahem

mossy cloud
#

Well I was impressed with how you've done it tbh, so thought I'd make use of it ๐Ÿ™‚ It's clear for the user that way

raw notch
#

format date without seconds :)

mossy cloud
#

๐Ÿ˜›

raw notch
#

open a ticket

#

:D

unkempt hamlet
mossy cloud
#

๐Ÿ˜‚

mossy cloud
#

blobcatpenguinheart Thank youu

shadow marsh
#

Well done, Penguin ๐Ÿ˜„ Is really nice ๐Ÿ˜„

unkempt hamlet
#

Just did a simple AHK script with canned messages for my Steelseries Apex 7 keyboard wheel

mossy cloud
#

Nice CJ!

#

Thanks Bailey

unkempt hamlet
#

I need to move that window to the OLED screen of the keyboard as well

quartz steppe
shadow marsh
#

XD

quartz moth
#

Lmao xD

#

True tho xD

opal arch
#

LOL

cinder spear
#

prints are useful until 1) adding the print somehow fixes the issue or 2) it's in a loop that goes a bazillion times

shy swan
cinder spear
#

but proper debuggers are so nice

shadow marsh
#

Well, I do it this way, in every step I do a bukkit.getconsolesender.sendmessage and/or player#sendmessage and so I can see, what it does or what does it not x3

#

after it works, I delete them afterwards

opal arch
#

it's in a loop that goes a bazillion times
I completely agree with this

cinder spear
raw notch
#

print in loops? picardfacepalm

mossy cloud
#

My debugging tool:
dd("nootnoot") ๐Ÿ˜‚

unkempt hamlet
tall pewter
#

is there away to get a free domain

#

?

shadow marsh
#

Afaik no - just buy one.. it's really not expensive unless you want one like .io or .game or whatever

high sorrel
#

There are free ones like .ml, .cf and .tk (and a couple of others) I believe, but they're not great ๐Ÿ‘€

#

There's a ton of different paid ones you can get on the cheap though, so I'd definitely recommend looking around for your favourite

unkempt hamlet
#

Most of the free domains are blacklisted by browsers and antiviruses

strong quail
#

Maybe a stuppidy question, but how you test Laravel projects? ๐Ÿ˜‚

unkempt hamlet
unkempt hamlet
#

Any of you using Prism Telemetry SDK? I can't find the info if blinkers state are available via telemetry?

#

I want to port keyboard lighting features to Steelseries

unkempt hamlet
#

Nevermind ๐Ÿ˜‰

opal arch
#

Found it?

unkempt hamlet
#

Yep.

#

I'd better merge Razer Chrome SDK data to Steelseries REST API.

strong quail
#

Well crap...

#

After moving my project etc, I hit the ground with error Declaration of Carbon\Translator::setLocale($locale) must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::setLocale(string $locale)

strong quail
#

Nvm - sorted out.

strong quail
#

I'll link to my first project so you can take a look.
https://pkm.arkadiusz-fatyga.eu
It's not so big (and still some things has failed at beginning and some work needs to be done), but it works. ๐Ÿ˜Š

mossy cloud
#

Might want to check your responsiveness :)

strong quail
#

Might want to check your responsiveness :)
For sure - I saw that. ๐Ÿ˜‚

mossy cloud
#

Great job though blobcatpenguinheart

strong quail
#

Thanks ๐Ÿ˜Š

shadow marsh
#

That's really awesome BlobAww

#

Which keaboard is that?

unkempt hamlet
#

Steelseries Apex 7

shadow marsh
#

Okay thisisfine

arctic mica
#

Looking nice, would be nice if I had that ๐Ÿ˜‚

unkempt hamlet
#

It's so dumb right now, basically I am grabbing API data from funbit telemetry app, then shoving it to steelseries rest api.

shadow marsh
#

But still.. a great idea thisisfine

#

You could implement this in TMP for those, who have this keyboard PanSmart

unkempt hamlet
#

Nah

mossy cloud
#

Great job CJ, looks awesome ๐Ÿ˜„

#

When you have the hazards on maybe have the [ ] flash green as well? ๐Ÿ™‚

unkempt hamlet
#

They do

#

It sucks that the keyboard doesn't have a neutral light state. Either a pushed state or black. Bummer.

mystic ridge
#

Very nice that you did a direct implementation of it. I've used software like Aurora and Artemis in the past to achieve something similar with my Corsair one
http://www.project-aurora.com/

unkempt hamlet
#

Wow

#

Does it catch Razer Chroma data from the game?

#

If so, then I have wasted a full day on that for nothing.

mystic ridge
#

I can't say I know if it works for Razer as I don't have any RGB Razer devices

#

And it's not wasted if you learnt something new :)

unkempt hamlet
#

And it doesn't work

mystic ridge
unkempt hamlet
#

Nah

#

It just hangs up in background and closes.

lethal willow
#

The dev branch seems to get updates

unkempt hamlet
#

It's working

raw notch
#

@unkempt hamlet ?

unkempt hamlet
#

That's why restcord sucks

raw notch
#

alternatives?

unkempt hamlet
#

Nope

raw notch
#

ah..

#

but..that's why... why exactly?

#

i dont understand that error

unkempt hamlet
#

Aurora pushes bitmaps instead on events, how clever.

raw notch
#

oh worked... is not restcord.. is composer ๐Ÿ˜„

unkempt hamlet
#

Well, Aurora is cool, but janky as hell.

clear drift
#

damn that keyboard is cool

wanton sigil
#

Yes is so cool

shadow marsh
unkempt hamlet
#

What's this?

shadow marsh
#

that's for the console... I thought I can decorate it a bit... otherwise I just see something from SLF4J and JDA...

unkempt hamlet
#

Your project - your rules Pavel_approves

meager spoke
shadow marsh
#

also true thisisfine wanted just your opinions - I prefer it non-cursive ๐Ÿ˜„

strong quail
#

This cursive text makes for me flashbacks when the trojans were written in 80s/90s...

#

(maybe I'm too old for my age... kappa )

last spindle
#

lul

clear drift
#

cursive is for lazy people like me who want to write faster lol

celest musk
#

I have my own company on Ats,let me get to the point how do you make truck delivery show up in the discord server when you are done delivering the load.

#

I need help.

unkempt hamlet
#

It's a third-party software, you can search for them in Google.

celest musk
#

What is some third party software.

wind locust
#

I wanted to ask. Is there a discord bot able to send private message for a specific role from the members on the server?

strong quail
#

You can use Dyno, but you need to create a custom command afair.

#

Now to my topic (with which I came here) - I've updated my website.
Made some tweaks to layout of some things, check it out right now. ๐Ÿ˜Š
https://pkm.arkadiusz-fatyga.eu/

raw notch
#

anyone has experience in securing api in Laravel without using the UserModel but something else like an ApiClient model? i'm trying to use https://github.com/tymondesigns/jwt-auth but it's not really clear how to use it with another Auth Guard.
auth.php -> guards

'jwt' => [
            'driver' => 'jwt',
            'provider' => 'apiclient'
        ]

auth.php -> providers

'apiclient' => [
            'driver' => 'eloquent',
            'model' => App\Models\API\ApiClient::class
        ]

and then using the middleware auth:jwt

GitHub

๐Ÿ” JSON Web Token Authentication for Laravel & Lumen - tymondesigns/jwt-auth

unkempt hamlet
#

$token = auth('apiclient')->attempt($credentials);?

raw notch
#

@unkempt hamlet actually if i call the route with middleware auth:jwt it redirects to the homepage

unkempt hamlet
#

What version?

raw notch
#

5.8

#

(I know I should upgrade)

unkempt hamlet
#

I mean jwt-auth

raw notch
#

ah latest from composer

unkempt hamlet
#

Did you add a routes?

raw notch
#

yes using middleware auth:jwt

#

and that route redirects to homepage

#

otherwise there is a good jwt composer package to use to implement a custom middleware?

mossy cloud
#

Just a thought (I could well be wrong here, take this with a pinch of salt) if Laravel is 5.8, wont it need to be registered in your AppServiceProvider so that the facade can be used?

raw notch
#

5.8 should have autodiscovery. but I've registered the provider too

ember canyon
#

How to install TruckersMP on Linux

Open a terminal.

#

And do
sudo rm -f /*

#

I hope you've liked my tutorial

raw notch
#

finally, I've solved the jwt thing implementing my own middleware

north flax
#

Hmm. Thought of a method that would make it possible to implement synchronized jobs and a server economy by seriously abusing save game loads :p

#

to be slightly more specific, a method that doesn't require reverse engineering the game itself to work. You could still improve it with reverse engineering though, making a way for you to trigger save loading externally so that the user doesn't need to do it

ember canyon
#

Can I talk with the creator of @glass rampart ?

#

in DM if possible

north flax
#

You can ask questions here. It's been written on by a bunch of people throughout the years of her existence

ember canyon
#

Cause I think that I have a part of the Token

#

Soooooo

north flax
#

In that case, I think @opal arch might be the person to message

#

Dunno if he owns the bot "account", but iirc he has at least written a bit on it after I left the dev team

opal arch
#

Yes, we own the bot as a team, though

#

@ember canyon can you send a message to @opaque oriole, please?

north flax
#

If there is a vulnerability allowing someone to get part of the config, I'd like to hear the details after it's been fixed

opal arch
#

Same, to be honest ๐Ÿ˜„

#

I am not aware of reading the config anywhere where it would allow to do such a thing

#

Except for eval which is available for owners only, of course

north flax
#

Neither am I, based on what I remember from when I last worked on it

opal arch
#

It has changed a lot

#

And soon, it will be done in TypeScript ๐Ÿ˜„

north flax
#

Ah, nice. I started a TypeScript rewrite ages ago, but never finished it

ember canyon
#

I can say that I have ModMailed it

meager spoke
#

Are you sure?

opal arch
#

@hazy night is rewritten to TypeScript thanks to @cinder spear. I am now finishing the v2 of it

#

@meager spoke he has, I moved the ticket

meager spoke
#

Ah, haven't seen it then

#

My bad

opal arch
#

No worries, I was quick meowninja

shadow marsh
#

Shawny is fast ๐Ÿ˜„

ember canyon
#

@opal arch I hope that you did not stress a lot when I sent it.

opal arch
#

Nah, the bot just manages a guild with 102k members, I have not really stressed kappa

#

Even though I have not been aware of any issue

ember canyon
#

Fun fact.

#

If you reset the token.

#

The start wont change

north flax
#

Long time since I looked at a bot token, but guessing the start is the bot id or something, not the secret

opal arch
#

@north flax I will send you a message

meager spoke
#

My bot runs on node.js kek even lethal is better then me

ember canyon
#

@north flax Bot ID in base64

#

Sent you in your DM

north flax
#

Only thing I've used nodejs for in the last year is compiling a vue and an angular app

#

I think

arctic mica
#

๐Ÿ˜‚ Chris

mossy cloud
ember canyon
#

I'm using Node.js for my bot too

#

But I lost the main file

#

๐Ÿคฃ

#

I had to use the dev version

cinder spear
#

should use git

pallid shell
#

How to install TruckersMP on Linux

Open a terminal.
@ember canyon well its possible to play on linux u know right

ember canyon
#

With Wine

#

I kno

#

know*

raw notch
#

what's wrong with bots in nodejs or node in general?

north flax
#

Nothing, really. The lack of type safety can cause issues, it can enable front end devs to write insecure back end code, etc, but node in itself is fine

#

It's good at some things, not at others, like most other languages and runtimes

#

I'd argue nodejs can be good for a bot, because it's easy to write quick async code to handle events in real time

#

If you want to do heavier or time consuming calculations, however, you might want to use something else if you want it to be optimal, since heavy calculations are not a perfect fit for it's event loop. That something else can be in addition to nodejs though, doesn't have to replace it.

inner elbow
#

ah

unkempt hamlet
raw notch
#

@north flax yes, it depends, as always

#

and btw, for type checking, there is TypeScript

north flax
#

Ye, you can use Typescript. I prefer TS over JS myself

#

You can also write Kotlin/JS for node

#

Haven't tried that myself though, but can be good if you want to use the node runtime in a kotlin environment

raw notch
#

personally i love node but only for some uses

cinder spear
#

you can also use wasm in node but at that point why not just write directly in the language you're using

north flax
#

Main reason I can think of would be to run it on the node runtime and use the event loop

raw notch
#

async is quite good as you know how to use it without impact performances, actually the event loop is really hidden, just take care of way you use async and in some scenarios, be aware of the single thread

#

Trucky use widely async on app and on API, mostly with await but there are many cases when await is used inside foreach or big loops, implement custom promises or use cascading .then() is better than many await

quartz moth
unkempt hamlet
quartz moth
#

Thanks CJ, summernote seems good so Im gonna try that ๐Ÿ˜„

unkempt hamlet
quartz moth
#

Didn't even know that was a thing xD

#

No life trollrun

shadow marsh
#

lol

#

is this also possible to see that in eclipse lurking

ember canyon
#

Someone have a problem for reduce gif weight

shrewd skiff
#

Hi, is there still a lot of bug for the update ?

unkempt hamlet
#

This is not a place to ask questions about TMP updates.

shrewd skiff
#

sorry ! i didn't read the descripiton of this channel sorry

mossy cloud
#

Can anyone recommend a good rich text editor. I saw https://quilljs.com/ but was wondering what everyone else used?
@quartz moth We also now use Summernote ๐Ÿ™‚

jovial jetty
#

Tbh, I personally like VSC for what I do & works very well.

unkempt hamlet
#

What are you talking about?

lost rose
#

He talks about Visual Studio Code lol

unkempt hamlet
#

I know, but there was no conversation prior to it thonk

jovial jetty
#

Exactly ^ Didn't read it properly lul

#

I'm tired, leave me Kapp

raw notch
#

stupid question: how to upgrade from laravel 5.8 to ^6.0? i've updated composer.json and then composer install, nothing changes, tried to launch composer require laravel/framework:^6.0 but php artisan --version still returns 5.8.

opal arch
#

If you change it in composer.json to ^6.0, you need to run composer install

#

If that does not work, you might be using dependencies that do not support the newest version, and therefore, the installation is not successful

#

Check the log for more information

raw notch
#

and i did it, actually i managed with composer update laravel/framework after changed the composer.json

#

but the problem is now dependencies

opal arch
#

That they do not support Laravel 6.x? blobcateyes

raw notch
#

@opal arch yes I think they do, but I have to update them one per one verifying which version is good

opal arch
#

You can just check them on Packagist

raw notch
#

but always one per one

opal arch
#

But you can quickly open the page and go through versions

strong quail
unkempt hamlet
#

It requires jQuery v1.x

strong quail
#

Runs away kappa

strong quail
ember canyon
#

Hello creators of TrucksMP, do you have any chance of placing this vehicle? Just for curiosity

glass parcel
#

for what?

#

more trolling?

ember canyon
#

more trolling?
@glass parcel When the world is perfect, you and I will probably not be here to see where cars and trucks go smoothly, without accidents
Sorry : (

glass parcel
#

i dont see any reason for putting this in a TRUCK simulator

#

skoda drivers are just trolling around

trail eagle
#

i dont see any reason for putting this in a TRUCK simulator

unkempt hamlet
#

This is not a place to suggest something for TruckersMP.

raw notch
#

where i can report a "bug" in the TMP PHP API client documentation on github? i'm not sure it's a bug or simply a different way to do the same thing. here or in the forum?

unkempt hamlet
#

Make a github issue athink

raw notch
#

oooook

opal arch
#

Added groupColor to the /v2/player player API endpoint

#

Just a little update to the API

quartz moth
#

Oo thanks for the update Shawn

wicked prawn
#

Anyone know how I can make paints

#

For trucks and trailers

#

Will it work In GIMP

unkempt hamlet
#

GIMP?

wicked prawn
#

Photoshop

#

Like do I make it with a photoshop software

unkempt hamlet
wicked prawn
#

ETS2 k

raw notch
#

laravel is creating session cookies on domain with leading dot so they will be valid on all subdomains but i dont want to. SESSION_DOMAIN env is without leading dot and session.php under config doesnt change this value. Any ideas why? it's by design?

unkempt hamlet
#

Huh, I don't see that happening on our website. Looks like it's the feature of latest versions.

raw notch
#

it's 5.8

#

@unkempt hamlet have you SESSION_DOMAIN env explicitly configured or is null/empty/missing?

unkempt hamlet
#

It's null iirc

#

So as by default

raw notch
#

must be that one... if defined, laravel add a . .... it's strange and dangerous

mossy cloud
#

Git are trying to drop the term 'master' which is going to break a metric ton of stuff

cinder spear
#

if people want to take the time to use more inclusive naming and make it easy, I don't see a problem

unkempt hamlet
#

It doesn't make any sense

cinder spear
opal arch
#

Did you change it? Or is it default now?

#

also, SCS uses naming "slave trailer" for the second trailer... is it also non-inclusive?

cinder spear
#

I just changed it

quartz moth
#

I don't see any problem with the word master in the way its used in GIT

#

It all depends on the context it's used in. Any word can have bad connotations if it's used in a certain context

#

ยฏ_(ใƒ„)_/ยฏ

ember canyon
#

git itself can be used wrong in a certain context xD

raw notch
#

at work se use Dev - main - release but not master (and not on git, on tfs)

ember canyon
#

ESX Framework (FiveM)
Use Legacy - master - dev - antishit - jobs

mossy cloud
#

master
penguin

#

๐Ÿ˜›

unkempt hamlet
cinder spear
#

neat

shadow marsh
#

Why "oh my" what do I not see lurking

cinder spear
#

new design with tags

#

with more information on the repository home page in general

unkempt hamlet