#programming
1 messages Β· Page 20 of 1

My system is divided into 2 things - database with "codenames"
And files with translated names for it.
Hm
Would have pushed all to db (only those English), but it would create a huge mess XD
Well, this isn't very hard π
BTW - Someone uses Chromium Edge? π€
I mean, I've used it, since I have the test VM with it to have a sandbox for some malware x3
But just to download a few reverse engineering tools
Idk - maybe I'll switch to it, because I really like Edge itself in the past.
But then came Chrome xD
Well, Chrome is in my Google ecosystem and I can't get rid of it, but I didn't even think about the replacement.
I mean...
The Edge, not Internet Explorer, I used when it was really useful - the only 2 browsers which I had in 2015 were Edge and Firefox.
Then when I switched to new PC I started to using again Chrome, because my mother also uses in the work.
Alright, chrome came along in that sense :p
But when I see that Edge is coming back in the form of Chromium-based web browser, then 
(plus Edge has Internet Explorer compatibility mode
)
Someone plz kill IE for sure
It actually received some updates last time, afair
Time for another presentation 
Today some pics from List of users
By clicking on π , you can reset the password of the user.
The password will be sent to him/her via email.
Removal of user also after removal from DB sents email to user.
The password will be sent to him/her via email.
Well yeah... It is isn't the best idea, however I didn't yet implemented that. 
Will think of solution that will be safer (reset link e.g., something like this).
should send a temporary link to a page where they can reset it
Also, you should not store the password in a way where you can recover it
Use Argon2 or bcrypt for password storage
Then you wouldn't be able to send their password to them by email in the first place, so do what 3v suggested
Firstly I made a custom password generator, that selects random character from the pool, then it returns it to value.
Then I proceed with hashing, so people get "plain texted", meanwhile in base it is in hash.
But perhaps I'll change it, because I'll kill myself when pushing out such a generator
I'd generate a token and let them enter it instead
Rather, an url with a token in it
That token could last i.e. a few hours.
If you set a password for them, then they might not ever go in and change it themselves
IF you do generate it, make it really strong and combine it with good password advice at least
Like, don't have it on a post it note on your laptop. Writing it down is alright, just have it in a more subtle place, i.e. a password book hidden in your house or something
Also, regardless, if it was me I'd encourage them to have a unique password per website π
Atm my script in zip weights 500KB
https://laracasts.com/series/whats-new-in-laravel-6/episodes/2
This is really cool considering that Laravel is improving more and more their debug tools
Especially this bit https://github.com/facade/ignition-code-editor
I wonder who told me about that again 
Lol 
There are many interesting links today
Okay - system with resetting password β
User gets link which he uses to set up a new password.
And the link is "living" 8hours, after that period it can't be used to reset password.
And after usage, the link can't be activated again.
:+1:
A little while back I wrote a blog post about how "CSRF is dead". It focused on SameSite cookies, a powerful yet simple feature to protect your website against CSRF attacks. As powerful as it was, and as much as it will kill CSRF, you had to enable it on
@north flax You'll love this: https://github.com/auchenberg/volkswagen - Falsifies test records to show them as passing xD
Just like the Volkswagen emissions scandal xD
k
VTC update is Very Good
Thanks π
Yay. System of notifications works. 
Same goes to settings of user.
The only things left to do are:
- report generator (from defined period of time),
- add load for ATS (because I didn't add yet),
- implement installer,
- introduce dark theme.
Then release to public and afterwards I'll start working on next version.
Release is planned on 22th of September, not sure at what hour.
Small snapshot from README
@raw notch I didn't forget linking you π
thanks π i prefer Trucky tho π
Will change 
thanks, appreciate
You're welcome. 
Hm... I'm stuck right now, because mPDF doesn't handle Polish letters (even though everything I right is in UTF-8 without BOM).
Instead of "Ε" I got β
Any ideas?
What font?
Made sure it actually is set to use UTF-8, and didn't default to ascii or something?
Has anybody used ReSharper C++ for VS2017? Like if you feel it is necessary or not. I am quite wondering if I should keep using it as I am trying it right now
never tried it because of the cost, but it seemed to have very useful features
Student Licence, everybody π
my uni account was deactivated π¦
then again, now I could afford to pay for it...
The price is quite high, yep
let me know if you find it useful. Got a large C# project I'm still working on every now and then
I use ReSharper C++ 
The only extension for C++...
It is seriously annoying to see so many features and extensions for C# and C++ is like nah
C# is the first-class citizen in visual studio
C# being my favorite language I'm ok with it 
> cloc . 20:24:49
128 text files.
128 unique files.
5 files ignored.
github.com/AlDanial/cloc v 1.74 T=0.53 s (234.8 files/s, 23512.7 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
C# 116 1109 942 10285
MSBuild script 1 0 6 38
YAML 2 3 0 18
Bourne Shell 3 0 0 7
Dockerfile 1 2 0 7
Markdown 1 0 0 1
-------------------------------------------------------------------------------
SUM: 124 1114 948 10356
-------------------------------------------------------------------------------
Docker 
running on ec2 on ubuntu
.net core has made C# a great choice for most things that don't need native UI
no doubt
k8s is the end goal
15 years of .net, never used resharper :D
As I said, C# has quite a good support
Is somone here good at doing Truck & Trailer skins?
Anyway, it may be due to my poor laptop but it makes VS so laggy and caused a crash while creating a new file
Lol :p
Would a job logger in C# be easier (and potentially more stable) than in node js
@north flax Regarding your question, I used chelvetica.
I want to have a font that is like Arial-alike.
That's how it look like after generation.
That font is from 2007
https://pastebin.com/Vjrtiuri <- Code
Can you use something modern like Roboto?
Me likes Roboto (or Mono)
Roboto 
Gonna use Open Sans, Roboto is also good - don't want to say that I don't like it, but I used a lot Open Sans in my projects.
Seems like change of the font happened quickly 
my first laravel project in production: https://trucky.events
A project from Trucky - The Virtual Trucker Companion app. Complete Multiplayer event management: routes, roles, applications, slot booking and much more.
Where is some privacy policy?
error 404 not found
well, 409 is Conflicting Request
Don't know what you mean 
Well, I know kung-fu. Namely, message logs 

Privacy Policy isn't avaiable without logging-in somewhere 
well, he still should make the user know what he will do with the email address, how you can un-sign etc. in order to follow GDPR
@raw notch
true, it's correct. tho, gdpr applies (in a legal way) only to entities that gain money from privacy data
it applies to entities processing personal data as part of its activities within the EU or activities outside EU but targeting individuals in the EU
regardless of money
as per ec.europa.eu
i meant fines
it's very unlikely to get fined for it right now as a small entity anyway
in Italy they are issueing some fines, actually, since some months. but, for admission of finance police, they are doing it only on denounce
privacy added π
My new T-Shirts arrived - and its for developer, cuz look on it
https://cdn.discordapp.com/attachments/613717063541981194/623481655847288842/IMG_20190917_132513.jpg
Awkward... It does work. 
Let me find Windows98 disc 
I've done the most stupid thing which a web developer can do...
Guess what I've done... 
do i want to know that 
that reminds me of debugging my codes for CS classπ
English here only @shadow marsh
The dominant costs of processing JavaScript are download and CPU execution time.
tl;dr: JSON.parse is quicker than creating object
...because parsing the code to create the object is slower than parsing json
curious about use-cases where you'd have a hardcoded object larger than 10kB though
Well... The publication of my script will be delayed, because I still need to deal with some stuff.
However the final date will be next Sunday at 12PM (UTC+2), so stay tuned. (here you can check time in your country - https://notime.zone/LpCyGKVBom6J- )
Time for leak... from my project 
Didn't want to put header and footer into their place, wanted to generate the report in such a way.
As admin, you are able to select the user which you want to check.
As non-admin you can only generate report for yourselves.
I know this is a month old.
GitHub supports WebAuthn which means you can use Windows Hello for 2FA with GitHub. And if you got an Android phone with a fingerprint scanner you may be able to use it as well for 2FA.
https://github.blog/2019-08-21-github-supports-webauthn-for-security-keys/
I use that both on my Windows laptop and on my S7. It's really good
This is not a place for bug reports
OK
That's the best portfolio I've ever seen lol
Yeah, that's kinda interesting
http://louie.co.nz/25th_hour/
This is pretty impressive.
another one without a noscript tag 
Hey @raw notch, thank you for Trucky Online Map, very useful for the stream!
Two notes:
- Can you add a coordinates interpolation like ETS2Map did so dots will not jump around suddenly?
- There seems to be an issue when map lost a focus on me after a ferry.
@unkempt hamlet thanks :) you was following you? I think when jump the ferry on the other side it loses the focus, right?
yep, out of current bounds
And what about interpolation? Can you do this?
sure :D with some time available :D
It would be so cool
i would add also directions and convert cicles in rectangles
circles are nice
i dont like them really but has been useuful because of svg using in leaflet
are good for perfomances
I have some thought about Streamer mod for this map though
oh you embedded the map in an overlay?
Yes
removing the background just like a green screen
Yep
Webpage
ok
@raw notch on https://web.truckyapp.com/ your discord footer is an invalid discord link
We deleted all invites because of raids 
@mossy cloud thanks will fix it
np
@unkempt hamlet well I could add an embed parameter to remove all around the map and let usable as standalone
It will be nice too
Also, I though about some cool stuff like nearby city names floating in the bounds
But it is way more custom
Time for some learning of Node.js
First problem - WSL come with old npm which in my case causes to crash when trying to run a script 
Maybe that's a problem with the package that comes with Ubuntu 18.04 WSL or idk... 
Well, just pull node and npm from nodesource
I went with downloading from official site
And use Ubuntu package rather that with version
I got a tar.xz
Idk what I do wrong...
Here is after node server.js command
Meanwhile my JSON...
Idk if upgrading dependecies will give me much...
Nvm...
Just VSCode is making problems when opened a WSL folder..
Do you have any ideas how to render uploaded earlier image?
What do you mean "render"?
I mean to display an image
What is your project about?
My project is to upload an image and display it afterwards.
Once the image will be clicked again, it should go to upload a file and so on.
For now I have uploading of the file
Okay - got it 
app.use('/uploads', express.static(__dirname + '/public'));
Meh... I'm struggling 
It's fine
I got 404 when I want to render this image... The Node app is located in other directory than localhost, so... 
Wait a second...
Nah... still the same. π
Are you linking to it correctly?
Idk what do you mean. 
nvm I am not sure what you are trying to do lmao
Are you trying to load an image on a html page?
I'll show you by giving you a bit of my code, so you can dig in.
I display a page
On this page there is a form.
I upload the file with use of AJAX + jQuery combo (plus multer).
The file must be an image.
After uploading, the image should be displayed, but it doesn't
server.js - https://pastebin.com/zEbf5Hch```
If you need a package.json, tell me.
Okay let me see, I don't have much experience but I am currently working with NodeJS myself for a chat app so I can take a look 
Side note - I use LTS version
Perhaps this tutorial is helpful for you: https://code.tutsplus.com/tutorials/file-upload-with-multer-in-node--cms-32088
I can't use DB.
ahh okay
That's a catch
But... I could store it in the file 
Idk...
It's my first time with this language and I just can't get through it.
It's difficult to start with for sure
I am making an application in Electron right now with nodeJS too
It's really confusing lol
I mean... I know how to render page in Pug
It's quite easy, but...
This damn displaying is a tough task.
This is a pretty established task in Node.js world, so there must be any sort of manuals and tutorials.
And now I've another problem XD
After changing image I want the user to be able upload again, but I don't want to refresh the page
But when I click on image after changing it to diff, it's stays static - function doesn't work
Sorted out again.


I give up xD
How to make a device load a new stuff...
On PC works amazingly...
On tablet/smartphone - it doesn't load anything
In fact it caches...
Tried meta tags it doesn't help 
jQuery doesn't help here - whatever function I use - the same effect
I think that day without an issue it's not the day...
Now I try to get my cookie with use of cookie-parser.
There is a cookie named "node-id" with a value from 0 to 9.
I use this value to separate devices.
Thanks to that I would display different images etc.
But seems like Node.js doesn't get this...
Even if I'm uploading to the file, res.cookie['node-id'] gives me undefined and uploads a file, but req.cookie['node-id'] gives an error and doesn't continue with upload.
What can be a problem?
Nvm - sorted out again. 
Trial and error baby π
It is funny that TDD development is "Error and trial" 
Lol
That situation when code works on the other script and when you change, it doesn't...
(β―Β°β‘Β°οΌβ―οΈ΅ β»ββ»
It's fine, I guess
I'm not so convinced, yet. I think it looks nice but there is something to improve as UI. it's thinned to be a quick dashboard when you open the app, not the informations listing but something more organized and precise.
not a fan of the styling of the tiles
neither me, but honestly is a good way to organize little pieces of informations in small space
@cinder spear oh you mean you don't like that style of those times or the tiles themselves?
the big grey buttons
I like the positioning. I don't like the color or the text alignment or the borders
Yeah the text alignment seems a bit off
you are right guys, indeed i dont like it, maybe i'm near to final result but now.. meh
Perhaps you can do it like this:
3 traffic jams
Calais (City)
10 players
Everything underneath each other instead of it running out of space and then misaligning
i'm thinking about 2x1 boxes instead of 1x1 with icon to the left and text after it, to have more space
The rest of it looks fine imo, you can always go with some flashier colors and/or animations but that's optional
"flashier colors" > ultra pink
Well flashier can also be the image above
the usual red could work well as background color for the tiles instead of the light grey

all that red is a bit "heavy" 3v
also that's dark theme one
That already looks better IMO
But I've never liked light gray so it's just personal preference
Maybe the white background of the logo can be removed and the logo made white instead
that's what i suggested to dow
well, it's a banner that

that looks pretty good
definetly better
well traffic could be expanded with like first 3 location, maybe for each server? or on sim1?
i mean, what do you expect to see on the home screen?
friends load will take a while
hotmap of cd on the main page
my personal priority would be
- friends
- events in the next day or two
My recommendation? Don't pay too much attention to the order first time around. Add tracking to see how much people use each button and listen to feedback after people have actually had a chance to use it
ah well, friends and map are most used screens
the homepage is great for current events that might be of interest
(events in general, including uncommonly busy areas for example)
not necessarily
arrows
actually people don't pay attention to traffic because everything is already on the home screen
TruckersMP Announcement
In the newest version of the website, 2.9.8, released on 24th September 2019, we added a new property to the /v2/servers API end-point - promods. It has boolean as its type and you can read the full description in our API documentation: https://stats.truckersmp.com/api#servers_list
We recommend you to carefully read the description as it can be a bit tricky.

@raw notch Still great work 
This night I'll publish some photos from installer.
Actually I would make...
I love this new font 
Font -> Cascadia Code
Is Cascadia code any useful?
It's like windows powershell but more Linux-ish right?
It looks nice...
And it's from Microsoft 
And it's on GitHub 
Will be "Polish-English", so yeah...
The link to setup password will be sent as test of SMTP.
API and db is needed, aswell as other mentioned stuff (logotype, ID, name and slogan of VTC)
That's only component that I need to develop...
Then I want to implement dark mode, but I'll do it in the meantime.
For 90% this sunday the script will be published...
Maybe in the meantime I'll start developing some other application in... nodejs
E.g. link shortener
Idk why, but latest update of VS Code has upscaled the interface to 125%, how do I setup on my laptop... 
What are you making arus?
@winter badge Tachograph for VTCs
It's like TrucksBook, but you need to fill out the form manual.
And it's has some cool features (and more will be added after publication)
Sounds interesting
I was once thinking about making a tachograph mod, like the actual device
I posted here a lot of pictures...
You can also check my thread (however it's in Polish, so...
)
But this sunday the script will be published both on English and Polish section
On GitHub aswell (GPL v3)
Atm repository is private π
(Not) Thanks 
That's a list for now...
First version.
Includes:
- trip system (adding, accepting, rejecting with notifications)
- recrutation system (using SteamID API via SteamAuthenticator by SmItH197 and TruckersMP API [Player and VTC])
- support for latest DLCs (not added cities/loads yet - only names)/mods (not built-in)
- roles (built-in 2 roles)
- and more
In this list I should add a generation of reports for users to PDF with use of mPDF
Did you have any tests? What coverage? 
I'll send it to my beta testers today, so if there will be any problems - I'll tweak them.
Oh... 
Maybe I'm not understanding what I should do atm...
But for now everything is tested by my beta testers.
You have 1.4k lines of code and no automated tests. It can be really hard to support on the long run.
Most of stuff is SQL queries with content, I can't import them from file. 
(i should go Laravel...)
During inserting when it is critic step, I ask if everything is okay.
If so, then he continues and that until 5 upload.
Then it checks connection to SMTP.
Afterwards if everything is fine, it writes settings to db, db data are stored in the seperate file.
And locks installer, so nobody can use it again
That's it.
Also at beginning it checks if there is connection to db.
And fun fact - user gets link to setup password while checking SMTP.
So if he received a mail, then there is also working, if not, it will display error.
We will see in practice - maybe one day I'll decide to change it to something else...
Unit test are often tedious to make, they work great, but often cost more time to maintain, then that they actually help
Depends on the program, but for websites it's often redundant
Arus, if you're using php, use something like migrations
They are more secure, and you would not have to make a 1200 lines file
F

Scheduled time of publication - this Sunday, 12PM (UTC+2)
Hey, I know this is a long way off but if in the future I wanted to become a TMP developer what languages/frameworks would I need and what skills would be required.
Also does anyone have any resources for learning these frameworks and languages.
Regards Coolio85
The website is written in Laravel so a strong understanding of that and PHP is essential. Probably a portfolio of work as well. The mod is written in C++, so Iβm guessing you would need to be able to write fluently in C++ and understand reverse engineering
All though, developer recruitment isnβt something that is public
Thank you Ratcho, I am currently learning PHP and when I get good enough with that I'll probably move on to learning Laravel because a lot of people have said that it is really good
Binary tree looking like a double linked list
Soon I'll publish the thread in proper subforum π
You should really look at Laravel and similar frameworks though
This will make your code more maintainable and readable.
Also you will have proper templating engine
Yeah, it looks like ETS2MP v1 website π
I've never seen ETS2MP v1 code π
You lucky guy
Well, I did my Thesis with the same technique over a week, it was a nightmare.
@unkempt hamlet It can be that I'm not yet developing in proper way. π
the lack of any sensible sorting in router.php 
Btw now I've seen ETS2MP v1 code and I am kinda regretting of it
Add to that that I target mainly users, who have their VPS servers or hosting, so idk if Laravel would be an option here...
I didn't check it yet, because I don't have that much time...
For now I try to guess what's wrong with my Node.js script 
I even had terminal access to non-root user with Composer working back in my days
On the shared
And it was quite cheap
Well - I don't have such abilities 
I can however check perl library
Or pear
And I do have auto-installer for other scripts, but the only one that I use is WordPress (waits for lynch)
Laravel runs very well on a VPS 
But it does not have to be only that one framework, it can be anything that is somehow good
We will see...
@cinder spear Don't worry - I'm gonna make fixes to some things, so don't worry.
For now I wrote in the way (everything not in place
)
Already I'll have to push first commit... 
I'm gonna create a documentation for the project during the week when I'll have a break
The worst thing is that I don't have any website dedicated to the script and the only page is GitHub repo π
For now then I'll leave here only URL to repo and I'll not publish topic then 
@strong quail Are you actually doing any database validation on your queries? You've got:
$id = $_SESSION['role_id'];
$f3->set('result',$db->exec('DELETE FROM roles WHERE id = '.$id));
but then on you router.php you have:
$_SESSION['role_id'] = $f3->get('PARAMS.id');
Well... There are some things that I'll take a look.
You need to make sure people can't pass values in that shouldn't be π
Will fix that @mossy cloud.
β€
Thanks for report 
No problem, but that's pretty major π
Yeah 
That's why you use frameworks as they usually take care of this
It is funny coz he pretty sure knows about that and actually uses that in code
@strong quail why have you pushed your vendor folder?
I would still highly recommend against it. There are other frameworks which donβt use composer like codeigniter which might have been a better option in this case
We will see... For now I'll stick with. As I said earlier here - next projects will be created on other frameworks.
I don't want to change it right now.
I had the same situation when I wanted to start and use object based PHP against procedural one in my older script.
The change was too big and in that case I gave up.
Now this framework for sure is better than normaln PHP, but I keep in mind that there are better options.
What exactly are you making @strong quail ??
What is it?
In short way - VTC system which you can install on your own server.
@modern solstice For sure I want new beta testers, however atm I need to prepare my Discord server in order to invite you.
if you need help π DM me arusf ^^
@mossy cloud All has been fixed.
Now there shouldn't be any possibility to do such a things.
Because I use F3, the most of the things are bindable, so there is sanitization.
Good, well done
It's weird, but I have in two different folders the script - my dev place and release.
Don't quite think this is necessary now π
I think CJ likes the
emote xD
This is my face when something interesting happend
Currently working on a laravel/vue app
You should consider using laravel arus π
There are almost no better alternatives for php
And like racho said, pushing your vendor folder is highly discouraged
Same for your npm packages
Well... If you happen to use a hosting that has ssh and has built-in command for node and npm, then you're lucky.
I had a contact with hosting that let me install the app... but if I wouldn't have other modules, perhaps it'll fail everytime...
Soon I'll publish docs, demo website will be available shortly with the website dedicated.
You would just compile JavaScript packages and components. So you wouldnβt need node or npm on a production server
I have a question. Is it perhaps possible to remove from the new patron story in multiplayer the emblem after the nickname. To be honest it doesn't look nice if you have left and right two images http://prntscr.com/pducp2
@restive canyon: You can provide your suggestions:
- About our Discord guild: in #discord-suggestions
- About TruckersMP, in-game or website/forum: in dedicated forum topic https://forum.truckersmp.com/index.php?/forum/285-suggestions/.
...and other lies web developers love telling their users 
A project from Trucky - The Virtual Trucker Companion app. Complete Multiplayer event management: routes, roles, applications, slot booking and much more.
my first laravel app in production :D

Nice
Maybe if I'll have money, I'll buy VPS and once I'll switch to it, I'll start to write application in Node.js 
I really like this framework.
Nice to see that!
@strong quail try heroku
How was it to work with Laravel? :p
laravel Is great, finally a good framework to do things in php without going crazy and write a lot of useless code because everything is nearly already done
I did also some advanced task, like implementing middlewares, custom scopes, advanced relations btw objects and where things get too complicated, use some custom query
implemented custom email with markdown using laravel templates
hides somewhere in order not to get pinged

Really nice to hear, downmeister. :)
I really, really wish I did my project in Laravel now, but I'm too far down the track to use it D:
Will have to get this coded fully first, then re-write in Laravel to future-proof
@opal arch I think next advanced level to try is queue system
to do more things in asynchronous
It is never late, Penguin
If you like developing websites and you have some free time at the week, it is worth to look into new stuff
I don't have the free time though, I'm working in the day, then night-time is Community Management / wind-down
And the queue system is indeed an advanced level, I would say. The important thing is you should not use it for everything, otherwise, you will just flood your server :D
It is worth for stuff like mails, notifications, sending stuff to other web API, ...
Plasma's new website π
File Structure anyway π
So as you can see, might take some time to convert to Laravel π
Yeah...
But yeah, the entire site's written in pure/procedural PHP, but I'm learning a lot from it, so in a way I'm glad I haven't done Laravel, as I need to get the basics down first before converting it
yes, true
well, it would be easier to learn Laravel then, Penguin
I want to get this site out by Nootmas though
Then convert to Laravel once I've got a working site
noot-wot?
Nootmas: Christmas in Penguinese π
i like Pingu when I was young

Look I just like penguins okay :3
Haven't seen a pingu episode since I was really young lel
penguin sliding 
That event planning site looks promising!
I heard that the steam API is a pain to implement, is that true?
openid is a well documented standard
no
OpenID is a way to authenticate
OAuth is a way to authorize
OpenID Connect combines both
Steam uses OpenID 2.0 AFAIK
@winter badge which language? nodejs or php?
php
socialite offer a easy implementation
https://github.com/overtrue/socialite there is also for laravel and the integration is so easy you wont believe, for nodejs instead use passport and passport-steam
Ohh thanks a lot!
steam uses a standard openid implementation
so you can use that package for steam as well?
I feel like i'm asking stupid questions xD
someone is using the package named Laratrust? Cuz I need help
What do you need help with?
I'm getting this error when I wanna return the role name:
Undefined property: Illuminate\Database\Eloquent\Relations\MorphToMany::$display_name (View: C:\....\.....\reboot\resources\views\user\base.blade.php)
public function index($id)
{
$user = User::where('id', $id)->first();
$roles = $user->roles()->get();
return view('user.base',[
'user' => $user,
'roles' => $roles
]);
}
There is no issue with this code
The issue is located in the view
Also, take a look at this, it may be handy: https://laravel.com/docs/6.x/routing#route-model-binding
Well, you were probably doing $roles->display_name, I guess?
yeah but I was wrong so I've edited/removed the $roles in the controller and I've added this
{{ $user->roles()->first()->display_name }} in the view
now it's working fine
roles()->first() can be tricky as you are not specifying the order so roles are ordered by their ID. In the future you may want to change this behavior so you better make some getter for it :p
Vue.... with Databinding.... soooooo nice π
Works well for single dynamic components as well, since Vue actually provides decent support for that looks at angular
Depends on your need and use case really
It work for pretty much eveything
I like how it is getting more and more recognition
It is way more clean and straight forward then React and Angular
And i simply do not trust react
trust?
^^^^^^
what color format is "tag_color" in config.txt?
decimal
Thank you π
np
At first i thought it might be hexadecimal
but it was decimal without the hex
What's the formula for RGB to decimal?
no clue, I just use a converter
found an answer on stackoverflow it was in reverse tho(B, G, R)
I managed to get it working though because i saw that they were flipped in game
@unkempt hamlet dammit, I was deadass about to post that and then saw you already did ππ
Randomly showed up in my YT Recommended
inb4 Laravel 986 - dddddddddddddddddddddddddddddddddddddd()
Interesting π
print_r()
thats oldschool π
It is a nice feature but the name is a bit... meh
ye looks like "fill in the missing letter" π
that's what a trainee with me times thought π he should enter the missing letter
var_dump()
Pathetic
var_export() is a fun one
what i love... when developers push updates lives and forgot a "die()" in their code...
what I love is wrapping the whole program in a try catch so it can't crash 
wuarghs
Huh, what is this hell

not stored
Ah, only a number, alright

https://ohbot.3v.fi/stats/d/uG_TOgJmz/ohbot-overview?refresh=1m&orgId=1 if you like big numbers
OwO what's this
it's my twitch bot's stuff
Stats look pretty good π
i like graphana
I like grafana but I'm not a huge fan of graphite
you know what I'm not a huge fan of? Dyno 
who nowadays is
I wish I had some time, it would be neat to have an own moderation bot connected with the website :3
True
Do it then 
Kthx 

I know how to code bots, but I have no clue how to connect them with websites
The only API I know how to use is getting info like users id, current song on the radio etc. π
I'm not great with it, ngl
3ventic accept my friend request
Admeen Help
how can i install pear XXTea on xampp
Checking required modules:
PHP XML-RPC module Not found
Just add a ";", it'll fix it π
what OS/distro are you running on?
ah right, xampp is the windows thingy
ye
watch the language please
you'll probably need to install php outside of xampp
with the optional xml-rpc module enabled
btw i need to install it inside because i am using htdocs of xampp.
so i can acess to localhost.
Finally!

Nice menu
i love those kind of menus
truckersmp on the authy beta looks a bit weird lel 
Β―_(γ)_/Β―
In the meantime (when I'll develop a new version of tachograph - BTW If someone can check the issue that was published on my repo if there still is, I would be grateful... π ), I'll start working on new portfolio based on Laravel.
url? can't find it rn π
Meh... I'm now thinking what I might done wrong while copying my Joomla project to another installation
there is an error in your sentence: joomla
@raw notch Don't even ask me...
I know that creating a project for it is a pain in the ... bucket
so why use it? :F
π€·
People have used that in the past and I suppose that they don't want to change it.
it's the right time to change!
You have many mistakes in the word Laravel 
Tell them, not me... π
we decline customers using Joomla π
For now I don't have enough time to check Laravel, however once I'll sort out with my studies, I'll take a look at this.
You are always welcome to join the Discord server.
Link to it is here.```
no link...
tachograph is kinda "drivershub"?
@ember canyon Soon I'll publish a link to it, don't worry.
Hm... Maybe?
I didn't hear about it

Sure, it would be even better, don't hesitate to do so
...when u forget to regenerate the models for a form π and fire it up and all booleans get false arghs xD
@ember canyon Please do not ghost ping upper staff team members.
I'll fix all reported issues once I'll reach to my repos
I really hate installing MariaDB... Sometimes I got errors... Like right now...
Continuosly...
Access denied
What about Percona?
Percona is exactly what? π
MySQL fork
never heard about it. Are all SQL-Commands the same?
I'm trying not to rage because I have on my laptop the proper installation of MariaDB server
And now on the same distro it can't install
wth
On my PC ofc
Its vice-versa on me lol
On the main server it did worked. On my localhost server, he is playing crazy 
The funny thing, its the same OS and the same version lol
I've decided to install MySQL server
Okay
Why do you guys, TMP DEV's do not make an automatic update system, like a "bootstrap" automatic file update when we start the Launcher, without click on "Update" That maybe an idiot question but... 
I believe it's useful, as you always know you had an update
Plus it doesn't hurt to click one button 
arecki@KOMPUTER-AREK:/var/www$ service mysql start
- Starting MySQL database server mysqld
Password: (enters)
su: Authentication failure
(β―Β°β‘Β°οΌβ―οΈ΅ β»ββ»

Neither with sudo, neither without
that would be your account password
the one you set with passwd
and should use sudo
it might be asking for root pw without sudo, but I don't remember
Bruh... Even when I've typed my pass, the same happened
it's been like 6 years since I used service and not systemctl
is that WSL or a full linux?
When trying to run with sudo service mysql start it shows me this
- Starting MySQL database server mysqld
No directory, logging in with HOME=/
WSL, Ubuntu 18.04
sounds like you don't have a configuration file
But now watch this...
When typing sudo mysql_secure_installation
Securing the MySQL server deployment.
Enter password for user root: (typing a pass for root)
Error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
because it's not started, makes sense
is there anything important in the databases?
(you know what I'm going to suggest
)
sudo apt purge mariadb-server
works on my machineβ’
I just have the problem that I don't remember what password I set for the database
good thing I don't need it
WSL is for running ffmpeg
...where?
Or should I go with mysql_native_password authentication
Since I still got error "Access denied"
After installing again MariaDB Server
Nvm - auth_socket isn't loaded, need to change to mysql_native_password, I guess
Yay

It finally works - needed to change to mysql_native_password plugin in order to run it...
Why? Idk
...plugin?
wtf????
Huh?
That's a special snowflake
* 0 what a lad.
/r/programminghorror
So that just makes the margin 0?
Guy has probably spent hours trying to figure why he has a margin of 0 π
Yeah. @quartz moth

Basically say the width is 1920 the calculation would be (1920 - 247) x 0 = 0
inline CSS as well.
What a guy
Why does his stylesheet have an id
probably using some form of compiler.
probs
No idea which, but he's probably using something component based and that style is within the component directly.
I did some questionable things with CSS back in my early days of developing but nothing that bad haha!
Is that TMPs code?
Doubt it.
Hope not xD
@ember canyon where'd ya get this beauty from?
customer website from wix.com π
migrating it into a wordpress... they use this shit very often π
these stock pictures at the customer make us afraid...
i would NEVER trust any company using a pic like this π
ok, can someone help me? i just bought a new pc and it says it has aerocool fans, but when i try to install the software is says no device detected
TruckersMP Announcement
With a website update today (13th October 2019) which is known as v2.9.11, the API contains a new attribute and one other attribute's backend was a bit changed. Please, read carefully the changelog! List of full changes can be found here: https://forum.truckersmp.com/index.php?/topic/86522-website-v29-release/
Added to the
/v2/serversAPI whether an event is hosting a special event (specialEvent)
Changed the backend behind the ProMods attribute in the/v2/serversAPI (promods)
if someone interested, joining the public beta will receive new home screen https://play.google.com/store/apps/details?id=com.trucky
NEW VERSION V2
Trucky is the must-have tool for TruckersMP players to keep in touch with game news, server status and events.
The application is under development and may contains bugs. Please report them on our Discord: truckyapp.com/discord
Features:
- Traffic: View tr...
I've updated the repo, now contains a fix to installer once again and update of README file.
https://github.com/arusf2011/tachograph
@unkempt hamlet Do you guys have a smaller version of your logo?
hi, Trucky is searching for talented devs to work actively on Trucky Platform. Languages and technologies: NodeJS (Express), React, React Native, MongoDB, Laravel, MySQL. Query me for more informations π
react 
i would if i can... but im only saying developers what they have to do, im not that much a coder myself π
just wondering why js and php are mixed π€
different services
inconvenient imo
technologies must used when it's convenient to use it, Laravel for portals\complex site is better, Express is not so good for large sites but it's really good and faster for API
hm, cant speak against that
database? frontend?
Laravel => MySQL, NodeJS => Mongo, React\React Native => API
@raw notch Added you on discord.
@worn hedge query me on dm when free π
WP was a mistake
But well, for business websites it is perfect
Everyone knows Wordpress and if you agree on a custom solution, some customers still may ask where are the features that WP offers
I know one person who uses WP for... ecommerce. 
woocommerce? oooooof
well, there are any others ecommerce free platforms out there?
Joomla 
PrestaShop is free
Shopware
but version 6 is way too dumb...
i believe it will fail because not that much customers will switch from 5 to 6
Moodle lmaoo
Worpress is not as bad as people think
At the company I used to work for, we created custom "themes" in combination with only 2 plugins to create anything we wanted
Well, Wordpress has improved a lot
the problem in wordpress are often bad realised plugins
that create security breaches or bad frontend like doubled otr trippled JS and so on
That's not a Wordpress' issue :p
maybe not their responsibility but it definitely is an issue
after all, they fostered that ecosystem
Well, it is an issue. But one cannot blame Wordpress that somebody cannot make a proper code
ye
and we earn money with peeps installing wordpress and 342870324045809458 plugins and then come to cry somethings not working or website is slow π
On Friday/Saturday I'll publish BETA version of my script with new features.
I don't want to spoiler what I'm gonna do, but it'll be helpful for companies. π
Also - it'll be a long-term function
Clickable names for reports 
Wait... what? How is that connected with this channel?
wow xD ....ovh blocked one of our servers we use as monitoring machine for some customer servers... they thought we are trying to portscan servers... arghs!
thats shit af xD
absolutely... 1st level support didn't understand my reply... we are monitoring servers not at ovh... and they won't believe the servers we are connecting to, are really our own ones...
thats shit.... i hope, it get solved 
we got 2 extra monitoring systems to be safe becos some critical customers but it sucks.... when things like this happening in the evening when u want to play π

any Fivem devs here?

Well i used to be
Bit late to the convoy earlier but Magento is a good Ecommerce platform, we use it where I work
you mean Lua Developers?
Does anyone know the best way to have have a shared documents partition for dual booting Ubuntu and Windows. :/ Iβm kind of stuck
In Linux create an ntfs-3g storage and use symlinks to link various folders within /home/user/ folder.
Then link them from Windows as well
Iβll try that when I get back π
I tried migrating the β/homeβ to an NTFS partition and found out the hard way that, that wonβt work
It is hard to do since Linux isn't really work well HTFS partitions imo
Yea, permissions donβt go very well
Every time I booted into Linux after being in Windows, I couldnβt login properly
Will do π
Easy
π well... it is a solution π
dbal QueryBuilder in Symfony with 15 Joins... i think it would be good to create some Indizes π
All tables should have indexes π
not rly everyone... depends on the content... if its just a relation table u dont rly need an indizes on it π
https://cpdos.org/ CacheΒ PoisonedΒ DenialΒ ofΒ Service
Good to know info
Just out of interest, do you guys know if there's any APIs for event websites and stuff like ETS2C or Trucky Events? π
Not sure about ETS2C, but for trucky you can find the documentation here: https://trucky.events/pages/api-documentation
A project from Trucky - The Virtual Trucker Companion app. Complete Multiplayer event management: routes, roles, applications, slot booking and much more.
ah I've just found that, thanks a bunch! That'll be useful π π
Any C# dudes?

Any good parser combinator lib? I have a class-like structure and wanna parse it.
I know that it is possible, but I forgot which library/function I used a while ago.
Depending on the Object/Class Notation, there is the default Serialization class "System.Runtime.Serialization"
https://docs.microsoft.com/en-us/dotnet/api/system.serializableattribute?view=netframework-4.8
or
LINQ https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/linq/
Thanks.
OMG This is GOLDEN https://answers.microsoft.com/en-us/windows/forum/windows_10-desktop/where-is-notepad-in-windows-10/7f9e8a8b-a18b-4cfb-9c9c-88103eb1f579
Jesus...
I don't have notepad at N, but when I type "notepad" it shows up.
- We need to add that Notepad is synced now with MS Store, so... π€·
I do have that on N
it's always been under accessories, been there a while
don't know why everyone's so bothered by it anyway, this is notepad we're talking about
That's why it is funny
π
Also, Notepad is under the Windows Accessories folder in the program list, like it has been since at least XP, from the top of my head
it was just accessories before though
May have been a folder name change, but Accessories -> Windows Accessories is not a big change
But people decide to be stupid, jesus christ xD
hey hey hey notepad is the best hobby of my daugther, is a vital program for me
When she's done with notepad, open VIM for her xD
with vim you can do big damages, notepad is straight, no damages, no fear. Only "sdjkr985iufewijwed98ewqkmew4oiw98fweijq9832juhe"
Notepad is straight. No. Just no.
On a serious note, someone did find a code execution exploit in notepad earlier this year π
Iirc
i think my daughter after many random combinations could use it
it is just a name change but it does move the folder from the first thing on top to almost the last thing near the bottom of the list
@ember canyon: This is primarily an English Discord, but you can head over to #579776826600325130 and react with the emoji flag of the country with the specified language (e.g. :flag_pl: for Polish). You can then access that language's channel.
said someone Romanian π
developing in react native: 90% dealing with deps and compiling time, 10% coding
am i better off downloading bootstrap?
For what?
It's ok
lost my ways 
Better download Bootstrap 4 π
^
Um, why?

lol
XD
get confused over what to edit half the time while using bootstrap
It's pretty straightforward.
bootstrap, since they use the flex system everywhere is kinda useful
and sooooo many themes or ready2use packages for administrations or GUIs
use sass and won't edit nothing, only variables
ok imma confused, how do i install the bootstrap files and import it to html? tried @import but that aint working
am i missing something?
what do you mean import it to html?
install the files, place them into a css folder
then connect it
if that makes sense?
okay, so like this then maybe? ```html
<link rel="stylesheet" href="css/definitelynotbootstrap.min.css" />
???
It's been a while for me too but this may make sense in some way
<link rel="stylesheet" href="css/definitelynotbootstrap.css" />
i tried this but it didnt work, guessing i should have been trying min.css?
it depends what your actual file is called and stuff, so if it's a .min.css file then use that because it's slimmer i guess? hahaha
oh boi..
Hello i have the Problem that there ist can Not inject core. Can some one Help me?
OK
Could sb of you tell me the command to enable the option for reversing a double/hct?
#ets2-modding β¬
i want to report him but i have not his tmp id he didend captured it fully π¦
@silk oasis: You can report people in-game via the TAB menu or here: https://truckersmp.com/reports, please remember rule Β§7.02 of #discord-rules.
You can find more information in this Knowledge Base article: https://truckersmp.com/kb/8
Please, check the topic of this channel, this is certainly not the correct place to report somebody
ok thanks
that would be cool
Yeah
It has been there for years. Check mwl4's YouTube channel
Well, as I said, it is quite an old thing. And it has never been used in the multiplayer with an exception for testing
Owh Alright, I just never seen that file in that DIR
Thanks for the information
Ah yeah : https://www.youtube.com/watch?v=l_K-R0W87Qw
Wah 




my mistake







Here we can help you the code.
