#programming
1 messages ยท Page 9 of 1
And why events like "Pils og Programmering" (Beer and programming) exist :p
Free beer, pizza and programming ftw
And all the spots are taken within an hour :p
I hope I got time next time it's up
Just look at them talking in binary...it's already too late. ๐ญ ๐ #saveaprogrammer
Everything in your computer is binary :p
It is (finally?) here! https://github.com/mdbootstrap/Vue-Bootstrap-with-Material-Design
๐
Unify anygood for making websites and stuff?
gotta say that's a pretty complex theme template and it looks pretty decent
does look familiar to something tho
But i can't be bothered remembering ยฏ_(ใ)_/ยฏ
that looks like a good template for our site, Nate. I might just go and get that
?
ayy
@ember canyon @rich flint highly suggest going with something else, it's far too complex for it's own good and you end up with a markup that is horrible to maintain ๐
who said i was gonna maintain 
cant close tmux by doing ctrl+b help pls
^b + d detatches
you can just kill all terminals to kill tmux
ty
killing it with x is a bad idea unless it's hung
is there something wrong here?
<link href="Content/bootstrap.min.css" rel="stylesheet" />
<link href="Content/site.css" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css?family=Barlow+Condensed|Raleway" rel="stylesheet"/>
<link href="Content/toastr.css" rel="stylesheet" />
<link href="Content/themes/base/jquery-ui.css" rel="stylesheet" />
<script src="Scripts/jquery-3.1.1.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js" integrity="sha256T0Vest3yCU7pafRw9r+settMBX6JkKN06dqBnpQ8d30=" crossorigin="anonymous"></script>
<script src="Scripts/bootstrap.min.js"></script>
<script src="Scripts/toastr.js"></script>
Whenever I add an element with bootstrap the datepicker stops working ๐ญ I tired putting the jquery-ui above bootstrap but that isn't working.
hmmm... I'll look into that
Hello developers โบ
I donโt know how i broke the h1 tag... ๐
Hey guys! I am trying some things with Discord Rich Presence... does anyone know how I can convert a c file to an exe file? The problem is that in requires a second file and idk how I can compile them...
C++
What is the second file? DLL?
Nope a H file.. idk.. I am a noob...
#import <thing.h>
looks also like c++
then compile
And now my question: How to compile?
gcc for example, for c
tried that...
But if you dont know that I doubt you'd have the sdk stuff working properly.
Since that sdk and such is just a skeleton, you still need to make a program that triggers the updates and stuff
That would be the beginning... ```c
#define _CRT_SECURE_NO_WARNINGS /* thanks Microsoft */
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "discord-rpc.h"
static const char* APPLICATION_ID = "383913346606432258";
static int FrustrationLevel = 0;
static int64_t StartTime;```
The example exe works fine...
What is the difference?
idk... not developed by me
Okay, what did you do and what did you have in a as a result?
I used gcc send-presence.c
And got this: discord-rpc.h: No such file or directory compilation terminated.
where is your discord-rpc.h?
and then i added the file to the directory and got this:
undefined reference to `Discord_Respond'and some more...
okay... forget it... found a way
Na. Itโs C
You can interface with rich presence using RPC in javascript 
that's how the vscode rich presence work for example
annnnnnnnddddd finished. whew. ๐
cool
Wondering if anyone could possibly help, I am trying to make it so that when the user updates the course it doesn't give an error message saying the course name must be different if they haven't changed the course name but if they have it should then check if the name is unique, this is currently what I have but not sure if it's the right thing https://gyazo.com/1b49427bfbbaec4b38aab6def40fa017
Basically the validation should ignore the unique rule for the matching record in the database
Don't worry managed to figure it out ๐
Only check against that validation if the name is changed
Also, why are you addingthe course id at the end of the validation?
By adding the id at the end you are saying ignore that course. For example, if you had a course with the id 4 and wanted the name to be unique when you clicked save it would handle the validation and check if the name with unique but would ignore the name of the record with the id 4 in the database. It's part of the laravel validation
The reason it wasn't working for me, is I had forgotten to update the form action ๐
Lol :p
I wasn't familiar with that syntax for unique:
gg wp)))
Does anyone have any examples of testing laravel with PHPUnit and Test Driven Development?
Yeah I came across that, but you have to pay for laracasts and unfortunately I'm not in a position to pay for it currently
Oh really?
Codecourse has a few on PHPUnit testing and different parts of testing with laravel
I can't find it, sorry
@rugged copper https://laracasts.com/series/phpunit-testing-in-laravel
Amazing, thank you
Unfortunately you have to have an account (so you have to pay) in order to watch the series
is pyCharm a good python IDE?
http://prntscr.com/hfodch
All these years I didn't realize the buttons to the left and right were play and pause buttons LOL ๐คฆ๐ฝ
The left button is next slide and the right button is pause and play
If you look at top right corner of the slides there will be a timer for when the next slide comes on :p
@full locust Most of Jetbrains' stuff is worth it's salt
Carousel on the main page is a plaque from Web 2.0 era
@full locust I have limited amounts experience with it, but in my experience it's pretty good
Also what tux said, jetbrains are pretty good at making IDE's :p
Thanks @amber oasis and @north flax I got started with it and so far it's great. It was only after going to the download page I remembered that I used their datagrip IDE for databases some time ago ๐
Lol saw someone making this suggesstion http://prntscr.com/hfxtss
then I remembered this video
A web app that works out how many seconds ago something happened. How hard can coding that be? Tom Scott explains how time twists and turns like a twisty-tur...
Steam overlay shows local time already
Does /time display server time, local time, or in-game time?
UTC
server time in UTC
We use Utc internally throughout, the video above summarise why we don't widely support local
Can vanilla users get a green color on Discord now? ๐
๐คฆ
#339644046458880002 ๐
btw what does @trim jacinth do?
Any game devs here? or just websitedevs?
Depends on what you need help with?
I managed to get a php login working with MySQL
It was easier than trying MySQL :3
At least i'm actually doing good at PHP...
Have you also made sure to take steps towards preventing injection attacks, etc?
Aaaaaah
Thats cause you did something wrong ;P
plus i had an error log that had 10,000 lines of errors loool
But ye
At least i can actually get somewhere with PHP now
Cos believe me the only PHP i knew before was just <?php echo '' ?>
๐
Before i continue PHP work imma get android working first LOL
I don't know. Later
Already snow here, irl. It's gonna be released when we are ready to do so :p
Laggy users incoming again...
And drops..
Ah I remember laggin with the snow mod like it was just eariler this year. Wait...
Never again will i get a god damn domain without who.is protection
i got 390+ emails this morning
all saying from people in India, "We can host your site for cheap" or "We can develope your site at a very low price". I replied to every email i had and said the same words. "F*** off"
Bloody idiots that try and steal money from me
And spam the hell outta me
I deleted the domain
Suspended the hosting account for the domain
and hopefully they'll shut the hell up
too late 
just spam them, eventually, if you use gmail, it'll pick it up and spam them for your magically
should i set an auto replier and say "If you're asking me to use your crap or hosting/web dev skills, you can shut the f*** up and leave me alone" ? ๐
don't reply at all
damn
also, don't pay for wohis guard, it should be free 
i want to use cat emoji but i dont have nitro ๐
gandi ftw 
But i made it custom so that cat looks same all the time
LOL
4 emails saying they will leave me alone
in spam folder
looooool
OVH ftw
๐ฑ
wait now i got 70 emails https://i.sgtbreadstick.tk/gHUNfCsS.png
that's the most emails i've ever had tbh
"hi"
oh rip
i literally am gonna make an email for domains and people can spam it
And then i wont get any in my email
gmail's spam filtering is pretty good
Ye
a few false positives but I don't remember when it last missed a spam mail
Tbh i've never had over 100 emails

I receive over a hundred legitimate emails every day
๐ฎ
I get around 30 a day on my personal inbox
i get like 1 a day or 1 every few days
about the same to my work email (2year average)
ok....
Windows just hid about 40 emails
the one i didn't blur are like gone now
lololol
Domain email privacy thingy is pretty good :p
I made it a point to avoid cpanel a long time ago
oops
Also, been poking a bit at gnome in ubuntu 17.10. It's nice :p
i crashed windows mail by deleting 10+ emails in less than 10 seconds LOL
Ahh nice
I prefer cPanel cos i used it a lot 3v
arch linux ftw :p
Just installed gnome-tweak-tool to get some more settings easily available :p
cpanel is more annoyance and trouble than it's worth
I'lll probably swap my worklaptop over to 17.10 as well
I'm a bit of a command line "junkie"
currently on a fork of 16.04
Probably gonna swap my laptop over to it at some point, from 16.04
ftp should just die
it won't
my desktop @ home is on 17.04
it won't, I know, but for uploading files, it should
nothing really inherently wrong with FTP, just that no-one uses TLS with it
open r/o FTP is fine
I would use FTP if it was faster on my end
But cos my internet is a pain
it takes ages to do something
plus it's always insecure
which bugs me
Tip: Set up ssh. You can move files via ssh in filezilla and such anyway
The question that some turkish users ask most in the forum; 32 bit does not support why?
FTP has a major issue in that you need hacks like FTP sniffing or opening highports, or NAT a port on the client side, nither of which are good solutions really
SFTP/SCP > FTP
single transmission port, no hacks needed
You can upload files in SSH?
yes
Yeah
I thought it just downloads from interweb LOL
SFTP is a subsystem in SSH, and SCP is a program every *NIX has
I think you'd benefit from reading the ssh wikipedia page.
^^ as long as you have SSHD installed that is
probs
SSH is bae
filezilla supports SCP and SFTP I believe?
putty and pscp is all you need
SFTP at least I believe yeah
winscp > filezilla, personally
I have put files on my server before via sftp using filezilla
ditto, on windows WinSCP is so nice
i can tell whyyou gusy don't use WHM/cPanel
love commander style interfaces
It keeps changing hostname for no reason and then i have to get cPanel to unlock the license cos it shuts the thing off
-_-
I don't use WHM/cpanel because I like to KISS 
I don't use cpanel because I'm just fine doing shit in a terminal :p
^ that and I use docker for everything now
At some point you start getting familiar with where config files are always stored in unix
I'm just getting into docker
I only just know how to do some things in terminal
Hint: Configs are pretty much always in /etc/ or /etc/programname/ :p
look into trรฆfik as SSL terminator/LB 3v ๐
I used to use a raspberry pi
But my broadband provider (BSkyB) (Sky UK), terminated my broadband cos i was using a raspberry pi and they didn't allow it cos of "security".
eh, nginx is still close to my heart
They said next time it goes on internet they will terminate my broadband again and make us pay for it to be turned back on
It's just a way of them making money off us dev people
I'll keep trรฆfik in mind tho
I still use nginx elsewhere, but trรฆfik got excellent TLS defaults and integrates with docker and letsencrypt
daylight robbery that is
so I can do: docker run -d --name="something" -l traefik.port=9000 -l traefik.frontend.passHostHeader=true -l traefik.enabled=true -l traefik.frontend.rule="Host:somedomain.com" some/container
mhm
They said they'll give us a new router (cos our old router died) for free with no hidden fee's
I look at bill after we got new router
the rules for routing/TLS cert requests are controlled on the container level, rather on the LB/Terminator level
convoy control leader to be determined?
wut?
ah wrong channel
anyway imma put xmas lights up outside cos my mum is screaming at me to do them ๐
Sure
Also i got xmas light switch on at Town St where i am
So firework show and everything
Gona b gud
Bai!
cya
I like doing my cert requests manually and just having certbot renew in crontab
peace of mind to have the LB "just deal with it" ยฏ_(ใ)_/ยฏ
cron emails is bad form IMO 
they work ยฏ_(ใ)_/ยฏ
crudely ๐
Probably more efficient than sending a notification packet with IPoAC :p
Of course I implement my monitoring with IPoAC
Quick and efficient monitoring notifications :p
It has a high throughput!
So meh if one server dies, good if so many dies that you need the throughput :p
I just have to avoid nomming the packets, they are so tasty xD
Trucks full of hard drives have amazing bandwidth, the ping is awful though.
We use amphibious trucks full of hard drives for EU2, it's the most efficient with that many players
problem with trucks is that you have worse throughput if the packets needs to be dispersed
where as avian can disperse as needed
Just saw a snowball fly past my window
Hence why IPoAC will be my choice of transport for the forseeable future 
I'm in the 8th floor
Impressive throwing
I don't think it was thrown from the ground, I think it was thrown or dropped from above :p
you never know if there's a super athlete around ยฏ_(ใ)_/ยฏ
Or a trickster with a trebuchet
You got the sports academy nearby, don't you?
Ye
graphing is hard apearantly: https://static.thorerik.com/s/2017/11/29/131212.png
5/7
More hard graphing: https://static.thorerik.com/s/2017/11/29/131504.png
Are you poking at Home Assistant? :p
Nah, just the default netatmo webinterface
Ah :p
Netatmo did that IoT stuff right at least, instead of poll, it pushes the data
so should be harder to pwn
Until some major hole is discovered, like it has a hardcoded default root password
the future is clearly wifi chips embedded in everyone's brains acting as routers for everyone nearby
And they should all clearly have "root" as a default root password
With no notification or recommendation to change it
like macOS high sierra 
ICYMI
yeah, that's a pretty nasty ui bug
@north flax I port scanned it so there's at least no easily pwnable way to access it
It goes into sleep mode between reporting cycles as well, so if there's an exploit, it has a narrow window for exploitation
Also, if it's on your wifi then it's (probably) behind a firewall as well :p
Yeah, it is
It's vlaned and fw-ed, so hard to pwn on my network
but also at casual prodding, even if you eff up, it's not easily exploitable
I should get a new router at some point, probably
Ubiquity โค
Current one is old and crappy and outdated, and I can't update the firmware
When I try to update the firmware it doesn't recognize the update, and claims it's something else :p
The problem with Ubiquity for me is the price :p
It's not bad, but I'm a student
Maybe when I start working :p
Since then I'll have more expendable income
Also, I've reached 1.8 million RIPE atlas credits :p
ubiquity is nice, they treat everything like software, and not hardware
they provide updates often
And you just have to start the update, not download it then upload it to the router
that too
Next on the things I'll swap out is the switch, so I can get POE and bring that management into unifi as well
I don't have enough stuff I need to connect to need a switch in addition to my router. I just have 2 devices connected by cable
Yeah, I've filled half a 24 port switch xD
I've filled half the 4 port switch on my router xD
I've filled one slot on my router
Well, plus the incoming cable on it, but that's kind of separated
lots of wifi stuff
https://www.netgear.com/support/product/GS724Tv3.aspx is what I currently have
both the routers in my house are in super awkward spots
Maybe if I got more servers in my room I'd need something like that :p
it was cheap and works flawlessly and doesn't have a fan ๐
I'm a fan of the lack of fan, since I'd sleep in the same room I put a switch in :p
That's why the fan was important in deciding for a switch
Ubiquiti Networks UniFi Switch 16-150W is likely what I'll switch to
it's not fanless, but noise level is rated to 34-37dBa
it's only once you hit the 500W models that they get noisy acording to the spec sheet
On Windows 10 you have already a couple of options to run SSH commands. You can use for example the PowerShell Module Posh-SSH or use the Windows Subsystem for Linux (WSL) or use third party tools like PuTTY. Today my colleague Raphael Burri from itnetX mentioned that with the latest Windows 10 release, the Fall Creators Update (10.0.16299), there is another option to use SSH on Windows 10. It looks like you can now install a beta version of OpenSSH on Windows 10 as an optional feature. Just go to the Settings Appย > Appsย > Settings & Appsย > Manage Optional Featuresย > Add Feature and select the OpenSSH Client Betaย and as you can see, you also have OpenSSH Server (Beta) available. After installing the optional feature OpenSSH Client, you can now use the SSH client from PowerShell or the Command Prompt It is great to see Microsoft integrating even more options for SSH on Windows 10.
๐ฎ
not once have I thought "I'd like to SSH to my windows pc"
LOL
ssh from your windows PC though
ye
sure, but native ssh is nice
PHP 7.2.0 comes with numerous improvements and new features such as
- Convert numeric keys in object/array casts
- Counting of non-countable objects
- Object typehint
- HashContext as Object
- Argon2 in password hash
- Improve TLS constants to sane values
- Mcrypt extension removed
- New sodium extension
advertising? 
Did I just hear ADVERTISING?
"* New sodium extension"
the salt levels are off the charts in this version 
Hi guys, I'm in need of some help. For school I have to make a 'guess the number' game with PHP and MySQL, I'm trying to find out how to pick the correct person who has guessed the closest to the number. I've had no luck so far, anybody who could help me?
Right now how it works: when the person guesses their name + the number guessed is put into a database, and we want to check who guessed the closest to the correct number. We're unsure how to do it. :/
Use rand function in php. And save this number in mysql.
Make text area, check text are if post in mysql, do stuff etc.
We've already got the correct number, my issue is on how to pick a winner which guessed the closest to the number.
Google ๐
this doesn't seem to be working
store the name and difference from the target number in a variable
loop through all the guesses: if the guess number's difference to the target number is smaller than the currently stored difference, update the name and difference to the current guess
at the end of the loop you'll have the closest guesser's name and how far off he was stored in the variables @meager olive
@unborn comet I can answer specific questions but not a full walkthrough
thanks @cinder spear will try, I'll probably get back here if it doesn't work. :p
If anyone ever doubted in how awesome PHP is: https://github.com/sgolemon/table-flip
I got more floppies than I know what I'm going to use them for
make a picture with them on your wall lol
Lool Java's gr8 m8 ๐
If you define the rows variable, it will be solved :p
Managed to get a B+ for the websoite I was doing a while back. I just want to thank all of you guys who helped in some way. For my first website it came out great imo.
.
There's a second course that continues where this one leaves off that starts in January so I'll be bothering you guys then again ๐
11/10 english 12/10 link ๐
looool
Looks like someone has a hard time there ๐
Loool never got this error before ๐
This is a real function in a codebase I am working with: CreateStationaryFrameOfReferenceAtCurrentLocationWithPositionAndOrientationAndRelativeHeading
Everything is wrong with that name 
CreateFrameOfReference() would've sufficed with a doc block explaining that it creates a frame of reference at current location etc.
I guess whomever wrote that line are subscribing to the mantra of self documenting code, without understanding what that actually means
i got bored and decided to mess with ASCII art LOL ๐ https://roadhaulageglobal.tk/rhg.html
Has anyone here gone through the https://www.joincyberdiscovery.com course before?
How do the servers take on it?
oh
๐
lol
ahahah ๐
ok that suits
Got a little problem...
extracted the def.scs some time ago, and now I wanted to delete the extracted files... that's where the troubles start
Though I'm administrator, I don't have the permissions to delete the folder
It's just impossible to delete/acces/move it
And I run out of ideas
Right click, properties, security, set yourself as owner or something like that
I was already the owner
nvm it worked now
impossible to believe how many things can be fixed by a restart
Ah. sounds like a program was accessing the folder or files then
idk
i assume it was caused by onedrive
for some reason, it stopped syncing some time ago
When you first extract the files, windows file indexer or an anti virus might be scanning it still
What is that @ember canyon?
@unkempt hamlet a crazy complex app to chat via a txt file on a dropbox
But why it is so complicated?
why not use %curtime%/%totaltime% (-%remainingtime%)?
well the spoticord thing i got isn't doing tthat :/
which one? :O
lemme get it
Spoticord: https://github.com/nations/spoticord Node.js: https://nodejs.org/en/ Oh look a bot testing server: https://discord.gg/q7sgzq
thats u?
no
Just because you use something doesn't make you a developer 
Still doesn't make you a developer 
you're downloading something someone else made
Regarding the reactions on the forum:
Is it possible to add any new reaction? Or is there only a limited choice?
(I mean making a reaction available on the forum, not adding a reaction to a post)
It's possible to add any, not sure if there is a lmit
There isn't to my knowledge, but should purposely limit the number. addign 1213123121 reactions will be kinda meh to use
So ets2 mods
I wanna make a mod not a truck skin though
How would i do so
Its ok i got it :P
I'm trying to add 50GB onto a 20GB partition but in OVH rescue mode it is basically impossible
shows up in normal mode but not in rescue mode so i can't extend partition space
like what am i supposed to do as there is hardly any disk space left on the damn drive
The new SPECIAL TRANSPORT DLC is very good for game. I have an idea for support DLC in truckersmp. The pilot cars would be ghost. So, any idea about this?
@north flax
@rich flint Your issue there is that you can't really extend a disk that isn't using LVM that easily, you have to extend /dev/vda, you can't add another disk (/dev/vdb) and use that to extend it, unless you use LVM, but you can't retroactively change that
ugh, then OVH are idiots cos they told me to do what i did -_-
lol i'm failing at php again https://i.sgtbreadstick.tk/HudqjI4l.png
My biggest question is, why are you doing it like that?
There is no need to surround that in quotes. oh, and you are missing a ; at the end of that line ;P
Also, the order of your variables will cause issues. You are using the djinfo variable before declaring it.
Remove the '. and .'
hmm
You need to remove the "DJ " prefix on the dj name
i added song thing but nothing works for it again. ok
But the issue is, that ^^ does not count for all djs
For example
http://api.truckers.fm/dj/Jack <--- DJ Jack
http://api.truckers.fm/dj/DJ Tobo <--- DJ Tobo
Even worse, the request for Jack acctually provides you with 3 diffrent DJ profiles.
Of course you can't put 50gb on a 20gb partition you need a bigger partition for that
@quick glen u here?
How do i upload files and folders to a github repository, cos i have no clue ๐
I would get github for desktop
but it says error 500 on download page
it just says this and it rly doesn't help -_- https://i.sgtbreadstick.tk/ei8SZQVW.png
get git for windows
then do
git clone <repo url>
<change the files>
git add .
git commit -m "initial commit"
git push
Why dosent blender work with the scs fes ffs
Ayy did it
I had to get github desktop to upload files :3
๐
That's for whatever
And i'll start doing "REAL" projects ๐
@ember canyon there are converters out there to convert "scs models" into "normal models". https://github.com/mwl4/ConverterPIX
There is even an blender plugin made for it
:3
ayy
i changed it for my site :3 https://sgtbreadstick.tk/projects/TruckersMP-Status-Template/
@rich flint Next step now is caching, so it doesn't get data from our server on every pageload.
hmm
https://sandbox.humanewolf.com/tmpstatus/ just saves the response in a json file, which is only updated once a minute at most
alright, i'll see if i can get json api caching on the php
HEre's how I do it: https://github.com/HumaneWolf/tmpstatus
tmpstatus - A status page for the TruckersMP.com multiplayer mod for ATS and ETS2, created using their API.
The servers.php file especially, that does most of hte work :p
ohh right, i'll get that cache feature sorted in the v1.2 of my status page which is getting a major appearanc eupdate ๐
i found this on stackoverflow, don't know if it would work
function getJson($url) {
// cache files are created like cache/abcdef123456...
$cacheFile = 'cache' . DIRECTORY_SEPARATOR . md5($url);
if (file_exists($cacheFile)) {
$fh = fopen($cacheFile, 'r');
$cacheTime = trim(fgets($fh));
// if data was cached recently, return cached data
if ($cacheTime > strtotime('-60 minutes')) {
return fread($fh);
}
// else delete cache file
fclose($fh);
unlink($cacheFile);
}
$json = /* get from Twitter as usual */;
$fh = fopen($cacheFile, 'w');
fwrite($fh, time() . "\n");
fwrite($fh, $json);
fclose($fh);
return $json;
}
i think it works
not a clue https://i.sgtbreadstick.tk/fpH7rtWu.png
i think i did it wrong
i tried something else and...
i changed the 60 minutes to 1 minute
currently got this so far
<?php
function getJson($url) {
// cache files are created like cache/abcdef123456...
$cacheFile = 'cache' . DIRECTORY_SEPARATOR . md5($url);
if (file_exists($cacheFile)) {
$fh = fopen($cacheFile, 'r');
$cacheTime = trim(fgets($fh));
// if data was cached recently, return cached data
if ($cacheTime > strtotime('-1 minutes')) {
return fread($fh);
}
// else delete cache file
fclose($fh);
unlink($cacheFile);
}
$json = 'https://api.truckersmp.com/v2/servers';
$fh = fopen($cacheFile, 'w');
fwrite($fh, time() . "\n");
fwrite($fh, $json);
fclose($fh);
return $json;
}
$servers = json_decode(file_get_contents("https://api.truckersmp.com/v2/servers"), true);
?>
<?php
foreach($servers['response'] as $serv){
/* STATUS CODE */
@TheUnknownNO#9389 ty
i have a stange feeling that it is not caching
nope it ain't
well i got the thing to get the cached source but...
ugh i hate php -_-
Warning: fopen(cache/6e4f14b335243be656c65e3ed9e1b115): failed to open stream: No such file or directory in /home/roadhaulagegloba/public_html/teest/index.php on line 62
Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/roadhaulagegloba/public_html/teest/index.php on line 63
Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/roadhaulagegloba/public_html/teest/index.php on line 64
Warning: fclose() expects parameter 1 to be resource, boolean given in /home/roadhaulagegloba/public_html/teest/index.php on line 65
Warning: Illegal string offset 'response' in /home/roadhaulagegloba/public_html/teest/index.php on line 73
Warning: Invalid argument supplied for foreach() in /home/roadhaulagegloba/public_html/teest/index.php on line 73
-_-
Php is only annoying when you dont use it correctly ๐
php is only annoying when it's php
it has huge consistency issues and issues caused by religious backwards compatibility, both of which mean you just can't use it effectively without a good IDE and having the docs open, or without dedicating your life to learning all of it
@quick glen how are you active here while letting your github die?
There are reasons for it, reasons I shouldnt discuss here in public.
UnknownNO deserves a break after all the really good work he's done this year :3
Erh
Lets just say that break of mine in regards to my (public) github has been, well.. long enough
You can never have a long enough break 
Anyone know how to remove tinymce? i deleted the files but i keep getting these errors https://i.sgtbreadstick.tk/nNYTOboD.png
it does it for every page -_-
Looks like you still include the script, and other scripts are trying to use it even though it's not loaded.
only problem is that i can't remove it from scripts... https://i.sgtbreadstick.tk/1rOnjYC0.png
cos then i see that
and i can't find where it's trying to get the scripts at shut up BreadFlake you forgot to look at the other part...
๐
now lets see if i can find this https://i.sgtbreadstick.tk/rdcUbAKD.png
cos i did search in all the .js files and it couldn't find it ๐ค
i rly need to shut up
cos i found it all
on just one flipping page that i didn't look at
guys whens the winter mod gonna come
nobody here is able to answer you this question
ok
@rich flint You know... If you read the error message you could see that its not in a .js file you should be looking.. Its acctually JS on the page you are looking at..
Probably the tiny bit of code that initializes tinymce
Ye I realised
Well i fixed it
Sweet
i got ckeditor now :3
fixed it lool
it didn't like the / at the end of the textarea
I'd be curious to check if the W3C validates TMPs website
Should be valid html5
this isnt really developer but
our companies servers are under significant attck
is there anything I can do to mitigate them?
we are getting 1 500 000 packets per second on port 80
no
it is set up
thing is its on our cpanel server
so port 80 has to be unblocked ๐
:totally-confused: xD
use cloudflare
^
If the attack is on the server IP Cloudoflare wont do nuffing
@nocturne drum Your best bet is to get your upstream provider to block things, there's nothing you can do on OS/hardware level on your server to mitigate 1.5Mpps
Our datacentre is having trouble mitigating it tbh
Im having to move cPanel to a different server
When your DC is having trouble, you're out of luck
Pro tip for the future: cloudflare or other upstream proxy in front of your website
When your DC is having trouble, you shouldn't be using that provider with that DC.
or sign up with a provider that has an anti-ddos product (eg. Online.net or OVH)
when its having trouble best bit is to change and change for good
not a solution to the (d)dos issue, but you really shouldn't be reliant on anything being on port 80
dropping everything except your own IP from reaching it can help a lot unless the whole incoming bandwidth is saturated with the ddos
Hello Developers ๐
haii
https://i.imgur.com/nVkq3Nb.png cool made a user search api
returns a users id
gonna add a bunch of things
oooh
It might be helpful for me in some TMP projects, @pearl badger please drop me a DM when it'll be available to public (I added you on Discord so that you can contact me)
6 hours into M-L and chill and I'm wondering if I should just be the phone review guy ๐
https://www.youtube.com/playlist?list=PLQVvvaa0QuDfKTOs3Keq_kaG2P55YRn5v
@sweet hornet yh im thinking of more things to add rn
rip the tmp status page
Bloody domain transfers.
rip
Lol, how did I miss Font Awesome 5 release? https://fontawesome.com/
hmm
i'm trying to get my discord music bot to work
but it wont join voice channels
:/
i switched to my raspberry pi 3 and it works epicly
github has all
github is bae
tru dat
github has many peoples private SSH keys and stuff
There is a security breach on ets2c
You can impersonate people and make convoys in their name
More like terrible programming. You can impersonate people, and maybe, if they have signed up for notifications, you might be able to get their email address.
If would be a lot worse if ETS2C stored more user information however.
But it's still terrible.
I think, with this recent turn of events you should advertise people to use truckers.events
then we can move off ets2c as, honestly.. its rubbish and no one maintains it anymore
We don't advertise either of them.
And ye, I'd consider it likely we make an official one at some point.
oooo
you could make one with a slideshow bar on the forum which says upcoming events
yeah
ooooh
๐
this needs to be done ๐
quick Q: what exactly can we do with the tmp api? ๐
Get a little bit of data.
ahhh, like..? ๐
The name and id and steam id of a user, from steam id or id
Server list
Last 5 bans of a user.
ahhhh nice
I made this so far for events, seems alright so far. Just gonna work on secure steam integration that doesn't use editable cookies ๐ https://vtconvoys.com/
You can't stop a user from editing a cookie. Instead the cookie must mean something to you but be pointless to them, and hard to guess, like a good and long session id
Can be a long random unique string, for example.
everything on the client side of the application can be edited by the user so the server always needs to verify at least two things: authorization (this user is allowed to access/edit this resource) and input (the request data is in a proper format or is otherwise treated properly). Authentication (who the user is) is often required to check authorization, and authentication is generally done with session tokens like humanewolf described above: a random blob of data that is big enough that it's practically impossible to guess that only the server and intended client know.
Yeah, so iโll try to get something like that going so then itโs secure and reliable ๐
I had the one for Russian community called "RusConvoys", sadly it was retired due to unpopularity.
What if woot updates ets2c and makes it better then ever xd
That looks lit tbh
I can't find proper screenshots, only from bug reports ๐
You should bring it back
Maybe
ah
ะะพะฝะฒะพะธ ะฟะพ-ััััะบะธ - ะดะพัะบะฐ ะบะพะฝะฒะพะตะฒ TruckersMP. ะัะปะธ ะฒั ะทะฝะฐะตัะต ัะฐะบะธะต ัะฐะนัั, ะบะฐะบ ets2c ะธ ะธะผ ะฟะพะดะพะฑะฝัะต, ัะพ ะฒั ะฒ ัะตะผะต. ะกััั ะฟัะพััะฐ - ะฒั ัะพะทะดะฐะตัะต ะบะพะฝะฒะพะน ะฒ ะพะดะฝะพะผ ะผะตัั...
well, it's meant to be like it, simple and easy to use, just i can't seem to get the login button to work on steamauth
i press the button, it should send me to steam login page but it just does ?login
You could just use truckers events or something similar rather than creating something new
ยฏ_(ใ)_/ยฏ
๐ค
good plan using the button as a variable, means you don't have to make changes to every page ๐ clever
that was done with the steamauth thing i found on github
just ti keeps doing ?login and nothing else in url bar
which i'm trying to figure out why it wont go to steam login page
just does this
might wanna maximize the gif
?login is a GET variable with no value
e.g. ?login=1... think that might need changing, not sure
didn't work -_-
oooh, emmet for dreamweaver has installed ๐
i used this https://github.com/SmItH197/SteamAuthentication
nice
hey guys
๐
Righ
T
When I add a textarea input to a Bootstrap 3 modal, all of the modals stop working completely.
If you want some open source logo emojis, I've created a guild for just that: https://discord.gg/yk8z9bz
Nice, but useless for me XD no nitro
Nice, and useful for me XD nitro
๐

๐
useless for me ๐ฆ #nonitro ๐

with
,
and
ftw 
๐
for "hardware"
for software
for configuration
for secrets
Niceee


JavaScript is good too but idk how to do it XD
Pretty much every language ever designed has an abomination design decition, that said [] == ![] or any other quirk mentioned in the Wat talk are truly abominations and shouldn't have been the case
a lot of js problems come from it being designed in 10 days and then "patched" over the years to include more and more
a lot of php problems come from the religious backwards compatibility and following the underlying C library functions for everything
PHP is only good if it works. But JS is just a pain a lot ๐
๐ฆ
Ye, some shit happened during a transfer
feelsofflineman
lol
XD
ETS2 should do rich presence, it'd be cool to see what job you're doing or what truck or something like that
A think... Could you make it possible for us to listen to other radio stations while we drive in SPECIAL TRANSPORT DLC? It's a bit annoying to listen to Sim FM.
@slow wagon WoT shows what job you're currently doing
ahhh cool, but still it'd be cool to see it here on Discord, eh?
Some neat things in there :p
Some of which you might not know
Sanitization. Laravel doesn't do it by default, but I'm confused on the best way to implement it. Would the standard PHP filters suffice? I understand the validation should only check based on rules, but not verify.
Depends? Idk
The only thing I know that could even be slightly related is the escape_string stuff. But I'm probably wrong. Usually am
Thought I was wrong
Never use that for that
Use prepared statements.
mysql_real_escape_string is not made to stop SQL injection.
For html and such, there are other escape functions to use.
@stuck girder @slow wagon
I think it's htmlspecialchars() for database preparation, and htmlentities() for html preparation
No. DB and SQL is prepared statements.
I cannot think, too tired
htmlspecialchars is for text that is to be shown on the website
Don't need to worry too much about prepared statement with Laravel, it uses PDO by default
Yep
My question tho, would the data need to be sanitized before it is stored?
I cannot find anything answering that question
Depends. For hte SQL, no, it won't. Iyou are storing text that is to be shown (not html) then you can escape it before or after it is stored. If you have no need to show html at any time, escape it before displaying it, rather than when storing it
I usually sanitize the data before it's displayed in HTML
But I believe laravel does that automatically
And disabled with {!! !!}
So the answer then is... no?
Data doesn't need to be sanitized?
Nah, you don't need to go out of your way to do it then
Yeah, laravel is basicly secure defaults
Hmm.. The laravel validator doesn't seem to work when using a put request
It just ignores my rules.
oh XD
I am using a controler with the restful api methods (-r), and have included the "use Validator" namespace
Post your code, cause PUT isn't actually "PUT"-ed, they are just mapped to POST, unless you actually use a PUT verb, they are synonymous in behaviour
re: the article @north flax posted
how to make your if-else less readable 101
const isMale = type === 'man' ? (
console.log('Hi Man!'),
true
) : (
console.log('Hi Lady!'),
false
);
Ye, it's not a good example :p
the void keyword examples are all just making it less readable to anyone used to the "normal" way too
Yup
Though, pipe operator, functional javascript here we go xD
good luck writing pure js functions though
not supported by any browser by default
only in firefox and even so behind a compile time flag that defaults to off
Stage 1 Draft / December 26, 2017
explains why I guess
the first draft for its spec is literally under a week old
I got an issue with a python code... every time I try to start the debugger, an error occurs... it seems like I have a null byte in my code
Does anyone know how to find it in 1500 lines of code?
hexdump -C filename.py | grep ' 00 '
For some reason there were 4 null bytes at the end of the file
dunno why
however, deleted them, code does still work
jetbrains works fine for me so far, I see no reason to change it ๐ค
Sublime Text ftw, well if i do projects on my pc that is ๐
Jetbrains make good editors 
Do you use a package for linking the users discord account and TMP account or not? I'm trying to do something similar but keep getting a discord error
What is the error you get?
Sublime text is alright, idk how to work it though XD just use Dreamweaver and the code view
Does it for me
@rugged copper i use a good old json file or a database.
linked_accounts['discord_id'] = tmp_id
I even tried using Laravel Socialite but when it goes to discord it has the same error
Make sure you've configured your app @ discord the same way you configured your oauth client
How do you mean? As in make sure the bot is on the guild?
How did you configure your oauth stuff?
Do that
I think that's what he's saying. Or she. Them
Manage to figure it out ๐ Thanks all
Yeah was something to-do with the redirect uri
Someone know how to do a custom API for info outta my db? Also connecting that to a bot?
Look into Laravel or even Lumen
unless it's complex datatypes, it should be pretty easy to do, even with authentication
then on your bot you'll just do http queries
Ooh
look wot me found https://github.com/RootKiller/ETS2MP
Python books for cheap: https://www.humblebundle.com/books/python-by-packt-book-bundle
disgusting
Is it worth?
???
๐ค
Its a Lag Bomb
Well
Not helpful really
just a joke
Ok
yo i need someone to help me with smth not more then 10 minutes thanks PM ME
Well what language is it?
Okies
would you help me?
I can't code js...
wait 1 sec you might know what is about
Just ask, plenty who do know JS here
wut
the best way to find out how to use discords oauth is to #readthedocs https://discordapp.com/developers/docs/topics/oauth2
very helpful
the examples are in python
i need someone with visual 2017 skills ๐ thanks
he needs a js coder
Who said JS?
idk
Okay, I thought I might help or whatever...
Fading#0195 has been warned.
wwaaatt
Cheats are illegal, as TMP Rules stated
it was specificly about a hack to pubg he was asking help about
cheating money and XP in ets2/ats is no problem here
but the thing fading asked for was stricly against our and pubg rules
Cause they are coded lol
XD
^ Can I point out it wasn't me that wanted the hack. I didn't even know it was a hack as I don't play and have never watched a PUBG game. So I didn't know you couldn't already see others on a map...
We've kinda moved past that now, dear. Go and have a cup of tea and a biscuit ๐ต
Paid my steam direct fee yesterday... my game is coming soon!
Well... Discord rich presence is still missing...
I don't want to share too many information... It's an adventure with a horrible and romantic story
And also a developing details (as we in #programming)
Hmmmmmm..
I am not ready to share screens yet... give me a few weeks
I want to adjust a few things
How much is it? ๐





