#programming

1 messages ยท Page 22 of 1

mossy cloud
#

I highly recommend w3schools also, very useful :)

shadow marsh
#

okay, well,I'm busy now with learning dragonlaugh

quartz moth
#

Good luck KappaPeak

ember canyon
#

@shadow marsh. Or if you are too lazy you can have Wordpress.

shadow marsh
#

Nono, I used it, but i cant do that, what I want ๐Ÿ˜„

strong quail
#

There are plenty of software that u can use in order to develop Web App.
I personally started from N++ and XAMPP combo.
Nowadays, however, I use Visual Studio Code and WSL (Linux Subsystem for Windows - perhaps it's available on Win10 Home, but I'm not sure ๐Ÿคทโ€โ™‚๏ธ ).
The combo of VSC and WSL is a bit complicated at start, but after some time u will get use to it.
In my technical school my other classmates used Brackets (a bit the same like aforementioned VSC).

unkempt hamlet
#

Wow

north flax
#

Hm. Found a project today which uses Laravel for their web app, and for their discord bot. It's simply a laravel console command :>

unkempt hamlet
#

Hm.

north flax
#

That's a somewhat long file though

#

I think I would have split it up a bit, maybe make a namespace for Discord commands and just import them in that file ๐Ÿ˜›

unkempt hamlet
#

Exactly.

north flax
#

Speaking of which, has anyone touched on the recruitment system after I left, @unkempt hamlet ? ๐Ÿ˜›

unkempt hamlet
#

I, me and myself.

opal arch
#

And what about me and JM? ๐Ÿ˜ฆ

unkempt hamlet
#

Checking the commits rn. Indeed.

#

But I was the last one troll

north flax
#

There are a couple of things I'd have done differently today. I'd gotten rid of most of the template stuff, for example, and instead just have a is_template flag on a recruitment ๐Ÿ˜›

opal arch
#

Well, indeed, but that is not the case only for the recruitment system. Even stuff we did after you left could be done differently (and better)

north flax
#

Nah, the recruitment system just has one of hte big things I still remember xD

opal arch
#

Well, the recruitment system was done almost the same way like the Discord bot above you sent ๐Ÿ˜„

north flax
#

Ye, that controller was pretty long. Not that it's a huge problem, but should maybe have been split into more modules :p

opal arch
#

And it did not use many Laravel features either see_no_evil_gif

north flax
#

Could have used the validator more, couldn't be arsed to xD

opal arch
#

That, too

#

But well, if it was split into more modules, their controllers could be done as resource ones which would do our work easier, too

#

Sadly, as I already said, this does not apply only to the recruitment system

north flax
#

Still better than old website, afaik xD

#

But yeah :p

opal arch
#

Better than v1, indeed. But as we all are getting more skilled throughout the time, these mistakes make the future development more painful

north flax
#

I mean, getting more skilled means spotting them more and having the ability to clean up as well though

opal arch
#

I wish I had more time to clear all these mistakes ๐Ÿ˜„

north flax
#

You need to invent something to give you more time xD

opal arch
#

Drop the school out XD

north flax
#

Might not be ideal xD

opal arch
#

Indeed, dropping out only because of a hobby project

north flax
#

Drop TruckersMP to make more time to developer TruckersMP things kappa

opal arch
#

Well, it would not help me much if there is not much time for TruckersMP ๐Ÿ˜„

#

But then it is also a question of priorities. Whether I should work on the website, @glass rampart or the game

north flax
#

Botdottir should be able to be self maintained for a bit, unless you've changed her massively ๐Ÿ˜›

#

Except patching security issues anyway

opal arch
#

Well, she was completely rewritten in April 2019. But still, I had a lot of plans for her

north flax
#

And major bugs, which I think she hasn't had many of

opal arch
#

She was bug-free before, indeed

#

Later, we developed some bugs for her kappa

north flax
#

xD

opal arch
#

But that is also because I was not that experienced back then. Now I would definitely not go for pure JavaScript after experiencing TypeScript in a side project

north flax
#

Yep, I was thinking the same for a while, but I never got around to finishing any rewrite

opal arch
#

Ye, they take so much time ๐Ÿ˜„

north flax
#

I know tux thought of making her in C# originally, actually

#

That never got far though

opal arch
#

Well, I checked C# and I do not remember seeing many frameworks for Discord

unkempt hamlet
#

Who needs the frameworks kattroll

opal arch
#

For JavaScript, there is Commando which I really like

north flax
opal arch
#

Same as Discord.JS

#

But it just offers API for Discord. Commando builds stuff on Discord.JS and offers better managing of commands

shadow marsh
#

I code bots only in Java #hate in 3... 2... 1... PanSad

unkempt hamlet
north flax
#

Tbh, if I made botdottir today it's possible I would have used Kotlin, and compiled for hte JVM

opal arch
#

I code [...] in Java
Only that is a crime

unkempt hamlet
#

I would have used Elixir tbh. It's blazing fast.

shadow marsh
#

I'm a minecraft developer and Minecraft is written in Java thisisfine

north flax
#

True, Elixir is also an option

opal arch
#

Bots built on Discord.JS are quite slow, indeed

unkempt hamlet
#

Elixir + Cachex = wow

opal arch
#

Let's build a bot in PHP

north flax
#

Let's make it all in one file

shadow marsh
unkempt hamlet
#

In all languages

mystic ridge
#

Later, we developed some bugs for her kappa
You mean features Kappa

cinder spear
#

one of the most successful private chatbots on Twitch is powered by PHP

north flax
#

A lot of websites started with PHP :p

cinder spear
#

a lot of Personal HomePages did too Kappa

last spindle
#

Letโ€˜s build a bot with Jimdo

fervent axle
#

Lets do a website with wordpress kappa troll ๐Ÿคฎ

mossy cloud
lethal willow
#

Discord Akairo is decent for DJS bots

opal arch
#

It seems to be similar to Commando

fervent axle
#

Just asking your opinion, what do you think about Ionic's framework to some of you who use it / have used it?

ember canyon
#

I made my bots in D.JS.

#

It's the best for JavaScript.

last spindle
#

Sorry, but how would you know if you didn't try something other

#

You can't classify something as bad you didn't try.

ember canyon
#

I tried the others one.

#

I found it less complete.

fervent axle
#

Some of my files in my Laravel's project have been disappeared while pushing, and guess what... there is a log with a initial commit but they said it was only concerning a "README" ... I'm lost, angry, sad ... I didn't do a backup

#

Idk if I should push my PC outside via the window or if I should stay calm

shadow marsh
#

stay calm >.>

#

well, you only lost some files, my whole project has been disappeared (about 10k rows of code) - so tshrug

fervent axle
#

But when I mean some files, I mean all backend codes... because the only folders they is, are "Vendor" and "Boostrap"

shadow marsh
#

oh >.> thats really bad :/

fervent axle
#

So I was profiting of my only week off of the trimester to do this until I come back to work so tomorrow but I lost almost every files that I worked on....

#

That's looking like a bad day

shadow marsh
#

probably yes - I really hope, your files reappear again, not like mine :/ and if not, I hope you get the code asap back to run ^^

unkempt hamlet
#

There are two types of users - those you doesn't do backups yet and those who does finally.

cinder spear
#

so many people have backups but never actually test them until they need them and realize the backups never actually worked

unkempt hamlet
#

Yeah, that too

#

Remember that Gitlab incident?

quartz moth
#

Sorry to go kind of off topic, does anyone know about discord Oauth

I've got this code here

$curl_h = curl_init('http://discordapp.com/api/users/@me');

    curl_setopt($curl_h, CURLOPT_RETURNTRANSFER, true);

    curl_setopt($curl_h, CURLOPT_HTTPHEADER, array(
            'Authorization: Bearer ${access_token}'
        )
    );
    $response = curl_exec($curl_h);

    var_dump($response);

However the response is coming up empty

#

The actual authentication is fine however its when trying to use the access token I got that it comes up empty

cinder spear
#

what's the status code?

#

and that should be https:// not http://

unkempt hamlet
#

Btw try to use Guzzle in the future

quartz moth
#

That fixed part of it, now the var_dump is ```
boolean false

#

Ok will take a look at that CJ

cinder spear
#

or DiscordPHP

unkempt hamlet
#

Yeah

quartz moth
#

Fixed some of it, now it actually returns a 401, I had to set SSL_VERIFYPEER to false which I forgot to do. As well as putting the URL in " not '

#

Will do some more digging and see what I can come up with

quartz moth
#

Got it all working now PES_Poggers

waxen osprey
#

Hey guys, I have one question. Is there any option to check, if player has some dlc using steam web API ? I cannot find any function from their official documentation.

floral mist
#

DLCs are the same as normal software/games in Steam.
So you would need to check if user has <appid>
the same way as you check if they own a specific game or software

cinder spear
#

IPlayerService/GetOwnedGames/v1/

waxen osprey
#

But when I execute this command, it just throw me a lot info about games, but when I searched for any id of DLC, it's not here, only my owned game ids.

rugged copper
#

You can pass the steam ID of the player in as a parameter

cinder spear
nova goblet
#

Minecraft is notorious for having spaghetti code

shadow marsh
#

no

floral mist
#

Not anymore. In the early versions maybe yes, but they "fixed" it long time ago
What you probably mean is that MC is running bad, but there's a different reason for that.

shadow marsh
#

Well, my servers are running perfectly unti I write "shit" ๐Ÿ˜‚ but thats normal in developing progress (also I clean up my code for better performance) thisisfine

halcyon ledge
#

any recommendations for europe based hostings that offer windows dedis that are secure, reliable, not overpriced and are good for multi purposed usage (gameserver, website, voice, database)?

shadow marsh
#

Do NOT try to use Contabo ๐Ÿ˜‰ had only problems with them - but the pro is, they have a really great user-supprt thisisfine

unkempt hamlet
#

I heard Hetzner Robot have some decent options.

shadow marsh
#

Hetzner is really good ^^ I can agree

unkempt hamlet
#

I don't have any experience with Robot, I am on Cloud.

halcyon ledge
#

they look good so far. how are they stability wise? cuz the last hosting me and my team used, one day had some updates in the server machines, they were down for almost 3 days, and after the updates, they messed up completely our gameserver, and we were unable to start it back up, so we would of had to completely redo from scratch

mossy cloud
#

OVH are my go-to company ๐Ÿ˜„

halcyon ledge
#

i get lost on ovh site, cuz its all german ๐Ÿ˜…

shadow marsh
#

Use Deepl thisisfine

halcyon ledge
#

i was using my gf, but she got annoyed after 2 minutes ๐Ÿ˜‚

shadow marsh
#

lmfao

opal arch
halcyon ledge
#

ohh oof, i was looking under europe only ๐Ÿ˜…

swift geode
#

Have any of you tried the Bandit game? It's a game where you connect remotely to a Unix server and have to solve problems using the Unix command line

unkempt hamlet
#

Sounds interesting

#

Thank you

cinder spear
#

Seems like a neat way to teach people basic shell use

unkempt hamlet
#

Yeah

swift geode
#

I am doing a module on operating systems and I've seen my lecturer go through the first two or so levels of Bandit

#

But in any case, I hope this thing will eventually become useful in the TMP development community in the future

cinder spear
unkempt hamlet
quartz moth
#

Jesus that pdf is like 100MB

#

Gonna take a look at it

#

Maybe I can become aPES_Hacker KappaPeak

unkempt hamlet
#

Almost 400 pages

strong quail
#

Meanwhile...
I'm working (still) on convoy system for my VTC panel which I published last year.
Right now on the picture you can see, what people who aren't involved in someone's VTC can lookup at public convoys.
From this page they can only check important stuff and connect to VoIP server.
I feel sad that we don't have ability to connect to the game server by clicking on the custom URL which TMP would support. ๐Ÿ™ (e.g. TeamSpeak has its own ts3server:// protocol)

#

Some of the above mentioned text is in Polish, but don't worry - my web app has fully built-in English.

unkempt hamlet
#

Btw we did have ets2mp:// protocol back when we used old launcher.

strong quail
#

Oh... But it doesn't work right now, isn't it?

unkempt hamlet
#

I don't think so.

north flax
#

I don't think it's been a thing for a couple of years now

#

I might misremember though, mind you

unkempt hamlet
#

I did ets2mp:// links when first version of TruckersMP Helper (help.ets2mp.ru) came up.

north flax
#

Never really used them myself

unkempt hamlet
#

It was pretty useless anyway

north flax
#

Mhm. not sure how it would be made to fit into the login flow now anyway

#

Other than maybe skipping hte sevrer selection

unkempt hamlet
#

Yes

north flax
#

Anyway, just skipping sevrer selection doesn't feel like it would be an impactful change, more of a neat tiny bonus for event organizing websites

strong quail
#

It would be kind of made like in CS:GO, where e.g. on Faceit you can connect directly to server without launching the game, going to console and type commands.
I know that I picked wrong example, but still...

north flax
#

Still not that impactful, when TMP has like 4 (?) servers for a game at most :p (Not counting event servers, just normal servers)

strong quail
#

Yeah... ๐Ÿ˜‚

strong quail
#

Okay - I think I'm ready, however I'll need to adjust PLP (Polish Language Pack) in order to publish an update to my tachograph.
I have decided to:

- introduce a convoy system
It utilises a connection with TMP API thanks to which user will have access to actual game server list.
It can be accessed by nonusers (from a main page) and users (admins has their own list, users too).
Even though a cost is huge (had to change a lot of things in DB and other files regarding trips system (there user can select a convoy in which he/she participated), I think that update will give more potential in the future.
- sort LPs (Language Packs) alfabetically (raise your dongers!)
- sort router and divide into parts for better management of the code (again ^)
- CSS fixes

That's a huge list, but I think that these fixes were needed.

#

Maybe later I'll develop an API to this system and (maybe) introduce first plugin (e.g. to Discord).
An API will only (as for now) inform about upcoming convoys.
Development of API to it isn't that difficult, I think.

quartz moth
#

Sounds like a really good project you've got there

strong quail
#

As for now it doesn't have this capabilities, but this weekend it'll get.

opal arch
#

@north flax It might be useful with Discord server invites ๐Ÿ˜‰

strong quail
#

I have a bit of experience, because I see what others are doing from inside + back in the day I developed my own script.
It wasn't bad, but the time has passed and rebuilding that script would take some time, that's why I've decided to go with framework, which most people don't use. ๐Ÿ˜‚
However I have in plan building a new app that will utilise Laravel.

#

Maybe some apps in C++ too ๐Ÿค”

#

#studying_on_uni_gives_boost ๐Ÿ˜‚

strong quail
#

All right - I have setup my hosting on Azure, so maybe I'll be also ready in order to publish my thread on English section.
So stay tuned.

north flax
#

Ah, been so long since I've even touched Laravel or PHP now

mossy cloud
#

I'm touching it at the moment D:

rugged copper
#

Laravel is amazing, Iโ€™m still learning more and more about it every day! Itโ€™s crazy

north flax
#

Recently I've mostly used other languages and frameworks :p
I've used Python (and Django) a bit on personal projects, Kotlin on some stuff I help out as well as personal projects, and C# (.NET Core) and Typescript (Angular) at work

#

And at uni I don't program much nowadays, though I will be programming as part of my master thesis ๐Ÿ˜›

rugged copper
#

I used python a while back at school and used c# in my last job but prefer PHP. Tbh once youโ€™ve learnt the syntax most languages are the same

north flax
#

Ye. Generally, most of the concepts are more or less the same :p

ember canyon
#

most

#

i also code in PHP

#

and HTML/CSS

fervent axle
#

I feel sorry if you already had a discussion about the recruitment system and already answered it but I'd like to ask you... The recruitment system is just a lot of pivot table ( w/ some relationships ) + a lot of functions and conditions, my brief logic is right?

And also, I'm wondering how to return a string result from a pivot table with Revisionable, do you have any idea to redirect me in the right way ( without giving a full answer because I need to learn from myself too )

I'm asking that because I'm doing my own social media ( you can kidding me ) with some stuffs like a vocal assistant, something modern and full safe without MOD bot if you catch what I mean. Ofc, my only goal of the project is steal your money, resell all of your private informations to a black market and become powerful kappa troll

north flax
#

Mostly just a bunch of tables, relationships, and code.

Recruitment has one or more questions.
Users create applications for every recruitment.
Every application then has a response for every question in that recruitment

fervent axle
#

Ty HW, that's what I'm thinking. But just a little thing, the questions is a form in relation with a model ( since you can add, edit, delete questions) ?

north flax
#

The questions is it's own table, yes.
The tables in that example would be something like Recruitment, Question, Application, and QuestionAnswer.

#

TMP's recruitment system has a little bit more to it, but that's the core of it

#

You can simplify or expand on it as you see fit. Many survey systems and similar use structures like that

fervent axle
#

Oww thanks HW! That help me a lot! Will write something soon but not now. ( I'm kinda glad to hear that my logical wasn't wrong )

ember canyon
#

My Raspberry was at 50ยฐC

#

Pi 4B edition

lost void
#

Hello. Someone who is good at Discord.js, may I ask a little bit?

#

about code

unkempt hamlet
#

Just ask right away.

lost void
#

About my own bot. When I use command e!announce...bot only can do with text
About imagine/picture it cannot
Except with url link
Can you teach me code bot can send pic without url link?

unkempt hamlet
lost void
#

yeah I read it and try to fix it

#

but still error

unkempt hamlet
#

What error?

lost void
unkempt hamlet
#

Show the code you're trying to execute.

lost void
#

Wait

#

I added some code that discord.js doc pointed to me, but when I added it, the error occurred and failed to run the command

unkempt hamlet
#

Check what you have in text variable after args parsing.

lost void
#

CJMAXiK, can I send a private to you? then I show my code to you

unkempt hamlet
#

I can't review your code rn, send it here for someone to check.

lost void
#

you can check it later

unkempt hamlet
#

Send it here

lost void
#

ok

ember canyon
#

@lost void. Send it there. I can even help you.

lost void
#

Can I send you a DM?

ember canyon
#

At least. Yes

lost void
#

I fixed it

strong quail
#

Ended translation of language pack.
Tomorrow I'll have some work regarding layout of the page and (maybe) I'll change a bit landing page, as for now it doesn't look any good.
For sure the update to my tachograph will be out this Sunday at 10AM UTC+2, but I don't know yet, if I'll deploy an update package seperately or I'll add with main package like e.g. MyBB does.

fervent axle
#

I'm searching a package with an editor like bbcode or markdown for my project in Laravel to do a "blog/news page" but I don't really find a really good one, do you have one to suggest? Thanks

ember canyon
#

hello

unkempt hamlet
#

That's quite a task, honestly

#

For frontend - Summernote

fervent axle
#

Thanks CJ, I'll take a look about Sunmernote. Hope this one will really be as I imagine ^^

strong quail
#

Seems like I'll have to delay update a bit, but don't worry - it'll be out. ๐Ÿ˜‚
Perhaps maybe I'll publish thread in Unofficial Tools section...
The new release will come with upgrader, so you don't have to read the docs - all will be done by myself ๐Ÿ˜‰

strong quail
strong quail
#

Hm.. How to handle checking of database in specific time? ๐Ÿค” Should I use cron?

unkempt hamlet
#

Yes

#

Use cron to fire up a PHP script

strong quail
#

All right

unkempt hamlet
strong quail
#

Thanks. ๐Ÿ˜Š I'll try to develop an app in C++ to handle the data from telemetry. Maybe I'll be so good to post that data to database? ๐Ÿค”
I don't know yet, but i'll see throughout this week.

#

Time to install Visual Studio... ๐Ÿ˜‚

unkempt hamlet
#

I think you'd be familiar with C# more.

strong quail
#

Well... I used to learn C# back in the day, but in the first semester in university I had C and some C++.

unkempt hamlet
#

Ah, makes sense then

strong quail
#

For me it's not a big problem. ๐Ÿ˜„

unkempt hamlet
bronze saffron
unkempt hamlet
#

No

ember canyon
#

Ledstrip ikea and google home enabled

unkempt hamlet
#

I have the same controller

ember canyon
#

It's a common one.

#

It seem that debian hate mee

#

First

#

And second I tried on a another laptop.

#

There is problem to boot debian

#

yoink

ember canyon
#

@runic wave. I have one... Still in progress

#

A little screen

#

Best way to make a pub for my personal website.

#

๐Ÿ˜‚

#

Soon I'll see to make a truck dash

#

As it's touch screen you can make so much things

#

The screen will be a part of it.

#

But the problem is that I had to replace the uno by a MEGA 2560

#

Thanks.

fervent axle
#

I need your opinion about security. A project (that I've seen by searching on Google) created a QR Code which is replace completely the password ( so that means there is no password etc etc ). Do you think it's more secure to use a QR code to replace password or still using password? I'm not an expert about this so that's why I'm asking.

I even guess it's more secure than using "abcde1999" if you catch what I mean

river pebble
#

Password QR in my opinion can get hacked easier

#

Like when discord did it loads of floors where found

quartz moth
#

If possible I'd use Oauth2 and let the provider deal with all of that

cinder spear
#

QR code based flows are generally easier to socially engineer, which makes them a bit less secure than a password, but if the implementation is good, it's not exactly insecure either

ember canyon
#

@fervent axle. If you don't have the same problem than Discord had few weeks ago about Nitro giving via qr code

unkempt hamlet
#
mossy cloud
unkempt hamlet
last spindle
quartz moth
main roost
ember canyon
#

I got my debian...

#

Finally.

#

Now, can we have TruckersMP on Linux troll ๐Ÿ˜‚

shadow marsh
#

Would be great thisisfine

ember canyon
#

Indeed. But it should be so much work.

quick glen
#

I think some people has gotten it running under wine/proton

#

I know that code from my old unofficial launcher was used in order to create a very lightweight launcher that could run under wine

north flax
#

At least if it has (or will have) column/table filtering, for example hiding columns with internal app data and whatnot, as well as hiding sensitive data

graceful belfry
#

could I get all of the tmp discord roles hex codes?

#

or is that too much of a pain

north flax
#

Probably too much of a pain to get them from discord, if you're lucky they might just get you the hex codes from the website though

opal arch
#
Developer - #673AB7
Project Manager - #9575CD
Community Manager - #E64A19
Support Manager - #EC407A
Support - #F06292
Media Team - #FF9800
Game Moderator - #F44336
Community Moderator - #0097A7
Discord Mods - #F1C40F
Dyno - #336FD5
Streamer - #52FFBA
SCS Staff - #832224
Retired Team Member - #009688
Presenter/DJ - #2ECC71
Muted - #818386
Event Team - #1E88E5
Guild Manager - #000000
User - #8BC34A
Chinese-simplified - #C66A39
Dutch - #B1C639
Finnish - #92C639
French - #63C638
German - #3CC639
Norwegian - #3999C6
Polish - #3974C6
Portuguese - #3953C6
Romanian - #4739C6
Russian - #6839C6
Spanish - #A739C6
Swedish - #C639C1
Turkish - #C6399E
Welsh - #C63978
Italian - #AD5252
Arabic - #AD7552
Bots - #673AB7
Dyno Support - #336FD5
Subscriber - #FD2C33
north flax
#

Or he can write a quick eval script for it (I am guessing that's what you did) ๐Ÿ˜›

opal arch
#
Hindi - #92AD52
Aspiring Developer - #000000
Horses ๐ŸŽ - #C27C0E
Icelandic - #6AAD52
Streaming - #D1268C
Report Moderator - #FF5252
Trial Support - #F48FB1
Serbo-Croatian - #6BDCA4
Tech - #3498DB
Game Manager - #D32F2F
Game Moderator Leader - #FF1744
Retired Legend - #009688
RSS - #E67E22
Czech - #6BC57B
Community Contributor - #1B5E20
Pets and Creatures - #000000
Trainee - #FF8A80
Add-On Manager - #7E57C2
Add-On Team - #B388FF
Car Talk - #000000
Media Manager - #FF8F00
Event Manager - #1565C0
Community Moderation Manager - #00838F
Danish - #5C8CBC
Human Resources - #CE93D8
Senior Human Resources - #BA68C8
VTC - #64DD17
Senior Game Manager - #B81C1C
Senior Community Manager - #BF360C
Sports - #000000
Game Moderator Trainer - #FF1744
VTC Leader - #1D6D01
Staff Manager - #000000
Hungarian - #AD1457
Translation Manager - #00B8D4
Translator - #00E5FF
Dyno Premium - #336FD5
Guest - #C4FCFF
#
Stream Subscriber - #B92025
Nitro Booster - #F47FFF
ModMail - #673AB7
ModMail Support - #7289DA
Patreon Bot - #E85B46
Patron - #E8D56D
Senior Community Moderation Manager - #006064
Real Life Trucking - #607D8B
ProMods Staff - #DB4912
TruckersFM - #D50000
Trial Translator - #84FFFF
Support Trainee - #FFA3C2
Senior Event Manager - #0D47A1
Service & Data Analyst - #607D8B
Project Coordinator - #9575CD
#

There is just too many of them

north flax
#

Wow spam ๐Ÿ˜›

#

But I'm guessing you just wrote a quick eval script for botdottir or something?
Or have you worked on an actual discord-web rank integration since I was in the team? ๐Ÿ˜›

opal arch
#
roles.map(role => `${role.name} - #${Number(role.color).toString(16).toUpperCase().padStart(6, '0')}`).slice(80).join('\n')

Not the best way but hey, it worked

#

Nah, I have not had the time for it ๐Ÿ™ˆ

north flax
#

Quick eval script it is, nice :p

opal arch
#

Exactly. @glass rampart is doing well

north flax
#

@graceful belfry Just so you know your answer is above

graceful belfry
#

Thank you!!!

#

doing some bot stuff regarding the api ๐Ÿ™‚

opal arch
#

Yeah, would be nice to have this on the website :x

north flax
#

Idea: You could expose the group color in the player api, I guess

graceful belfry
#

^^^

north flax
#

Along with group id and name (I think both are there already?)

graceful belfry
#

that would be really helpful ngl

opal arch
#

Color is missing... maybe it should be an object, too

#

Like permissions

graceful belfry
#

yeah

opal arch
#

I mean... the way the API is done now is... not good. Let's say it like that ๐Ÿ˜„

north flax
#

That can be done for v3 :>

opal arch
#

v3 blobcateyes

graceful belfry
#

pog

north flax
#

Version ๐Ÿฑ ๐Ÿฑ ๐Ÿฑ

opal arch
#

Yeah, I know. Just... not time for it Kap

north flax
#

You should also look into OpenAPI and Swagger ๐Ÿ˜›

opal arch
north flax
#

Probably some plugin for Laravel to generate a swagger.json file from your code, so you can autogenerate a lot of the docs

opal arch
#

Gonna add it to the long todo list, hehe

north flax
#

Ye :p
For now, keep the current solution, but when you consider redoing the api, consider it :3

graceful belfry
#

too bad you dont send discord ids in the api as well

opal arch
#

We do not send a lot of things in the API, actually

#

Awards, Patreon status, more stuff about the VTC, social media, ...

north flax
#

Some things might be good to hide a bit too, for privacy

#

At least in an completely open api

opal arch
#

Introduce privacy settings

graceful belfry
#

yee

opal arch
#

With everything hidden by default

north flax
#

Better solution: Use oAuth so services can request the access they need, in a v3 of the api

#

adds that to your long todo list

opal arch
#

oAuth would be nice to have Kap

north flax
#

I mean, you have a lot of it already

graceful belfry
#

if you sent ids then you could look up players by discord id with a bot

north flax
#

You're missing a way for users to create and manage their own clients/applications, mainly :p

graceful belfry
#

im bored lol so i am making a player search function for tmp on a bot

north flax
#

A way for users to remove access from applications and see applications with access to their account would also be good

opal arch
#

I know, I know. I would love to introduce a better developer portal, too. And make oAuth done and available for everyone

#

It is just matter of time. Give me one month without any worries and I can make it all possible XD

graceful belfry
#

lmao alright lul

north flax
#

Doing all of that in one month seems optimistic

#

xD

graceful belfry
#

na fam he can do it

opal arch
#

You know me, I like challenges

#

I am the slave to write boring bits Kap

north flax
#

I also do like challenges :p

opal arch
#

reminds me of oAuth2

#

That was a challenge

north flax
#

Was fun to implement, and I spent a bunch of time learning the standards and such for it

opal arch
#

Exactly. And that is why we all are a part of this project. As we wanted to learn something new

north flax
#

TMP is also a major part of how I got my part time job. It's an impressive project to show when applying for a job :p

opal arch
#

Ikr, I have it in my CV, too ๐Ÿ˜„

north flax
#

It's probably an important part of why I got my current part time job, besides my studies :>

opal arch
#

And then you left us sadCat

north flax
#

Actually, I had my job for a long while before I left TMP

#

They weren't related

#

Anyway, nowadays I help out as a volunteer developer for a convention :>

#
  • poking at various projects I never end up finishing
opal arch
#

Ah, great to hear that

#

What are they about?

#

And what are they done in?

north flax
#

Furry convention :>

#

Mostly Kotlin, with Redis and Postgres for data storage, and they involve a variety of things

#

From normal data storage/archiving systems, to mini games like "blip boxes", where you can scan your NFC-activated convention badge and get achievements and such

opal arch
#

Sounds interesting... but why Kotlin?

north flax
#

Null safety, has good coroutine support, and pretty darn easy to be productive in it

#

Also, having access to the entire library ecosystem of Java is quite good, since that gives access to a lot of things

#

Anyway, our servers and such just don't have NullPointerExceptions, which is nice

opal arch
#

Interesting. I do not really like Java so... quite not understandable for me. But alright ๐Ÿ˜„

north flax
#

It also fixes many of the issues with Java as a language ๐Ÿ˜›

#

If you use OpenJDK you can also avoid all of Oracle (which you should do)

opal arch
#

Yeah, I do so on Ubuntu

shadow marsh
#

Shawny, thats definitely nothing new for me x3

#

Humane, I only use OpenJDK :3

#

For me, its way better :3

north flax
#

Good, I also use OpenJDK whenever I have a choice ๐Ÿ˜›

#

It's default on many distros, and on Windows you can get it from i.e. AdoptOpenJDK

shadow marsh
#

My Server runs on Debian 9 (cant choose deb10) and in windows i have the default java (still) ๐Ÿ˜„

north flax
#

Also, besides the qualities of Kotlin, I also do enjoy it, it's a nice language to work with ๐Ÿ˜›

opal arch
#

Does not sound like Java, indeed

shadow marsh
#

Well, additional to Java I want to work in HTML, PHP, CSS :3 its for me a bit different, but seems also pretty nice ^^

north flax
#

The part of PHP I miss most right now is actually Laravel x3

#

It's a nice framework, and has a lot of the almost universally useful boilerplate stuff built in

opal arch
#

And if it is not built in, it has tons of available packages... even official ones

north flax
#

Ye. I also like hte intended project structure a bit more than Django's

#

Django splits up your web application differently, and I think it easily get's messy to work with

opal arch
#

I cannot compare much as I have not really used it

north flax
#

Imagine having different parts of hte app be it's own MVC based project, which code references going back and forth, etc

#

By default it also intends for you to put every controller (view) for one part in a single file, and same for every model

#

The idea is to decouple things and keep minimal references between apps, but things quickly become annoying to work with as well, or they require more db processing since you need to i.e. load user info from 5 tables belonging to 5 different parts of the app

#

Anyway, that doesn't work as well with all kinds of web apps ๐Ÿ˜›

opal arch
#

Ah, I see

#

Well, it makes sense to split the stuff into more parts rather than building it on one entity or whatever. I would also like to break down some parts of the actual system so it is more modular

graceful belfry
#

figured id show yall what im working on

#

needed the hex codes for each rank for the embed color

graceful belfry
#

last bit of updates sorry for the mass messages

ember canyon
#

Pretty nice.

opal arch
#

That's nice. I wanted to do something similar but then I noticed we do not have the group color in the API XD

shadow marsh
#

Well, you can do if elseif statements to check, what group the player has.

If(group.equalsIgnoreCase("Developer")){
Eb.setColor(Color.decode("#HEXCODE");
}Else if etc.

unkempt hamlet
#

Pretty inefficient

shadow marsh
#

Well, that's how I would do it in Java tbh.

unkempt hamlet
#

switch - case or picking straight from associative array think

shadow marsh
#

Thats also possible thisisfine

But I use this type of if/elseif/else only 3 times in a Plugin.
Most are switches thisisfine

unkempt hamlet
#

Your if/elseif/else proposal is pretty hard to maintain also.

#

And way more code than needed.

shadow marsh
#

I know, CJ x3 but when I coded the plugin, I didn't knew at this time, what a switch is thisisfine

I only found this out way later :3

#

My Discord bot only uses switches

unkempt hamlet
quartz moth
#

I use if/elif/else when there's only around 3 checks. I've started using command groups for python bots which is so much easier to keep stuff organised

graceful belfry
#

Yeah uhhh i did the if else statement and it seems very useless lmao

#

Not useless but very repetitive

#

Bow if i could get some help figuring out out to use the api for traffic that would he great. When i try data.response.name it doesnt work because of the multiple objects.... how would i go about get the data from it

rugged copper
#

Youโ€™ll either need to loop through the objects or get a specific object by the key

silk oasis
#

Be aware that if you are banned again, it will be permanent so long as the active history supports it. Also, if you receive a secondary history ban at any time, it will be extended to permanent

#

what do they mean, i dont get it

unkempt hamlet
#

This question does not belongs to developer chat.

silk oasis
#

where then?

unkempt hamlet
silk oasis
#

ok

graceful belfry
#

Lol

fervent axle
unkempt hamlet
#

Wut?

fervent axle
#

You don't know what is the rubber ducky?

unkempt hamlet
#

I never heard of USB Rubber Ducky

fervent axle
#

This is a USB which is reacting like a keyboard to execute a payload ( script) - I only use for educative purposes

unkempt hamlet
#

Reminds me of ElectroBOOM's video about USB Killer

fervent axle
#

I must say it if I don't want to have some problems with our rules ๐Ÿ‘€ truestory

#

So yeah it's only for educative purposes ๐Ÿ™„

ember canyon
#

As SCS has released openable windows.

#

My switches will be there for open or close windows.

#

Soon I'll present my finished product without the box

#

After I'll make a box.

north raven
#

is anyone aware of a library in c# or so that is able to sniff packets that are being sent to a usb device?

#

my goal is to get the packets that are being sent to my keyboard, then figure the average color to send it to the mousepad (as its single color)

i already know the packets that my mousepad expects so i got that step done

unkempt hamlet
#

This is for the first part of your problem.

north raven
#

i can sniff (usb) packets with wireshark, thats no problem

#

i just need it programatically now

ember canyon
#

@north raven Would you need to set up the USB interface as some sort of network for Wireshark to work property

pulsar jungle
#
Laravel News

Laravel 7 is now released and includes many new features including Laravel Airlock, better routing speed, custom Eloquent casts, Blade component tags, fluent string operations, a new HTTP client, CORS support, and many more features.

#

Laravel 7 has been released

north raven
#

@ember canyon no, wireshark is compatible with usbpcap

ember canyon
#

Oh, sorry donโ€™t use Wirshark very often

ember canyon
#

Need a developer to connect the game and the roles on the website.

ember canyon
#

Wat

fervent axle
#

WOW Larevel 7๏ธโƒฃ is released, thanks ๐Ÿ™ woah

lethal willow
#

This is a USB which is reacting like a keyboard to execute a payload ( script) - I only use for educative purposes
@fervent axle
If you're into opsec stuff, take a look at Hackthebox

fervent axle
#

Thanks @lethal willow , I'm taking a look on it currently, it seems interesting ๐Ÿ˜‰

lethal willow
#

It's free. Download Kali on a VM and get going. I've owned a few boxes, it's really interesting and fun.

quartz moth
#

imo since I've had no big projects I've never had proper focus but I really like stuff such as Nathan said since it actually gives you a proper goal to focus towards

fervent axle
#

It could help a friend in the same case, really a nice feature, thanks guys

lethal willow
cinder spear
ember canyon
#

Can an autopilot be used in mp ?

worldly tulip
#

I guess that it would be the same as winter mod, if you get banned, it's your fault

ember canyon
#

I prefer asking

cinder spear
#

an autopilot?

quartz moth
#

I think they mean self driving @cinder spear

cinder spear
#

I think that would be ยง2.1

quartz moth
#

It doesn't seem to say it explicitly but I assume game management have the say if it gets reported

#

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

lethal willow
#

Yeah, it would be 2.1

Using any kind of tool to change gameplay[..]

quartz moth
#

It seems like it would be a good way to train AI though since people are unpredictable, send it up the CD road a few times and it'll be fully trained ๐Ÿ˜‚

ember canyon
#

Well rule 2.1 is imprecise

#

For that type.

#

That mean I can't use my arduino in multiplayer for telemetry beczuse it change the gameplay too

#

Because we can't call this a cheat or a type of ghost mode or mod menu.

As it have to respect speedlimiter and drive safely.

cinder spear
#

Collecting telemetry doesn't really affect gameplay

quick glen
#

@ember canyon I wouldnt call your ardunio for a gameplay changing device. It does not change how the game works right? Its more just another way to interact with the game like an input/output device

last spindle
#

Make 10000 autopilots

#

And there we have AI traffic

ember canyon
#

@quick glen. In fact my autopilot acting like a joystick

#

It isn't a mod

quick glen
#

Hmm, I suppose thats an interesting usecase

#

Like if you ask me, I wouldnt consider an autopilot as a gameplay changing element

#

I would classify it as just another type of input device

#

You arent changing how the game works after all

#

Like, worst case if your autopilot is bad and cause collisions you get a ban from TMP

ember canyon
#

More powerfull is your computer less problem you should have.

#

And I have 32gb of ram

#

๐Ÿ˜‚

quick glen
#

I'd love to see what it can do, what are your plans for it?

ember canyon
#

Idk

#

Maybe learn further

#

So, I can see to improve

opal arch
strong quail
mystic ridge
#

Windows has a built-in Task Scheduler, it's very versatile and powerful

raw notch
#

versatile and powerful isn't really a definition for windows task scheduler :D

mystic ridge
#

You can do a lot with it though :p

strong quail
#

Time for some digging into SCS SDK ๐Ÿ˜‚

#

Hm... Any ideas, why telemetry doesn't work in 64bit? ๐Ÿค”

#

I compiled only example of the telemetry project but it doesn't work on 64bit ๐Ÿ˜

#

Or maybe I put in directory, although I used "plugins" folder...

quick glen
#

@strong quail Did you well

#

compile it for 64 bit

strong quail
#

Mb - didn't select to compile to 64bit ๐Ÿคฆโ€โ™‚๏ธ

rugged copper
mossy cloud
#

Thanks @rugged copper picked it up :D

rugged copper
#

No worries, even if you don't use Laravel it has some great examples of writing clean code

shadow marsh
#

thats interesting thisisfine

cinder spear
rugged copper
#

GitHub for mobile is here ๐Ÿฅณ https://github.com/mobile

GitHub

Bring GitHub collaboration tools to your small screens with GitHub for mobile. Sign up for the iOS beta or get on the list for our Android versionโ€”and weโ€™ll let you know when your app of choice is ...

shadow marsh
#

thats really cool ๐Ÿ˜ฎ

thick nest
#

Anyone use cordova to make android apps? I find it easier than android studio

silk oasis
#

the servers are off

#

@rugged copper

#

@opal arch

#

@kindred pond

worldly tulip
#

this isn't a place to complain about servers KappaPeek

silk oasis
#

i know but all the server accept promods are off

shadow marsh
#

I'd suggest you not pinging the developers

silk oasis
#

ok

shadow marsh
#

that isnt good

silk oasis
#

sry devollopers for pinging

quick glen
#

Its still the completely wrong place to ask

shadow marsh
quick glen
#

cause this chat has nothing todo with talking directly to the tmp developers

#

its for other developers to chat to eachother

silk oasis
#

OK OK

shy swan
#

We know when servers are going offline, no need to ping devs for that - that's done automatically ๐Ÿ™Š

ember canyon
#

Server get a virus.

#

They use Windows Server and now it need Norton anti-virus

last spindle
#

Saw this lije

#

Like

#

3 weeks ago

strong quail
#

Jesus... Did someone use LaTeX? ๐Ÿ˜‚

ember canyon
#

Future Monitoring system of Bastiti'Bot.

ember canyon
#

And it's done.

ember canyon
#

Next step, unlocking computer with RFID & Arduino Micro at 11.20โ‚ฌ

amber oasis
unkempt hamlet
#

Is this some kind of ad?

#

I never asked for cloud storage solutions

glossy granite
#

Tuxy pog blobcateyes

last spindle
#

eh

amber oasis
#

cheaper distribtuion of TMP files with less hassle than the old ways blobcateyes

#

no egress, just storage costs

#

basically the golden goose that was never found

unkempt hamlet
#

Only one cluster for Europe, all operations are based in US. This is questionable (at least for us).

amber oasis
#

it's run by some seniors in the storage industry, I wouldn't poke you if I didn't think it was worth your time

unkempt hamlet
#

It's not me who decide on that anyway thisisfine

amber oasis
#

pass it to kat, am to lazy to poke him

mossy cloud
unkempt hamlet
#

That's cheap

shadow marsh
last spindle
#

seems legit

graceful belfry
#

Does anyone know anything about making TMP overlays? Like how the tab menu looks

mossy cloud
#

A guy called Mr Harv is your guy there

#

One sec

#

Can't find the forum thread anymore sadly

ancient crypt
#

Hey, I'm searching for a web api, to paste some data from my trucksbook company to my website. Is there any api which i can use? :D

ember canyon
#

TruckBook hasn't their own api ?

graceful belfry
#

they do not sure if it is public though?

ember canyon
#

Does Folding at home works for Raspberry ?

unkempt hamlet
#

I think so, but I don't think it is capable enough to compute work units.

shadow marsh
#

well, I let my windows server folding and my main computer ๐Ÿ˜„

ember canyon
#

@unkempt hamlet. Thanks. But mine is already 4go of ram and graphics card can handle 4k screen

unkempt hamlet
#

F@H is not RAM-demanding

ember canyon
#

Yeah

#

I've seen this.

#

Btw my main computer run it.

unkempt hamlet
#

I am still on CPU work unit ((

shadow marsh
#

CPU + GPU ๐Ÿ˜„ but GPU doesnt work sadcat

ember canyon
#

88.07%

unkempt hamlet
#

My GPU just got the unit

shadow marsh
#

CJ, do you mind, if I join you? thisisfine

ember canyon
#

What do you have as GPU ?

shadow marsh
#

1070TI + a little OC ๐Ÿ˜„

ember canyon
#

Reached 90%

unkempt hamlet
#

I have RX480

ember canyon
#

ah yes

#

It's a 4gb ?

unkempt hamlet
#

8?

ember canyon
#

Oh. Yes. Sorry.

#

99.35%

#

Hm

#

100%

#

And where the points is hahaha ?

unkempt hamlet
#

WU needs a confirmation

ember canyon
#

A confirmation ? What do you mean ?

unkempt hamlet
#

Basically, server checks if your computations are correct

#

by mathematical means

ember canyon
#

Oh. Yeah

#

Oke

ember canyon
#

@unkempt hamlet Hum. Screen blink now.

#

It keep reset xD

unkempt hamlet
ember canyon
#

Nice

#

But still

unkempt hamlet
#

Looks odd, try to restart your PC

ember canyon
#

See you soon.

#

1hour mas

#

max*

unkempt hamlet
#

๐Ÿ‘Œ

ember canyon
#

Not working on chrome but edhe

#

Edge*

strong quail
#

Waiting for passkey :3

next pumice
#

What do you have as GPU ?
2080 SUPER

tired quail
#

I've developed a Discord bot that actively tracks Coronavirus data and allows you to have voice channels that update automatically. If you want the link to invite it to your guild dm me

last spindle
#

What API did you use?

mossy cloud
#

Going to try use Laravel Socialite to work with Discord login today to get accounts linked with Discord ๐Ÿ˜„

mossy cloud
#

Nice it works ๐Ÿ˜„

#

So users now only register with Discord, it then asks them to choose a password for their account, then when they next sign into Plasma it updates their details from their discord account ๐Ÿ˜„

#

Love it โค๏ธ

opal arch
#

@mossy cloud what package did you use? Extended Laravel Socialite?

mossy cloud
#

Indeed. However, I am currently looking at alternative packages though because it wont return guild information although I've passed the scope for it

#

So I'm looking at RestCord at the moment but have raised a GitHub issue with the Socialite package

opal arch
#

So I'm looking at RestCord at the moment but have raised a GitHub issue with the Socialite package
@mossy cloud RestCord is the best option for this

#

But the guilds should be provided in that (bad) Socialite package, too

#

How do you retrieve the user information from the driver?

mossy cloud
#

Essentially Socialite::driver('discord')->user();

#

Then checks the user, updates their information or if they don't exist add them to the DB ๐Ÿ™‚

#

Means we don't have to worry about maintaining user emails, username or their avatar, that all updates on login

opal arch
#

If you run $user->getRaw(), you should get all information in an array

mossy cloud
#

That's useful, will try that, thanks

opal arch
#

Guilds should be there, too

mossy cloud
#

Afraid not there in getRaw, but thanks anyway

opal arch
#

With Restcord, you have data as objects, indeed

ember canyon
mossy cloud
#

Looking for some help please, I'm trying to use https://gitlab.com/more-cores/laravel-restcord/-/tree/master

But getting 'Class 'LaravelRestcord\DiscordClient' not found' when trying to use it.

My code:

use LaravelRestcord\DiscordClient;

(then in my controller function)

$discord = new DiscordClient(['token' => env('DISCORD_BOT_TOKEN')]); // Token is required
dd($discord->guilds());
unkempt hamlet
#

There is no DiscordClient class.

#

It is LaravelRestcord\Discord\ApiClient

#

And you don't need to use that explicitly

mossy cloud
#

I'm rather new to Laravel, because whenever I try to use $discord it shows me that the variable is not defined, but what do I define it with?

#

I can see on the restcord documentation (not the laravel wrapper)


include __DIR__.'/vendor/autoload.php';

use RestCord\DiscordClient;

$discord = new DiscordClient(['token' => 'bot-token']); // Token is required

var_dump($discord->guild->getGuild(['guild.id' => guild_id]));

So that's where I'm hitting the DiscordClient error but I'm not really sure how to define $discord any other way

unkempt hamlet
#

Well, it is not THAT restcord

mossy cloud
#

Surely I need to get the Laravel one to work though?

#

I'll try uninstall the laravel wrapper and install restcord, at least if I can get something working I can come back to it

unkempt hamlet
#

composer dump-autoload

mossy cloud
#

composer remove more-cores/laravel-restcord will work afaik

#

Will do that anyway though just to flush it

unkempt hamlet
#

restcord is a requirement of laravel-restcord, so should be installed as well

north flax
#

Hmm. Thinking of just throwing the database layer onto Azure Table Storage for an app, since I'm most likely gonna need some blob storage for files anyway, and it would be a simple and fairly cheap solution

unkempt hamlet
#

Firebase?

#

Or you have Azure infrastructure already?

north flax
#

Firebase would be a bit overkill, it's just a webapp :p

unkempt hamlet
#

Well, you don't need to use all the Firebase features.

mossy cloud
unkempt hamlet
north flax
#

If I move a slider a pixel and it goes from 5 GB to 250 GB, that's not very usable

unkempt hamlet
#

Left is free

north flax
#

Ye, looking at it atm

ember canyon
#

parabens

#

bem feito

mossy cloud
#

Onto Permissions now for this discord based app, if I can make it so gates are based on Discord Roles and if a user has x role then I wont need to store permissions in the DB

unkempt hamlet
#

Kinda fragile, I would say.

mossy cloud
#

Well I'll make it so it has something to fall back on, so if discord can't be reached these x users are admins

ember canyon
#

Does it exist a program that is able to Show the key pressed and how much ms it is ?

unkempt hamlet
#

Yes, USBlyzer iirc

ember canyon
#

Thanks.

strong quail
#

I thought my 1060 will stay at 90 degrees Celsius during folding, but actually it's even lower. ๐Ÿ˜ฒ

unkempt hamlet
pulsar jungle
#

Rip

unkempt hamlet
#

I don't get F@H sometimes

#
  • Estimated Points - 40000
  • Actual Result - 1500
#

like wtf

worldly tulip
#

I got 150000 estimated once ๐Ÿ˜‚

opal arch
#

Oh, you get points?

#

I have not received points for my last 2 tasks

shadow marsh
#

server1, server2 and my home computer x3

opal arch
#

I know. I was just pointing at how their servers can be busy

shadow scarab
#

what points?

quartz moth
#

Lol Whitelodge tryharding xD

#

All for a really good cause though

mystic ridge
#

I'm lucky to get one WU in a day now lol

quartz moth
#

Wonder how my PC would do as its not too good

#

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

#

Oof

mystic ridge
#

Seems that so many users are connected that they don't have enough work for all

unkempt hamlet
#

Yep

#

I wonder if LTT is already did the instance for F@H back

quartz moth
#

I mean thats a good thing tho imo. You'd rather be it too busy rather then empty

mystic ridge
#

It's been really cold the last 2 days, so I'd love to just use my PC as a heater whilst also using that energy for a good cause

shadow marsh
#

๐Ÿ˜‚

#

the sad thing is, now I can control the heat good... but in summer... not rlly anymore

unkempt hamlet
#

3 work units on GPU for multiple K points, 17K in the end... I don't get the system at all.

#

I looks like faulty settings on my part

opal arch
#

Hm, what happened?

unkempt hamlet
#

idk

opal arch
#

Ye, I have not received points for last 2 WU's thisisfine

#

I wonder whether they even get results from me then...

cinder spear
#

I've not had a single WU today

strong quail
#

@cinder spear You are unlucky, I guess... My PC is doing the work over and over. ๐Ÿ˜„

#

One time I forgot to not let fold my CPU and I still got the work for it. ๐Ÿ˜‚

prisma geode
#

Currently configuring a FiveM Live Map, but it's not configuring properly, anyone know JSON properly?

cinder spear
#

plenty of people

unkempt hamlet
#

Google too

strong quail
ember canyon
#

damn

#

leave it to shitty windows defender

#

although its gotten alot better

unkempt hamlet
#

Much better

prisma robin
#

Raknet is OpenSource?

drifting wasp
#

It literally says at the top of their page @prisma robin

prisma robin
#

Thank you

#

I just had the wrong link :x

mossy cloud
strong quail
#

Why have u done that to us? ๐Ÿ˜ญ

shadow marsh
#

LUL

I would change this a bit -> breakfast should also be "Something else" and a 3rd field to write, what exactly you had thisisfine

mossy cloud
#

How can I array_intersect the following two arrays please:

  0 => 290944181344403456
]```

and
```array:44 [โ–ผ
  290938481574936588 => "@ever#7824yone"
  290944181344403456 => "Moderator"
]```
If I do the obvious 
```array_intersect((array)$team_id, (array)$OutputDiscordRoles)```
 then I get an empty array []
#

I need "Moderator" to be the only thing returned

opal arch
#

If you want to intersect:

$OutputDiscordRoles = [
  290938481574936588 => '@everyone',
  290944181344403456 => 'Moderator',
];
$team_id = [0 => 290944181344403456];
$moderatorRoles = array_intersect($team_id, array_keys($OutputDiscordRoles));
mossy cloud
#

Thanks ๐Ÿ™‚

ember canyon
#

HI.

shadow marsh
#

TF How many Laptops do you have maurice_joy

ember canyon
#

Not mine.

#

It's from the EuroSpaceCenter in Belgium

shadow marsh
#

not bad ๐Ÿ˜„

ember canyon
#

I don't really like FatH

#

As we can't manage the CPU/GPU comsumption perfectly

shadow marsh
#

Why, it's good and it's running always in background on my PC

#

yes... thats true

ember canyon
#

I use BOINC Manager

#

There I can set the CPU at 69% if I want

unkempt hamlet
last spindle
#

Anyone knows how to make something like bootstrap modal, or knows an alternative?

quartz moth
last spindle
#

What if I donโ€˜t want to? -.-

quartz moth
#

Imo if you can use bootstrap for it, use it unless you're really against it as it makes simple projects to much easier

#

@last spindle Not sure if thats what you're looking for

#

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

last spindle
#

Bootstrap is breaking some stuff in my code.

#

Any way to just use modal without the other bootstrap stuff?

quartz moth
#

From what I can tell you can only customize boostrap 3.4 on there website which isn't ideal

#

However I didn't do much searching

last spindle
#

Iโ€˜ll see.

#

Iโ€˜m very interested in bootstrap modal but not working in combination with my other code.

mystic ridge
last spindle
#

I like the bootstrap modal "animation"

#

But Bulma's modal looks also pretty good.

#

But is there any way to just use the modal without the code from the other stuff?

#

Already got everything set up, just want to improve it with modal without changing everything.

quartz moth
#

What is bootstrap breaking in your code?

last spindle
#

I can not use SQL in bootstrap modal using my other code. It worked without my other code, but once I include it, no SQL data is showing up.

unkempt hamlet
#

"SQL in bootstrap modal"
What does that even mean?

last spindle
#

Also, bootstrap is "overwriting" my style.

#

Not good at explaining -.-

quartz moth
#

Do you mean you're trying to put SQL data into a modal?

quick glen
#

What

quartz moth
#

Such as inserting via PHP?

last spindle
#

Yes

#

Also pretty new using stuff like that ^^

quartz moth
#

Could you post some code that you're using to insert the data?

unkempt hamlet
#

Looks sketchy

quick glen
#

Anything todo with html and sql in the same sentence feels sketchy in my eyes

unkempt hamlet
#

Yup

quartz moth
#

I think he's trying to echo SQL data

#

Thats what I understand anyway

quick glen
#

I assume its a php script that grabs some data from a database (with an SQL query) and then echo's it into the page

#

Yeah

unkempt hamlet
#

I think he wants to say CSS

quartz moth
#

Like Im doing something similar and inserting it into a form

quick glen
#

Also a possiblity, but he did mention SQL data

last spindle
#

It also worked, but once I put it into my other code it didn't.

quick glen
#

We'd need to see some code examples before we can help you

last spindle
#

Sorry, I've been trying to figure it out for more than 6 hours, now I decided to take other ways. Bootstrap isn't my choice now, as it's 1. not working in combination with other installed "modules" and 2. ruining my style.

#

But thank you for the recommendations for alternatives! If you got more, please send me them! ๐Ÿ˜„

unkempt hamlet
#

Well, in case of "my style" it would be really hard to find a thing for general usage.

mossy cloud
#

Heads up small grammatical bug on the Bot Botdottir VTC responses:

The following user "" have been fired by

should be

The following user "" has been fired by

raw notch
#

guys, there is any way to read data not served from the telemetry like money, gameplay events? I think so, in some way, as TMP do a lot more with the game, but what's the trick?

unkempt hamlet
#

Memory injection

raw notch
#

so must know the memory addresses?

ember canyon
#

Hi.

#

Do you know a way for use Nextion Screen with Macro

opal arch
#

so must know the memory addresses?
@raw notch well, if you need to work with certain objects, it will not be that easy as only a few of them are global

raw notch
#

the best question is: how to know them? how to find them?

opal arch
#

Reverse engineering

raw notch
#

in that example the addresses given are for?

opal arch
#

In the example, there is a simple code how to get the address from the running process and an example of cmd_execute() command

raw notch
#

well I should know what command have to send :D

quick glen
#

And those base addresses only work with 1.34

raw notch
#

c++ is not my ground tbh

quick glen
#

As each time the game updates, there will most likely be a shift in the addresses

raw notch
#

as @quick glen knows :D

#

oh hey mate

quick glen
#

Hence the reason why TMP has to release an update for each game update

opal arch
#

But well, if you want to get data about cargos, it might be really painful and hard to get, not gonna lie

#

As working with data is not that "easy" as working with functions

raw notch
#

cargos? those are in in SCS sdk

opal arch
#

It was an example

#

No idea what you want to work with ๐Ÿ˜„

raw notch
#

no I mean like events like refuel cost, fuel prices, account money

#

things not available in Telemetry

#

I think Unknown know my pain :D

quick glen
#

its not that hard to aquire a static pointer to the account money, thats fairly easy. The big issue here is that you need to maintain that for each update

raw notch
#

yes I know

#

never got why scs don't provide a full sdk for this

quick glen
#

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

#

And to be fair, I dont value the account money for example as a trustworthy source of data. Its way to easily moddable and cheatable

raw notch
#

maybe to maintain some data privately to use in future with their tools

quick glen
#

Which is one of the reasons I've never sought to add that to say LogIt

raw notch
#

ye ye ye don't need for a statistical reason or to be saved in some way

#

it's for the overlay, to show it

#

(for example) or to calculate correctly how many money spend per driving session

#

for example also trucks list or trailers list are not available but them are available on savegames, for example

#

(also money actually)

quick glen
#

Well yeah, the game needs to persist it somehow

#

Though I wouldnt strictly consider truck and/or trailers list as a "telemetry" value

raw notch
#

ye, Telemetry could be a wrong term for this, but as scs provide the sdk, worth nothing to add also these values

ember canyon
unkempt hamlet
#

No

ember canyon
#

:/ cos ets2map.com shows this data ๐Ÿ˜„ i hoped so... but ok

unkempt hamlet
#

ETS2Map has it's own API.

ember canyon
unkempt hamlet
#

Not yet.

ember canyon
#

hm maybe app.js has some infos i need ๐Ÿ˜„ but i hate js ๐Ÿ˜„ so i need to wait till my js developer is back from holiday ๐Ÿ˜›

opal arch
prisma robin
#

I'm curious to know why, if it really had a use in development...

raw notch
#

@ember canyon you need also the serverid because user IDs are duplicated btw servers.

mystic ridge
raw notch
#

actually type=number sucks for many reasons, in some browsers (Chrome) dont take account of user locale formatting

lethal willow
shy swan
shadow marsh
#

Wew... that's a great future for Discord thisisfine I definitely stay tuned - thanks Nathan! ๐Ÿ˜„

opal arch
#

Hmm, I am confused by that. The article says following:

Verification means that we can release features that give developers more control over Discord.
But at the same time:
This process is currently available for bots in 75 or more servers, to allow developers to preemptively apply.
So if I want advanced features for @glass rampart, I need to invite her to much more servers? That sounds crazy.

shadow marsh
#

Seems so, Shawny... whatever.... we will see, what Discord brings for the future ๐Ÿ˜„

opal arch
#

Then it sounds really crazy if such features are going to be available only for mass used bots...

shadow marsh
#

Thats true ^

raw notch
#

like TruckyBot :D

shadow marsh
#

Well, Dyno has good chances... in how many guilds are they? (total) sure more than 50.000 Guilds

opal arch
#

iirc they mentioned it somewhere and it is surely more than one million

shadow marsh
mystic ridge
#

That's assuming Dyno actually ever comes back up

raw notch
#

dyno is down?

shadow marsh
#

yes

opal arch
#

It has been down for 18 hours

shadow marsh
#

again ablobrollingeyes

raw notch
#

shit happens

mystic ridge
#

You cannot even access their website anymore, it gives you a Cloudflare error

opal arch
#

But well, if the verification stays like that, time to create 75 guilds kappa

shadow marsh
#

I am really glad, that I have my own written bot blobcatshrug

raw notch
#

in another point inside the verification process it says 100 guilds actually

opal arch
#

It says that if you are not verified, the bot cannot be in more than 100 guilds

raw notch
#

uh? no I mean, the email and private message say 75 but in the discord dev panel, to apply for the verification process, say >= 100

cinder spear
#

the "more control over Discord" isn't necessarily limited to verified bots

#

because unverifed bots can only join so many guilds, it significantly reduces the splash radius of a malicious one

opal arch
#

well, the article sounds like they are planning more features which are going to be available only for verified bots

mossy cloud
#

Maybe they'll introduce a Validated role kappa runs xD

opal arch
#

I want that badge meowreachsadrev

raw notch
#

you have a bot for 1 guild... nope!

opal arch
#

Actually, @glass rampart is in multiple guilds

mossy cloud
#

Not 75 though ๐Ÿ˜›

last spindle
#

Make it public xD

opal arch
#

Well, let's see what Discord will do with verified bots

regal scarab
#

Anyone know if MD5 is still a secure way of encryption?

cinder spear
#

MD5 is a hashing algorithm, not encryption, and no it is not secure as a hashing algorithm.

#

It's not been considered secure since 2004

mossy cloud
#

As 3v said, no, but I'd reccomend Bcrypt if you want the latest industry standard :)

unkempt hamlet
#

Argon2 is superior.

north raven
#

^

#

was about to say

mossy cloud
#

It is but bcrypt is better in terms of compatibility

#

They're both acceptable to use

north raven
#

compatibility of what

mossy cloud
#

With other services, so if you have other things you need to work with your user Database, not all of them support Argon2

north raven
#

what

#

if you really care about your security, you'll make it compatible.

mossy cloud
#

Most things already are, it's just those edge cases. And if you're one of those, bcrypt is perfectly acceptable

north raven
#

it's acceptable for now

#

if it's "just those edge cases", you can fix "just those edge cases"

#

your argument therefore is invalid

mossy cloud
#

Depends on what it is, some services like Nextcloud used to not support Argon2, they do now

#

Why are you trying to turn this into an "argument" anyway? Grow up

north raven
#

some services also used to not support bcrypt and now they do

#

Why are you trying to turn this into an "argument" anyway? Grow up
you shouldn't talk if you don't know what you're doing honestly

mossy cloud
#

Please don't be rude. I do know what I'm doing, and all I'm saying is bcrypt is acceptable for use.

north raven
#

ah yes, im being rude, sure

#

its impossible to discuss with people like you because you'll just end up with "omg grow up" when you don't know what to say

#

whatever, there is no need to continue this

mossy cloud
#

Thing is, we do know "what to say" you just can't accept what we're saying because you think you know better. There's no harm in learning and listening to viewpoints other than your own

#

Developers get better by researching ideas and listening to others, not bringing others down

north raven
#

im glad you can reflect yourself, maybe next time a discussion pops up you're able to do better

hollow topaz
#

bcrypt

#

I hope it's server only for say, protecting a hash and not included in a client to decrypt packets sent

#

fallout 76 tried to use bcrypt and by design flaw had to include the key for the client to parse the packets properly and therefore it was broken in like 10 seconds by modders looking at reverse engineering the servers
they also tried to use ssl but didn't pin the certificates well enough and a simple winhttpapi hook let you read the outgoing packets before they were encrypted, by bcrypt flaw you could also hook and read whatever bcrypt was outputting as the client had the key anyway and without proper certing you could mitm the ssl anyway and just record all the traffic in/out in plaintext, it took them months to disallow responses over http that should have started on https

thank you for listening to my rant

mossy cloud
#

I think game servers normally use an API to check the login information, rather than doing a direct call to the Database from the game server ๐Ÿ™‚

#

Depends on the developer though and if they're doing things correctly ๐Ÿ™‚

hollow topaz
#

just web requests like a regular website login and then something like a JWT and ticket system to let you into the servers

#

if you want to be secure but slow you can always do the password hash with sha512 then smack it with PBKDF2(hmac) and a salt before storing it

#

eyeballing it, you can't even tell it's not just regular 512

#

the main point is until someone comes along with a quantum computer, if someone steals your database it will take them a really long time to bruteforce the passwords

#

unless your dad works for NSA, who apparently have that many crypto weakness exploits like the prime number weakness that came out a few years ago

north flax
#

Just use argon2 or bcrypt for passwords. Don't reinvent any wheels, take the simplest path to the goal. Both argon2 and bcrypt are well tested algorithms specifically made for passwords, and both are secure.

#

In addition, when someone is running an exe file on their pc (or any other program file), they can have full control of what happens. They can edit the file, edit the environment, etc. They got full power over the part of the software running on their machine

ember canyon
#

Anybody experienced with Discord.py Rewrite? (Python)

quartz moth
#

I've done bits with it. What do you need help with?

shy rune
#

Anyone know about this or still remember about this network ?

unkempt hamlet
mossy cloud
#

Thanks :)

cinder spear
quartz moth
#

Other then Laracasts anything else people suggest for learning Laravel?

quartz moth
#

Damn the query builder is so helpful, not sure why I didn't start earlier

graceful belfry
#

Yo shawn have you altered the api to send rank Hex colours yet? I have to rewrite my player thing i did awhile back as I lost it to reseting my PC

graceful belfry
#

Feel free to tag me when you get this

quartz moth
#

When you miss a return statement and you wonder why it isn't working NotLikeThis

cinder spear
#

that's why strongly typed languages are awesome

unkempt hamlet
#

Do strongly typed languages checks for return statement in closures?

raw notch
#

sure

#

c# does

cinder spear
#

Go does too

unkempt hamlet
opal arch
#

Time to move TruckersMP to Github

shadow marsh
#

Now I can get the source Code from TMP kappahmm

opal arch
#

Who said we are going open-source

shadow marsh
#

thats also true ^ xD

cinder spear
#

actions in private repos are still limited

#

sadly

#

but 2000 minutes included is pretty good

opal arch
#

Only 2000 minutes?

unkempt hamlet
#

No, it's actually 3,000 Actions minutes per month

cinder spear
#
Date,Product,Repository Slug,Quantity,Unit Type,Price Per Unit
2019-11-19,actions,3ventic/ohbot-core,2,UBUNTU,$0.008
2019-11-26,actions,3ventic/ohbot-core,3,UBUNTU,$0.008
2019-11-27,actions,3ventic/ohbot-core,2,UBUNTU,$0.008
2019-12-05,actions,3ventic/ohbot-core,6,UBUNTU,$0.008
2019-12-12,actions,3ventic/ohbot-core,6,UBUNTU,$0.008
2020-02-06,actions,3ventic/ohbot-core,2,UBUNTU,$0.008
2020-03-27,actions,3ventic/ohbot-core,3,UBUNTU,$0.008

I use them so much Kapp

north flax
#

I think they're planning to roll out self-hosted actions workers though, so you can let Github manage the tasks, but not need to pay them for the server capacity

cinder spear
#

you can already do that

north flax
#

Unlimited private/public repositoris, with unlimited collaborators, for free. That is really good

#

Ah, they rolled that out already then

cinder spear
#

not with the Actions but CI in general

north flax
#

Ah, I ment specifically with actions

cinder spear
#

not sure what self-hosted actions really brings to the table... sharing public ones?

north flax
#

Unlimited minutes, running on specialized hardware, having control over and priority on your hardware, etc.

cinder spear
#

but you get all that with normal CI already

north flax
#

You could probably minimize the management of it a lot though

cinder spear
#

also apparently they did in fact roll out self-hosted actions runners already

north flax
#

Set up one application and add a token to identify it, vs various configs and so on

#

Ah, nice

cinder spear
#

Warning: We recommend that you do not use self-hosted runners with public repositories.

Forks of your public repository can potentially run dangerous code on your self-hosted runner machine by creating a pull request that executes the code in a workflow.

north flax
#

Scaleway is dropping support for the server type I'm renting from them :<

cinder spear
#

what type is that

#

if it's the old bare metal ones, good riddance

mossy cloud
#

I'm still probably going to use GitLab, I'm just more used to it now :)

#

GitLab was already free for organisations, Ik they're just a company and wouldnt care less but I'd hate to just move my project over just because, would feel like stabbing them in the back :P

raw notch
unkempt hamlet
#

Guys, any of you using Yarn v2?

cinder spear
#

soon

unkempt hamlet
#

I am a little worried about PnP thing, coz I like to check the source code of the packages on the fly. Also, something is odd with per project installation, I think.

cinder spear
#

you can just enable node_modules again if you find issues with pnp

unkempt hamlet
#

Well, node_modules backwards compatibility was an afterthought, so I'd be better to stick to Yarn v1.

#

Actually, npm is better now.

raw notch
#

yeah npm is better

unkempt hamlet
#

68 episodes wow

#

Jeffrey is a robot

quartz moth
#

Yeah those have been really helpful

unkempt hamlet
#

"Laravel 5.2 From Scratch" has only 18 episodes ChrisWot

meager spoke
willow beacon
#

hello

#

basically i made a website for my vtc and there is a form that you can fill in to join vtc but how do i link it to the tmp vtc site so that i get those applications there and i can accept them
if you can help me that would be great

#

i need help with that

mossy cloud
#

@willow beacon That's sadly not yet possible as there's no incoming API for VTC Applications

willow beacon
#

ok ill just do something else