#programming
1 messages Β· Page 25 of 1
@willow beacon https://discordpy.readthedocs.io/en/latest/
Better than any youtube video ever
from discord.ext import commands
from discord import DMChannel
client = commands.Bot(command_prefix = '.')
@client.event
async def on_ready():
print('Bot is ready')
@client.event
async def on_ready():
await client.change_presence(status=discord.Status.online, activity=discord.Game("DM me for help!"))
print('Online')
@client.command()
async def ping(ctx):
await ctx.send(f'Pong! Latency is: {round(client.latency * 1000)}ms')
@client.event
async def on_message(message):
if message.channel.type is DMChannel
async def displayembed():
embed = discord.Embed(
title = 'Thank you for contacting us'
description = a staff member will DM you shortly
colour = discord.Colour.blue()
)
client.run(TOKEN)```
im getting a syntax error on this line: ```message.channel.type is DMChannel``` anyone know whats wrong?
Pro-tip: use ```python for code snippets
yeah i have tried but they only help people who have good knowledge
Ye that's true. Ngl, they don't usually help. They just say it's self explanotary or smthn like that.
well they do help but tell me advanced stuff im not aware abput
Ye that's true. Ngl, they don't usually help. They just say it's self explanotary or smthn like that.
@dapper echo yeah
welp
idk what to do now xD
yeah i have tried but they only help people who have good knowledge
@willow beacon Thats false, the fact that youre not even in the server already tells me that
also why are you importing DMChannel, you already do so by importing discord since its a class
also the is keyword is only checking if a variable is refering to the same object, obviously its not because DMChannel is a type like i said and not an object
The isinstance() function checks if the object (first argument) is an instance or subclass of classinfo class (second argument).
@willow beacon Thats false, the fact that youre not even in the server already tells me that
@slim pendant I'm in the discord.py server
you arent in the python server
So should I use == instead of is?
sir youre comparing a type to a object
if isinstance(channelobject, discord.channel.DMChannel):
It's not that easy
im done, not doing this anymore xD
@willow beacon then learn what a type and a object is before trying discord.py
was 1l anyway Β―_(γ)_/Β―
?
?

now i need to get a host
Wait.... you ditched the project, and now you need a host?
i didnt
lmfao
Oh, I read it wrong
Time to push the bot
after 5 hours of coding and more stuff, i have made my first bot 
nice ^^

And what does your bot do?
its a help bot, so when you enter a command it tells you what to do
such as .apply
and it shows instructions on how to apply
very simple but its a starting point
simple but usefull :)
after 5 hours of coding and more stuff, i have made my first bot :kek:
Noice

grinds my gears

"just learn discord.py first"
@willow beacon I mean, yeah thats what ur supposed to do
learning how classes and general structure of a library is what you need to learn
And lets not forget basic python where i needed to help you for an hour to tell you how to ident a class correctly
lol, tbh you could have done a better job at explaining someone else told me how to do it and I actually understood cause they told me properly
Kept things simple basically
I linked you a video and example code, and you were unable to copy paste them
even after i told you to lookup a tutorial on how idention works
which btw you learn first when learning python


I suggest to learn basic JavaScript then try discord.js, Iβve never used discord.py I should probably learn it. π
Does it matter where to start if you don't know neither of those?

Javascript is bad π
Why?
i dont like it xD dunno why... python, bash, php no problem. but in JS im always doing something wrong π
i dont like it xD dunno why... python, bash, php no problem. but in JS im always doing something wrong π
@ember canyon php is the absolute worst language you can ever write things in
Does it matter where to start if you don't know neither of those?
@unkempt hamlet That wasnt my point, you dont suggest libraries you never used
Can we not make baseless shitting on languages a trend here?
define "baseless"
"x is the absolute worst language" with no further context, no arguments, no reasoning, etc.
Shitty 
Or "Y is bad"
Alright ill do a write up then
Not that PHP, JS, etc don't have issues, but they have their merits too. For PHP, there's also a huge difference between old and new php.
Im talking about that most things in PHP are just badly made
why cant you initialize variables when you want to, only when it is being used?
php has typecasting but its not type safe?
And when you set a type on a variable which dosent work, it gives you a runtime error instead of the type hinting preventing that
also why does it cast the type to a float when an overflow/underflow happens?
it is up to developer to decide should his implementation be type-safe. You can definitely write type-safe code since v7.
also why is php a mix of case sensitivity and case unsensitivity?
did they not think of a way to style the language atleast?
It is up to developer to deside should you initialize variable or not.
but you literally cannot
its initialized when its being used, not when you define it
also type casting with operators works and dosent work?
PHP has a linear learning curve, so everyone can learn it pretty easy.
so is typescript or javascript 
Yes
or go as example if you want to go full speed
It doesn't make the language worst.
i mean, which actual used language is the worst when it comes to web dev?
And when you set a type on a variable which dosent work, it gives you a runtime error instead of the type hinting preventing that
@slim pendant well, IDE can handle that.
Also, alienating developers using the language that powers about 78% of the web is a bad idea for any programming idea
yes, the IDE needs to because php cant
And ye, type hinting is an IDE feature, not a language feature
weird that any other language can
did they not think of a way to style the language atleast?
@slim pendant PHP was build for the purpose of small homepages.
The language itself doesn't, the IDE or editor does it based on information in the code
And how is that related to the style of the language?
also why is php a mix of case sensitivity and case unsensitivity?
@slim pendant poor management. Remember when PHP 6 was yetted.

:fir_think2: And how is that related to the style of the language?
@slim pendant what's wrong with style?
does php has something like clangd (clang language server)
like i said, case sensivity and case unsensivity
you choose one for a language, you dont use both
Like?
Note: Function names are case-insensitive for the ASCII characters A to Z, though it is usually good form to call functions as they appear in their declaration.
Yes
That's a good answer: https://stackoverflow.com/a/46266132
It is a legacy of an old language.
Yes so why use old languages like that / learn it Β―_(γ)_/Β―
when you already know its a mess
Do you need to have a completely new language every 3-5 years just because your old language makes something wrong?
Wrong in air quotes
Usually, when language tries to do everything right, it goes completely wrong and resulted language has a steep learning curve.
It goes academic all of a sudden
Not the language makes you a good programmer, but your knowledge of that language.
Like?
go,ts,js,py,c
Bruh
Β―_(γ)_/Β―
php is still a good language to learn.
Ive finally completed my bot
im very pleased with it
took away a lot of my braincells but yeah xD
and i know a lot more discord.py now xD
"Completed" ? Imo you can't "complete" a bot. As you can always upgrade it and add more stuff into it.
well
By completed i mean everything i wanted is done
Obviously i will further improve it
Also did you figure out how to put emojis?
<#emoji-id>
i just copy paste the universal emoji
Iirc
It is Unicode :)
but PY
compared to php, yes
I think to get the emoji you put a \ in front of the emoji if Im not mistaken
Yeah I know but I saw Lin asking how to do it and now I actually know so I wanted to help him :)
Wot?
Also did you figure out how to put emojis?
Ooooh I remember now. Yes.
π
lol guess who just spent over an hour to realise that the issue with my code was a 0 instead of a 1?
I donβt know. Maybe you?
Yup π
emojis:
for normal custom emojis: <:NAME:ID>
for animated emojis: <a:NAME:ID>
as demonstrated
Hello
Hello

When are developer gonna making Whole Europe finish ? π On Muliplayer ?



:d
ok π
Hey, could anyone link me to an api for the game? I'm looking to create a delivery log bot
@wet kite I believe this is what you're looking for: https://modding.scssoft.com/wiki/Documentation/Engine/SDK/Telemetry
cool ty
is it drunk driving, if the programmer of the self-driving vehicle was drunk when writing the code?
Hahahaha
Major release day! π
- Laravel v6.18.39, v7.28.0 & v8.0
- Dusk v6.6.0
- Fortify v1.0
- Horizon v4.3.5 & v5.0
- Jetstream v1.0
- Nexmo Notification Channel v2.4.0
- Nova v3.9.0
- Passport v10.0
- Socialite v5.0
- Telescope v4.0
- UI v2.2.1
- Spark v11.0
Enjoy! π₯³
#Laravel
109


I'm looking for a Steam API (json pls) with a list of owned DLCs.
@shy haven https://partner.steamgames.com/doc/webapi/IPlayerService#GetOwnedGames
@cinder spear Your endpoint don't have a dlc ;/
(checked with Baltic Sea DLC AppID on screen)
oh, I don't remember then
I don't think it is available in public API
Yes, it is available via partner private API
Oh... thanks for answer guys.
cdnjs is back babyyyy https://blog.cloudflare.com/migrating-cdnjs-to-serverless-with-workers-kv/
Laravel is not fun. Change my mind
Any justification?
I am new to it.
Bruh
but yeah I guess it doesn't matter which language you trying to learn. The start is always hard.
Good luck @ocean mural ! I recommend Laracasts if you're getting started, I found them really helpful
Models? Controllers? Views?
I got that already.
Ah
I will do the frontend later. Backend first. I started building all things I need static and now Im slowly moving everything into functions.
Models and Controllers are backend
I don't quite understand that sentence, but ok. It's up to you after all.
I had to create Controllers in order to moving between the different sides. For example website/test1 or website/test2/?name=joe
Controller is usually a layer between View and Model (in general)
As I said, Im new to it.
But for now its weekend.
Thank you for your help of course. 
No problem, that's what this chat is for.
What's good to Laravel, I mean what's the pros ?
- Expressive, elegant syntax
- Many concepts and features out of the box
- Good starting point for those who started to learn PHP in depth
- Good documentation
- Helpful community
I started learning laravel but I never fully got into it. I might go back and have another go at it
A very good thing about Laravel is its "eco system". There are many official libraries and much more community ones
So Laravel is like NodeJs but for PHP and doesn't make BlackHole called ./node_modules
No it just renames that vendor π
To be fair, it is not that big if a deal that node_modules
And not specific to Laravel
vendor is also there in Go
laravel is the only thing make PHP acceptable :D
Symfony? Yii? Phoenix?
vanilla PHP has its uses too
Phalcon?
Heya folks
Heya π
Howβs it all going?
Smoothly
Getting there, it's updating day π
looks awesome π
Team Fortress 2?
π
I am stupid again π
hey
can believe that π
Bruh
It won't be that long of a step away 
yes i totally know what you guys are talking about
CJ, how is developing bugs doing? 


hello
Hey
Howdy π€
Happy 256th day, programmers!
You too 
yes i totally know what you guys are talking about
@willow beacon hehe
Happy day!
I should probably learn some more JS
i should probably learn some more py 
@mossy cloud Do I see a pterodactyl pannel in that photo from the 9th? π€’
Yes you do
Yep :)
Moment.js is now a legacy project. Use Luxon.
https://momentjs.com/docs/#/-project-status/
577 Contribs... wow
For all who are coding discord bots (preferable with Java JDA) - does the bot have a maximum length for the fields I can add? As you can see down there I am missing a field. (Users can write up to 2000 Chars in one Message, have Bots also such a limit or have Embeds such a limit and I have to split it up in more embeds (and messages then) ?
TIA^Maurice
I would strongly consider just a normal list for checkboxes like that... That embed is not easy to decipher quickly
What do you mean exactly, 3v? And dowmeister - is the limit on 2000 Chars or different? π
I mean it took me a minute before I noticed there was normal text fields in the mix too.
hm, so I should do a normal text like we write here
would likely be easier to read at a glance
how would you do it?
Like that:
Role Create 
Role Delete 
Role Update Name 
Role Update Hoisted 
and so on
probably putting the emoji first but something like that
ah okay ^^ thanks for ur help, really appreciate it 
PHP Laravel:
I'm trying to do a query of all approved VTC jobs to a certain location.
$MissionJobs = VTCJob::where(
[
['endinglocation', '=', $Mission->MissionDestination],
['status', '=', 2]
]
)->get();
However, I want to only get jobs submitted by our Simulation drivers in this query.
Normally I can access this through a belongsToMany relationship on my User class
public function roles()
{
return $this->belongsToMany(Role::class)->withTimestamps()->orderBy('position','desc');
}
Does anyone have any ideas of how I can only include the jobs from drivers with a certain role please?
Almost as if to say:
$MissionJobs = VTCJob::where(
[
['endinglocation', '=', $Mission->MissionDestination],
['status', '=', 2],
[User->hasRole, '=', 'idnumber']
]
)->get();
VTCJob::with('user')->where(... I believe
Thanks, will look at the docs for with and go from there :)
->with('user') is for eager loading iirc. For queries in relations, you need to use ->whereHas(): https://laravel.com/docs/8.x/eloquent-relationships#querying-relationship-existence
So something like:
use Illuminate\Database\Eloquent\Builder;
VTCJob::where(...)->whereHas('user.roles', static function (Builder $query) use ($role) {
$query->where($role->getKeyName(), $role->getKey());
})->get();
The nested relation user.roles should work considering both relations are correctly defined
Better to make a scope query method for it, though π
Done it π
[
['endinglocation', '=', $Mission->MissionDestination],
['status', '=', 2]
]
)->whereHas('DriverDetails.roles', static function (Builder $query) {
$query->where('id', env('SIMULATION_DRIVER_ROLE_ID'));
})->get();```
Thanks for all the help guys π
Also I would use constant for your status so you won't get typo in your query
Example: const STATUS_APPROVED = 1; in your VTCJob class
And than you would be able to do this ['status', '=', VTCJob::STATUS_APPROVED]
@plain ore I just wanted to inform you that i have responded to https://github.com/iraizo/truckersmp.ts/issues/47
π gmail notified me as well
glad to see it not be abandoned
fun, lets hope it doesnt hang like every other time
π
otherwise i gtg and manually install msvs
Thank god it finished
glad to see it not be abandoned
@plain oreim working on improving it and adding trucky api
I saw, great job π
https://blog.jetbrains.com/blog/2020/09/28/code-with-me-eap/
oooooooooooooo
Nice :p
https://radar.cloudflare.com/
So, I moved my settings-embed to plain text, but I think with a nice formation. What do you think?
I'd try replacing the - with the
but looks pretty good as is.
I meant just moving the checkmark to the start of the line and using it as the -
Hello everyone
I have a question how do I display all my friends on the map if I have data about them every 10 seconds in x y format .
I want to have an online map where I can view my friends online.
Yes, I know about this service.
but I want to display it myself, draw it on the map image. Are there any examples of solutions already?
Yep, wait i can send you my own if itβs the right youβre looking for.
http://ets2map.com/?follow=2105641 https://web.truckyapp.com/map?follow=2105641
The numbers are your TMPID, one is the service of TMP and the other is from Trucky
Are you sure you're in the right chat?
ya, developer chat i thought meant anything to do with development,
What this video has to do with development?
development with using video editors
It is video editing, not development
where should i post this
so apparently my government is using Excel spreadsheets to track positive cases in our country... the file got too big so they missed nearly 16k cases, but it's alright now because they're splitting the spreadsheets into batches

π
Hey, How do I turn a file with node js into exe. Can you tell me how it was done
You can't do that without 3rd party V8 engine executable, like Electron
Can you tell me in detail?
There's a couple of npm packages you can use to pack it into an .exe file but they're not amazing unless it's for command line or background stuff. If you want a real app for users you can use electron. Electron uses node.js and essentially lets you create an app as if it was a website, like what Discord does :)
depending on your needs, there is also vercel/pkg
I think i've used pkg before actually haha


Oh congrats guys!

https://cdn.discordapp.com/attachments/565204808051589154/763849555598639185/unknown.png
funniest function I've ever done
lmao
is_not_weeeeee_ing
xDDD
that's literally the funniest method name I've ever seen 
but to be honest, sometimes I also call some methods funny (and cant find them then in other classes
)
xD
lmao
me: "alright guys i made this thing, don't break it"
first person to test it: breaks it by spamming AAAAAAAA
Good Night everyone π
.
Describe "best"
I'm sorry I threw it in the wrong place...
Hello, I already asked that in here but I gave it up. Now I want to take a look onto it again.
I want to request something from a REST-API. To be exact the one where my radio is hosted.
API: https://api.laut.fm/station/redifm
I want to get the name from current_playlist here ^.
And here I want to get the Artist Name (-> https://api.laut.fm/station/redifm/current_song )
Title and Album I already have and that works very very well. Just not the Artist and Playlistname not.
Method: https://pastebin.com/mBEqVXwz
PS: I'm limited to google's JSON API, I can't use other API's (unfortunately) and the language is JAVA
TIA^Maurice
I could have solved that. Thanks anyway 
Hereβs a possible implementation of that, if you may still need it: https://pastebin.com/kpRHXhZk
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Hoi fellas,
Got a weird question here.
I have choosen to swap webhost to my own service, and added a custom mailserver both linked for my domain, but when enabling Full SSL, the webmail.example.com goes Down with βerror too many redirectsβ. And when setting it to Flexible (Strict) it Opens back up but then disables the main webserver at example.com
The webservers are running NGINX, how am i gonna fix this? Iv been using the last few hours on Google and tried alot of solutions but nothing seems to fix the issue..
(Cloudflare DNS)
too many redirects sounds like cloudflare and nginx both try to correct each other in a loop
e.g. cloudflare listening for https, talking to nginx in http but getting a response to redirect to https
Hmm okay im gonna try to read that when i get home from work, thanks!
If I remember correctly, in order for Full SSL to work, you need to also have an SSL certificate configured on your server. Using something like Let's Encrypt should help with the job
Yeah you do
That is my problem, i got 2 CA certificates on my server & in my nginx config, my www.mydomain.com works but it wont activate the sub.mydomain.com, i managed to fix the "webserver is down" by installing the CA certificates, and change cloudflare from Full to Full (Strict), both certificates are correct now but it say it says that the sub.domain.com is invalid
Are you sure that the certificate for the sub.domain.com is correct?
Cute C++ trick of the day: here's an adorable way to get a name for the last parameter in a pack (or really, for any subset of the pack): https://t.co/LeLBlu9ko4
Thanks to an @zygoloid for this one. Caveat: perfect forwarding omitted for brevity, but it's not hard to add.
C++ seems pretty difficult on what I can see in the pictures 
It all comes to the developer. You can have very clean code if the person who writes it, wants other to be able to read it π . I've written some C++ code that I couldn't read 3 weeks after I wrote it.
I think I already know the answer to this one, but I just wanted to ask in case I've missed something -- is there any way at all to find out how many hours someone has been playing in multiplayer/singleplayer alone, rather than the full playtime for the game as a whole? I don't think there is, but I thought I'd ask anyway π
Do you store the time when joining and leaving the server? If so, then you can calculate the time between joining and leaving
I don't think we need that because a) this information is stored for 3 months only per our Privacy Policy b) it will be highly inaccurate since we don't have it enabled since day 1.
"I don't think we need that" are probably not the best picked words. But CJ is right in why it's not possible right now

alrighty, didn't think so, thanks CJ π
That was my point of view on that anyway.
I don't think TruckersMP needs that because it contributes to nothing and will show inaccurate numbers.
What's the best api to make a job logger?
Can that be used in C#?
Yes
Okay sweet can I have a link please to it?
I don't know, consult the documantation
@spark scarab You cant use C# directly with the game's sdk. The game and its sdk is written in C++. You need to write/use some sort "intermediate" dll written in C++ to handle the communication between the sdk and your c# application
Or, in theory you might be able to use something like this package to do it all in C# https://www.nuget.org/packages/UnmanagedExports
Aha nice thanks π
If I can get it sorted I'm thinking to make a really nice job logger and VTC driver hub as I'm a website developer.
you don't need a separate package for it, but you do need to write the method definitions with their C bindings
anyone here with experiences on Wordpress/SMTP server? I keep having troubles connecting my wordpress server to my mailserver -_-
Shouldn't this return true (c#). Or am I being stupid?

Nooo... pls not 
if that ends up holding up in court it'll open a whole can of worms
Level 500 of troll
https://github.com/github/dmca/tree/25cdace60ac64788a4853d33d9fa48c5338f7249
Full youtube-dl source in Github's DMCA repo
Is it possible for me to become a developer for TruckersMP?
What is your experience in any development?
I am a developer for FiveM i can code just normal Vid game developing
What is your main coding language?
Java script
Too bad, TruckersMP uses C++/Assembly
Ehh i triedπ€£
I've developed a 404 error page, my main coding language is html, can I join?

I made a HTML website, can i join? 
FiveM is just HTML/JS/LUA
Otherwise I'm a batch developer
I know a command that can boost your server by 300%
Can I join ?
How do I exe something with Node Js?
After 9 years of maintaining Faker, the popular #PHP library for generating fake data, I'm marking the project as "archived". If you feel adventurous, now is a good time to start a new Faker! https://t.co/31zJ3b849E
139
518
oof
Already forked by well-known PHP developers: https://github.com/FakerPHP/Faker
big nub at Python here. What am I doing wrong? I'm trying to get the the zero's marked in red count up by one for each line
so what should I change for it to work?
Sorry I'm a huge noob in Python, so I don't really know much
Move the initializations out of the loop
Like this?
Also f-strings are your friend 
No, only end and idNumber



Don't boolie me
Sorry β€οΈ
I'd like to know if it's possible to use the TruckersMP Oauth, like logging in with truckermp account
Hmm ok, thanks
Never got so far as to roll it out to the public π
But when the only functions of it would be to log a user in and get their id and username, Steam OAuth is functionally the same
Although I think you'd still need to make sure the user knows that you're getting their TMP info as well as their Steam stuff π probably the best thing to do lol
The website using Steam OAuth should make that clear, yes
Though the information available is just the public profile
(Though, you can argue that TMP should possibly have more privacy settings there)
This is actually relevant to me at the moment, I'm about to start hooking things up with Steam and TruckersMP data so this is useful π
worth noting steam auth gives access to more stuff on steam end that's not always ideal
It does ye. As a general rule developers should limit the scopes they request to what they need, and even if they get the information they should avoid storing it if they don't need to
Both as a principle, but also to take into account things like GDPR, and minimizing the stored data
alrighty π
Why developers can't distinguish between Halloween and Christmas?
Because oct 31 === dec 25

Lol
π¬
I can finally uninstall twitter 
imagine if it just randomly took a screenshot of your code and put it on a story
Lol
Is that scratch? 
Has TMP (or anyone here) had a poke at Livewire? https://laravel-livewire.com/
Looks like it could be a decent hybrid to have more interactivity in apps, and get benefits of server side rendering and easy fetching of data without needing to reload pages each time
We've looked at it, it has a great potential.
uff it's really nice
Tools like Vue and React are extremely powerful, but the complexity they add to a full-stack developer's workflow is insane.
I forgot 3v left as the retired colour is kinda similar 
It is true, though. Livewire should be easy to use, and seems to be easy to learn, too
not arguing that, but saying Vue/React add "insane" complexity to full-stack development
Is there any major reason you haven't implemented it yet as a trial?
It adds insane complexity to such a huge project as ours is. Maybe we will test it out soon on something new, who knows
if adding now yeah, definitely. React is big enough a piece that it should be there from the beginning or not at all, but React/Vue aren't complex. They're just different and you need to think about them differently.
Traditional websites like TMP are multiple individual pages that contain themselves as far as the frontend is concerned while React/Vue and the like span the entire application.
With reactive frameworks the frontend builds and defines the full experience while the backend simply supports it by providing the data flows, the APIs to access and modify stored or synchronized data.
It massively simplifies the backend since it doesn't need to know anything about how data is presented.
Not something I'd advocate plugging into TMP since it's very different, but it's not "insanely complex"
iirc I am the only one experienced enough to work with Vue in the team, so it is not viable. Livewire, in other hand, doesn't add much new stuff outside framework scope, so it must be more accessible for Laravel developers.
That's definitely true.
I just found the sales pitch in the link completely ridiculous
It is highly subjective imo
As like a programming language we're using
I want to move all our stuff to Elixir or IHP to make it more robust and highly scalable/maintainable, but it doesn't make much sense.
you're using laravel currently, right?
The TMP website and api uses Laravel, ye

No what? 
Pinging a developer without a reason? Yeah... no 
I will give me today a try to read a tutorial to get a good frontend developer. Any Ideas?
He asked me to help writing the code, I refused
Ah
Do you have any good sites where I can start to get a frontend developer? With a good tutorial? 
As my team needs still a frontend one and noone wants to help 
I wanted to get into website deving too
I gave up after 5 mins of frontend tutorial

It is based on what tech you wanna use
You just have to love programming ... π
When Eryk from SCS Software once broadcast code creation on Twitch, I grabbed my head ...
Well, I love coding. I really love to code in Java - but I want to learn webdevelopement - but more frontend π
https://www.freecodecamp.org/news/from-zero-to-front-end-hero-part-1-7d4f7f0bff02/ What do you think about this article?
Any code will be somewhat easy to look through if it is written that way.
I saw a newest TMP code snippets, they are easy to understand despite the fact I don't know C++.
Well, then π
Sooo - which IDE to code in Webdevelopment can you recommend me? Should be free π
why React adds insane complexity to full stack dev?
You can start with Visual Studio Code
(oh sorry I'm 1 day late)
Visual Studio Code - oki thanks 
I've started with Sublime Code 2 (3), I missed its responsiveness, but it lacks updates
I use VSC as well
Well, I "just" want to do webdevelopement, dowmeister - I don't understand c++ and or .net 
Chris your opinion is clueless as you are a bad dev :D
I use PhpStorm for both front and back


I use Notepad++
( I'm joking, as an original person, I use VSC )
heya
PHPStorm is the way to go 
PHPStorm is the way for rich people π₯²
Educational licence 
Edu license is a godsent.
Haven't used PHPStorm in so long. Not using PHP much nowadays in general
For rich people oh yeah
Very helpful https://www.learncpp.com/ and this https://www.learnjavaonline.org/
LearnCpp.com is a free website devoted to teaching you how to program in C++. For programmers of all levels (but especially those with no prior experience).
I know i am late but, for those that want to start webdev i recommend all of this (in order): HTML, Css, Js and then you can start learning some frameworks, like reactjs, angular, vuejs etc.. the places i recommend to learn, is on freecodecamp, reading the docs watch some tutorials, and practice a lot.
I need help in something - maybe I am too blind or just too stupid.
Is it possible to get &/ set a List<String> in a table in MySQL (Java -> java.sql.preparedstatement) ? And yes, how?
google is just putting out stupid things
let me see if i understood, you have a List<String> and you want to store his values in a MySQL database. is that correct?
and get the sql result and store in a list
Exactly - and I also want a method for GETTING the value back into a arraylist
I mean, I know, how to update/insert/get things
but I don't think it works here the same way
Maurice
Ape 
see if this helps: https://stackoverflow.com/questions/18134561/how-to-insert-list-products-into-database
hmmm, imma check this out π
Be aware
Hello here π
I'm looking for the video of that TruckersMP use when the website is in Maintenance, some years ago when TruckersMP Website was in maintenance there was a video at the main page, but impossible to find the name or the link of this video, someone know this vid?
Thanks a lot π€
And I use Ubuntu 16.04 so it's could be okay for meh CJMAXIK :p
It is called Percussive Maintenance
Thank you so much ^-^
I'm considering moving from OVH due to reliability. Anyone got any recommendations?
Our current plan
VPS 2018 SSD 2(Current model)
Processor:
1 vCore
RAM:
4 GiB
Storage:
40 GiB
(Β£ 5.99 ex. VAT/month)
Does anyone have anything around that price point? (With around same performance please)
going to have a hard time finding 4GB instances with that price.. most platforms want twice that. The ones I generally recommend checking out for cheap instances would be lightsail, digital ocean, scaleway and... ovh.
fwiw my ovh server has had only 2 outages in 5 years. A short one that resolved within minutes and a longer one when a switch blew up that took a few hours
Yeah, 4 gigs are not that popular for this price range. I have Hetzner with similar config but 2 vCPU for 5.68 euros
@mossy cloud try Netcup
I'll have a look at those, thanks guys :)
oh I forgot about hetzner

@mossy cloud Also I can recommend PHP-Friends - they have strong Servers though (and are pretty cheap in my eyes) π
Thanks :)
I know someone else has mentioned it but I can also recommend Netcup and it looks like they have a plan similar to what youβre after https://www.netcup.eu/vserver/vps.php
Netcup's prices seem pretty decent, really
Their reviews on other sites look pretty bad though
It is almost identical to Hetzner, to be honest, but latter is more credible
Ye. Based on the reviews, DO, Scaleway and Hetzner all seem like better choices
I still have my OpenSource Developer credit on Hetzner
I haven't ever used them, actually
Currently I don't host much, so only using a cheap DO droplet for a chat bot or two
Did use Scaleway before that, but switched to DO when the instance type I used was scheduled to be removed
F
Which language should i learn as a beginner?
Depends on what do you want to achieve
Best languages to learn are Deutsch and Eng
I am pretty sure Sbinnotto07 means coding languages
Almost like it's a channel for developers

Well, you can, but there specific matters are discussed
Often on a very serious note
Roger that.
while working at an e-commerce, we got attacked multiple times. sometime with a so big amount of traffic that our provider can't substain it.
after some days, arrived a request of bitcoins to make the attack stop. we didn't pay.
and did two things: got cloudflare paid plan and built a bgp tunnel with Kaspersky.
now that infrastructure accepts connections only via cloudflare and CF get all the traffic.
as e-commerce, attacks go from September to January
CF is for level 6 and 7, Kaspersky for low levels. they can clean the traffic
money spent for these solution are much less than be offline for days
Anyone of you guys experienced with making discord bots?
Yeah - what's up?
I am trying to make a dynamic help command but it gives me an error I can't figure out haha
dynamic help?
yep, a help command which automaticly displays information about all your commands without you having to hard code every command in it
Commando has this feature by default


We are using this for Botdottir
this.client.registry.commands.clone().sort(this.sortCommands).forEach((command: Command) => {
[...]
}
π€
That is just Discord.JS, not Commando
I recommend you to check some framework built upon Discord.JS
will do
oof ^^ i hate script kiddi attacks against E-Commerce... our own shops are not that targeted the last years but some of our customers but god bless... most of them are just script kiddis trying bad injections that most times are not working π
no i m not talking about script kiddies
it is quite fun when they send out their bots trying wordpress injections in shopware sites... ^^ well... try it π but here and then u also get some really well known guys trying to get into your databases
in case of DDoS attacks it depends very much on how big the attack is
big enough to make one of the biggest Italian provider fail
luckily we had more DoS attacks than DDoS attacks and the DDoS attacks were just smaller ones we easily could handle in a few hours using our own firewalls
10mb/s? 100 maybe?
the peak i was handling as admin had slightly over 100gbps
and firewall didn't crash?
so you didn't handled it :)
we needed some extra routing tricks in the backbone and set up some balancing into a few firewalls to stil get stable network traffic that took some hours ye
indeed, bgp tunnels save in these cases
ye but we are mostly doing just IBGP not EBGP
we got no own datacenter but some housing in different german datacenters and only in FRA we got own backbone connections
but about what pingu asked π when u get problems with ddos, never use OVH π they'll just cut your servers off
netcup is a quite good provider technically, but they use hetzners datacenters thats why they got could connections in case for uplinks
hetzner has not thaaaaat good vps services, their cloud services are still ok, but prices are quite high, buth their dedicated servers are state of the art, no matter if in germany norway or russia
we still have over 20 machines at hetzner cos they are really good
Their cloud is really top-notch
the newer cloud is way better than their old VPS offers ye
but everything higher than ~20 euro/month you could also get one of their decicated servers (like from their server auctions) and build your own virtual machines
like, i7, 2x3TB and 16GB RAM for under 30 euro/mth π
we use their SX-Line for some backup servers and a few Dell machines for some hosting solutions, just amazing
i was laughing about the "load balancing" features for the cloud products π but hey, its an amazing feature for API driven projects
i can't really talk about netcup π cos i worked for them π most of the SCP backend comes from my hand in case of firewall management etc
they changed many things since im gone cos new design etc... the first version were quite interesting cos we build everything from scratch
Some nice changes in there
I've seen a lot of good sales on programming courses Udemy right now. Which language would you guys recommend me to learn? I have close to no experience, apart from some Python experience, but that's not much. I've considered Python or Lua so far, but what would you guys recommend?
Python is a good start
Alright, thanks
nice to see PHP getting rid of more of the bad parts
I also like that landing page, very descriptive and user-friendly
Nullsafe operator is a godsent for Laravel, no more optional() and null checks
Now let me have nullable and non-nullable types, with good logic that's aware of whether a nullable type is still able to be null at any point in the code
Yo so im looking to integrate a twitch now live thing in my discord bot and was wondering if anyone could point me in the right direction. I use discord.js-commando
- Check for presence activity type
STREAMING - Send a message to a channel
Damn, things popping up actually making me miss Laravel a bit. Haven't used it in so long π

I tried Clockwork 5. It's actually quite useful.
Throughout the course of my career I have done my best to stay on top of new hardware and software. As a teenager I owned an Altair 8800 and an Apple II. In my first year of college someone gave me a phone number and said βcall this with modem.β I did, it answered βPENTAGON [β¦]

PHPStorm 2020.3 releases today https://twitter.com/phpstorm/status/1334175192638173187
We'll be releasing PhpStorm 2020.3 tomorrow. And there will be no stories! π€ https://t.co/wpkdaqbQwB
436
Unplug and check everything seated correctly, you could also try taking ram out and refitting in different slots
And cough #tech
Hold down f2 when starting
And
based on my experiences, virtualized macos are purely shit, running xcode on them is an hell
slow at unusable level
I see. However im not sure where to start with that. Do i do a loop function to keep checking the api for the now live feature? Or is there an easier method.
Events 
I guess, today I learned something new and it's not really bad
Image Manipulation. It worked on my first try though
I just took the wrong x,y position, but the bot wrote the text on it 

the wonders of imagemagick
used to dynamically build cached stat images for a game server years ago
well, first now I am trying around (and probably mess around xD ) - then I will change the code (and the pre-image) accordingly for my bot for level-up messages :3
great
yeaaahno.... finally the bot downloads the avatar π thought I will never get this running 
finally I got my text aligned correctly, using my own font according to that we use in the community and the avatar is also now in correct position
For those who are just starting out with Laravel and looking for an easy dev environment to get them started, Laravel Sail might be of interest π https://github.com/laravel/sail
Docker runs completely fine within WSL2? You do not even need the windows version of docker for it. You can just use native docker directly in WSL2.
(Docker for windows runs in its own WSL2 container, the agent just connects over localhost)
So, they have doubled down on Docker in Laravel 8, I see...
Time to find out if it is actually good this time
Thoughts on rust?
Good game, but very toxic community 
GitHub now has Dark mode in beta.
You can enable it in your settings @ https://github.com/settings/appearance
finally no burning eyes anymore 
Dark Reader extension 
Never heard about that tbh 
ikr

I'm making a bot :D.
The bad thing is that I'm having a problem 
Can anyone help me?
@golden ice: Don't ask to ask, just ask. Someone who is idling on the channel and only every now and then glances what's going on is unlikely to answer to your "asking to ask" question, but your actual problem description may get them to answer. Thank you.
Asking to ask is a bad habit for all people, especially for developers.
https://dontasktoask.com/ covers it nicely
if you really want programmers to help you, just go "[thing you're using] is bad, you can't get anything done with it" and you'll have all the programmers who like the thing trying to help you so they can convince you otherwise 
or you'll learn that the thing really is bad... either way you learn something
good thing were in the developer chat
What is in your option the best free alternative of Plesk? And it should support Linux obviously 
I "just" need the Domainmanager and Websitemanager basically... everything on top is optional like E-Mail and whatever 
Vesta or Ajenti
will take a look on both, thanks CJ 
Okay, Ajenti won't let me installing it as I can't figure it out
it doesn't work
Cyberpanel
How do people make those Application Forms on VTC Websites such as Forza Trucking, Prime Logistics, Pries Logistics, etc
Whatβs the best website platform to create a roleplay website that list everything that a owner listed in the discord server ?
Iβm just asking because I tried to make a website for my game but it had a limit.
Depends on its purpose and your skill level.
explain more
And also, I didn't explained, why it didn't work, CJ - the reason is/was, it needs something mandatory what doesn't exists anymore and the new renamed verison it don't detect
well, I say ex-developer, I mean I gave up doing development as a full-time hobby lol
I've never managed to use Adjenti personally anyway
is Ajenti one of those classic admin panels made for people who either can't understand or can't be assed to learn how to use Linux CLI? lol
All good, CJ - I will find another Domainmanager and Website Manager 
Vesta is fine
sorry if I insulted you, but I hate these things
ikr, but it might be handy to many people
Well, it's not like I don't want to learn Linux or something like that. I know Linux good enough and work with it on various systems 
But I want to have access to it over phone too, and I will refuse writing a literally 4 million long command on a phone with 2,5 million mistakes what may cause more issues 
ah, the good old mobile
yeah
I mean, I mostly work indeed over my good computer, but I also need access over the phone, that's why I want to have simple webaccess
fair enough
mobile, the platform all developers repent because it's annoying to have to support and it is used so widely that you're forced to support it
I want to learn a web framework, I've tried Laravel but we haven't been able to setup a lot of electricity π is there a framework you suggested?
any js developers here?
i'm using winston package for logs
but can't figure how put timestamp in front of logs
default is like that:
"log entry {timestamp: "xxx"}"
winston.format.printf(
info => `${info.timestamp} ${info.level}: ${info.message}`
)
What do you mean with "setup a lot of electricity"?
A Turkish joke π Main question, I want to learn a web framework is there a framework you suggested?
It depends on what you want to achieve
I am thinking of a dynamic project. Later I will write a special program in C#. I tried Laravel but as I said it was not for me much.
Describe a "dynamic project".
In general, it will be an account sales project. Everything from the information box to the footers can be changed.
Account sales 

Hi
Iβm not on pc until possibly 1:45 gmt in the afternoon
Ok I didnβt know a pc was required to chat
Vtlog ??
Discord bot or like application
Application like prime logistics tracker
C#
C++
Python
Rest apis
Java
Json
Willwonka
Cake ( this is a real programing language)
I'ma try and learn that one day
Oh you should its very fun
Very good for web based apps
Oh your not lying lol
It really is
What?
@ember canyon: You can appeal your ban by following this article: https://truckersmp.com/kb/1. If you have sent an appeal already, please wait patiently for the answer.
It can take up to 3 days to review your appeal. You can not speed up this process. If no evidence has been added to your ban, you can request them in the appeal.
Discussing web reports, feedback tickets, appeals, punishments received in-game, on the Forum or on Discord is not allowed. (rule Β§8.01 of #discord-rules).
anyone here who knows how to use two networks seperately? Ethernet cable for LAN connection to my router so i can connect my second device to telemetry server and still use internet trough usb tether
so basically LAN cable for LAN, USB Tethering for internet connection
Ethernet 3 is currently turned off so i can use internet
but i want Ethernet 3 to be only LAN mode and get internet from Ethernet4 card (my samsung phone)
I don't think it is possible in Windows.
there is some "network bridge"
i enabled it but now i can't access my pc trough second device
You need to do a proper routing for the bridge
yeah i messed up with it and ended up with removed no internet at all
You can set up proper routing for multiple interfaces in Windows just fine
set the metric for each connection, lower metric means higher priority (when IP is reachable by multiple, the lowest metric is selected)
I've never had a luck with metrics in Windows somehow 
I've done advanced routing in Windows just fine Β―_(γ)_/Β―
It works flawlessly on my Mikrotik though 
still prefer Linux tho
anybody wanna help me later?
With what?
trying to make my own log book like prime logistics tracker
Ah, I can't help you then as I don't have knowledge for that
Any freelance website 
?
Upwork, for example

im dumb ok
Your just said "anybody wanna help me later with creating a logbook". It is just "ask to ask". It means nothing.
ok
ok
Keep in mind this channel wasn't created to get someone to write code for you as volunteer. If you would like someone to do such a thing they would want to get paid or something similar.
But if you are here because you're having issue related with your code and you want someone to give you a hand / look into the problem with you, this is the place for you.
If you don't try to do it yourself and just ask someone to do it for you, you won't get anywhere.
no no no
i will write it all i just want someone to like speak with me and explain what and what not to type
So you want someone to tell you what to write in the code? You should do a Google search and you'll be able to see some example there. Keep in mind that you'll need to have experience in various languages.
programming is mostly googling anyway lol
you mostly just try and write something, doesn't work, google someone's solution that does work, copy & paste, and repeat lol
and any programmer who tries to deny that is lying xD
Programming without a proper knowledge is mostly googling.
and where does that proper knowledge come from? experience
bullshit π

and where does that experience come from? you remembering how you solved the problem last time and not having to google it again
you recall ALL functions and classes and whatever?
Well, I have to say, I learned by doing things and trying(messing) around with the code until it works. Yeah, sometimes I have to google to get in the direction I want to, but mostly I mess around 
I learnt how to code by asking others and googling, and a lot of reading of documentation and stackoverflow
I can recall most of the functions and classes I use in my work.
someone can google also because doesnt recall a method or class, like searching something on msdn
stackoverflow is all developers' best friend
I don't think using documentation equals googling though.
don't use google? π
That's what documentation is for.
no but you gotta admit that you probably google an error when you come across one you don't know how to fix
or haven't seen before
searching on google and land on the right msdn article is quicker than searching on msdn π
msdn?
Programming is mostly googling when desperate, at least for me.
personally, if i get an error never seen before, means is something someone had never π
the only reason you remember all the classes and stuff is because you've probably programmed in the language for years
I mean, I remember 99% of the Kotlin classes and syntax, because I've got used to the language
yes, guys, CJ is a superhero, he dont use google, it's google using him
I didn't said I don't use google
what language do you guys use?
all except python π
lol
try to write powershell without googling, is insane
In fact, I was called "Google Max" in uni, because I can find pretty much anything online π
I have to use Python because it's what they teach us at school, still better than JavaScript at least (in terms of usability, not reliability or efficiency)
PowerShell without googling is hard, ngl
powershell? you use powershell?
I do
I mostly used to use bash when I was on Arch, now I use command prompt (when I have to)
Automatization scripts for my job
yeah most terminal commands are copy-and-paste jobs lol
what language do you primarily write in CJ? PHP?
PHP
nice
I used to use Java, but then I switched to the vastly superior Kotlin (the love-hate language that cuts out a lot of Java boilerplate)
what's PHP like?
I've seen it's not that bad
Easy to learn, not that hard to master
yeah I've looked at it, and it doesn't look all that bad
any idea what laravel is like?
Like magic
looks pretty good from what I've seen
has built-in DI & unit testing
what's it's concurrency like?
There is no concurrency in PHP.
oh wow
well that makes things 100x easier then
what about like massive data processing and stuff then?
all done synchronously or what?
It is all synchronous.
that must get a bit annoying sometimes
how is laravel most popular for backend if it doesn't even have concurrency? that confuses me
or do you mostly just have something else to deal with data processing rather than your web backend
It doesn't need to be concurrent, when it can 1) work fast 2) work from many processes
many processes?
That's another story.
ReactPHP can achieve asynchronous operations in PHP, never used it.
yeah I'm looking at one rn called "Amp" that seems to add futures and coroutines
PHP-FPM spawns and manages child processes that execute the actual PHP application code. Each of these processes handles one request from the web server at a time, meaning that more processes will yield greater concurrency and thus better application performance under higher traffic conditions.
That's about processes
Well, yes, but actually no π
like the language doesn't control the threads, FPM does
Yes, as a process manager
oh that sounds like it makes your life much easier
I hate async











im working on improving it and adding trucky api

and 








