#programming

1 messages Β· Page 29 of 1

raw notch
#

a question for whom developed an internal job tracker for his VTC: never happened the game doesnt send the gameplay event "job delivered"? how you can know if the job has been completed or canceled?

pulsar jungle
foggy osprey
raw notch
#

interesting. so it's not only me, is a bug actually

foggy osprey
#

Yeah I think so. It doesn't happen often, but at random moments it just doesn't send the job delivered event

pulsar jungle
#

For me the delivered event is fired pretty consistently

#

including distance etc

foggy osprey
#

It was a pretty rare issue if I remember correctly

pulsar jungle
#

I see. No memory of running into that issue

raw notch
#

mmmmmm ok thanks

#

I'm not understanding why it works most of times

foggy osprey
#

I can vaguely remember it happening sometimes if I alt-tabbed out of my game, and then back in. Don't quote me on that though, since it was quite a while ago

visual walrus
#

On the subject of creating loggers, would anybody have some advice on where to start? keke_laugh

visual walrus
#

Cheers

ember canyon
#

Good morning, happy day everyone.

shadow marsh
#

So, I removed the Castings now and did it a bit better, still it errors, with the same message.

Picture with the re-written code; the red arrow directs, where the error is coming from.

trail vector
shadow marsh
#

Right - I managed to get it running πŸ˜„

#

I'm not working often with APIs and thus I were a nub Wesh

whole marsh
ember canyon
#

My broadband connection, yet my Visual Studio installer is maxing out at 100-200kbps

#

My desktop had no issues, this laptop on which I ran speed test is having slow downloads

visual walrus
#

Visual studio never uses the full connection bandwidth.. I find it uses like 2% of mine tbh

#

And I'm often maxed out at about 20mbps, on a gigabit line.. So in reality, not even using 2%

ember canyon
unkempt hamlet
#

Having Linux GUI apps running on Windows via WSL2 is kinda trippy.

pulsar jungle
#

Pog

unkempt hamlet
#

Javascript lads, unite! TrollCreep

shadow marsh
ember canyon
#

Calculator : #Toughday at work

unkempt hamlet
#

I'm proud to announce that we've released a new package called Laravel Health. As the name implies, this package can be used to monitor the health of your Laravel application.It offers many checks out of the box, and an easy way to create custom checks. When something is wrong, you can get a notification, or view the status on a dashboard.The pa...

narrow cove
# raw notch a question for whom developed an internal job tracker for his VTC: never happene...

Assuming that you registered for events (SCS_TELEMETRY_EVENT_gameplay), the function mapped for these events will receive into the 2nd parameter the event info structure. The 'id' element of that struct contains the name of event (string, defined in scssdk_telemetry_common_gameplay_events.h). There are 6 gameplay events that could trigger your mapped function (2 for jobs, 4 for player). Identify the event by their name and take the appropriate actions. For debugging I recommend you to log these events into a text file when they're triggered. Never happened to me to miss the job delivered event.

raw notch
raw notch
#

got a strange error in Laravel: Indirect modification of overloaded property <class>::$property has no effect ($property is a Relation)
that class was inheriting from another one which was declaring the $property, i've removed the inheritance and changed to the classic Model class and also run a dump-autoload but it's not working

#

any idea?

#

oof.. turn out the $property was null .. strange error...

foggy osprey
#

aPES3_HmmmmNoted I've never seen that exception before

fathom bough
ocean mural
#

For all those VTC job tracker dev's out there... How did you manage to give a job one specific value in a database? (no primary key or auto increment)

Problem: The program gets a job with the all the values. Now the player delivered the job (event got called, program gets values and inserts it into database).
Now what if the player loads an save game where he still has the job and he deliver it again? The job will be inserted again.
So, is there some sort of value I could use?

I was thinking about some sort of timestamp or multiplying some value numbers from the job, but all could change in each savegame.

viscid needle
ocean mural
viscid needle
ocean mural
viscid needle
#

My pleasure and you too!

next crane
ocean mural
# next crane This is the same problem that I once encountered when developing VTC.World. Ther...

As Andrew mentioned, I can use a hash from the job details aswell as the Players name or id included.
I technically could also use a value from the save in which the user delivered the job. Or simply just a timestamp in Milliseconds when the user first accepted the job. This does not change for that specific job, but differs when he accept the same job again (doing the same job again from beginning)

next crane
#

This is not a bad solution, but you will have to control a lot of parameters.

Unfortunately, we have a lot of tricky players, and not everything is so simple.

#

For example, you will have to track transport changes during WoTR deliveries.

ocean mural
#

I've made a system in which the user can not load an old save to deliever the same job again.
Instead he would need to change a lot of parameters within the save and job details

raw notch
ocean mural
#

If a Player would like to "cheat" on a job tracker he could just do it in many ways.
And if the Player delievered the same Job a few times, an admin could just ban him (Internally) and/or delete the Jobs.

next crane
raw notch
#

well.. is a bug πŸ˜„ because the telemetry should notify the job has been discarded in some way. The game knows it because sync with WOTR servers each time you do it. A gameplay event would be better instead of checking if the job has been changed in some of its parameters

next crane
#

If this were a bug, then SCS would have to fix it. But, they don't consider it a mistake.

raw notch
#

it's not the only bug they dont want to fix πŸ˜„

ocean mural
#

Facts

next crane
#

To our regret 😦

raw notch
#

(or feature they want to to add)

#

i've asked if they will ever add some data related to the economy or navigation, the response was: "our partners (read who produce gaming rigs like chairs, gears and wheels) don't need them so if you need them, as community developer, we don't care"

next crane
#

As part of VTCW, I work it out as a rejection of the cargo. If no have cargo in the memory and not in the save.

raw notch
#

ye, i know, is something to deal with

ocean mural
raw notch
#

fundamentally, from what i did understand, the Telemetry SDK is not for us

next crane
#

If you treat these loads as SCS, it all depends on the concept of the project. This is important for us, for VTCW. And someone can ignore it. But, yes, there is no cancel event. Fail of SCS.

raw notch
#

they made it for hardware partners, not for the community

next crane
#

SCS did it through one place.

ocean mural
#

But which "partner" of scs needs these kind of values? I dont think logitech needs the amount of driven km (example) for a gaming chair

raw notch
#

that's a good question, but, nonetheless, they are not interested in adding economy or navigation information

#

or for example, events for buy \ sell garage, trucks, trailers

ocean mural
#

Yeah that would be very usefull

raw notch
#

maybe we should do some sort of alliances and ask all together about this πŸ™‚

ocean mural
#

Technically, just thinking of economy, you could read the game's save every x seconds (example, amount of trucks) and once the application detects a new truck, it could call an Event itself.
Its just an idea and of course it would need to lot more than just going through the save, but...
Since scs does not want to implement it

next crane
raw notch
#

reading the game save suppose you must read the game.log to know about the current profile and the current game save, then decrypt it to read inside of it, then parse it in a organized way, then compare from the previous one

ocean mural
#

Yeah, but it is possible. Technically

raw notch
next crane
#

I'm not against collaboration, it will help us all!

raw notch
next crane
#

I support and will be glad to cooperate!

raw notch
ocean mural
#

If all the devs who work with the sdk would ask together for some more sdk functions, I bet they would implement something in it.
If scs really listens to their community.

raw notch
#

if πŸ˜„

#

they do btw, they listen, maybe not always in the way we expect for, but they do

next crane
ocean mural
#

I know they do. They absolutely do a great job.
But some decisions are, well, weird.

raw notch
#

as Eronax said, probably the union of more telemetry developers would help to reach an objective

raw notch
ocean mural
#

Indeed

#

Stupid question, but
Is there a way of reading the value when the Player needs to make a pause/break even when he disabled it?
As what I've tried, its not?

raw notch
#

you mean when he sleeps?

ocean mural
#

Yeah

raw notch
#

afaik there is no gameplay event but you can compare the game time of previous frame and the next frame (and i think you should avoid to update the internal teltemetry data while the game is paused) to check what's the difference. i dont think btw each frame can pass more than 1 in-game minute, no?

ocean mural
#

You can read the value when he has it activated.

opal arch
#

That's an unreliable way of doing it as there are more reasons why the time may change

raw notch
#

ahhh sorry, when have the fatigue disabled? no, the next rest stop time doesnt change

ocean mural
#

Aight, I was right then. Thanks

raw notch
#

what if i have a macro with 33 parameters?

unkempt hamlet
#

Out of luck then, it is too complicated

ocean mural
#

Someone was having some fun there HaulieExcited

astral basin
#

sadge that there is no courses for html or css Sadge

#

its mostly complicated languages where i think whats that NM_Kekw

#

even do there is a phyton course wich i have been searching for ages so thanks Smile

raw notch
astral basin
#

what PES4_Confused

raw notch
shadow marsh
#

Why so?

#

Just testing it out in Java and it's... ok

unkempt hamlet
#

Funny SCGsus

shadow marsh
#

I find something different funny actually lol

shadow marsh
#

I've a question, is this ModMail instance hosted by TruckersMP itself or is it hosted somewhere else? (Asking this in prior, so I know, how to proceed with oncoming questions)

unkempt hamlet
#

We are hosting it by ourselves.

ocean mural
#

Hey devs, just wondering... What is the best way of getting the current steam user's id (steam64id) from the pc? (I know steamworks sdk)

unkempt hamlet
#

HKEY_CURRENT_USER\Software\Valve\Steam\ActiveProcess\ActiveUser registry DWORD will contain a steamID3, which you can convert to steamID64

ocean mural
#

Alright thanks! I'll try it

shadow marsh
# unkempt hamlet We are hosting it by ourselves.

Ah well - Thanks discord for notifying me not...

Well, reason why I ask is - I've installed everything as normal, Python 3.7 and 3.9, pip - and everything what is needed, however when executing the pip install it wont, thus starting the bot wont work as well.

I can execute the install again and send a screenshot, what the console tells me... Not really in the mood to make myself an own modmail bot meow

paper hound
#

What do you guys think about this, just finished doing it

raw notch
#

adjust some padding on the main container, padding left, respect the grid, with always 10-15px padding on sides

unkempt hamlet
#

I also don't like socials lined up to the center

paper hound
#

Yea i need to fix that lol kinda annoying me already πŸ˜„

past shuttle
#

never have 1 container rounded and the other not side by side pls lmao

#

On the home page, change the front to something like Robot or something

#

On the staff team page decrease the intensity of the background glow πŸ™‚ @paper hound

toxic turtle
#

Anyone with Nginx experiences here?

raw notch
#

yes

toxic turtle
#

May i DM you for a second?

raw notch
#

must be an intimate conversation? πŸ˜„

toxic turtle
#

Rather chat about minecraft in private πŸ˜‚

raw notch
#

btw yes, my dm is always open

toxic turtle
#

Lovely!

mossy cloud
royal quiver
#

I'm slightly surprised that isn't pinned in here kapp

unkempt hamlet
#

Channel topic kapp

astral basin
#

hello, i got a quick question. for my school i have to ask some question to 2 people about the job that i want todo after school. For my that is software developer. i was wondering if someone that is a software developer could help me with this. My dms are open if you wanne help or have any question about it. I would greatly appreciate it!

unkempt hamlet
#

Well, you have to request an approval from our Community Management first.

#

Send a DM to @opaque oriole

astral basin
#

it doesnt even need to be someone from specifice truckersmp just any software developer is ok.

unkempt hamlet
#

It doesn't matter. Any unsolicited surveys must be approved.

astral basin
#

PES4_Confused huh?

astral basin
#

but fine

#

il delete it.

meager spoke
#

🀨

#

Could you explain your question again, as I didn't fully understand it

astral basin
#

for my school i needed to interview 2 people from the job that i wanted todo after i finished school, for my in this case that is software development. and since this is a channel or developers i thought i could ask it here.

meager spoke
#

So basically you want to ask 2 devs a couple of questions in regards to their job, correct?

raw notch
#

i think is correct, he is asking generally to developers using this space

astral basin
#

i already got 1 just need 1 more.

meager spoke
#

That's alright then, it isn't a public survey but just couple questions privately, not against the rules

raw notch
#

is the same thing asking "someone want to help with my code?"

unkempt hamlet
meager spoke
#

No, that's an overuling of a decision from someone who doesn't moderate the discord, by someone who actually manages it.

opal arch
raw notch
#

the new Attribute finally adds something similar to C# and OOP, needed Laravel where PHP failed

opal arch
#

Yeah, a much more convenient way to define attributes

raw notch
#

yes, finally

fervent axle
#

Time to upgrade then woah

opal arch
#

What a quick change

foggy osprey
#

Interesting whut

meager spoke
#

primewarning Github Links Blacklist DynoShield

Hey guys,

Due to the current situation with scams moving to Github, using fake "game testing" to download malicious programs, we've decided to blacklist all github.com links until the situation settles down a bit.

We apologize for any inconvenience caused.

shadow marsh
#

now the question is - what if I have an actual inquiry which is on GitHub to look on? blobcateyes

unkempt hamlet
#

bit.ly shrug1

shadow marsh
meager spoke
#

You can send the link in DMs I guess if necessary

shadow marsh
#

ah, alright πŸ˜„

meager spoke
#

Unfortunately we had to take these serious steps, as the scam attempts only grow in numbers

shadow marsh
#

yeah, better prevent it rather being sorry, I fully support that decision Chris.

cinder spear
#

thought they were only doing those in DMs

unkempt hamlet
foggy osprey
#

ouch, that music was loud

quartz moth
#

Glad I wasn't the only one KappaLUL

cinder spear
#

how loud do you have your headphones/speakers? wat

unkempt hamlet
#

It was indeed quite loud

unkempt hamlet
opal arch
#

Ah, they have been working on it for two weeks already notbad

lament sigil
#

Everytime i see this as developer cat 🐈

fervent axle
#

Do I am the first here who think about to make a bot who automatically replies to some "categorized" mail? CaernageThinking kappa

#

Maybe by using GPT-3, or Cedille

unkempt hamlet
visual walrus
#

May have a look at this

pulsar jungle
lethal willow
#
BleepingComputer

This week, the developer of theΒ popular npm package 'node-ipc'Β released sabotaged versions of the libraryΒ in protest of the ongoing Russo-Ukrainian War. The 'node-ipc' package, which gets downloadedΒ over a million timesΒ weekly, began deleting files on developer's machines, in addition to creating new text filesΒ with "peace" messages.

unkempt hamlet
#

Ye, just ridiculous

shadow marsh
#

That's happening, when I code and my BF makes horrible jokes which cracks me up PES3_Yikes doubt the DB Server is accepting such kind of.... statements KappaSip

quick wadi
shadow marsh
#

🀣

quick wadi
#

Cant wait until i make stupid mistakes in RC acatrun PU_PepePoint

shadow marsh
#

As long as you don't overbid me with Bugs, I'm fine with that KappaSip

quick wadi
#

Cant get much worse then what my coding is nowacatrun

restive hare
shadow marsh
#

Perhaps kappahmm

fervent axle
#

Hey guys, I need your help a bit. I'm creating a real business. But as I have a real strict budget atm, I'd temporary use a template for my website. Do you know where I could find a good CSS/HTML5 template for a retail/e-commerce website

cold vapor
cinder spear
#

opera is chromium too and subject to that bug

fervent axle
unkempt hamlet
#

Nub SCGsus

fervent axle
tardy smelt
fervent axle
tardy smelt
#

It's a lot of work to do everything by hand. It depends what you want your ecom to do.

You have to think about purchasing, refunding, canceling, chargeback and all that crap πŸ˜›

fervent axle
tardy smelt
#

If you have that much free time on your hand I guess. From personal experience it's a lot work and you should make sure that the amount are save as integer if you don't want to run into any issues.

$1 = 100
$1.50 = 150
....

fervent axle
#

Alright, will take it in mind. Anyway if I don't have the time for, as I will create my start-up, I'll give my spaghetti codes to employees if needed KEKW

tardy smelt
#

So you love Laravel but you can't do Laravel kappapeek :iseewhatyoudidthere:

fervent axle
#

I mean, I'm a learner. I don't have the same level than you, great master, but I've made/remade some systems such as recruitment system ( with customizable forms ), I've already worked with Stripe package for some tests in localhost and some others thing. I'm devoted to learn more and do my best kappa

tardy smelt
#

I've never used Stripe. I use Paysafe for the ecom I'm working on.

I've made a customizable forms too if you look at the survey and poll system kappa

fervent axle
tardy smelt
#

Yeah for sure. I didn't make that decision πŸ˜›

I wonder if Stripe fees are higher tho

#

Just looked at the fees. It seems to be the same as Paysafe plus they have way better developer support

fervent axle
#

Good to know kappa

tardy smelt
#

For sure if I would start from scratch I would use Stripe. But you can see in their example that they are using integer as the amount like the example I gave you above

fervent axle
#

Yeah so it isn't a problem if I set the column price as int πŸ˜…

tardy smelt
#

I'm just saying since it's a very important thing πŸ˜›

fervent axle
#

Yeah yeah I know, you right. Anyway that's how I'd start the product table πŸ˜…

violet tulip
#

Laravel + Cashier + Stripe = ❀️

#

oh hey Caernage!

fervent axle
#

Hey downmeister! kappa

shadow marsh
#

it is dowilein KappaSip

#

gonna do something new today in my code >.>

fervent axle
shadow marsh
tardy smelt
violet tulip
#

oh ye, it's really straightforward

#

I'm using also Stripe Connect with it, it's not out of the box but as there is the Stripe client in Cachier, must only implement the Stripe Connect SDK calls

fervent axle
#

Cashier is ( imo ) one of the best tool from Laravel πŸ˜…

hollow otter
#

oh my goodnes who saw the new update from stackoverflow

unkempt hamlet
#

Filters? Pretty generic, I'd say.

violet tulip
#

i'm going crazy with this error: General error: 1366 Incorrect integer value: 'false' for column 'rejected'
the column has been created with $table->boolean, the Model have $casts for this property as boolean, the value is a boolean and still firing error..

#

any clue?

unkempt hamlet
#

Is it a direct query or via relation?

violet tulip
#

Eloquent

#

$model->rejected = false; $model->save()

unkempt hamlet
#

Do you have mutators in the model for this particular field?

violet tulip
#

I've other projects, same logic, and it works

#

no

#

only $casts

unkempt hamlet
#

Accessors?

violet tulip
#

for this prop no

unkempt hamlet
#

Enable eloquent queries debug to see how the query gets generated

violet tulip
#

actually all boolean field for this model fire error... also other fields

#

tried also removing the casts and still error

unkempt hamlet
#

Is the class extends from other models or just default Model?

violet tulip
#

Model

unkempt hamlet
#

Do you have any global scopes?

violet tulip
#

I think it started from the latest Laravel update

#

no

unkempt hamlet
#

Have you checked the upgrade manual to see if anything related got changed?

violet tulip
#

yes, iirc

#

will check again

unkempt hamlet
#

Also check service providers to see if anything fancy there

violet tulip
#

update table set multiplayer = 0, approved = false, updated_at = 2022-04-01 18:47:22 where id = 184

#

this is the query created from laravel

#

executing directly from phpmyadmin, it works...

#

'strict' => false, in config/database.php did the trick..

unkempt hamlet
#

Well, if it works, it works.

fervent axle
unkempt hamlet
#

Maybe it is actually tinyint(1) in the DB, Laravel likes to do that

fervent axle
#

So possible kekw

violet tulip
#

yes, it is. and is quite common in many languages \ database when writing to db, manage true\false as 1\0

shadow marsh
#

same with me - PMA shows it as tinyint for 1 true, 0 false.

#

but when getting/setting it, the query gets true/false and sets it as true/false correctly.

opal arch
#
violet tulip
#

finally useState update batching

shadow marsh
#

General Question.

.yml or .json ?

To be specific: to save certain data not in the database but to save stuff as a file πŸ˜„

unkempt hamlet
#

Depends on your stack

shadow marsh
#

what do you mean exactly?

unkempt hamlet
#

I mean what technologies are you using in the project

shadow marsh
#

Java - and for a discord bot SCPEEK

unkempt hamlet
#

I guess, json is a better choice then

shadow marsh
#

alright πŸ˜„ guessed so but wanted to make sure

unkempt hamlet
#

Technically, YAML is JSON SCGsus

shadow marsh
#

interesting πŸ™ˆ

forest oxide
#

Anyone else get rlly worried when something is supposed to work but you get this constantly:

violet tulip
forest oxide
fervent garden
#

haha

restive hare
shadow marsh
#

looks nice

rigid zenith
#

When would there be role events for the vtc like xyz has joined abc trucking

#

Or promotions or demotions

restive hare
#

It has never been suggested

unkempt hamlet
north flax
#

Now you just need to dynamically generate it :p

compact holly
#

Hello! Am I allowed to share any projects here related to the game, such as a job logger?

shadow marsh
#

yes

#

just read what the channel description says :p

compact holly
#

I've been working on https://github.com/FC5570/ets2-job-tracker, it currently only notifies the user and keeps a count of the jobs completed by them. This project however needs addition of a lot of features, i plan on making it send notifications to a single channel, so it would be easier for a group of players to keep track of each other's jobs, working on a desktop app with tauri and dockerizing it. Any suggestions/contributions are welcome.

mossy cloud
#

Something I'd like to show off, for Uni I've been creating auto-generating Bingo cards πŸ™‚

This takes its data from our Bingo calling software - accessible via an API, all of which i've made and shows the numbers on each card + which numbers have been called

This allows people to play along via tablet etc. without having to blot anything πŸ™‚

#

And this directly mirrors paper tickets so if someone claims they have a line etc, it can be easily checked by the host running the bingo rather than having to check each number πŸ˜„

#

Super hyped to try it out

#

Host view:

unkempt hamlet
#

Looks good, always wanted to do a software for a game show

wet shale
#

hello. question here you can ask if someone helps me make a web page?

unkempt hamlet
#

If you have some issues, then ask here. We are not able to make everything for you.

ember canyon
#

help me

shadow marsh
#

We can't help you with just that blobcateyes

ember canyon
#

πŸ˜•

shadow marsh
#

What are you even trying to do

ember canyon
#

TMP User Info

#

If u let me know how to use API, I will do the rest.

cinder kayak
#

Isn't there an API documentation?

#

If I'm not wrong, you just have to fetch the result and use it as an array, or? PES_Suspicious PepeCursedSus

ember canyon
#

I want to make a user information command. But I am not getting the data from TruckersMP API.

unkempt hamlet
#

Debug the API answer on backend

ember canyon
#

how will i do ?

shadow marsh
#

Just print the content into console and see, what you get

unkempt hamlet
#

I guess it is Node.js and I guess you've missed some promises

ember canyon
#

yes node.js

#

version 16.13.1

#

and i'm using djs v12

unkempt hamlet
#

Check if API request code actually returns data, not Promise

cinder kayak
#

Just take your fist and hit the server aPES_Giggle

#

Brute force always helps :3

unkempt hamlet
#

Precursive maintenance

mossy cloud
violet tulip
#

last 2 days a lot of errors from TMP Api bye bye Sentry quota

mossy cloud
#

Hopefully input rules might block duplicate errors after a certain amount and reduce the number of errors logged

toxic arrow
ember canyon
mossy cloud
toxic arrow
# mossy cloud What project is that for?

My VTC's tracker, I was away from home for 3 weeks and just before leaving I've removed one of the API endpoints but forgot updating the tracker which led to that

mossy cloud
#

oof

#

Yep

unkempt hamlet
mossy cloud
#

ooooh this could be good for uni

zealous eagle
nimble galleon
#

hello, does anyone know i can make it like #scs-updates? (RSS)

unkempt hamlet
#

MonitoRSS

mossy cloud
#

Either that or use Zapier to listen to a feed, but MonitorRSS will be suitable for an exact match

somber lynx
#

||Maybe some of you know I asked if someone's good at maps before, well I did it myself lol||

Showing off my map site with navio live data :))

https://map.charlws.com/

You can feel free to use it if you want to add a map to your DriversHub

mossy cloud
#

Very nice!

#

Sadly I can't show much here but I've been using open bus data from our government to show the current location data of our campus shuttle bus πŸ™‚

unkempt hamlet
cinder kayak
#

That's nice xD

fervent axle
#

Sooo funny, I'll use it for my project πŸ˜„

cinder kayak
shadow marsh
#

ahahaha πŸ˜‚ lovely kek

opal egret
#

hi

#

how does it works i want to set the same one

unkempt hamlet
vast mauve
opal egret
mossy cloud
unkempt hamlet
#

Reactions are handled by a separate custom bot which checks the message format and VTC in question

unkempt hamlet
mossy cloud
#

nano > vim

opal egret
#

is someone testing the whitelist server?

#

πŸ‘

ocean mural
#

I call it simple perfection

shadow marsh
#

well, depends on where it is used and what's the intention of that "false" lol

ocean mural
#

It is used right in that case. I just had to smile because it is so "simple".
Instead of making a lot of "why nothing worked", it just says "no"

I dont know whats wrong with my humor though

unkempt hamlet
#

"Let it break" πŸ˜„

ocean mural
#

yeah

unkempt hamlet
#

I like that philosophy in Elixir/Erlang

shadow marsh
#

Well, I do that too sometimes - espicially, if I need it as a persistent value, no matter what the outcome is GGF_shrug lol however in certain cases it can be helpful as well, like in debugging

mossy cloud
#

Laravel debugging dd("Noot Noot"); πŸ˜‚

shadow marsh
#

πŸ˜‚

#

that's also a way to debug

fervent axle
#

That's the best way kappa kappa

shadow marsh
#

I always do "System.out.println("Error in #row");" lol

#

also a weird way, but a way smart

cinder spear
#

and then you change code and end up with multiple prints with the same number and all of them are out of place

shadow marsh
#

nah, I edit them then too, if neccessary

#

and once debugging is done, they get removed, otherwise the console would get spammed

unkempt hamlet
stoic maple
#

I'm not sure that I can discuss this here but still,
I'm in search of a discord bot which can send my message for everyone in my server privately. for example, If I want to remind people in my server for the convoy, The bot should forward my message for everyone in server using DM.
Is there any bot available which can fullfill this ?

unkempt hamlet
#

for everyone in server using DM
That's not even a good idea. It should be "everyone who explicitly signed up for that".

stoic maple
unkempt hamlet
#

It is a pretty specific use case, I've never seen such things in bots before.

north flax
#

Wouldn't recommend it really. You're gonna hit rate limits

#

And end up tagged by anti-spam systems

quick glen
arctic mica
#

Ye sending mass DMs will quite quickly get your bot rate limited and flagged as spam. Iirc someone I know tried it and it only got to like 40 DMs before it got rate limited, no matter if they added a timeout or not.

shadow marsh
#

Just too good, right? kek

stoic maple
arctic mica
#

Should try to find something that your drivers want then, I know it isn't easy though.

violet tulip
#

hi guys, do you have poor performances running Laravel locally with artisan serve and mysql (xampp or laragon)?
i have API calls taking 10-15 seconds when in production run fast...

is the local artisan webserver that sucsks.. or?

opal arch
#

For me, it is running really fast, no issues with it whatsoever

violet tulip
#

mmm i dont understand why is so slow....

opal arch
#

You should check what is taking that long. If it is reaching the request, processing the request, database access, ...

#

Have you tried other ways of running Laravel locally? Like with Laravel Homestead

violet tulip
violet tulip
#

not so speedy as production but now is really acceptable

unkempt hamlet
#

I use it all the time on Hyper-V, really makes a lot of difference.

#

Not that I recommend to, it is a little but quirky to set up (and it requires you to punch in an Administrator account everytime)

opal arch
#

Happy to hear that :)

violet tulip
#

the virtualbox config works fine

mossy cloud
#

I use Laragon on Win

#

I don't use artisan serve though, just have it setup as a virtual host when laragon starts

violet tulip
#

after this experience, suggest to use homestead, simple to configure, almost plug & play

violet tulip
#

@opal arch thanks for the fix on the Dispatcher and the clear message for the log files name change

opal arch
#

Thanks for reporting the issue πŸ‘

violet tulip
#

got some time before understanding reports from the users... was hard to explain the difference btw miles and km in the planned distance πŸ˜„

shadow marsh
#

Soooo - I want to implement a feature in my bot, which is kinda like Streamcord, but only via commands.

My bot should do announcements, when a defined user is going live on twitch.
However, I don't seem to find any ideas / solutions for the codebase on how and where I should start.

Well, I did find solutions or somewhere ideas to begin, but in JavaScript. But I code in Java only, so that doesn't really help me much πŸ™ˆ

Does anyone in here have any ideas or tips?

Thanks in Advance
Kit

cinder kayak
#

Can't you easily use the Twitch-API or something (if there is any)?

shadow marsh
#

didn't found a Java one yet however, they have a JSON API which I could poll every x minutes - already looking onto that and it seems rather complicated kek or my brain is just making it up like "Nope, too complicated" wesh

north flax
shadow marsh
#

indeed - seems more promising to me

unkempt hamlet
violet tulip
#

ahhh that's why i've got two downtimes today

#

really i wouldnt be in the shoes of whom applies these changes to the CF network

#

"ok, go for it"
...
"oh, oh"
"what's oh-oh?"

ROOOOOOOLBAAAAACCK ROOOOOOOLBAAAAACCK

cinder spear
#

"we can't"

violet tulip
#

"ah, well ok. bye"
puff

tardy smelt
unkempt hamlet
mossy cloud
#

πŸŽ‰

violet tulip
unkempt hamlet
unkempt hamlet
cinder spear
#

do they even want developers to use it?

unkempt hamlet
#

Even funnier, it has been dropped a year ago, and I only found out today pepega

#

I guess, no v12/v13 for me.

unkempt hamlet
north flax
#

Seems like a decently well thought out implementation of that model

opal arch
#

It should be more like "pass trivial types by value" instead of "small objects". String may be considered a small object... but you probably do not want to pass that by value

unkempt hamlet
#

I mean, I was there for cats SCGsus

golden junco
#

sup guys

#

i suggest to make ets2 better

#

like

#

to add real hands and more more

#

like irl

#

and more roads

north flax
#

This is not a suggestion box for SCS. This is a chat to discuss software development in general

unkempt hamlet
golden junco
#

ok sorryverified

cinder kayak
#

Someone may know, why the Website doesn't show up anything, when I try to bind the params of my prepared statement?

$statement->bind_param("ii", $new_rank, $get_id);
$statement->execute();```

When I comment out the `$statement->bind_param("ii", $new_rank, $get_id);` line, the website loads fine.

Variables 'new_rank' (value: 6) and 'get_id' (value: 1) are also set.
unkempt hamlet
#

Enable error logging via mysqli_report to see what is going on

cinder kayak
#

Well, I'm only getting this error: mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'rank = ? WHERE id = ?' at line 1 - But there is no error with the query Hmmge

unkempt hamlet
#

In $mysqli initialisation, have you actually referenced a table?

shadow marsh
#

Don't you have to do that when establishing a connection?

#

Oh wait.. nvm

#

Now..

shadow marsh
#

Ugh... I'm tired tmp_sips

unkempt hamlet
#

I cannot see the code above, so I am asking everything.

cinder kayak
#

Other prepared Statements are working fine

#

It's just this bind_param

unkempt hamlet
#

var_debug the mysqli, maybe you will find something odd

cinder kayak
#

I'll try it later. Thanks CJ :3

mossy cloud
#

@cinder kayak Although shouldn't be required, try putting ` before and after the column names

cinder kayak
# unkempt hamlet `var_debug` the mysqli, maybe you will find something odd

I found the error, I think rofl
It couldn't find the coloumn just by the query thing, idk how to explain it. I had to tell them, that they have to set its specific column...

$statement = $mysqli->prepare("UPDATE users SET rank = ? WHERE id = ?");
to
$statement = $mysqli->prepare("UPDATE users SET users.rank = ? WHERE id = ?");

#

But thanks for the help anyways :3

cinder spear
#

rank is a reserved keyword since 8.0.2 which might impact that

unkempt hamlet
#

Makes sense

cinder kayak
cinder spear
#

good practice to wrap field/table names in backticks to avoid potentially getting things confused with reserved words

violet tulip
#

or use an ORM

tardy smelt
#
The JetBrains Blog

Since the introduction of subscriptions 7 years ago, we have not increased the pricing of our IDEs, .NET Tools, or the All Products Pack. During this time, we have introduced new products that have been included at no extra cost to everyone using the latter. However, we are at the point where we need to increase our subscription prices. The new ...

unkempt hamlet
#

When you cannot even pay for their products kapp

unkempt hamlet
#

I am from Russia SCGsus

cinder kayak
#

I am not Wesh

mental citrus
#

Hi

#

how can i get from api vtc attendances)