#programming
1 messages Β· Page 27 of 1
π€£
Just a quick question, but what is everyone's IDE (or text editor if you don't use one) of choice?
These ^^
hello
Jetbrainsss
Visual Studio Code
I'd also consider myself a Visual Studio user, however I used to use Jetbrains' IDEs but it was a bit irritating to have to install a separate program for each language.
I use Eclipse π
I use PHPStorm for my PHP / Laravel work and VS Code for front end NodeJS / JS etc
PHPStorm can handle frontend stuff.
PHP Storm is basically a stripped down Idea with powers of WebStorm
I use PHPStorm both for work and hobby stuff.
User and Role search now integrated π
wrap those cards at same height.. PLEASE
display: grid is your friend
just used display: grid to add this to my status page today
But they are all aligned by the content already
Not the prettiest example 
at least until the ping jumps to multiple seconds 
...or until I get a real ipv6 address in there
Hello
These horn sounds still do not come in crowded places. When will it be all right?
Ok sorry CJMAXΔ°K
Anyone here using React?
Some do.
'tis a part of my day job
yes
I am starting learning react, do you have some suggestion?
Vague question demands for a vague answer.
Fair enough xD
One major skill that developer should learn is how to build the questions correctly.
have a real idea and implement it.
i should start from react docs on react official site and redux for state management (there are a lot of packages like it)
looking for react boilerplates online on github it's a good start because it install a complete structure implemented with the best practice
Released our custom vacation request system
https://i.imgur.com/ux5fhzi.png https://i.imgur.com/bNIXnvt.png
Looking nice
Thanks! It uses Laravel with Livewire & Alpine, really nice stuff
Very nice ^-^
Looks clean!
You can claim your own request 
I mean.. i thought about adding logic to stop that.. but is staff really going to claim their own request? 
Would be interested to see tho, how it would react when you approve your own request to leave.. Since it soft deletes the account 
I'll have to test that some time haha
Basically, what comes first - account deletion or approving logic. If first, then it should throw an exception because you don't have user data anymore.
Yeah haha. I'll have to build some sort of validation for that then 
I mean if the staff wanted to take and approve an unreasonably long holiday perhaps, but I guess they'd be found out anyway!
Ye, it sends a Discord notification with ping as well. They wouldn't be able to get away with it unseen haha
(A Discord Android screenshot, not BetterDiscord) 
Thanks 
We have the same for driver applications. Recruitment team gets pinged when a new application comes in, so that it can be handled asap
Frontend for the site is made with Tailwind, so it looks smooth as hecc
well, I'm not really in webdevelopment (I tried it, but never got it working properly)
I started messing around with websites when i was like 10, with drag-and-drop stuff like Wix and WordPress haha
And now web dev is my part-time job 
Pretty amazing ^^ well, coding is just a hobby for me and I don't want to do that as job π but I have respect to those, who are coding for their job and as hobby
I couldn't do that though
Yeah it's both my hobby and job, and that's what I love about it tbh
Working doesn't really feel like working, since I code personal projects as well
Oh well π
Nice
Im looking to do something similar with my application system but for now we just receive applications through email
If your system works with Laravel, it should be pretty easy to implement
With notifications
or events
Im thinking of maybe doing it with discord webhooks
That would work as well, but it's pretty easy to implement a notification system
I have to learn web development first
Get yourself familiar with basic webdev languages first. So HTML, CSS, JS, and PHP if you want to learn Laravel
oh RIP....
and im probably going to wait until I start getting some growth
Laravel can make development easier for sure, but you still need to know your way around languages haha
since i dont need much automation right now
then I'd stay with Java π ngl it's the only and once language I know
Ah, Java, my enemy 
I only know Python
well, Java because of Minecraft π
Had to learn java at school, really didn't like it tbh. But that may also have been because of the teacher haha
and since I know there's a bot api wrapper for java, I also don't just code MC-Plugins, also my Bot is written in π
Im really starting to forget python aswell
im gonna have to practice
all ive done with py is the discord bot
poggers
after doing about 2 minutes of research ive found a way of doing what i want to do
basically i just send the application data to a google spread sheet
and then use some third party software to send it as a discord embed
Well, I tried HTML, PHP, Java, js and.... idk more π - oh well, C++ I tried.... but I never understood anything... except Java
Sorry about the tracker issues lately, trying to track down the bugs
I have been forced to put a blanket ratelimit of 20 req/sec on all map tracker endpoints and 1 req/s on /fullmap per ip address.
for me no problem, i hit every 3 seconds the are endpoint and every minute the fullmap
Good morning, I hope yours are better than mine
# cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath] [faulty]
md2 : active raid1 sdb1[2] sda2[0]
20478912 blocks [2/1] [U_]
[==================>..] recovery = 92.8% (19013248/20478912) finish=0.4min speed=49160K/sec
md3 : active raid1 sdb2[2] sda3[0]
1932506048 blocks [2/1] [U_]
resync=DELAYED
unused devices: <none>
uuuuuuuuh

a quick & sneaky disk replacement
screaming in NetApp shelf outages
Keep calm man :D
always loved the parenthesis pyramid at the end
and seeing the amount of ) seems a callback hell
It is a callback hell
But works pretty good actually
This is onyl 1/3 of the command anyway

it's why after two callbacks i start defining an async and working with promises
If you have that many conditions and callbacks, there is something wrong
Did you all hear of Roblox?
π€¨
If it is not a new progressive programming language, then no 
Roblox Studio
You can create your own game
Own physics
I've been working on an F16 with physics
what's this command for?
Something with Discord API (I saw an embed reference)
let collected = await instead of .then(collected
but that much stuff in one function sounds like π either way
This gives me severe anxiety as im starting to learn how to code, but i got told that this kind is bad, but still. Hella demotivating lmao
don't worry. It's perfectly normal in this industry to open up an old project, think "what kind of idiot wrote this" only to discover it's your own code.
Lol
First learning javascript for my bot tho. Ill prob fail that already...
Me big noob
Discord Py is probably easier for beginners 
i viewed the site and i dont know what to do. its hella unclear what to do.
guys how do i even get javascript? like where i can make those lines and stuff.
pls no booli for my nubness i just dont know how to start
Take a look at W3schools. Itβs a good starting point
Install JavaScript
like where can i do this @unkempt hamlet
That's visual studio code
That's an editor, not a javascript.
I think
i already dont understand shit
You can use any editor
You can even use notepad really 
doing this
Learn the basics first, don't worry about environments and IDEs, that is something for later
Exactly.
correct if i say that ; end a line?
Not always. There are some constructions when you don't need to add it. Also, modern syntax doesn't require ; at all.
but for JavaScript it does right?
Experiment for yourself and see what happens
You can answer lots of questions like that yourself if you play around and see what the behaviours are, or you can read up on it 
true
Just whatever you do, don't always take documentation at face value for applications, as you'll often find that things don't work as they should looks at Microsoft
I got no idea how JS works 
me neither. well, duh
Lol
amps check dms lol
hehe
ahah
reasons why you always want === or even better, typescript
just needed to use === because need to check null, true or false in separate ways π
stupid js
IIRC that specific example has to do with [], which is truthy, being converted to a string for comparison "", which is falsey, which matches ![], which is just false.
i'm reading a code wrote 3 years ago.. and i'm... WTF I DID HERE
me not knowing what you guys are talking about
I half know whats going on
Closure 
what i shared with amps. thought it would be funny
happens a lot... 
maybe the code from 2016 is so good it's not a good idea to change it
said no-one ever
Did someone say Javascript and Nonsense?
https://cdn.discordapp.com/attachments/308225783715856386/741247261798957076/image0.jpg
NaN is a fun little beast since the only good way to check for it is isNaN
how's this? https://3v.fi/s/GnFXi 

Looks better!
that's awesome, 3v!
Is there a rate limit on the TMP API? I have some features in mind for our VTC system, and would like to know if there is a max amount of requests per minute/hour/day that I need to keep in mind.
I won't be spamming the API ofc
, just would like to know if I may run into any issues.
API Consumers who require high rates of requests against our APIs should contact Krashnz, ShawnCZek, J-M & Kat_pw with a rationale and contact email for high-rate usage.
Ye i saw that, just wondering what is seen as "high rates"
@foggy osprey CJ said 60 requests per limit around 7 months ago but that could have changed #programming message
60 reqs/minute is enough, yes.
I mean what would you need that many requests for 
All good then, I won't be passing that limit
Hello :) Does anyone know a good resource with assembly x64 tutorials/examples? For windows...
Has anyone got a link to the TMP API Docs please?
I knew that question will be next ><
It's all good I'll just bookmark it π
We are planning to migrate API docs to more appropriate space, don't have any time do to it properly
Could stick it on github pages and make it open source π
We want to do something like OpenAPI
β€οΈ
open source docs π―
goes grpc only instead 
Hi, I wondered if someone could maybe help me? I'm looking to add a PHP maintenance switch mode/script to my website. So for example when I want the whole website to redirect to the maintenance screen I can just change a value. I've tried looking on Google and Github etc. for the solution but I have come to a stand still
There are couple of ways to do that
First one - just a conditional redirect to a maintenance page
Other options might emerge once you tell us what framework(s) are you using for your project.
Ahh ok, how would I go about doing that? I'm not currently using any frameworks PHP wise at least if that makes sense?
I'm still learning PHP to be honest lol
In Laravel, for example, there is a middleware that checks for an environment variable. If it is true, then redirect to a maintenance page (and other underlying framework-specific stuff).
So, you need to store a variable somewhere to check it out before the start of your application.
Ahh ok, I'll have to look in to that. Thank you π I've never used Laravel
Some can use something like redirects in Cloudflare.
Ahh ok, nice
Anyway, the logic is to somehow break your application sequence and show the maintenance page instead.
Yeahh, that makes sense to be fair. I tried using some simple PHP code some had suggested on stack overflow but for some reason none of them worked, I'm not sure what I did wrong lol
Are you coding in procedural PHP without a framework?
I think so, i'm new to PHP still learning so not tried any frameworks yet
Maybe you're trying to redirect after you have your first piece of html (payload) sent.
Sure π Which web server are you using? Apache or Nginx?
Apache π
My current code:
<?php require_once './assets/inc/config.inc.php';
if(maintenance == 1) {
header('Location: ./maintenance.php');
}
else {
// do nothing
}
?>
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Hidden page | Roqitt Hosting</title>
<!-- CSS -->
<link rel="stylesheet" href="/assets/css/maintenance.min.css">
</head>
<body>
<h1>Hidden web page</h1>
</body>
</html>
Okay, create a file in your root (where your server files are) called .htaccess
And in that file, when you want to enable Maintenance Mode, have the following:
order deny,allow
deny from all
allow from <your ip>
Well, it should be $maintenance
I would recommend using nginx where possible as it allows for more advanced possibilities, but you can't go too wrong with Apache π
Ahh ok thank you
Ohh my bad, I'll try that now haha
And just to clarify, what Penguin talked about there is a completely separate way to do maintance mode than from doing it in php π
Indeed
Yeah. It is used if your whole application needs to be offline.
Another thing: header('Location: ./maintenance.php'); the location here needs to be an actual url, not a file. You can imagine it like php telling your browser to go look somewhere else
Ohh ok, yeahh that would make sense to be fair. I'm just so used to doing files paths in HTML and CSS I just presumed it would work the same lol. My bad
Also, just for the future - do not use loose comparison operator ==, use a strict one === for your own sake
Ohh ok. Is there a reason behind this? π - I'm just curious as I'm learning π
Thank you, honestly I really appreciate it π
No worries.
Thanks to dylan i finnaly found a guide for me https://anidiots.guide/ 
If anyone interested: https://github.com/cjmaxik/truckersmp-steam-helper
Chrome / Firefox extension to provide useful information about TruckersMP player in Steam - cjmaxik/truckersmp-steam-helper
Looks super cool!
@unkempt hamlet Is a .xpi file going to be included for Firefox?
We'll see. I am thinking of providing a zip file with the code for a manual installation, Chrome and Firefox binaries will be from stores
Just need to write a proper workflow
Oki cool π
Hi.
I'm not finding in the API documentation, the variable to receive the total count of players playing.
I don't think there's a way to get a total amount from the API, but you can get the amount per server: https://stats.truckersmp.com/api#servers
You could write a custom function to add those numbers up π
ok thanks
no it's not, sum all players for each server

I guess /* nice */ is a comment, though?
Yes
@unkempt hamlet Just a small bug I guess with the new extension you've made, it shows that they are in a VTC even if they aren't. If that makes sense via the screenshot. Just thought I'd point it out π
Also really good work with the extension, I find it really useful to see if players are adding me just because I've banned them 
Will be fixed in the next release, thanks 
Oh wow, Cloudflare Pages is a great straightforward experience.
I've been loving the TMP Steam helper extension so far, great work CJ! Has been super helpful multiple times already
Has anyone used Summernote here?
I'd like to prevent the insertion of images into a WYSIWYG editor
I have used it before @mossy cloud
Any ideas? π
When you are initialising it you should be able to select that is on the toolbar
I found this on their website
Yeah I'm not looking for the ability to insert images, I want it to automatically remove them if a user pastes them in
We've had way too many examples of people pasting emojis in and it then shows full size when we view it

I'll either have to do it Summernote side / JS or on the HTML Purifier
If you can't find a way to do it in Summernote, perhaps just a quick and dirty preg_replace in your PHP?
Im guessing that it outputs html code, so you should be able to filter out any img tags
Or even better, PHP has this: https://www.php.net/manual/en/function.strip-tags.php
Awesome 

That's my level of CSS

that's actually pretty neat
@raw notch I assume you're aware of this but the Trucky overlay VTRPC shows an Iveco Hi-Way as the Iveco Stralis.
Same issue also applies to the TMP one...
you mean the big image?
maybe it's something to do with the game, as TMP also has the same issue...
Oh wow
this new Trucky VTRPC feature is so awesome
actually is not documented feature
oh wow, it's still pretty cool 
if you like RPC, you will love what's coming
Yeah, dow is a pretty good ingineur regarding that - glad we have him
he does an amazing job with Trucky in general
?
absolutely not π
@shadow marsh is a Patron and a Tester so he knows a lot of things π
Downmeister Is it hard it change the rpc image in trucky
@rigid zenith You can check Trucky KB for that, it's not hard
Is there a place where you provide a free virtual server or do you know?
No.
It's providing a service here in Turkey and Azure and yet he wants to grace the front of a card. Unfortunately I can not give it either. Is there a different way?
it depends what you want to do, but heroku gives free nodes for little applications
I am planning to monitor a website using languages ββsuch as PHP, Node.js.
If you want to monitor a website, usi Cloudflare workers status page :D
or Statuscake π
π
Ahh ridiculous google translate, I noticed new. Actually, what I mean is publishing a website using these languages.
Some personal newsβ¦ πππ
Cloudflare Pages beta is now OPEN to all!
β‘οΈ Get started: https://t.co/BC4pTVdQRd
π Docs: https://t.co/tvPYpd1wJW
This is just the beginning for our Cloudflare Pages platform. Canβt wait to see what you build! #JustGettingStarted
139


Now showing our VTC events in our systems so they can be found in both places #DevUpdates π
Thinking about creating a discord bot and aspiring to get a verified developer badge - any ideas?
Don't create a bot just to get a verified badge
Also, you cannot get the badge anymore since August 2020 iirc
They stopped giving it as people were just making bots just to get the badge.
I expected that ngl...
π€£
it's.. because... her last name is True...
That joke was bad, dow π
type confusion can often lead to security vulnerabilities π€
no Maurice... fire the error because... nono..i dont want to believe it...

I mean, true is a boolean operator... I guess, the SQL can't write true in their DB π sounds funny to us developers, but is bad for the customers lol
I'm suprised it's only come up now though, surely she would've encountered the error before being 6 months in?
probably a recent change in the codebase which wasn't picked up with a test
Makes sense :)
Could be possible
reasons why code coverage is important
True - I also had that once and wondered, why nothing has worked anymore. Changed it and tadaaa, it worked again
Hi devs π

Heya


Hey,
So I've made a custom Discord RPC but it only runs if I goto the Directory of it and run "node index.js" does anyone know how to make it run automatically?
Automatically where?
in his mind
Like you'd open the rich presence and it run like automatically or is that not possible?
Um... You fill RP with your own data, not vice versa.
Rich Presence doesn't know about your script a damn thing.
he wants to start node index.js at windows startup
yea ^
If you do that while Discord is closed, it will crash.
It is better to do that manually, with a shortcut on a Desktop, for example
not necessarily
Depends on how you process the exceptions, but I don't have high hopes.
Well, my app doesn't crash, if my discord is closed
but I guess, that's true ^
because are websockets fundamentally, so the error is an event
it tries to connect over and over and over until discord opens
this new laravel with WSL2 + docker + sail is damn nice
mmmm maybe no...
a lot of different ways to autostart something in Windows, and it's easy enough to detect if Discord is running and only run rich presence when it is
or nexe
i dont hear that package
Or node index.js in bat 
no.
if you dont know it, does not means it doesnt exists π
you cant auto run bat (if i remember)
why not? π
I can run .ahk, why I can't run .bat 
what file is ahk?
AutoHotKey
salam
salam
Speak English here, please.
Hey guys,
a friend and me are working on a special for our server designed launcher. So far, so good - I need now help for the Web-API (I'd like to do).
As the Server is whitelisted, I want to add this to the launcher. As I have the player's UUID there, I'd like to have an request to my (afterwards) self-written API, if this user is whitelisted or not (and maybe also display some other data from a different table though) - Anyway, I do NOT have any experience in Web-Development, so it would be awesome, if you could tell me, how I can realise this: https://prnt.sc/10i6wfl to api.mydomain.eu/whitelist/<uuid> and get the enabled as JSON from it. So we can parse this in the launcher.
Any help is apreciated
Thanks in Advance!
Assuming you are just using PHP @shadow marsh the most simple way would be to set the header to return JSON and just echo whatever content you want
header('Content-Type: application/json');
echo json_encode($data);
I'm on my phone so I can't really type anything special out and I'm sure there are better ways to do it but that should work
Alright, I'm trying to work with that ^^ hopefully I'm not too stupid for that π
Okay, with a bit help of a tutorial, I got it working and I kinda understand it now π
never thought I manage it to get it running ngl
Yeah, just don't kill me for the names - but I did some APIs now - thanks again!!! 
No problem 
If someone is new to programming, what language should he/she learn first? C++, Java,JS?
Try them all and choose for yourself
depends on what you want to doo
I also created now a pretty basic (ugly xD) Site for the API-Docs
http://api.redicraft.eu/ I dunno what I should think about that ngl 
Some documentation is always better than no documentation so great job :)
You can't see the links very well against the background tho
It doesnt show what type of request to make, and what I should expect back? I can work out they're GET requests but it should say this
wellll π
I know, I need to re-color them somehow. And they are all GET-requests
but I will check that out, how to do that ^^ thanks for your criticsm :3
No worries, not saying it to put you down, just to encourage you :)
.
@shadow marsh i'm dying..
You should look at using a framework too like Laravel
Well, I just used a template, added my own photos and removed things that I don't need 
it's a wonder, that this site even runs π
I think JM means for the API itself
Well, that is possible
but I do not know, if our webserver supports that 
and also, I am not a webdeveloper at all - I just did that, as my other Developer needs something to work with. It's not really meant to be public anyway until we have a good webdeveloper who cares about that thing - but that will never happen π
php poo
(this in english: I dont know php and never needed to use it)
Have a look at Lumen, It's a laravel micro-framework
I use that for APIs
I don't even know, what you guys are talking about π not gonna lie, I'm a native Java-Developer, I do NOT understand anything from Webdevelopment - the API was made in less than 30 mins and it does, what it should do
Laravel here, Lumen there, I dunno about anything and I guess, I even don't have a license for that nor the webserver who supports such... whatever that actually all is
I feel kinda lost now 
Do you have good knowledge of NodeJS at all?

Read up what web servers are available for your favorite language as example for node there is express or for python theres flask, rust rocket-rs etc. Then get a grip on what requests are and how they work, then routing and maybe websockets if you need to send a lot of data in a short period
Negative
I really just know java 
Well, my favorite language is Java obviously. I never was a web developer and I never will be one
the API does, what it should do and we don't need more yet 
so, go for apache and deploy your f*** WAR!!!
:D
always liked the acronym WAR in java.. is funny

if java is your favorite im worried for your sanity

Quick question people, what free collaboration software to you all recommend?
Depends on what is your goal.
Well, currently learning Python, moving onto a software development course next semester (hopefully), although looking to improve my web development knowledge etc, and kinda want to allow others to join in on the project.
If you just need to share code and have a review features, Github/Gitlab are your friends. There are some other features like Wikis, Planning boards, etc.
We started off using Trello for collaboration, then I just built a collaboration system for future use :) Seems to work well ^-^
Lol
Thats nice 
Github combined with Visual Studip liveshare is the way to go
editor is obviously vscode
Seems OK for me
try putting a tmpid
in
even tho the player lookup api works i get this when using the ban api {"error":false,"response":[]}
'npm' is currently not installed, try running npm i -g npm
oh wow, why didn't I think of that? 
what's wrong with having no bans?
ahh is it only active bans
no
then it does not work
You can still see bans From a while back if itβs selected as public
got an example broken ID?
If itβs private then you wonβt see any bans I donβt think
ive tried 4 ids
I've tried 1 and got bans, so I have a 100% success rate so far 
ye @green forge was right if there history is private u cant see it
thxs for the help both of u
Youβre welcome π
means a lot xD
R* said they'll fix it, I'm really looking forward to that π
but will they really
also 10 megabytes of json is excessive for an initial loading screen
apparently according to pcgamer it's already out
Rockstar said that it would apply some of t0st's learnings in an update, and now it has: A patch has been released for GTA Online that implements the fix, and the results are immediately obvious.
wow indeed. I can't try it for another week or so unfortunately
I'll give it a try nowas soon as the patch is downloaded
about a minute and 40 seconds 
still not great, but definitely a huge improvement
or just use different branches for proper version control
Hello π I am looking for some help with C# and API problems, if someone could give us a helping hand π¦
Don't ask to ask, just ask.
Okay, I need now your help (again) - i have Β§task here, is it possible to do an if statement, to get, if it's as example uuid_trimmed, uuid_full, userid or name?
So ppl can use one of four methods to get a player's info from our API (Code below)
sincerely i didnt understand what you mena Maurice..
well, you do currently isUser.php?user=<UUID>, but I want to allow ?name=AUserName or ?userid=1234 or ?uuid_full=<The UUID with "-"> and ?uuid_trimmed=<UUID without "-">
Well, in other words - is it possible to do a check, if it's ?name, ?userid, ?uuid_full or ?uuid_trimmed - the result should always be the same, so you can use 4 possible things to get an user from our API - is it more understandable? 
so you have to do something like isset($_GET["user"]) then select * from bla bla bla where uuid = ${task}
isset($_GET["name"]) then select * from bla bla bla where name = ${task}
isset($_GET["userid"]) then select * from bla bla bla where userid = ${task}
you have to check what's the parameter send and do the query accordingly
ahh ^^ okay, will try that, thanks dow 
Okay, I kinda messed around now, but I still don't know, where I should put that exactly
(I will attach a screenshot)
I mean, $task can't work, as I commented it out, but still
I'm a noobie in PHP 
Question for you all specifically web development related, do you all prefer to use a framework such as bootstrap? do you prefer to create your own framework? does it depend on the type of website that you use either?
I see no reason not to use a framework, why reinvent the wheel unless you have specific case requirements? There are a variety of frameworks out there that have a range of feature sets
I live and breathe Laravel when I do my projects π
Love it π
Laravel is a God's gift
i have a config json in a variable called config
I get from my client side the key that i want to change in the form of "key1.key2"
If i then wanted to set that key in the json to something else, how would i do it?
I cant just simply config[optionToChange] because its "key.key"
hope thats not too confusing
How do you all edit bootstrap? do you all just create a new css file? edit the bootstrap.css file? just curious to see what you all do, not really sure if there is a "best way" of oding things
Btw i have not done this kind of things properly for years now so I may be a little slow 
SCSS 
How do I show content from an API inside a windows Form? e.g TMP Server List (C#) I'm having trouble with this.
you should use SASS and scss file overriding bootstrap variables
overriding bootstrap class per class is not a good idea
I have class where I could get all the API data from TMP (server list)
Then in my main form I wrote this code
But nothing appears. What am I doing wrong? π¦
Request is asynchronous
It won't have the data at the moment of building the form. Wait for the data to appear, then trigger this form.
Or update the contents on the fly.
- in your panel's paint you're creating a new Sinfo, but never assigning any values to it, so the variables are going to have their respective zero values (0 for numbers, empty string for strings)
- you're not assigning the data from your parsed json to anything.
It seems like you want something along the lines of calling ServerList.Main() when your form loads and having that return the parsed Sinfo instance(s) for the form to use and reuse. (Would also recommend renaming the method. Main is not descriptive of what it does.)
How should I do it in order to get what i'm looking for ? (to show the list of servers) π¦ I've been like 4 weeks on this. 
Wait, how exactly would work? unless I am missing something very vital lamo
Have a read: https://sass-lang.com/guide
Syntactically Awesome Style Sheets
I know sass, I just dont understand how I could use it it for bootstra pthough
Unless I am being a monkey 
Have a read: https://getbootstrap.com/docs/5.0/customize/sass/
Oh I see now, ty
Is there any API documentation for TruckersMP?
Thanks!
everyone loves code reviews, am I right? 
accept PR
pretty much https://www.youtube.com/watch?v=rR4n-0KYeKQ 
π Video courses from JomaClass:
π New to programming? Learn Python here: https://joma.tech/35gCJTd
π Learn SQL for data science and data analytics: https://joma.tech/3nteQih
π Data Structures and Algorithms: https://joma.tech/2W89H33
π¬ Chat with me on Discord:
https://discord.gg/EQwMWFsmQs
β Support my channel to access my Private Discord Chat...
ahahaha
True story


Slash Commands: once your favorite bots have this function enabled, hitting forward-slash ("/") will bring up a neat list of all possible bot commands https://t.co/aTvSqWBmxV
oui, now released 

Still waiting for the discord.js support
?
!
Understandable.
Almost perfect 
What site is that please?
You can open on Chrome Dev Tools > Lighthouse and run an audit

can i play truckermp on linux???
π
Theoretically you can with wine but it's not perfect
I believe a TMP Linux launcher has been made
There's this https://github.com/lhark/truckersmp-cli
But I wouldn't consider it stable
Is there a way to connect a bot to a vtc so if they join the vtc it adds the required roles in Discord
There is this: https://stats.truckersmp.com/api#vtc_members
And that returns the user_id
Throw that in https://stats.truckersmp.com/api#player_lookup which can include a discordSnowflake
so yea, probably would be possible
Ill have a look at that properly tomorrow thanks for that
good luck
It currently works of a comand at the moment
wine + dxvk
idk if ets2 implements vulcan
Am I correct in guessing its recommended to use ReactJS with bootstrap?
not necessary. bootstrap and react could be used with any framework.
For example Bootstrap + React, i love Reactstrap
Ah ok, quick question, since Im still new to javascript, would I just import the bootstrap.js into a custom js file? or would I just use the bootstrap.js file? (if this makes sense)
if you use something like Reactstrap, dont need to import bootstrap.js as separate file. Just use Reactstrap modules and it will take care of all js integrations
if you use it with plain js. Not with React.
https://react-bootstrap.github.io/ or https://reactstrap.github.io/ . I prefer reactstrap
The most popular front-end framework, rebuilt for React.
reactstrap - easy to use React Bootstrap 4 components compatible with React 16+
Im guessing reactstrap 4 is only compatible with bootstrap 4?
bootstrap 5 is still in beta and reading the changes they are doing, is not suggested to be used in production

i mean, they are changing a lot, deprecating components and replacing them
Yeah, they went like 1/4 framework changed last time with BS4 beta
i think with 5 they arent planning to change so much, but things are changin, is a major, so it's normal
Is reactstrap compatible with bootstrap 5? or does it only support the stable versions of bootstrap?
hardly you could find something already compatible with the v5
specially production ready
So, I would just use reactjs to build the website instead of using your typical html file?
it depends :D
if you use react, could be a bit "against the pattern" including Jquery
because bootstrap needs it
(but I've used Jquery with react for small things because the Dom traversing is easier)
Nowadays plain ES6 is up to the battle for DOM traversing
technology is not always a straight path. it depends on what you have to build, your knowledge, the time :)
it depends :D
if you want to use react and bootstrap, @past shuttle, i suggest reactstrap.
I've used it in three projects and never complain about it.
I've tried also mdboostrap in react, i didn't like it
Ah ok, atm im wanting to build a website with multiple pages such as a homepage, gallery page etc, and then a dashboard once I get that done
Mainly just trying to find the best way to create it, if there is a "best way"
there isn't, really
you could also consider Laravel, for example, for the backend or with vue / react frontend
Was thinking reactstrap for front end tbh
I'm approaching now vue in Laravel, is nice
for me, is a good choice, personally
Bootstrap comes with react strap correct? or would I have to install that separately?
iirc with bootstrap, fundamentally reactstrap use only the css framework because reimplement all components in JSX
ah ok
is why is really useful, instead of struggling with divs and classes you write only <FormGroup> or <Card>
oh never look at node_modules :D or you will be scared as much packages are there :D
is like a black hole
lmao
Hay! Is anyone of you interested in tech rundown of the latest Twitch Plays ETS2 stream?
yes
That sounds 
Interesting
Okay, this Sunday at 6 pm UTC on my Twitch channel (in the profile)
i didnt understand what you mean π
This one
indeed... what's the "twitch plays ets2 stream?" π
ah.. but why? π
Why what exactly?
why do this? π

the only reason would be just for fun π
Why not? 
This wont end well 
I mean, 6 deliveries in 12 hours 
I'll be watching.
It was really hilarious
Got a bit of an issue, tried to add more spacing options on bootstrap but nothing seems to be updating, this is what I have, am I missing anything?
$spacer: 1rem !default;
$spacers: () !default;
// stylelint-disable-next-line scss/dollar-variable-default
$spacers: map-merge(
(
0: 0,
1: ($spacer * .25), //4px
2: ($spacer * .5), //8px
3: $spacer, //16px
4: ($spacer * 1.5), //24px
5: ($spacer * 3), //48px
6: ($spacer * 4), //64px
7: ($spacer * 5), //80px
8: ($spacer * 6.25), //100px
9: ($spacer * 7.5), //120px
10: ($spacer * 9.375) //150px
),
$spacers
);
Hey, I want to make a program that is able to set game / configuration variables that effects the current game. I haven't really used the SCS SDK so not sure where to look or start π . Any help would be great
Well, the SCS SDK are read-only values, you can't edit/write anything with it. So if you want to change any config variables in the game without restarting you'll have to call some game function(s) directly, something like this. #programming message. With the cmd_execute function you can, as the name would suggest, execute a command in the game console and edit config variables that way.
Now, the addresses in that code are not correct anymore as they change when the game updates. Here's the new one for ETS2 (v1.39.4.17s): 0x00000001401B67A0. I don't have the one for ATS because I'm in 1.40 for that.
Ah, great thanks π
Hey, sorry for the second ping. This might be being bad at c++ but I'm trying to run the commands with the updated address hex? (idk what the term would be) though I'm thrown a 'Access violation executing location' error. My first idea would be something to do with the address not being correct or the program not being able to find the process? Thanks again
Full error
Unhandled exception at 0x006767A0 in ConsoleApplication1.exe: 0xC0000005: Access violation executing location 0x006767A0.
This is very interesting to watch https://youtu.be/s3wS1Dd3FFs
To help support me, check out Kite! Kite is a coding assistant that helps you faster, on any IDE offer smart completions and documentation. https://www.kite.com/get-kite/?utm_medium=referral&utm_source=youtube&utm_campaign=johnhammond&utm_content=description-only (disclaimer, affiliate link)
Hang with our community on Discord! https://johnhammon...
ooo that's neat new Discord function

Just imagine the features you could get with the power of Microsoft Bing 
I'm pretty new to all this myself, but that code has to be injected into the game process as a DLL to be able to call functions like that. You can either do this with the SCS SDK, that will load it automatically when the game starts. Or you can inject it yourself with an external program.
cmd_execute
ATS (v.1.39.4.5): 0x00000001401B4580
Are you sure you are using v1.39.4.17s in ETS2? Also, where do you get this error? And how do you inject that DLL to the game process? Do you make that as a plugin?
Anyone able to help out with my annoying issue? π
@past shuttle https://dontasktoask.com/ π
actually he already asked :D
are you compiling bootstrap with sass?
Yeah
Well
Not Sass, but SCSS
Cant remember if its still the same file type or not lmao
yeah the same
Ah ok thought so
show your scss entry point, example style.scss where you are importing bootstrap, your variables and your custom classes
ok your variables scss must be at the top, before all other bootstrap scss
well no, because is an error π
mine is
@import "custom";
@import "../../../node_modules/bootstrap/scss/bootstrap";
and i'm using darken() in custom.scss
Oh
Thats in the bootstrap variables file, which I didnt touch 
ah wait, the error is not darken is not defined but $color is an invalid object
Yeah, its $link-color but idk where thats used tbh
are you using a bootswatch theme?
looks like I found it
$link-color: theme-color("primary") !default;
$link-color: $body-color !default;
$link-hover-color: darken($link-color, 15%) !default;
$link-hover-decoration: none !default;
it's why theme-color is a bootstrap function
if you need to use the primary, you should override the $primary variable
and then $link-color: $primary
using the $primary variable is the gateway for the correct bootstrap customization, the default is blue, but if you want red with all shades (darken and lighter colors), define $primary is the way
Decided just to import all bootstrap tbh
but always after your variables
got both variables and bootstrap in my custom.scss although nothing seems to have changed
almost now should be correct. so you defined the $spacer in your variables?
yeah
Sorry for the late reply, Yeah I'm using 1.39.4.17s, should of thought it needed injecting via DLL. Would you recommend any software for the injection? With it being an injected DLL how would you recommend with passing data / commands to be run, as in passing the command called in twitch chat to the DLL or would you just manage it within the DLL
^
@neon crater You do not actually need to inject it, if you are making it as a plugin then the game "injects it" for you.
What you are doing with the cmd_execute is function hooking using memory addresses. The addresses you've seen in this channel (ex. 0x00000001401B4580) are offsets from the base memory address of the game when its running. The base memory address of the game changes from each time you start the game (* it might not, depends on a lot of factors, but its not static and will vary from computer to computer, restart to restart) as its decided by windows where the game fits in ram, so you would have to get this dynamically and then add the offset to the function you want to execute. Now one very important aspect of this is that the offsets change for every single different build of the game (with rare exceptions). If the version number changes, you need to find a new offset to make it work with that new version.
Ah ok. Do you have any links / examples for creation of a new ets2 plugin that I could use. In regards to the offsets, where do these come from and how are the obtained so I can update in the future? With passing the commands to be run, would a websocket work? i.e. have a local websocket server and send commands to be run into the DLL
In the scs telemetry sdk there's a couple of working example plugins that you can use/modify to have a plugin going https://modding.scssoft.com/wiki/Documentation/Engine/SDK/Telemetry
The offsets come from reverse engineering the game; looking at the assembly code of the game, debugging the game and finding the function you're looking for. Theres a lot of ways to do this. Could even be automated by signature searching.
As for websockets.. Yeah. Its possible.
Ah ok, this is great. Thanks for the help 
@neon crater As the basis of your plugin, you can use the example from SCS, and further develop it for your tasks. You can find a basic example in the plugin folder \examples\telemetry.
If you plan to use cmd_execute within the plugin, it is better to do it within the SCS_TELEMETRY_EVENT_frame_end event, it's more safely.
If I understand the task correctly, you plan to establish a connection to your server for receive/send some commands. You can look to the side Socket.IO
https://github.com/socketio/socket.io-client-cpp
https://socket.io/
C++11 implementation of Socket.IO client. Contribute to socketio/socket.io-client-cpp development by creating an account on GitHub.
Thanks for the tips, I was thinking of using Socket so I'm glad there is a library.
I am live on Twitch rn.
No way
Good
What's wrong?
It's just ew innit
What's wrong, again?
Just strange that it's made in TypeScript and uses Commando, something which was designed for those who are new(ish) to Discord.js or programming in general
Who said it was designed for that?
because Commando is simply great
sarcasm?
Commando is quite simply not great and there are far better alternatives for an easier development experience in discord.js
Β―_(γ)_/Β―
like what for example?
Source: I made several bots that I decided to never release lul
because i didnt found anything good like Commando
Akairo
Far easier to use
And works brilliantly
Once you figure out a few of the little nuances in it, it works far better than Commando could ever dream to
I don't need to use API directly if I can just use commando and have more time to make my application better, just like any other packages
Nah i dont think you're getting what I'm saying mate honestly
Akairo is a discord.js framework just like Commando
There's plenty out there
Pure Discord.js > any Discord.js framwork
If I know commando very fine, why should I consider any other package?
Β―_(γ)_/Β―
It suits my needs
it's your choice ofc
Exactly
am not saying u should switch
π
just saying there's way better alternatives and commando can be a bit shit
@jovial jetty 
It is going nowhere 
just like my life
If it works it's not ew
personal prefernece
Exactly
big up on that one
I've used akairo for all my bots since making the worst command handler to ever exist
and akairo works beautifully
"commando is not fine because of this, this and that, use akairo because this, that and particularly this one" - good recommendation
"commando ew, akairo fine" - bad
yeah that's a fair stance
akairo has pretty good command handling and allows easier categorising of commands and grouping commands of the same type together without needing to write an over-complicated command handler
it also has a lot of built in utils too
that can be done using raw d.js but akairo makes it waaaay easier
i can also copy paste my template bot and get a bot up in 5 mins
Btw was anyone able to figure out why my spacers dont work?
Also, CJ, does botranktir use prettier or a code formatter?
Beautiful code is best code
Can't remember
I just ran prettier --write . and some files are bruh

42ms to format
I prefer standardjs personally
prettier is love
prettier is life
once i started using prettier on my files, never gone back to anything else
You should see my changes count after Twitch Plays stream 
#programming message Since some people were confused
Oh, y'all just use StandardJS to format your code
That's what does it ew prettier makes the file 10x longer but looks sick
Never used bootstrap so can't be of any help unfortunately
and more lines = looks like it does more
I agree
Code formatting
Making the code look β¨ pretty β¨
anyway im off to 
bruh moment
I have a minor occurrence of serious brain damage about this sentence, sorry. It doesn't make any sense.
So quick question for those who are some what experienced with bootstrap sass, so atm I have my $spacers all done, how would I use that in normal CSS, what I mean is that currently I have these $spacers
$spacer: 1rem !default;
$spacers: () !default;
// stylelint-disable-next-line scss/dollar-variable-default
$spacers: map-merge(
(
0: 0,
1: ($spacer * .25), //4px
2: ($spacer * .5), //8px
3: $spacer, //16px
4: ($spacer * 1.5), //24px
5: ($spacer * 3), //48px
6: ($spacer * 4), //64px
7: ($spacer * 5), //80px
8: ($spacer * 6.25), //100px
9: ($spacer * 7.5), //120px
10: ($spacer * 9.375) //150px
),
$spacers
);
How would I add this onto normal CSS, atm this is what I have
.py-6 {
padding: $spacer !important;
}
Honestly kinda confused now
Oh wow
Take a look here: https://getbootstrap.com/docs/4.4/getting-started/theming/#functions
if you want to override Bootstrap values, you have to set the variables, then import bootstrap scss
Is that a slight Portal 2 reference? π
Might be π₯
Moron 
There are better alternatives, indeed. But only in certain stuff. Back then, I checked all other frameworks and Commando turned out to be the best one for our needs.
In the future, it will be most likely changed as one of main points will be the support for slash commands, basically. That is a must. And I doubt Commando will have it anytime soon.
You can handle slash commands on D.js V12
@ember canyon
My Discord.js bot (written in TypeScript) handles them with ease π
No. You can use client.on("raw") (shows all gateway events with that client) then filter it down to INTERACTION_CREATE and that is a slash command, then you make a POST request to another endpoint stating the type and data and boom, you have a response to a slash command.
Obviously, I've explained it really really rough, but there is currently a way of doing it and the way I do it on my bot. And it isn't really the easiest thing to do, but hey ho, it does the job and it looks cool & makes it look like I'm way smarter than I actually am-
NeverTM; the PR has been open for ages π€£
I heard you like PRs
delete evetything
replace it with more inefficient spaghetti mess that takes double the space
coding
Yeah, or we can completely drop any framework and just use TypeScript. What you are mentioning is a solution, however, not a good one for bigger scale imo
How can he access these files?
Ghidra?
Ask the repo creator 
He cannot access any files. The code there consists of guesses
So it may or may not work?
Either working or not, it doesn't comply with our Terms of Service 
don't worry, I won't do IFMP or whatever
because I'm too stupid for CPP
if it was written in Java, perhaps I'd tried it out ngl
You'd be more successful to compile a working MP from our old code (https://github.com/MRBlueGame95/ETS2MP) rather than that one.
this licence 
sweet 
Some form of WTFPL 
but still, I do not have any knowledge about CPP so it's kinda..... useless for me
but maybe I will see something, I dunno
I have literally no idea how to compile it into something useful 
same
or which IDE I should choose to work in it
I guess QualityMP will have to be put on hold 

In case of figuring out CPP and working with this code, I would do a small MP just for friends - means I will add somehow a whitelist - dunno how but it will be possible I guess
It probably requires a very old version of ETS, so I don't think a whitelist would be necessary
I think trying to update from that version to 1.39 would be so much work...
indeed
TMP has multiple developers and they have had the opportunity to update over time.
And I'm a noob in CPP and don't have ppl who helps me - will kinda be funny 
Isn't it possible for them to access with reverse engineering? Ida pro, ghidra...
Probably mwl4 has taken a security measure for this situation. π
One can never obtain the original source code from the final binary. You can only guess the original names and functionality like here:
<#programming message>
While looking at the old repository, I wonder why TruckersMP is not open-source now
I don't see any reason for it
If I think about it, then (from my point of view) the disclosure of the source code with a suitable license would lead to more people being able to work on TruckersMP, even though they have no idea about reverse engineering but know how to code in C++. Maybe it would also help people learning how to do reverse engineering. FiveM is also a mp mod (not the same because the offer a mod framework) but if you look at the mp part it is slightly the same thing. tbh I actually don't see any disadvantage if you did it that way
The problems are:
- TruckersMP is pretty niche compared to FiveM, which means less attention and less community in general.
- The actual cost of the open-source (including time spending) is really high, often without any positive outcome.
- I don't see us just sending the code in a wild to make ourselves competitors just for the sake of OSS community.
- The moment you have your code published, the attention from hackers (or script-kiddies) is way higher than usual.
- Per SCS EULA, nobody can reverse-engineer their code and redistribute it. So, open-sourced TruckersMP can lead to liability.
Does this mean that no reverse engineering was used when coding the MP?
Definitely not, but we have an agreements.
Scs does not allow this but does not lock its files.
To be honest, Ghidra was opening the core_ets2mp.dll file when it was first released.
Discord doesn't allow you but you can see their code client as is.

That's how legal things work.
- Wouldn't really say that because the TruckersMP community (and also the ETS/ATS community in general) is still quite large with millions of users.
- Partly agreed, it takes a bit more time yes, but most of the time will be compensated with external contributions. So you actually save time instead of losing time.
- That's right, but as you are the "original" truck sim mp mod and have a very big community, you should definitely not be worried about that.
- Partly agreed. Normal "hackers" aren't interested in truck sims though. But players who manipulate their ingame positions for example could be a problem, but this could be partly solved with server-side checks.
- Yes, you can't redistribute the reverse-engineered code that's absolutely right, but you can distribute the mp mod code because it is your code and not SCS's code as far as I know
but most of the time will be compensated with external contributions
Only if your code is used by many other projects (like Laravel). But you still need to review every single piece of code. That's even harder with open-source community.
With 3, you cannot compare it to FiveM, because GTA itself is made by a multi-billion company who doesn't care about it much. In our case, the possible lose is beyond any positive outcomes.
From my point of view, code review in open source projects has not been a bad thing. On the contrary, this allows potential bugs to be found before it is released. And there is also a lot of exchange between the contributors.
I recommend reading the whole conversation that mwl4 took a part in: <#general message>
It is not about open-source projects, it is about multiplayer projects for ETS2. However, a lot of that applies to your question, too. Here is a brief recap:
Old source code has nothing π It is nothing compared to the current source code of truckersmp [...]
Basically creating multiplayer for a game to which you have source codes is very hard, and this will tell you every game developer
What about a game to which you don't have source code? [...]
but the thing is not only about lines of code, but also architecture of code, used solutions, patterns, etc [...]
[...] also GTA has scripting engine, so it makes a lot things easier π [...]
about fivem: because of many contributors into code there is (or was) problem with server linux build; https://forum.fivem.net/t/important-fivem-linux-server-builds-at-risk/196509
So many contributors does not mean that code is fine π [...] sometimes you spot insecure code in open source after few years; https://twitter.com/3lbios/status/1087855341226942465
From my point of view, yes, this community has a lot of developers. But so far from what I have seen, there is hardly anybody who would make great additions to the code. The required skill level is just too high (it is not just about C++ language); only getting used to the reverse engineering part and the whole code base takes too much time.
Additionally, count the points mentioned by CJMAXiK. At the end, people would just use something we create in exchange for our time.
@lost rose In the context of the above, you can start with yourself. Start posting your research in the framework of reverse engineering of the game, your achievements and your code for community. Otherwise, your suggestion looks like "give me your code and we will do something about it within the community". It doesn't work that way.
Not really a computor program but, Im making a RIFLE, more specifically, a GUN that shoots HUGE rounds.
Anything I should know about 3d modeling on a PC to test stuff?
I mean, you should know 3d modelling.
I know how to do 3d modeling, I just want some tips. I dont know what software to use too.
Try to make your question more streamlined. What kind of software you're looking for, what goals do you pursue, what kind of features you want to see?
Have a look at https://www.blender.org/ π
Im looking for an easy to use software
I want to make 3d parts of my weapon (I dont have a 3d printer and im not making illegal gun parts.)
I wanna see some features like "weight" and if I make a kind of rail, I want to be able to slide the thing up and down the rail without it clipping through.
I tried blender and it was too complicated for me.
Blender is fairly represen#tative of most CAD software, so I guess you have to get used to the number of features...
https://www.theverge.com/2021/4/8/22374464/linkedin-data-leak-500-million-accounts-scraped-microsoft

Yikes
Where's a bug?
''Reopen''
Only GMM
But I'm User
Player*
I Think This Is An Important Issue You Should Take Care Of
@opal arch
Report it in a support ticket here: https://truckersmp.com/support/tickets
It should be already fixed
my game just crashed changing the player tag color
I think that's a well know bug. The best way to change tag colour is to use the decimal colour code in the config.txt 
Two years ago, secret club member @floesen_ reported a remote code execution flaw affecting all source engine games. It can be triggered through a Steam invite. This has yet to be patched, and Valve is preventing us from publicly disclosing it. https://t.co/0FWRvEVuUX
379
1178
Any developer available for a job?
@naive yacht It would be better to describe what the job actually is aswell.. See: https://dontasktoask.com/
Its to create a website to a vtc
Perhaps you should read our #discord-rules 4.11
Hello humans, cats and vehicles.
I'm developing a big platform for the government. It is mainly for the emergency services. When it's done I'll have to expand it to other related services that I can't disclose here as they're classified projects.
Nevertheless, I need help and suggestions in regards to the audit log. As you may expect, all transactions and movements on the platform have to be logged.
At the moment, I simply have a table with the logs, but the thing is with storing what changed. Here's how it is stored:
postAudit(entity, user, title, action, table, old, new, client)
- entity, is the entity that the user works at
- user, is the user
- title, is a small description of what the user did
- action, is the operation like update, create, delete, etc.
- table, is the table of the record
- old, stores the previous data that was in the records
- new, stores the new record
- client, stores the user device information like MAC, IP, location, etc.
So, when an auditor opens a log, it contains all the info of that log. The old and new are side by side and the differences are highlighted. However, I don't like how it is being done now, I believe is not efficient because I'm doubling unnecessary data. That's why I'm here asking if someone has some ideas of what and how I can improve this.
I thought I could check if the old data and the new data and only post the fields that where different. But before I re-structure the code to it, I would like to see if there were any suggestions.
Sorry if it sound vague or confusing, there's more behind how the logs work but that's government classified info so that's all I can provide.
I'm developing a big platform for the government. and ur asking on a trucking sim community in developer chat. Sounds weird
by its nature, a log, must be verbose, so if you are doubling data, is necessary to keep coherence in the log
but yes, you should compare the two entities, and if they are different, write a log, otherwise there is no need to write a log if nothing changed
including make it basic, make use of uid's
depending on the language you are using there are many ways to compare objects, from prop to prop or by proprietary language comparison tool
and so on
I've asked this here, other communities and also to the other technicians that work in the TI departments. Understanding multiple points of view helps. I could use the log system that they're using, but I couldn't use it the way I intend to.
All IDs are UUIDs
So, I may change the structure to something like this?
- table, the table of the record
- record_id, the affected id
- no_operation, an incremental int
- operation
- user
- entity
- client
- timestamp
- old
- new
I'm just concerned if using the "table" as a field could in some way compromise anything π€
you are missing the "entity type"
ah it's the table?
it's weird to mind on tables on 2021... you should mind on Entities (class names, objects and so on)
I use MVC
and missing also the operation type
don't see how is related..
operation type = create, update, delete
It was for this π
I use classes
old \ new what would be? a JSON serialization of objects?
I could do that, yes
Well I appreciate your help guys, however I just got told that I will have to change it all to .NET
So yes... RIP work done until now.
I mean, that's why technical brief is out there - to outline tools, technologies and qualifications needed for the project.
Yeah, like, this project is being worked on for at least 4 years. We've settled on PHP due to some restrictions with .NET. But apparently, changed are being made by the IT "modernisation" department and they won't support PHP in the datacenters for new applications, so yeah... At least the development is on a early stage
Government 
Oh yeah, you don't have an idea of how hard is to make them understand a thing.
I do actually
Oh, so you know the pain it is
Yeah...
Well, it is what it is. I guess me and my team will have to learn ASP. Experience is always welcome.
I just hope that they won't change it again.
They're changing everything to AWS
AWS is kind of the future though
I was an IT architect for a government social guarantees system for quite a while.
Cloud computing has a lot to offer. Just look at how much of the web runs on AWS or the Azure today 
Yes, I think the contract was a good one. AWS also has a very good reputation on their servers, security, performance, almost everything tbh and they already work with many government agencies.
Oh, awesome! My objective is a little different. I want to be a National Emergency Coordinator. I have a project that is being evaluated by the government to use AI in the Security Forces and Traffic Enforcement that also includes the digital transaction of many systems.
That's a tough task, good luck!
It is, probably I won't be the project coordinator as I don't have that experience yet. I will be happy that a project I took 1 year just in research was worth for something. Specially for experience π
And thank you
so when is TMP going to use more secure pointers?
https://github.com/zhuowei/nft_ptr
Rust is a way to go 
be sure to checkout the white paper
I don't understand NFT enough 
don't need to
not sure if this is the correct channel, tryna set up botranktir in my server but for some reason it says I'm missing a parameter. I'm admin in the server and have used the bot in some of my other servers. Any idea's what could be causing it?
The message is in an announcement channel so could that be the problem?
What is the exact message you're getting?
Message: -addrole #stream-announcements 831230051898622012 :punch: @Live Notified
Response: [EM] Murdoc Niccals, please, provide valid parameters! For more information, run command -help addrole
Do not use @ if it is not in the role name
weird, it works in normal channels but not in an announcement channel.
I'll try that now
still the same response
Ah, sorry for that, you can use it in text channel only (https://github.com/TruckersMP/botranktir/blob/master/src/commands/roles/add.command.ts#L81)
I was correct. The bot doesn't work if the message is in an announcement channel
I changed the channel to a normal channel and it worked straight away
no worries bud, thanks for your help π
Negligible performance overhead
Right?
Imagine we used that for truck accessories
TruckersMP will go brrr then - loading times are not 2 mins anymore, more like 10 seconds 
loading times are not 2 mins but 50 days 
Pretty random question, someone (a developer or someone who have access to the group code) could give me the exact R.G.B color code of the in-game Patreon group? Thannnks π
Based off this forum topic: https://forum.truckersmp.com/index.php?/topic/92861-guide-truckersmp-user-staff-hex-color-information/ -- Should be after converted from HEX: (218,165,32)
Thank you so much! π
@livid shoal Gratz
Thank you 
I can just imagine dependabot in GitHub having a seizure over the amount of vulnerabilities found π
Heyyy, small question for devs here.
Why did you guys are not reducing the slots on the Sim1?
Wouldn't it be better to have less players on Sim1, and more players on Sim2? In order to have a balance to get less stress.
I can see than the IP of the Sim1 are not the same as the Sim2, so different machine I assume? The sim2 do not have that problem.
Only the sim1 was really impacted by the OVH fire?
Thanks π
As said in Dev Update blog post, we are working on possible solutions.
Sim 2 is in different location and at different provider.
This is not to sound boring. I'm just offering a solution as a player! Good luck with the problem solving.
"1 dependents"
oh shit
any available developer?
For what?
for a job
I mean, #programming message
can u call me on private?
I am not available for hire

so why do u even answer
You asked about a private call, I rejected it. What are you talking about?
they expect that if anyone answers eith anything to the intial message theyrw interested
@naive yacht https://dontasktoask.com/
My man has already asked for a developer before 
good job!





.js








