#programming

1 messages ยท Page 9 of 1

amber oasis
#

Oh, all programmers are loosing it from stress

#

that's why we hunt for that balmer peak

north flax
#

And why events like "Pils og Programmering" (Beer and programming) exist :p

amber oasis
#

Free beer, pizza and programming ftw

north flax
#

And all the spots are taken within an hour :p

amber oasis
#

I hope I got time next time it's up

full locust
#

Just look at them talking in binary...it's already too late. ๐Ÿ˜ญ ๐Ÿ˜‚ #saveaprogrammer

north flax
#

Everything in your computer is binary :p

unkempt hamlet
rich flint
#

Ayy

#

Material Design ๐Ÿ˜€

meager olive
#

๐Ÿ‘Œ

ember canyon
rich flint
#

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

tidal zodiac
ember canyon
#

?

rich flint
#

ayy

amber oasis
#

@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 ๐Ÿ˜‰

rich flint
#

who said i was gonna maintain Troll

ember canyon
#

cant close tmux by doing ctrl+b help pls

amber oasis
#

^b + d detatches

north flax
#

ctrl + b, then x and y to kill.

#

ctrl + b, then d to detach

amber oasis
#

you can just kill all terminals to kill tmux

ember canyon
#

ty

amber oasis
#

killing it with x is a bad idea unless it's hung

full locust
#

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.

amber oasis
#

suggest using flatpickr anyways

#

also, check the developer console in your browser

full locust
#

hmmm... I'll look into that

full locust
#

can't get flatpickr to work in asp.net sadly so I found another method.

ember canyon
#

Hello developers โ˜บ

rich flint
#

I donโ€™t know how i broke the h1 tag... ๐Ÿ˜‚

shy swan
#

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

unkempt hamlet
#

ั?

#

Be more descriptive please

shy swan
#

C++

unkempt hamlet
#

What is the second file? DLL?

shy swan
#

Nope a H file.. idk.. I am a noob...

unkempt hamlet
#

#import <thing.h>

shy swan
#

looks also like c++

unkempt hamlet
#

then compile

shy swan
#

And now my question: How to compile?

north flax
#

gcc for example, for c

shy swan
#

tried that...

north flax
#

But if you dont know that I doubt you'd have the sdk stuff working properly.

unkempt hamlet
#

oops

north flax
#

Since that sdk and such is just a skeleton, you still need to make a program that triggers the updates and stuff

shy swan
#

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;```

unkempt hamlet
shy swan
#

The example exe works fine...

unkempt hamlet
#

What is the difference?

shy swan
#

idk... not developed by me

unkempt hamlet
#

Okay, what did you do and what did you have in a as a result?

shy swan
#

I used gcc send-presence.c

#

And got this: discord-rpc.h: No such file or directory compilation terminated.

unkempt hamlet
#

where is your discord-rpc.h?

shy swan
#

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

pearl badger
#

(nice)

#

tho

#

theres a javascript version of the RPC

shy swan
#

Na. Itโ€™s C

amber oasis
#

You can interface with rich presence using RPC in javascript googlecat

#

that's how the vscode rich presence work for example

rich flint
#

You really love that googlecat emoji don't you tuxy googlecat

full locust
pearl badger
#

cool

pliant ruin
#

Nicee

#

You took my advice and got a better photo

#

gg

rugged copper
#

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 ๐Ÿ˜ƒ

north flax
#

Only check against that validation if the name is changed

#

Also, why are you addingthe course id at the end of the validation?

rugged copper
#

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 ๐Ÿ˜‚

north flax
#

Lol :p
I wasn't familiar with that syntax for unique:

unkempt hamlet
#

gg wp)))

rugged copper
#

Does anyone have any examples of testing laravel with PHPUnit and Test Driven Development?

unkempt hamlet
#

Trying to find it now

rugged copper
#

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

unkempt hamlet
#

I saw it for free

#

hmmm

rugged copper
#

Oh really?

#

Codecourse has a few on PHPUnit testing and different parts of testing with laravel

unkempt hamlet
#

I can't find it, sorry

amber oasis
#
rugged copper
#

Amazing, thank you

rugged copper
#

Unfortunately you have to have an account (so you have to pay) in order to watch the series

full locust
#

is pyCharm a good python IDE?

full locust
#

http://prntscr.com/hfodch
All these years I didn't realize the buttons to the left and right were play and pause buttons LOL ๐Ÿคฆ๐Ÿฝ

Lightshot

Captured with Lightshot

shy swan
#

Wow! blob0w0

#

Never realized lol

rich flint
#

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

amber oasis
#

@full locust Most of Jetbrains' stuff is worth it's salt

unkempt hamlet
#

Carousel on the main page is a plaque from Web 2.0 era

north flax
#

@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

amber oasis
full locust
#

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 ๐Ÿ˜‚

full locust
#

then I remembered this video

cinder spear
#

Steam overlay shows local time already

orchid egret
#

Does /time display server time, local time, or in-game time?

wicked lava
#

UTC

full locust
#

server time in UTC

amber oasis
#

We use Utc internally throughout, the video above summarise why we don't widely support local

wicked lava
#

Can vanilla users get a green color on Discord now? ๐Ÿ˜ƒ

pearl badger
#

no...

#

vanilla is not green

wicked lava
#

๐Ÿคฆ

shy swan
#

Lol.

#

And I have to stay grey... dark green for streamers? blob0w0

wicked lava
full locust
#

btw what does @trim jacinth do?

naive anvil
#

Any game devs here? or just websitedevs?

quick glen
#

Depends on what you need help with?

rich flint
#

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

quick glen
#

Have you also made sure to take steps towards preventing injection attacks, etc?

rich flint
#

oh i meant without MySQL

#

I tried MySQL

quick glen
#

Aaaaaah

rich flint
#

i kinda gave up after 20 minutes

#

cos i hate that annoying HTTP ERROR 500

#

๐Ÿ˜‚

quick glen
#

Thats cause you did something wrong ;P

rich flint
#

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

granite pond
#

@north flax

#

sorr for tagging

#

Winter mod when will available for truckers mp?

north flax
#

I don't know. Later

rich flint
#

21st December i think

#

Cos they do it on first day of winter

north flax
#

Already snow here, irl. It's gonna be released when we are ready to do so :p

shy swan
#

Laggy users incoming again...

ember canyon
#

And drops..

full locust
#

Ah I remember laggin with the snow mod like it was just eariler this year. Wait...

rich flint
#

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

amber oasis
#

too late blobcat

rich flint
#

๐Ÿ˜

#

aaand i now delete my email :3

amber oasis
#

just spam them, eventually, if you use gmail, it'll pick it up and spam them for your magically

rich flint
#

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" ? ๐Ÿ˜‚

amber oasis
#

don't reply at all

rich flint
#

damn

amber oasis
#

also, don't pay for wohis guard, it should be free blobcatwink

ember canyon
#

i want to use cat emoji but i dont have nitro ๐Ÿ˜ 

rich flint
#

that's godaddy for ya

#

๐Ÿ˜‰

#

Android ftw!

amber oasis
#

gandi ftw blobcat

rich flint
#

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

cinder spear
#

OVH ftw

ember canyon
#

๐Ÿฑ

rich flint
ember canyon
#

just that

#

๐Ÿ˜ฆ

amber oasis
#

also, 70 spam emails?

#

that's little

rich flint
#

30 of them are my cPanel complaining to me LOL

#

nvm i got 41 now

#

errrr

amber oasis
#

cpanel ._.

#

still, only 41โ€ฆ

#

why you complaining about spam filter working

rich flint
#

that's the most emails i've ever had tbh

cinder spear
rich flint
#

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

cinder spear
#

gmail's spam filtering is pretty good

rich flint
#

Ye

amber oasis
rich flint
#

I'm glad i turned my noti's for gmail off on my Android LOL

#

OH MY

cinder spear
#

a few false positives but I don't remember when it last missed a spam mail

rich flint
#

Tbh i've never had over 100 emails

cinder spear
rich flint
#

and i got 390+

#

in just 1 day

amber oasis
#

I receive over a hundred legitimate emails every day

rich flint
#

๐Ÿ˜ฎ

amber oasis
#

on my personal stuff

#

work ~80-90 emails/day

rich flint
#

O_O

#

Well

#

I guess i'm lucky i never really get many emails

cinder spear
#

I get around 30 a day on my personal inbox

rich flint
#

i get like 1 a day or 1 every few days

cinder spear
#

about the same to my work email (2year average)

rich flint
#

ok....

#

Windows just hid about 40 emails

#

the one i didn't blur are like gone now

#

lololol

north flax
#

Domain email privacy thingy is pretty good :p

cinder spear
#

I made it a point to avoid cpanel a long time ago

rich flint
#

oops

north flax
#

Also, been poking a bit at gnome in ubuntu 17.10. It's nice :p

rich flint
#

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

cinder spear
#

arch linux ftw :p

north flax
#

Just installed gnome-tweak-tool to get some more settings easily available :p

amber oasis
#

cpanel is more annoyance and trouble than it's worth

rich flint
#

it's easier for me

#

cos i hate using ftp all the time

amber oasis
#

I'lll probably swap my worklaptop over to 17.10 as well

cinder spear
#

I'm a bit of a command line "junkie"

amber oasis
#

currently on a fork of 16.04

north flax
#

Probably gonna swap my laptop over to it at some point, from 16.04

amber oasis
#

ftp should just die

cinder spear
#

it won't

amber oasis
#

my desktop @ home is on 17.04

north flax
#

SMB 1 is where it's at

#

xD

#

:p

amber oasis
#

it won't, I know, but for uploading files, it should

cinder spear
#

nothing really inherently wrong with FTP, just that no-one uses TLS with it

amber oasis
#

open r/o FTP is fine

rich flint
#

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

north flax
#

Tip: Set up ssh. You can move files via ssh in filezilla and such anyway

ember canyon
#

The question that some turkish users ask most in the forum; 32 bit does not support why?

amber oasis
#

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

rich flint
#

You can upload files in SSH?

amber oasis
#

yes

north flax
#

Yeah

rich flint
#

I thought it just downloads from interweb LOL

amber oasis
#

SFTP is a subsystem in SSH, and SCP is a program every *NIX has

north flax
#

I think you'd benefit from reading the ssh wikipedia page.

amber oasis
#

^^ as long as you have SSHD installed that is

rich flint
#

probs

amber oasis
#

SSH is bae

rich flint
#

well lol

#

i don't have anything like that

#

i just have PuTTY & Filezilla

north flax
#

Putty is SSH

#

It supports other shit, but also SSH :p

amber oasis
#

filezilla supports SCP and SFTP I believe?

cinder spear
#

putty and pscp is all you need

north flax
#

SFTP at least I believe yeah

cinder spear
#

winscp > filezilla, personally

north flax
#

I have put files on my server before via sftp using filezilla

amber oasis
#

ditto, on windows WinSCP is so nice

rich flint
#

i can tell whyyou gusy don't use WHM/cPanel

amber oasis
#

love commander style interfaces

rich flint
#

It keeps changing hostname for no reason and then i have to get cPanel to unlock the license cos it shuts the thing off

#

-_-

cinder spear
#

I don't use WHM/cpanel because I like to KISS sourKappa

north flax
#

I don't use cpanel because I'm just fine doing shit in a terminal :p

amber oasis
#

^ that and I use docker for everything now

north flax
#

At some point you start getting familiar with where config files are always stored in unix

cinder spear
#

I'm just getting into docker

rich flint
#

I only just know how to do some things in terminal

north flax
#

Hint: Configs are pretty much always in /etc/ or /etc/programname/ :p

amber oasis
#

look into trรฆfik as SSL terminator/LB 3v ๐Ÿ˜‰

rich flint
#

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

cinder spear
#

eh, nginx is still close to my heart

rich flint
#

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

cinder spear
#

I'll keep trรฆfik in mind tho

rich flint
#

We pay ยฃ120+ a month and they still try and nick money of us

#

Unbelievable

amber oasis
#

I still use nginx elsewhere, but trรฆfik got excellent TLS defaults and integrates with docker and letsencrypt

cinder spear
#

daylight robbery that is

amber oasis
#

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

rich flint
#

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

amber oasis
#

the rules for routing/TLS cert requests are controlled on the container level, rather on the LB/Terminator level

rich flint
#

What do we have here, a ยฃ10 charge for router

#

In the hidden fee's

ember canyon
#

convoy control leader to be determined?

rich flint
#

wut?

ember canyon
#

ah wrong channel

rich flint
#

anyway imma put xmas lights up outside cos my mum is screaming at me to do them ๐Ÿ˜‚

unkempt hamlet
#

Sure

rich flint
#

Also i got xmas light switch on at Town St where i am

#

So firework show and everything

#

Gona b gud

#

Bai!

ember canyon
#

cya

cinder spear
#

I like doing my cert requests manually and just having certbot renew in crontab

amber oasis
#

peace of mind to have the LB "just deal with it" ยฏ_(ใƒ„)_/ยฏ

cinder spear
#

lets me easily get problems emailed to me

amber oasis
#

cron emails is bad form IMO blobcat

cinder spear
#

they work ยฏ_(ใƒ„)_/ยฏ

amber oasis
#

crudely ๐Ÿ˜›

north flax
#

Probably more efficient than sending a notification packet with IPoAC :p

amber oasis
#

Of course I implement my monitoring with IPoAC

north flax
#

Quick and efficient monitoring notifications :p

amber oasis
#

It has a high throughput!

north flax
#

So meh if one server dies, good if so many dies that you need the throughput :p

amber oasis
#

I just have to avoid nomming the packets, they are so tasty xD

cinder spear
#

Trucks full of hard drives have amazing bandwidth, the ping is awful though.

amber oasis
#

It also has trouble traversing waters

#

hence why I use IPoAC instead of IPoTC

north flax
#

We use amphibious trucks full of hard drives for EU2, it's the most efficient with that many players

amber oasis
#

problem with trucks is that you have worse throughput if the packets needs to be dispersed

#

where as avian can disperse as needed

north flax
#

Just saw a snowball fly past my window

amber oasis
#

Hence why IPoAC will be my choice of transport for the forseeable future blobcat

north flax
#

I'm in the 8th floor

amber oasis
#

Impressive throwing

north flax
#

I don't think it was thrown from the ground, I think it was thrown or dropped from above :p

amber oasis
#

you never know if there's a super athlete around ยฏ_(ใƒ„)_/ยฏ

north flax
#

Or a trickster with a trebuchet

amber oasis
#

You got the sports academy nearby, don't you?

north flax
#

Ye

amber oasis
north flax
#

5/7

amber oasis
north flax
#

Are you poking at Home Assistant? :p

amber oasis
#

Nah, just the default netatmo webinterface

north flax
#

Ah :p

amber oasis
#

Netatmo did that IoT stuff right at least, instead of poll, it pushes the data

#

so should be harder to pwn

north flax
#

Until some major hole is discovered, like it has a hardcoded default root password

cinder spear
#

the future is clearly wifi chips embedded in everyone's brains acting as routers for everyone nearby

north flax
#

And they should all clearly have "root" as a default root password

cinder spear
#

nah

#

just allow passwordless root

north flax
#

With no notification or recommendation to change it

cinder spear
#

like macOS high sierra danLUL

#

ICYMI

amber oasis
#

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

north flax
#

Also, if it's on your wifi then it's (probably) behind a firewall as well :p

amber oasis
#

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

north flax
#

I should get a new router at some point, probably

amber oasis
#

Ubiquity โค

north flax
#

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

amber oasis
#

Yeah, that's a barrier sadly

north flax
#

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

amber oasis
#

ubiquity is nice, they treat everything like software, and not hardware

#

they provide updates often

north flax
#

And you just have to start the update, not download it then upload it to the router

amber oasis
#

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

north flax
#

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

amber oasis
#

Yeah, I've filled half a 24 port switch xD

north flax
#

I've filled half the 4 port switch on my router xD

cinder spear
#

I've filled one slot on my router

north flax
#

Well, plus the incoming cable on it, but that's kind of separated

cinder spear
#

lots of wifi stuff

amber oasis
cinder spear
#

both the routers in my house are in super awkward spots

north flax
#

Maybe if I got more servers in my room I'd need something like that :p

amber oasis
#

it was cheap and works flawlessly and doesn't have a fan ๐Ÿ˜ƒ

north flax
#

I'm a fan of the lack of fan, since I'd sleep in the same room I put a switch in :p

amber oasis
#

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

amber oasis
#
rugged copper
#

๐Ÿ˜ฎ

cinder spear
#

not once have I thought "I'd like to SSH to my windows pc"

rich flint
#

LOL

amber oasis
#

ssh from your windows PC though

cinder spear
#

ah

#

putty is love

rich flint
#

ye

amber oasis
#

sure, but native ssh is nice

unkempt hamlet
#

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
shy swan
#

blobthinkingsmirk advertising? troll

cunning kite
#

Did I just hear ADVERTISING?

cinder spear
#

"* New sodium extension"

the salt levels are off the charts in this version kappa

meager olive
#

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. :/

granite pond
#

Use rand function in php. And save this number in mysql.

#

Make text area, check text are if post in mysql, do stuff etc.

meager olive
#

We've already got the correct number, my issue is on how to pick a winner which guessed the closest to the number.

granite pond
#

Google ๐Ÿ‘

meager olive
#

this doesn't seem to be working

unborn comet
#

yo

#

can someone help me set up a server for game hosting?

cinder spear
#

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

meager olive
#

thanks @cinder spear will try, I'll probably get back here if it doesn't work. :p

amber oasis
amber oasis
pliant ruin
#

I got a floppy disk

#

1.44mb

amber oasis
#

I got more floppies than I know what I'm going to use them for

pliant ruin
#

make a picture with them on your wall lol

north flax
full locust
#

Lool Java's gr8 m8 ๐Ÿ˜‰

rich flint
#

he's right about the php LOL

#

cos i just keep errors lool

north flax
#

If you define the rows variable, it will be solved :p

rich flint
#

well the errors went

#

but still nothing shows lool

rugged copper
#

What have you set rows to?

#

The rows variable should be an array

rich flint
#

well i got two $rows & $row variebles colliding

#

-_-

full locust
#

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. thanks tmp .

#

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 ๐Ÿ˜‚

naive anvil
#

๐Ÿ˜‚ Glad your happy with your work ahah

#

but that second part... ๐Ÿ˜‚

pliant ruin
#

Aha

#

gg

#

Good luck with your next one

granite pond
#

with sine and cosine, I can make a circle right?

#

and some origin stuff ๐Ÿ˜„

full locust
rich flint
#

looool

cinder spear
west fractal
#

Looks like someone has a hard time there ๐Ÿ˜‚

wicked lava
cinder spear
#

needs more tail call optimization

#

or just using a loop instead

orchid egret
#

This is a real function in a codebase I am working with: CreateStationaryFrameOfReferenceAtCurrentLocationWithPositionAndOrientationAndRelativeHeading

amber oasis
#

Everything is wrong with that name blobcat

#

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

rich flint
pliant ruin
granite pond
#

503 in queue?

#

wtf ._.

wicked lava
granite pond
#

How do the servers take on it?

pliant ruin
#

:facepalm:

#

They are school years

wicked lava
#

oh

granite pond
#

๐Ÿ˜‚

wicked lava
#

lol

granite pond
#

ahahah ๐Ÿ˜„

wicked lava
#

ok that suits

pliant ruin
#

so thats 14 - 18

#

year olds

wicked lava
#

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

north flax
#

Right click, properties, security, set yourself as owner or something like that

wicked lava
#

I was already the owner

#

nvm it worked now

impossible to believe how many things can be fixed by a restart

north flax
#

Ah. sounds like a program was accessing the folder or files then

wicked lava
#

idk

#

i assume it was caused by onedrive

#

for some reason, it stopped syncing some time ago

orchid egret
#

When you first extract the files, windows file indexer or an anti virus might be scanning it still

unkempt hamlet
ember canyon
unkempt hamlet
#

What is that @ember canyon?

ember canyon
#

@unkempt hamlet a crazy complex app to chat via a txt file on a dropbox

unkempt hamlet
#

But why it is so complicated?

ember canyon
#

thats the joke

#

its the most simple thing you could imagine

rich flint
ember canyon
#

why not use %curtime%/%totaltime% (-%remainingtime%)?

rich flint
#

well the spoticord thing i got isn't doing tthat :/

ember canyon
#

which one? :O

ember canyon
#

holy cow

#

how old is he?

#

anyway gonna check it out

rich flint
#

idk

#

i'm only 13 so lool

ember canyon
#

thats u?

rich flint
#

no

ember canyon
#

got it too

amber oasis
#

Just because you use something doesn't make you a developer blobcat

ember canyon
#

it requires command line usage tho

#

@amber oasis

amber oasis
#

Still doesn't make you a developer blobcat

pliant ruin
#

you're downloading something someone else made

wicked lava
#

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)

meager olive
#

It's possible to add any, not sure if there is a lmit

amber oasis
#

There isn't to my knowledge, but should purposely limit the number. addign 1213123121 reactions will be kinda meh to use

wicked lava
#

sure

#

I just wanted to know whether it's worth to suggest a new reaction

ember canyon
#

So ets2 mods

#

I wanna make a mod not a truck skin though

#

How would i do so

#

Its ok i got it :P

rich flint
#

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

granite pond
#

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

amber oasis
#

@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

rich flint
#

ugh, then OVH are idiots cos they told me to do what i did -_-

rich flint
quick glen
#

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.

rich flint
#

i added the semi colon

quick glen
#

Remove the '. and .'

rich flint
#

i added the semi colon again lol

#

ok

#

still isn't working properly ๐Ÿค”

quick glen
#

Thats because you are using the api incorrectly

#

Or it not just being happy

rich flint
#

hmm

quick glen
#

You need to remove the "DJ " prefix on the dj name

rich flint
#

i added song thing but nothing works for it again. ok

quick glen
#

But the issue is, that ^^ does not count for all djs

rich flint
#

ye

quick glen
#

For example

rich flint
quick glen
#

Even worse, the request for Jack acctually provides you with 3 diffrent DJ profiles.

rich flint
#

hmm

#

i'll give up with that project then kappa

ember canyon
#

Of course you can't put 50gb on a 20gb partition you need a bigger partition for that

#

@quick glen u here?

rich flint
#

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

ember canyon
#

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

rich flint
#

Ayy did it

#

I had to get github desktop to upload files :3

#

๐Ÿ˜›

#

That's for whatever

#

And i'll start doing "REAL" projects ๐Ÿ˜›

quick glen
#

@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

shy swan
#

Nice @rich flint

rich flint
#

:3

#

ayy

north flax
#

@rich flint Next step now is caching, so it doesn't get data from our server on every pageload.

rich flint
#

hmm

north flax
rich flint
#

alright, i'll see if i can get json api caching on the php

north flax
#

The servers.php file especially, that does most of hte work :p

rich flint
#

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;
}
north flax
#

At a glance it should

#

It just saves it in cache/[md4 hash of url]

rich flint
#

i think it works

#

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 */
ember canyon
#

@TheUnknownNO#9389 ty

rich flint
#

i have a stange feeling that it is not caching

#

nope it ain't

stuck girder
#

Just want to point out. I highly recommend Laracasts, more than Lynda.com. In my experience, the tutors on Lynda.com only breifly tell you the methods, but not explain how to use them. My experience was confusing with the learning structure. Laracasts feels more intuitive.

rich flint
#

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
#

-_-

granite pond
#

xD you cant hate php ๐Ÿ˜„

#

๐Ÿ˜„

quick glen
#

Php is only annoying when you dont use it correctly ๐Ÿ˜‰

slow wagon
#

^

#

Only recently learned but you know ๐Ÿ˜‰

cinder spear
#

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

ember canyon
#

@quick glen how are you active here while letting your github die?

quick glen
#

There are reasons for it, reasons I shouldnt discuss here in public.

rich flint
#

UnknownNO deserves a break after all the really good work he's done this year :3

quick glen
#

Erh

#

Lets just say that break of mine in regards to my (public) github has been, well.. long enough

rich flint
#

You can never have a long enough break Troll

rich flint
#

it does it for every page -_-

north flax
#

Looks like you still include the script, and other scripts are trying to use it even though it's not loaded.

rich flint
#

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

#

๐Ÿ˜‚

#

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

steep grove
#

guys whens the winter mod gonna come

wicked lava
#

nobody here is able to answer you this question

steep grove
#

ok

quick glen
#

@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

rich flint
#

Ye I realised

rich flint
#

Well i fixed it

rich flint
#

Sweet

#

i got ckeditor now :3

#

fixed it lool

#

it didn't like the / at the end of the textarea

sweet hornet
#

I'd be curious to check if the W3C validates TMPs website

amber oasis
#

Should be valid html5

nocturne drum
#

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

ember canyon
#

@nocturne drum m8 pm me ur io

#

ip*

#

server ip

nocturne drum
#

no

ember canyon
#

y

#

u could setup firewall

nocturne drum
#

it is set up

#

thing is its on our cpanel server

#

so port 80 has to be unblocked ๐Ÿ˜›

slow wagon
#

:totally-confused: xD

sweet hornet
#

use cloudflare

slow wagon
#

^

ember canyon
#

If the attack is on the server IP Cloudoflare wont do nuffing

slow wagon
#

hmm... ๐Ÿค”

amber oasis
#

@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

nocturne drum
#

Our datacentre is having trouble mitigating it tbh

#

Im having to move cPanel to a different server

amber oasis
#

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

ember canyon
#

When your DC is having trouble, you shouldn't be using that provider with that DC.

amber oasis
#

or sign up with a provider that has an anti-ddos product (eg. Online.net or OVH)

ember canyon
#

when its having trouble best bit is to change and change for good

cinder spear
#

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

shut fossil
#

Hello Developers ๐Ÿ˜‚

slow wagon
#

haii

pearl badger
#

returns a users id

#

gonna add a bunch of things

slow wagon
#

oooh

sweet hornet
#

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)

full locust
pearl badger
#

@sweet hornet yh im thinking of more things to add rn

rich flint
#

rip the tmp status page

north flax
#

Bloody domain transfers.

rich flint
#

rip

unkempt hamlet
rich flint
#

hmm

#

i'm trying to get my discord music bot to work

#

but it wont join voice channels

#

:/

rich flint
#

i switched to my raspberry pi 3 and it works epicly

unkempt hamlet
ember canyon
#

oo ๐Ÿค” i didn't know github had that

#

may take a look at it

slow wagon
#

github has all

rich flint
#

github is bae

slow wagon
#

tru dat

orchid egret
#

github has many peoples private SSH keys and stuff

gentle hornet
#

There is a security breach on ets2c

#

You can impersonate people and make convoys in their name

north flax
#

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.

pliant ruin
#

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

slow wagon
#

I think you should use your own version ๐Ÿ˜‰

#

an official proper swanky one

north flax
#

We don't advertise either of them.

#

And ye, I'd consider it likely we make an official one at some point.

ember canyon
#

oooo

#

you could make one with a slideshow bar on the forum which says upcoming events

slow wagon
#

yeah

#

ooooh

#

๐Ÿ˜„

#

this needs to be done ๐Ÿ˜›

#

quick Q: what exactly can we do with the tmp api? ๐Ÿ˜‰

north flax
#

Get a little bit of data.

slow wagon
#

ahhh, like..? ๐Ÿ˜›

north flax
#

The name and id and steam id of a user, from steam id or id

#

Server list

#

Last 5 bans of a user.

slow wagon
#

ahhhh nice

rich flint
#

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/

north flax
#

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.

cinder spear
#

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.

rich flint
#

Yeah, so iโ€™ll try to get something like that going so then itโ€™s secure and reliable ๐Ÿ˜ƒ

unkempt hamlet
#

I had the one for Russian community called "RusConvoys", sadly it was retired due to unpopularity.

ember canyon
#

What if woot updates ets2c and makes it better then ever xd

unkempt hamlet
ember canyon
#

That looks lit tbh

unkempt hamlet
#

I can't find proper screenshots, only from bug reports ๐Ÿ˜ƒ

ember canyon
#

You should bring it back

unkempt hamlet
#

Maybe

ember canyon
unkempt hamlet
#

But for international community, I guess

ember canyon
#

ah

unkempt hamlet
#

ะšะพะฝะฒะพะธ ะฟะพ-ั€ัƒััะบะธ - ะดะพัะบะฐ ะบะพะฝะฒะพะตะฒ TruckersMP. ะ•ัะปะธ ะฒั‹ ะทะฝะฐะตั‚ะต ั‚ะฐะบะธะต ัะฐะนั‚ั‹, ะบะฐะบ ets2c ะธ ะธะผ ะฟะพะดะพะฑะฝั‹ะต, ั‚ะพ ะฒั‹ ะฒ ั‚ะตะผะต. ะกัƒั‚ัŒ ะฟั€ะพัั‚ะฐ - ะฒั‹ ัะพะทะดะฐะตั‚ะต ะบะพะฝะฒะพะน ะฒ ะพะดะฝะพะผ ะผะตัั‚...

โ–ถ Play video
unkempt hamlet
pliant ruin
#

Bread, ur vtconvoys thing just looks like ets2c...

#

ยฏ_(ใƒ„)_/ยฏ

rich flint
#

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

rugged copper
#

You could just use truckers events or something similar rather than creating something new

rich flint
#

ยฏ_(ใƒ„)_/ยฏ

rich flint
slow wagon
#

๐Ÿค”

#

good plan using the button as a variable, means you don't have to make changes to every page ๐Ÿ˜‰ clever

rich flint
#

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

slow wagon
#

?login is a GET variable with no value

#

e.g. ?login=1... think that might need changing, not sure

rich flint
#

didn't work -_-

slow wagon
#

oh

#

have you got any other code relating to the ?login bit?

rich flint
#

don't think there is rip

#

it worked for others

slow wagon
#

hmmm

#

๐Ÿค”

slow wagon
#

oooh, emmet for dreamweaver has installed ๐Ÿ˜›

rich flint
slow wagon
#

nice

rich flint
#

hmmm

proven gyro
#

hey guys

slow wagon
#

๐Ÿ‘‹

slow wagon
#

Righ

#

T

#

When I add a textarea input to a Bootstrap 3 modal, all of the modals stop working completely.

slow wagon
#

Fixed it, it was cause of the way I was putting it in

#

And I cba updating it xD

amber oasis
slow wagon
#

Nice, but useless for me XD no nitro

shy swan
#

Nice, and useful for me XD nitro

slow wagon
#

๐Ÿ˜‚

amber oasis
slow wagon
#

๐Ÿ˜

wicked lava
#

useless for me ๐Ÿ˜ฆ #nonitro ๐Ÿ˜“

shy swan
amber oasis
#

terraform with ansible, consul and vault ftw blobcat

slow wagon
#

๐Ÿ˜‚

amber oasis
#

terraform for "hardware"
ansible for software
consul for configuration
vault for secrets

slow wagon
#

Niceee

ember canyon
slow wagon
#

PHP is goooood

#

๐Ÿ˜

shy swan
slow wagon
#

JavaScript is good too but idk how to do it XD

cinder spear
#

both are abominations

#

just look at

[] == ![]
slow wagon
#

๐Ÿ˜‚

#

Its not that bad

amber oasis
#

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

cinder spear
#

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

rich flint
#

PHP is only good if it works. But JS is just a pain a lot ๐Ÿ˜›

steep knoll
#

๐Ÿค”

wicked lava
#

Lol

#

rejected the connection

steep knoll
#

๐Ÿ˜ฆ

north flax
#

Ye, some shit happened during a transfer

steep knoll
#

feelsofflineman

pliant ruin
#

lol

slow wagon
#

XD

#

ETS2 should do rich presence, it'd be cool to see what job you're doing or what truck or something like that

shy swan
#

^

#

I saw a few things on GitHub...

slow wagon
#

Oooh

#

I see things there sometimes ๐Ÿ˜‚ ๐Ÿ˜‚

wintry flame
#

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
#

change your radio station??

#

also, this isn't SCS, these guys didn't make the game :/

orchid egret
#

@slow wagon WoT shows what job you're currently doing

slow wagon
#

ahhh cool, but still it'd be cool to see it here on Discord, eh?

north flax
#

Some neat things in there :p

#

Some of which you might not know

slow wagon
#

Oooh

#

Shame I can't use js

#

xd

stuck girder
#

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.

slow wagon
#

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

stuck girder
#

That's used for database data preparation.

#

mysql_real_esacape_string

slow wagon
#

Thought I was wrong

north flax
#

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

stuck girder
#

I think it's htmlspecialchars() for database preparation, and htmlentities() for html preparation

north flax
#

No. DB and SQL is prepared statements.

stuck girder
#

I cannot think, too tired

north flax
#

htmlspecialchars is for text that is to be shown on the website

stuck girder
#

Don't need to worry too much about prepared statement with Laravel, it uses PDO by default

north flax
#

Yep

stuck girder
#

My question tho, would the data need to be sanitized before it is stored?

#

I cannot find anything answering that question

north flax
#

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

stuck girder
#

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?

north flax
#

Nah, you don't need to go out of your way to do it then

stuck girder
#

Now I see why Laravel is popular ๐Ÿ˜ƒ

#

Thanks

amber oasis
#

Yeah, laravel is basicly secure defaults

slow wagon
#

oi

#

who can do APIs?

#

theres an issue with something

stuck girder
#

Hmm.. The laravel validator doesn't seem to work when using a put request

#

It just ignores my rules.

slow wagon
#

oh XD

stuck girder
#

I am using a controler with the restful api methods (-r), and have included the "use Validator" namespace

amber oasis
#

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

cinder spear
#

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
);
north flax
#

Ye, it's not a good example :p

cinder spear
#

the void keyword examples are all just making it less readable to anyone used to the "normal" way too

amber oasis
#

Yup

#

Though, pipe operator, functional javascript here we go xD

#

good luck writing pure js functions though

cinder spear
#

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

wicked lava
#

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?

cinder spear
#
hexdump -C filename.py | grep ' 00 '
wicked lava
#

For some reason there were 4 null bytes at the end of the file

#

dunno why

#

however, deleted them, code does still work

pearl badger
#

stop using jetbrains

#

use Visual Studio Code ๐Ÿ‘€

#

and get pylint

wicked lava
#

jetbrains works fine for me so far, I see no reason to change it ๐Ÿค”

rich flint
#

Sublime Text ftw, well if i do projects on my pc that is ๐Ÿ˜‰

amber oasis
#

Jetbrains make good editors blobcat

rugged copper
#

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

amber oasis
#

What is the error you get?

slow wagon
#

Sublime text is alright, idk how to work it though XD just use Dreamweaver and the code view

#

Does it for me

pearl badger
#

@rugged copper i use a good old json file or a database.

#

linked_accounts['discord_id'] = tmp_id

rugged copper
#

@amber oasis ^

rugged copper
#

I even tried using Laravel Socialite but when it goes to discord it has the same error

amber oasis
#

Make sure you've configured your app @ discord the same way you configured your oauth client

rugged copper
#

How do you mean? As in make sure the bot is on the guild?

slow wagon
#

How did you configure your oauth stuff?

#

Do that

#

I think that's what he's saying. Or she. Them

rugged copper
#

Manage to figure it out ๐Ÿ˜ƒ Thanks all

amber oasis
#

basicly make sure urls match and shit

rugged copper
#

Yeah was something to-do with the redirect uri

slow wagon
#

Someone know how to do a custom API for info outta my db? Also connecting that to a bot?

amber oasis
#

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

slow wagon
#

Ooh

ember canyon
amber oasis
gilded summit
#

disgusting

wicked lava
#

Is it worth?

ember canyon
#

๐Ÿ‘

slow wagon
#

???

jaunty rivet
#

๐Ÿค”

ember canyon
#

Its a Lag Bomb

slow wagon
#

Well

ember canyon
#

made in python

#

๐Ÿ‘

slow wagon
#

Not helpful really

ember canyon
#

just a joke

slow wagon
#

Ok

glossy thicket
#

yo i need someone to help me with smth not more then 10 minutes thanks PM ME

pliant ruin
#

Well what language is it?

glossy thicket
#

js

#

node

pliant ruin
#

Okies

glossy thicket
#

would you help me?

pliant ruin
#

I can't code js...

glossy thicket
#

wait 1 sec you might know what is about

amber oasis
#

Just ask, plenty who do know JS here

pliant ruin
#

It's not to do with coding

#

It's installing something off github

slow wagon
#

Just DL the zip??

#

Idk xD

glossy thicket
#

wut

pearl badger
#

very helpful

#

the examples are in python

glossy thicket
#

i need someone with visual 2017 skills ๐Ÿ˜› thanks

pliant ruin
#

he needs a js coder

unkempt hamlet
#

Who said JS?

pliant ruin
#

idk

unkempt hamlet
#

Okay, I thought I might help or whatever...

pliant ruin
#

Lol

#

Yeah

#

something needs to be made called a kernal driver..

unkempt hamlet
#

Kernel driver? On JS?

#

Sounds legit

pliant ruin
#

IDK

#

im guessing here

pliant ruin
#

no

#

they are drawn

night rootBOT
#

dynoSuccess Fading#0195 has been warned.

pliant ruin
#

wwaaatt

unkempt hamlet
#

Cheats are illegal, as TMP Rules stated

wicked lava
#

Whhhhhaaaat?

#

So I mustnโ€™t cheat my xp anymore?

amber oasis
#

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

ember canyon
#

Cause they are coded lol

slow wagon
#

XD

pliant ruin
#

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

slow wagon
#

We've kinda moved past that now, dear. Go and have a cup of tea and a biscuit ๐Ÿ‘ต

shy swan
#

Paid my steam direct fee yesterday... my game is coming soon!

#

Well... Discord rich presence is still missing...

amber oasis
#

what kind of game is it?

#

got some juicy insider screenshots as well? ;P

shy swan
#

I don't want to share too many information... It's an adventure with a horrible and romantic story

unkempt hamlet
shy swan
#

Some of you'll get a key ablobgrin

#

It was made in unity... And no.. the graphic looks great...

unkempt hamlet
#

Hmmmmmm..

shy swan
#

I am not ready to share screens yet... give me a few weeks

#

I want to adjust a few things

wicked lava
#

How much is it? ๐Ÿ˜„