#programming

1 messages Β· Page 25 of 1

willow beacon
#

Thanks Coolio & raizo

slim pendant
#

Better than any youtube video ever

willow beacon
#

xD

willow beacon
#
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?
unkempt hamlet
#

Pro-tip: use ```python for code snippets

dapper echo
#

Tbh, I think you would get more help in the official python, or d.py server.

willow beacon
#

yeah i have tried but they only help people who have good knowledge

dapper echo
#

Ye that's true. Ngl, they don't usually help. They just say it's self explanotary or smthn like that.

willow beacon
#

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

slim pendant
#

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

willow beacon
#

@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

slim pendant
#

you arent in the python server

willow beacon
#

So should I use == instead of is?

slim pendant
#

what sir youre comparing a type to a object

#

if isinstance(channelobject, discord.channel.DMChannel):

willow beacon
#

i dont get anything at all xD

#

im done, not doing this anymore xD

dapper echo
#

It's not that easy

unkempt hamlet
#

Oh shoot

#

I've logged into Github from Crimea and my account is blocked now CatNotPleased

slim pendant
#

im done, not doing this anymore xD
@willow beacon then learn what a type and a object is before trying discord.py

willow beacon
#

i ditched that and completed my bot

#

at least i have achieved something...

slim pendant
#

was 1l anyway Β―_(ツ)_/Β―

willow beacon
#

?

slim pendant
#

?

willow beacon
#

was 1l?

#

now i need to get a host

slim pendant
willow beacon
#

anyways

#

bai

dapper echo
#

now i need to get a host
Wait.... you ditched the project, and now you need a host?

willow beacon
#

i didnt

slim pendant
#

lmfao

dapper echo
#

Oh, I read it wrong

willow beacon
#

Time to push the bot

willow beacon
#

after 5 hours of coding and more stuff, i have made my first bot kek

shadow marsh
#

nice ^^

willow beacon
mental wedge
#

And what does your bot do?

willow beacon
#

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

mental wedge
#

simple but usefull :)

willow beacon
#

yep

#

indeed

dapper echo
#

after 5 hours of coding and more stuff, i have made my first bot :kek:
Noice

willow beacon
unkempt hamlet
willow beacon
#

grinds my gears

dapper echo
slim pendant
#

"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

willow beacon
#

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

slim pendant
#

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

willow beacon
slim pendant
hearty loom
#

I suggest to learn basic JavaScript then try discord.js, I’ve never used discord.py I should probably learn it. πŸ˜‚

slim pendant
#

You don’t know the Library but suggest a other library?

#

How does that work

unkempt hamlet
#

Does it matter where to start if you don't know neither of those?

willow beacon
ember canyon
#

Javascript is bad πŸ˜›

unkempt hamlet
#

Why?

ember canyon
#

i dont like it xD dunno why... python, bash, php no problem. but in JS im always doing something wrong πŸ˜„

hearty loom
#

Unless you know the basic JS, you can’t go wrong.

#

I know PHP very well! πŸ˜‰

slim pendant
#

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

north flax
#

Can we not make baseless shitting on languages a trend here?

slim pendant
#

define "baseless"

north flax
#

"x is the absolute worst language" with no further context, no arguments, no reasoning, etc.

unkempt hamlet
#

Shitty rooDerpy

north flax
#

Or "Y is bad"

slim pendant
#

Alright ill do a write up then

north flax
#

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.

slim pendant
#

Im talking about that most things in PHP are just badly made

unkempt hamlet
#

Most?

#

Do you have any statistics?

slim pendant
#

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?

unkempt hamlet
#

it is up to developer to decide should his implementation be type-safe. You can definitely write type-safe code since v7.

slim pendant
#

also why is php a mix of case sensitivity and case unsensitivity?

#

did they not think of a way to style the language atleast?

unkempt hamlet
#

It is up to developer to deside should you initialize variable or not.

slim pendant
#

but you literally cannot

#

its initialized when its being used, not when you define it

unkempt hamlet
#

PHP has a linear learning curve, so everyone can learn it pretty easy.

slim pendant
#

so is typescript or javascript fir_think_owo

unkempt hamlet
#

Yes

slim pendant
#

or go as example if you want to go full speed

unkempt hamlet
#

It doesn't make the language worst.

slim pendant
#

i mean, which actual used language is the worst when it comes to web dev?

unkempt hamlet
#

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.

north flax
#

Also, alienating developers using the language that powers about 78% of the web is a bad idea for any programming idea

slim pendant
#

yes, the IDE needs to because php cant

north flax
#

And ye, type hinting is an IDE feature, not a language feature

slim pendant
#

weird that any other language can

unkempt hamlet
#

did they not think of a way to style the language atleast?
@slim pendant PHP was build for the purpose of small homepages.

north flax
#

The language itself doesn't, the IDE or editor does it based on information in the code

slim pendant
#

fir_think2 And how is that related to the style of the language?

unkempt hamlet
#

also why is php a mix of case sensitivity and case unsensitivity?
@slim pendant poor management. Remember when PHP 6 was yetted.

slim pendant
unkempt hamlet
#

:fir_think2: And how is that related to the style of the language?
@slim pendant what's wrong with style?

slim pendant
#

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

unkempt hamlet
#

Like?

slim pendant
#

variables are case sensitive, functions arent

#

as example

unkempt hamlet
#

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

#

It is a legacy of an old language.

slim pendant
#

Yes so why use old languages like that / learn it Β―_(ツ)_/Β―

#

when you already know its a mess

unkempt hamlet
#

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

slim pendant
#

fir_think_owo I need a language that dosent make anything wrong

#

and isnt deprecated

unkempt hamlet
#

Bruh, it is not possible

#

Use Fortran then, it is perfect

#

Or Assembly

slim pendant
#

"not possible", "use" thinkW

#

web assembly go brr

unkempt hamlet
#

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.

slim pendant
#

In my opinion php just creates bad habbits

#

and that there are better alternatives

unkempt hamlet
#

Like?

slim pendant
#

go,ts,js,py,c

unkempt hamlet
#

Bruh

slim pendant
#

Β―_(ツ)_/Β―

ember canyon
#

php is still a good language to learn.

meager spoke
#

"better alt from php"

js, py

#

js sometimes maybe

#

but PY

willow beacon
#

Ive finally completed my bot

#

im very pleased with it

#

took away a lot of my braincells but yeah xD

dapper echo
#

"Completed" ? Imo you can't "complete" a bot. As you can always upgrade it and add more stuff into it.

willow beacon
#

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?

unkempt hamlet
#

<#emoji-id>

willow beacon
#

i just copy paste the universal emoji

unkempt hamlet
#

Iirc

willow beacon
#

:youremoji:

#

ffs

unkempt hamlet
#

It is Unicode :)

willow beacon
#

yeah thats what i wanted to say

#

nice pfp

slim pendant
#

but PY
compared to php, yes

quartz moth
#

I think to get the emoji you put a \ in front of the emoji if Im not mistaken

willow beacon
#

Yeah I know but I saw Lin asking how to do it and now I actually know so I wanted to help him :)

dapper echo
#

Wot?

dapper echo
#

Also did you figure out how to put emojis?
Ooooh I remember now. Yes.

willow beacon
#

πŸ‘

high sorrel
#

lol guess who just spent over an hour to realise that the issue with my code was a 0 instead of a 1?

dapper echo
#

I don’t know. Maybe you?

high sorrel
#

Yup πŸ˜…

willow beacon
#

🀣

#

I've been there kek

plain ore
#

emojis:
for normal custom emojis: <:NAME:ID>
for animated emojis: <a:NAME:ID>

#

as demonstrated

queen spear
#

Hello

dapper echo
#

Hello

willow beacon
hollow lion
#

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

unkempt hamlet
willow beacon
silver moon
ember canyon
#

:d

hollow lion
#

ok πŸ™‚

wet kite
#

Hey, could anyone link me to an api for the game? I'm looking to create a delivery log bot

cinder spear
wet kite
#

cool ty

cinder spear
#

is it drunk driving, if the programmer of the self-driving vehicle was drunk when writing the code?

ember canyon
#

Hahahaha

opal arch
dapper echo
unkempt hamlet
shy haven
#

I'm looking for a Steam API (json pls) with a list of owned DLCs.

cinder spear
shy haven
cinder spear
#

oh, I don't remember then

unkempt hamlet
#

I don't think it is available in public API

#

Yes, it is available via partner private API

shy haven
#

Oh... thanks for answer guys.

opal arch
unkempt hamlet
ocean mural
#

Laravel is not fun. Change my mind

unkempt hamlet
#

Any justification?

ocean mural
#

I am new to it.

unkempt hamlet
#

Bruh

ocean mural
#

but yeah I guess it doesn't matter which language you trying to learn. The start is always hard.

mossy cloud
#

Good luck @ocean mural ! I recommend Laracasts if you're getting started, I found them really helpful

ocean mural
#

ye

#

watched laravel from scratch

#

It was pretty pretty good.

unkempt hamlet
#

It is good indeed.

#

It is go-to series in terms of Laravel.

ocean mural
#

yep

#

Well basicly I just need the Eloguent stuff

#

and of course databases.

unkempt hamlet
#

Models? Controllers? Views?

ocean mural
#

I got that already.

unkempt hamlet
#

Ah

ocean mural
#

I will do the frontend later. Backend first. I started building all things I need static and now Im slowly moving everything into functions.

unkempt hamlet
#

Models and Controllers are backend

ocean mural
#

Well, I build the things I need to control the website.

#

Only 4 Controllers.

unkempt hamlet
#

I don't quite understand that sentence, but ok. It's up to you after all.

ocean mural
#

I had to create Controllers in order to moving between the different sides. For example website/test1 or website/test2/?name=joe

unkempt hamlet
#

Controller is usually a layer between View and Model (in general)

ocean mural
#

As I said, Im new to it.

#

But for now its weekend.

#

Thank you for your help of course. cheers

unkempt hamlet
#

No problem, that's what this chat is for.

ember canyon
#

What's good to Laravel, I mean what's the pros ?

unkempt hamlet
#
  • 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
quartz moth
#

I started learning laravel but I never fully got into it. I might go back and have another go at it

opal arch
#

A very good thing about Laravel is its "eco system". There are many official libraries and much more community ones

ember canyon
#

So Laravel is like NodeJs but for PHP and doesn't make BlackHole called ./node_modules

mossy cloud
#

No it just renames that vendor πŸ˜›

ember canyon
#

Aah.

#

Vendor.

unkempt hamlet
#

To be fair, it is not that big if a deal that node_modules

#

And not specific to Laravel

cinder spear
#

vendor is also there in Go

mossy cloud
#

Sorry, had to πŸ˜›

raw notch
#

laravel is the only thing make PHP acceptable :D

unkempt hamlet
#

Symfony? Yii? Phoenix?

cinder spear
#

vanilla PHP has its uses too

unkempt hamlet
#

Phalcon?

sharp hinge
#

Heya folks

mossy cloud
#

Heya πŸ™‚

sharp hinge
#

How’s it all going?

unkempt hamlet
#

Smoothly

mossy cloud
shadow marsh
#

looks awesome πŸ˜„

mossy cloud
#

Minecraft backend πŸ˜‰

#
  • csgo and tf2 πŸ˜›
shadow marsh
#

the f*ck 2 ?

#

what kind of game is that blobcateyes

mossy cloud
#

Team Fortress 2?

shadow marsh
#

oh

mossy cloud
#

πŸ˜‚

shadow marsh
#

I am stupid again πŸ˜‚

lone fjord
#

hey

shadow marsh
#

but nice one ^^

#

looks awesome

mossy cloud
#

I didn't build that one, that's Pterodactyl

#

But it's an absolute lifesaver

shadow marsh
#

can believe that πŸ˜„

unkempt hamlet
#

Bruh

sharp hinge
#

Gonna do some php stuff today

#

And step away from JS HTML and CSS

#

😌

unkempt hamlet
#

It won't be that long of a step away troll

sharp hinge
#

Probably not

willow beacon
#

yes i totally know what you guys are talking about

dapper echo
#

CJ, how is developing bugs doing? KappaPeek

unkempt hamlet
#

It is a weekend dude

willow beacon
dapper echo
queen spear
#

hello

dapper echo
#

Hey

high sorrel
#

Howdy 🀠

unkempt hamlet
#

Happy 256th day, programmers!

shadow marsh
#

You too agoogletada

sharp hinge
#

yes i totally know what you guys are talking about
@willow beacon hehe

#

Happy day!

#

I should probably learn some more JS

willow beacon
#

i should probably learn some more py kek

sharp hinge
#

Should probably learn some php

unkempt hamlet
#

You should probably learn some Assembly

sharp hinge
rigid niche
#

@mossy cloud Do I see a pterodactyl pannel in that photo from the 9th? 🀒

shadow marsh
#

Yes you do

mossy cloud
#

Yep :)

unkempt hamlet
ember canyon
#

577 Contribs... wow

shadow marsh
#

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

raw notch
#

yes you have

#

also embeds are limited

cinder spear
#

I would strongly consider just a normal list for checkboxes like that... That embed is not easy to decipher quickly

shadow marsh
#

What do you mean exactly, 3v? And dowmeister - is the limit on 2000 Chars or different? πŸ˜„

cinder spear
#

I mean it took me a minute before I noticed there was normal text fields in the mix too.

shadow marsh
#

hm, so I should do a normal text like we write here

cinder spear
#

would likely be easier to read at a glance

shadow marsh
#

how would you do it?
Like that:

Role Create approved
Role Delete approved
Role Update Name deny
Role Update Hoisted deny
and so on

cinder spear
#

probably putting the emoji first but something like that

shadow marsh
#

ah okay ^^ thanks for ur help, really appreciate it catlove

mossy cloud
#

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();
cinder spear
#

VTCJob::with('user')->where(... I believe

mossy cloud
#

Thanks, will look at the docs for with and go from there :)

opal arch
opal arch
#

The nested relation user.roles should work considering both relations are correctly defined

#

Better to make a scope query method for it, though πŸ˜„

mossy cloud
#

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 πŸ™‚

tardy smelt
#

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]

slim pendant
plain ore
#

πŸ‘Œ 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

slim pendant
#

glad to see it not be abandoned
@plain ore CBOkThumbsUp im working on improving it and adding trucky api

plain ore
#

I saw, great job πŸ‘Œ

pallid garden
#

πŸ˜…

unkempt hamlet
mossy cloud
#

This'll be useful!

north flax
shadow marsh
#

So, I moved my settings-embed to plain text, but I think with a nice formation. What do you think?

cinder spear
#

I'd try replacing the - with the check but looks pretty good as is.

shadow marsh
#

well, I have following Emojis available on the assetsserver: approved allow and upvote

#

but thanks ^^

cinder spear
#

I meant just moving the checkmark to the start of the line and using it as the -

shadow marsh
#

oh

#

now I know what you mean

#

yes, that would be a bit better tbh

mossy mural
#

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.

shadow marsh
mossy mural
#

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?

sacred mason
#

Yep, wait i can send you my own if it’s the right you’re looking for.

unkempt hamlet
#

Are you sure you're in the right chat?

maiden cradle
#

ya, developer chat i thought meant anything to do with development,

unkempt hamlet
#

What this video has to do with development?

maiden cradle
#

development with using video editors

unkempt hamlet
#

It is video editing, not development

maiden cradle
#

where should i post this

unkempt hamlet
maiden cradle
#

-oh

#

aight thx

high sorrel
#

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

sick anvil
#

πŸ˜‚

high sorrel
#

I can't even

#

welcome to the UK

gloomy root
#

Hey, How do I turn a file with node js into exe. Can you tell me how it was done

unkempt hamlet
#

You can't do that without 3rd party V8 engine executable, like Electron

gloomy root
#

Can you tell me in detail?

high sorrel
#

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 :)

raw notch
#

@gloomy root nexe

#

pack a complete nodejs env and create an executable

cinder spear
#

depending on your needs, there is also vercel/pkg

raw notch
#

yeah exactly

#

pkg is quite good, nexe is easy

high sorrel
#

I think i've used pkg before actually haha

opal arch
lilac aurora
dapper echo
hearty loom
#

Oh congrats guys!

willow beacon
raw notch
shadow marsh
#

lmao

#

is_not_weeeeee_ing

#

xDDD

#

that's literally the funniest method name I've ever seen acatrun

#

but to be honest, sometimes I also call some methods funny (and cant find them then in other classes acatrun )

raw notch
#

if you will look at overlay logs will find a series of

#

weeeeeeeee

shadow marsh
#

xD

high sorrel
#

lmao

high sorrel
#

me: "alright guys i made this thing, don't break it"

first person to test it: breaks it by spamming AAAAAAAA

shut umbra
#

Good Night everyone πŸ™‚

unkempt hamlet
#

Our team

#

What's the problem?

thin patrol
#

.

ember canyon
fervent axle
#

What is the best framework btw React and Electron?

#

Need your opinions

unkempt hamlet
#

Describe "best"

shadow marsh
#

What has a ban to do with developement?

shut umbra
#

I'm sorry I threw it in the wrong place...

shadow marsh
#

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

shadow marsh
#

I could have solved that. Thanks anyway thisisfine

olive eagle
shadow marsh
#

I did it nearly the same way πŸ˜„

#

I return just already the string πŸ˜„

toxic turtle
#

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)

cinder spear
#

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

quick glen
toxic turtle
#

Hmm okay im gonna try to read that when i get home from work, thanks!

rugged copper
#

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

hearty loom
#

Yeah you do

toxic turtle
#

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

naive yarrow
opal arch
naive yarrow
shadow marsh
#

C++ seems pretty difficult on what I can see in the pictures blobcatscaredcross

somber linden
#

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.

opal arch
high sorrel
#

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 πŸ‘€

unkempt hamlet
#

Nope

#

We don't store the session playtime

shadow marsh
#

Do you store the time when joining and leaving the server? If so, then you can calculate the time between joining and leaving

unkempt hamlet
#

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.

shadow marsh
#

hmm, okay..

#

was just an idea tho

opal arch
#

"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

shadow marsh
high sorrel
#

alrighty, didn't think so, thanks CJ πŸ˜„

unkempt hamlet
#

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.

spark scarab
#

What's the best api to make a job logger?

unkempt hamlet
#

What do you mean?

#

You have only one Telemetry API from the game

spark scarab
#

Can that be used in C#?

unkempt hamlet
#

Yes

spark scarab
#

Okay sweet can I have a link please to it?

unkempt hamlet
spark scarab
#

@unkempt hamlet

#

do i need to make the headers into a dll for c#?

unkempt hamlet
#

I don't know, consult the documantation

quick glen
#

@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

spark scarab
#

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.

cinder spear
#

you don't need a separate package for it, but you do need to write the method definitions with their C bindings

toxic turtle
#

anyone here with experiences on Wordpress/SMTP server? I keep having troubles connecting my wordpress server to my mailserver -_-

trail vector
unkempt hamlet
#

wow

#

just wow

shy swan
shadow marsh
#

Nooo... pls not acatcry

cinder spear
#

if that ends up holding up in court it'll open a whole can of worms

unkempt hamlet
#

Full youtube-dl source in Github's DMCA repo

ember canyon
#

Is it possible for me to become a developer for TruckersMP?

unkempt hamlet
#

What is your experience in any development?

ember canyon
#

I am a developer for FiveM i can code just normal Vid game developing

unkempt hamlet
#

What is your main coding language?

ember canyon
#

Java script

unkempt hamlet
#

Too bad, TruckersMP uses C++/Assembly

ember canyon
#

Ehh i tried🀣

fervent axle
#

I've developed a 404 error page, my main coding language is html, can I join? kappa troll

inner elbow
#

I made a HTML website, can i join? troll

ember canyon
#

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 ?

gloomy root
#

How do I exe something with Node Js?

unkempt hamlet
#

Read from here

opal arch
unkempt hamlet
#

oof

unkempt hamlet
#

PHP 8 is almost there btw

gentle bronze
#

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

unkempt hamlet
#

end = 0

#

You have 0 for each loop

#

And idNumber as well

gentle bronze
#

so what should I change for it to work?

#

Sorry I'm a huge noob in Python, so I don't really know much

unkempt hamlet
#

Move the initializations out of the loop

gentle bronze
quartz moth
#

Also f-strings are your friend WeSmart

unkempt hamlet
#

No, only end and idNumber

gentle bronze
#

That worked, thank you

green forge
unkempt hamlet
green forge
high sorrel
#

Do I see CJ removing bugs instead of adding them? πŸ‘€πŸ‘€πŸ‘€

unkempt hamlet
#

Don't boolie me

high sorrel
#

Sorry ❀️

mild swallow
#

I'd like to know if it's possible to use the TruckersMP Oauth, like logging in with truckermp account

high sorrel
#

I'm fairly sure that's not something that exists for people to use

#

unfortunately

unkempt hamlet
#

Indeed

#

Use Steam

#

It is practically the same

mild swallow
#

Hmm ok, thanks

north flax
#

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

high sorrel
#

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

north flax
#

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)

high sorrel
#

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 πŸ‘€

cinder spear
#

worth noting steam auth gives access to more stuff on steam end that's not always ideal

north flax
#

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

high sorrel
#

alrighty πŸ˜„

unkempt hamlet
#

Why developers can't distinguish between Halloween and Christmas?
Because oct 31 === dec 25

shadow marsh
high sorrel
#

Lol

fervent axle
#

😬

shy swan
shadow marsh
#

lol dragonlaugh

#

I mean, what would you want to share there O_o

cinder spear
#

I can finally uninstall twitter Kapp

high sorrel
#

imagine if it just randomly took a screenshot of your code and put it on a story

unkempt hamlet
high sorrel
#

Lol

willow beacon
#

Is that scratch? kekw

slim pendant
#

Looks more like C# syntax

#

well, name conventions

north flax
#

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

unkempt hamlet
#

We've looked at it, it has a great potential.

ember canyon
#

uff it's really nice

cinder spear
#

Tools like Vue and React are extremely powerful, but the complexity they add to a full-stack developer's workflow is insane.
what

quartz moth
#

I forgot 3v left as the retired colour is kinda similar SadCat

opal arch
#

It is true, though. Livewire should be easy to use, and seems to be easy to learn, too

cinder spear
#

not arguing that, but saying Vue/React add "insane" complexity to full-stack development

quartz moth
#

Is there any major reason you haven't implemented it yet as a trial?

opal arch
#

It adds insane complexity to such a huge project as ours is. Maybe we will test it out soon on something new, who knows

cinder spear
#

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"

unkempt hamlet
#

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.

cinder spear
#

That's definitely true.

#

I just found the sales pitch in the link completely ridiculous

unkempt hamlet
#

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.

mild swallow
#

you're using laravel currently, right?

north flax
#

The TMP website and api uses Laravel, ye

shadow marsh
unkempt hamlet
#

No

shadow marsh
#

No what? blobcatfearful

#

Pinging a developer without a reason? Yeah... no blobgiggle

I will give me today a try to read a tutorial to get a good frontend developer. Any Ideas?

unkempt hamlet
#

He asked me to help writing the code, I refused

shadow marsh
#

Ah

#

Do you have any good sites where I can start to get a frontend developer? With a good tutorial? blobcatnerd

#

As my team needs still a frontend one and noone wants to help acatcry

meager spoke
#

I wanted to get into website deving too
I gave up after 5 mins of frontend tutorial

unkempt hamlet
#

It is based on what tech you wanna use

shadow marsh
#

Well, backend is PHP blobcatfearful

#

Aii Chris blobcateyes

misty shore
#

You just have to love programming ... πŸ˜‰

#

When Eryk from SCS Software once broadcast code creation on Twitch, I grabbed my head ...

shadow marsh
#

Well, I love coding. I really love to code in Java - but I want to learn webdevelopement - but more frontend πŸ˜„

unkempt hamlet
#

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++.

shadow marsh
#

Well, then πŸ˜„

#

Sooo - which IDE to code in Webdevelopment can you recommend me? Should be free πŸ˜…

raw notch
#

why React adds insane complexity to full stack dev?

unkempt hamlet
#

You can start with Visual Studio Code

raw notch
#

(oh sorry I'm 1 day late)

shadow marsh
#

Visual Studio Code - oki thanks catlove

raw notch
#

vscode definitely

#

or vs community for c++/.net

unkempt hamlet
#

I've started with Sublime Code 2 (3), I missed its responsiveness, but it lacks updates

meager spoke
#

I use VSC as well

shadow marsh
#

Well, I "just" want to do webdevelopement, dowmeister - I don't understand c++ and or .net acatrun

raw notch
#

Chris your opinion is clueless as you are a bad dev :D

unkempt hamlet
#

I use PhpStorm for both front and back

meager spoke
raw notch
fervent axle
#

I use Notepad++ kappa ( I'm joking, as an original person, I use VSC )

fluid dawn
#

heya

tardy smelt
#

PHPStorm is the way to go Kapp

fervent axle
#

PHPStorm is the way for rich people πŸ₯²

quartz moth
#

Educational licence KappaPeak

unkempt hamlet
#

Edu license is a godsent.

north flax
#

Haven't used PHPStorm in so long. Not using PHP much nowadays in general

ember canyon
#

For rich people oh yeah

mild swallow
#

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.

shadow marsh
#

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? Catthink google is just putting out stupid things

mild swallow
#

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

shadow marsh
#

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

green forge
#

MeowWave Maurice

shadow marsh
#

Ape catwave

mild swallow
shadow marsh
#

hmmm, imma check this out πŸ˜„

unkempt hamlet
#

Be aware

prisma robin
#

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

unkempt hamlet
#

It is called Percussive Maintenance

prisma robin
#

Thank you so much ^-^

mossy cloud
#

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)

cinder spear
#

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

unkempt hamlet
#

Yeah, 4 gigs are not that popular for this price range. I have Hetzner with similar config but 2 vCPU for 5.68 euros

raw notch
#

@mossy cloud try Netcup

mossy cloud
#

I'll have a look at those, thanks guys :)

cinder spear
#

oh I forgot about hetzner

unkempt hamlet
unkempt hamlet
shadow marsh
#

@mossy cloud Also I can recommend PHP-Friends - they have strong Servers though (and are pretty cheap in my eyes) πŸ™‚

mossy cloud
#

Thanks :)

rugged copper
north flax
#

Netcup's prices seem pretty decent, really

#

Their reviews on other sites look pretty bad though

unkempt hamlet
#

It is almost identical to Hetzner, to be honest, but latter is more credible

north flax
#

Ye. Based on the reviews, DO, Scaleway and Hetzner all seem like better choices

unkempt hamlet
#

I still have my OpenSource Developer credit on Hetzner

north flax
#

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

raw notch
#

netcup have great admin panels, work really well

#

their support is good too

unkempt hamlet
sour totem
#

F

ember canyon
#

Which language should i learn as a beginner?

unkempt hamlet
#

Depends on what do you want to achieve

raw pebble
#

Best languages to learn are Deutsch and Eng

shadow marsh
#

I am pretty sure Sbinnotto07 means coding languages

raw pebble
#

Haha

meager spoke
#

Almost like it's a channel for developers

unkempt hamlet
raw pebble
#

Im not allowed to chat here?

unkempt hamlet
#

Well, you can, but there specific matters are discussed

#

Often on a very serious note

raw pebble
#

Roger that.

raw notch
# unkempt hamlet https://usefathom.com/blog/ddos-attack

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

mental wedge
#

Anyone of you guys experienced with making discord bots?

shadow marsh
#

Yeah - what's up?

mental wedge
#

I am trying to make a dynamic help command but it gives me an error I can't figure out haha

shadow marsh
#

dynamic help?

mental wedge
#

yep, a help command which automaticly displays information about all your commands without you having to hard code every command in it

unkempt hamlet
#

Commando has this feature by default

mental wedge
unkempt hamlet
mental wedge
unkempt hamlet
#

We are using this for Botdottir

#
this.client.registry.commands.clone().sort(this.sortCommands).forEach((command: Command) => {
[...]
}
mental wedge
#

πŸ€”

opal arch
#

I recommend you to check some framework built upon Discord.JS

mental wedge
#

will do

ember canyon
raw notch
#

no i m not talking about script kiddies

ember canyon
#

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

raw notch
#

big enough to make one of the biggest Italian provider fail

ember canyon
#

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

raw notch
#

10mb/s? 100 maybe?

ember canyon
#

the peak i was handling as admin had slightly over 100gbps

raw notch
#

and firewall didn't crash?

ember canyon
#

of course it did lol πŸ˜„

#

show me a "normal" firewall that can handle 100gbps xD

raw notch
#

so you didn't handled it :)

ember canyon
#

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

raw notch
#

indeed, bgp tunnels save in these cases

ember canyon
#

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

unkempt hamlet
#

Their cloud is really top-notch

ember canyon
#

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

raw notch
#

netcup has better balance in price/performance/quality

#

the kvm servers worth it

ember canyon
#

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

raw notch
#

and it's quite nice

#

i like it

ember canyon
#

they changed many things since im gone cos new design etc... the first version were quite interesting cos we build everything from scratch

north flax
#

PHP 8.0 is a major update of the PHP language. It contains many new features and optimizations including named arguments, union types, attributes, constructor property promotion, match expression, nullsafe operator, JIT, and improvements in the type system, error handling, and consistency.

#

Some nice changes in there

gentle bronze
#

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?

unkempt hamlet
#

Python is a good start

gentle bronze
#

Alright, thanks

cinder spear
#

nice to see PHP getting rid of more of the bad parts

unkempt hamlet
#

I also like that landing page, very descriptive and user-friendly

#

Nullsafe operator is a godsent for Laravel, no more optional() and null checks

north flax
#

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

graceful belfry
#

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

unkempt hamlet
#
  1. Check for presence activity type STREAMING
  2. Send a message to a channel
north flax
#

Damn, things popping up actually making me miss Laravel a bit. Haven't used it in so long πŸ˜›

unkempt hamlet
pulsar jungle
#

I tried Clockwork 5. It's actually quite useful.

unkempt hamlet
#
Amazon Web Services

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 […]

jade viper
#

Anyone know how to fix this

#

It just wont start up

pulsar jungle
delicate wyvern
# jade viper

Unplug and check everything seated correctly, you could also try taking ram out and refitting in different slots

vocal heron
jade viper
#

And

raw notch
#

slow at unusable level

unkempt hamlet
#

MacinCloud is more usable for that purpose.

#

And cheaper.

raw notch
#

exactly, used that

#

useless

graceful belfry
unkempt hamlet
#

Events athink

shadow marsh
#

I guess, today I learned something new and it's not really bad peek 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 peek

unkempt hamlet
cinder spear
#

the wonders of imagemagick

#

used to dynamically build cached stat images for a game server years ago

shadow marsh
#

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

sour totem
#

great

shadow marsh
#

yeaaahno.... finally the bot downloads the avatar πŸ˜‚ thought I will never get this running PES2_Derp

shadow marsh
#

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

rugged copper
#

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

unkempt hamlet
#

WSL2

Docker

#

Excuse me, what?

quick glen
#

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)

unkempt hamlet
#

So, they have doubled down on Docker in Laravel 8, I see...

#

Time to find out if it is actually good this time

slim pendant
#

Thoughts on rust?

mossy cloud
#

Good game, but very toxic community Troll

pulsar jungle
shadow marsh
#

blobcatdrool finally no burning eyes anymore thisisfine

unkempt hamlet
#

Dark Reader extension athink

shadow marsh
#

Never heard about that tbh meow

unkempt hamlet
#

ikr

mossy cloud
golden ice
#

I'm making a bot :D.

#

The bad thing is that I'm having a problem areyoukiddingme

#

Can anyone help me?

night rootBOT
#

@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.

unkempt hamlet
#

Asking to ask is a bad habit for all people, especially for developers.

cinder spear
#

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 kappanokappa

#

or you'll learn that the thing really is bad... either way you learn something

golden ice
#

Uhh ok

#

Nice life lesson

golden ice
#

I fixed it

#

:v

slim pendant
unkempt hamlet
#

This question doesn't belong here

shadow marsh
#

What is in your option the best free alternative of Plesk? And it should support Linux obviously peek

#

I "just" need the Domainmanager and Websitemanager basically... everything on top is optional like E-Mail and whatever peek

unkempt hamlet
#

Vesta or Ajenti

shadow marsh
#

will take a look on both, thanks CJ catlove

shadow marsh
#

Okay, Ajenti won't let me installing it as I can't figure it out peek it doesn't work

narrow flame
#

Cyberpanel

earnest granite
#

How do people make those Application Forms on VTC Websites such as Forza Trucking, Prime Logistics, Pries Logistics, etc

unkempt hamlet
#

Skill and code

#

Or just Google Forms

ember canyon
#

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.

mossy cloud
#

Depends on its purpose and your skill level.

orchid bolt
#

explain more

plucky flicker
#

developer chat yay

#

seems a bit dead

unkempt hamlet
plucky flicker
#

lol

#

I'm only in here because I'm an ex-developer lol

shadow marsh
plucky flicker
#

well, I say ex-developer, I mean I gave up doing development as a full-time hobby lol

unkempt hamlet
plucky flicker
#

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

shadow marsh
#

All good, CJ - I will find another Domainmanager and Website Manager thisisfine

unkempt hamlet
#

Vesta is fine

plucky flicker
#

sorry if I insulted you, but I hate these things

unkempt hamlet
#

ikr, but it might be handy to many people

shadow marsh
#

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 peek
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 blobcatshrug

plucky flicker
#

ah, the good old mobile

shadow marsh
#

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

plucky flicker
#

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

narrow flame
#

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?

ember canyon
#

I see you can make website with python

#

You can try

orchid bolt
#

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"}"

unkempt hamlet
orchid bolt
#

well i've read the docs

#

didn't found it

#

never mind

#

i'm blind and dumb

tired adder
#
winston.format.printf(
  info => `${info.timestamp} ${info.level}: ${info.message}`
)
foggy osprey
narrow flame
#

A Turkish joke πŸ˜„ Main question, I want to learn a web framework is there a framework you suggested?

unkempt hamlet
#

It depends on what you want to achieve

narrow flame
#

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.

unkempt hamlet
#

Describe a "dynamic project".

narrow flame
#

In general, it will be an account sales project. Everything from the information box to the footers can be changed.

unkempt hamlet
#

Account sales thinking

unkempt hamlet
foggy osprey
#

Seamless Git integration, with builds built-in

#

oo

#

might have to give it a try

modern kestrel
#

Hi

azure fox
#

Hey

#

What sort of thing are u thinking of

modern kestrel
#

I’m not on pc until possibly 1:45 gmt in the afternoon

azure fox
#

Ok I didn’t know a pc was required to chat

modern kestrel
#

Just a general tracker of loads drivers do in my vtc

#

But I wanna make my own

modern kestrel
#

Lol

#

Yeh

azure fox
#

Discord bot or like application

modern kestrel
#

Application like prime logistics tracker

azure fox
#

C#

#

C++

#

Python

#

Rest apis

#

Java

#

Json

#

Willwonka

#

Cake ( this is a real programing language)

earnest granite
azure fox
#

Very good for web based apps

earnest granite
#

Oh your not lying lol

azure fox
#

It really is

ember canyon
#

What?

night rootBOT
#

@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).

unkempt hamlet
#

It doesn't belong here.

#

Translator has broke the link. Do not use translator.

orchid bolt
#

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)

unkempt hamlet
#

I don't think it is possible in Windows.

orchid bolt
#

there is some "network bridge"

#

i enabled it but now i can't access my pc trough second device

unkempt hamlet
#

You need to do a proper routing for the bridge

orchid bolt
#

yeah i messed up with it and ended up with removed no internet at all

cinder spear
#

You can set up proper routing for multiple interfaces in Windows just fine

cinder spear
unkempt hamlet
#

I've never had a luck with metrics in Windows somehow PES_SadShrug

cinder spear
#

I've done advanced routing in Windows just fine Β―_(ツ)_/Β―

unkempt hamlet
#

It works flawlessly on my Mikrotik though LoL

cinder spear
#

still prefer Linux tho

modern kestrel
#

anybody wanna help me later?

shadow marsh
#

With what?

modern kestrel
#

trying to make my own log book like prime logistics tracker

shadow marsh
#

Ah, I can't help you then as I don't have knowledge for that

modern kestrel
#

ok

#

do u know anybody who does

unkempt hamlet
#

Any freelance website athink

modern kestrel
#

?

unkempt hamlet
#

Upwork, for example

modern kestrel
#

im confused

#

as fudge

#

is it a good time to ask for my mommy

unkempt hamlet
modern kestrel
#

im dumb ok

unkempt hamlet
#

Your just said "anybody wanna help me later with creating a logbook". It is just "ask to ask". It means nothing.

modern kestrel
#

ok

unkempt hamlet
modern kestrel
#

ok

tardy smelt
#

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.

modern kestrel
#

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

tardy smelt
#

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.

plucky flicker
#

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

unkempt hamlet
#

Programming without a proper knowledge is mostly googling.

plucky flicker
#

and where does that proper knowledge come from? experience

unkempt hamlet
plucky flicker
#

and where does that experience come from? you remembering how you solved the problem last time and not having to google it again

raw notch
#

you recall ALL functions and classes and whatever?

shadow marsh
#

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 thisisfine

plucky flicker
#

I learnt how to code by asking others and googling, and a lot of reading of documentation and stackoverflow

unkempt hamlet
#

I can recall most of the functions and classes I use in my work.

raw notch
#

someone can google also because doesnt recall a method or class, like searching something on msdn

plucky flicker
#

stackoverflow is all developers' best friend

unkempt hamlet
#

I don't think using documentation equals googling though.

raw notch
#

don't use google? πŸ˜„

unkempt hamlet
#

That's what documentation is for.

plucky flicker
#

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

raw notch
#

searching on google and land on the right msdn article is quicker than searching on msdn πŸ˜„

plucky flicker
#

msdn?

unkempt hamlet
#

Programming is mostly googling when desperate, at least for me.

raw notch
plucky flicker
#

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

raw notch
#

yes, guys, CJ is a superhero, he dont use google, it's google using him

unkempt hamlet
#

I didn't said I don't use google

plucky flicker
#

what language do you guys use?

raw notch
#

all except python πŸ˜„

plucky flicker
#

lol

raw notch
#

try to write powershell without googling, is insane

unkempt hamlet
#

In fact, I was called "Google Max" in uni, because I can find pretty much anything online πŸ˜‰

plucky flicker
#

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)

unkempt hamlet
#

PowerShell without googling is hard, ngl

plucky flicker
#

powershell? you use powershell?

unkempt hamlet
#

I do

plucky flicker
#

I mostly used to use bash when I was on Arch, now I use command prompt (when I have to)

unkempt hamlet
#

Automatization scripts for my job

plucky flicker
#

yeah most terminal commands are copy-and-paste jobs lol

#

what language do you primarily write in CJ? PHP?

unkempt hamlet
#

PHP

plucky flicker
#

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

unkempt hamlet
#

Easy to learn, not that hard to master

plucky flicker
#

yeah I've looked at it, and it doesn't look all that bad

#

any idea what laravel is like?

unkempt hamlet
#

Like magic

plucky flicker
#

looks pretty good from what I've seen

#

has built-in DI & unit testing

#

what's it's concurrency like?

unkempt hamlet
#

There is no concurrency in PHP.

plucky flicker
#

oh wow

#

well that makes things 100x easier then

#

what about like massive data processing and stuff then?

#

all done synchronously or what?

unkempt hamlet
#

It is all synchronous.

plucky flicker
#

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

unkempt hamlet
#

It doesn't need to be concurrent, when it can 1) work fast 2) work from many processes

plucky flicker
#

many processes?

unkempt hamlet
#

That's another story.

#

ReactPHP can achieve asynchronous operations in PHP, never used it.

plucky flicker
#

yeah I'm looking at one rn called "Amp" that seems to add futures and coroutines

unkempt hamlet
#

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

plucky flicker
#

ah so it does have concurrency then

#

just not in the same way that say Java does

unkempt hamlet
#

Well, yes, but actually no πŸ™‚

plucky flicker
#

like the language doesn't control the threads, FPM does

unkempt hamlet
#

Yes, as a process manager

plucky flicker
#

oh that sounds like it makes your life much easier

unkempt hamlet
#

I hate async

plucky flicker
#

not even having to deal with concurrency and blocking operations

#

if you want an async challenge, try Java lol