#programming
1 messages · Page 8 of 1
rarely find that I need to walk a json structure the same way
VODS=`curl -s "https://api.twitch.tv/v5/channels/$1/video_manager?limit=100" -H 'Accept: application/vnd.twitchtv.v5+json' -H "Authorization: OAuth $OAUTH" | jq -r '.videos[]._id' | cut -c 2-`
for example (in jq's params)
Did i miss much
it's useful for bot commands
https://wotapi.thor.re/api/wot/player/1 <- that's the only case I use xpath for these days
https://wotapi.thor.re/button/17639/plates <- also uses xpath, but internally uses the api as well to get the url
May i ask which mods are supported on mp so i can create som mp mods
No mods are supported by mp 
some mods may work in MP, but this isn't the place to ask about that, the guys in #ets2-modding might be able to help you further
I got ansible to install wordpress…
Now the question is why would I want to install wordpress 
hello
Howdy
Anyone here able to helps me out with a bit of C? im learning and none of google explains the part i need to know...
Codecademy doesn’t teach C, otherwise I would already be using it....
@pliant ruin Ask your question, don't ask to ask
Well. I would like to write a code that’s a mini game, press enter to start then press enter again when it’s been 10 seconds, well guess when you think it’s 10 seconds. I’ve got the pressing enter part, I just don’t know how to make a countdown that finishes when I press enter. If that makes sense
Might be close to what you want if you're on windows:
nvm, shortsighted, that's c++
Yeah was about to say
that said, you might be able to call it still
c and c++ is interop
On POSIX compliant systems, you can use http://man7.org/linux/man-pages/man2/timer_create.2.html
Well I don't really know what that means
step one in learning programming; learning to read documentation
the foundation of Linux and UNIX
ah
POSIX is a standard for how things should talk to each other, so that you can write your code once and run it (in a rose gold colored world) on any POSIX OS
Oh okayh
makes sense
So since I am on windows, I can't use that website for help then
or am I wrong again
but yeah, on windows, as far as I can tell, outside of making your own stuff (which probably is far outside the scope of what you want right now) SetTimer() is what you're after
You can use something called Cygwin to compile code written for linux on windows and run it like any other windows program, but that's a bit cough dirty hack
Eh
And since I am on a school pc, I doubt I am going to be able to get that installed
here is a better explanation of what I gotta achieve
the hints and knowledge parts are for python since python is recommended here
Class assignment?
not as much as an assignment
I got a pdf of challenges, to try and help improve my programming skills, or see where I am at
but it was created by my teacher
I've given you the best pointer I can, as when I program C, It's not on windows, and if that pointed doesn't help you, I can't help you any further
Well yeah I appreciate you tried to help. Do you think its better to dual boot (I think that's the word) on my laptop, windows and linux
instead of using a timer, it might be easier to get time both at the start and when the user says 10 sec has passed based on their estimate, then comparing the timestamps
if you have win10, you can use the linux subsystem to get linux functionality
or you can go all in and virtualize linux like I have
that too, is available built-in win10
Any one got any tips of Rapid Application Development specifically aimed towards the development of websites which are fairly complex
Mostly what you'll be looking at is laying a clear plan for what components, then making it easy to work through the spesification
@cinder spear Yeah that sounds easier, that is how it is explained on the booklet so makes sense. I also installed a linux subsystem through windows, but no clue how to use it. More research is needed. Thanks for the tip 😉
Okay thanks Tuxy
https://github.com/jlord/git-it-electron <- if you need to learn git
I know chris yeah :^)
I’m learning c..
ouh, 1.17 of vscode has #region / #endregion now too 😄
Does anyone know where I can find a good repo of web crawlers?
Hi
Still playing with the colors
But I really like the search for player bar. Some users dont see the actual button...
The red bar reminds me of the old site for some reason
The red is noice
Does anyone know what web builder Tmp use. I may look into using it myself for VTC purposes
I think it's all through code brads
We know how to program ye
We didn't use a Web builder 
You are the web builder 😛
flufflyclaws.squarespace coming soon
nah just fluffy.claws
An open operating system for Linux development.Can I do this individually?
any OS can develop for linux, but you're probably going to have the best experience using linux
U get linux on ps2
In this video we take a look at the official Playstation 2 Linux kit that was released by Sony in 2002. We will install the OS and then take a look at it run...
@amber oasis ok i didnt realize it was coded. Ps i dont know coding :(
there's a reason IoT is practically all linux-based
it runs on pretty much anything
Like Doom
Good Evening Guys,I attended a course today at school.I learned simple coding techniques.Our teacher suggested us a website,i am working there right now.
https://code.org
Dont know
Anyone know how I would go about fixing this issue when using the TruckersMP API Client on Laravel 5.5 https://gyazo.com/0048560325af10c100f3cf5364d5a6a2 https://gyazo.com/225df2245d54c2b6f1ecec84ac712257
@ember canyon What language are you planning on learning/starting to learn?
@rugged copper You're missing dependencies
You need to pull in Guzzle as a dependency Ben
If you want to make minecraft mods or bukkit plugins, then Java is what you'd go for
Well if you want to code Minecraft plug-ins then Java is the way to go
In general though, go for a language that can teach you the basics, then that's transferable. Something that can give good error messages to help you, like JAva, Python, etc
I used to use a website called codecademy which is a really good website. No longer using it since it does not teach C. But it has a good Java course, as well a as Python, CSS and a few more.
https://hub.spigotmc.org/javadocs/spigot
https://hub.spigotmc.org/javadocs/bukkit give that a look if u intreasted in minecraft stuff
How can i get started?
Can tutorial videos help me? ..
I haven't used codecademy in ages now. Last time I used it they had too few courses for me to move forward, and now I tend to rather learn in other ways
https://www.codecademy.com/learn/learn-javascript
@ember canyon give that a look xd
Wtf
?
199
Dollars
just click start
and stuff
That's for something else
Ah okay
They have an intensive course that you can pay for, or the normal course which is free
Free course xd
Looks Nice
Most of my CS class use it to learn python, even tho they probably have moved on to programming in their own way now.
My university is just making the swith from java first to python first now
The most popular occupations of future
From a neural network trained to recognize things in images :p
Per son
It's ets2
Lol
When I do 'composer require guzzlehttp/guzzle' it says it's 'Using version ^6.3 for guzzlehttp/guzzle' and that there is nothing to install or update
That’s ets2 background and fake truck? Or Ets1 truck
Does not look like it should belong
No idea.
No reason truckersmp would know really
Since we're not affiliated with scs
I think it might be nice
When there is a new update,how long does it take to tmp update?
Ex:1.29
It takes TMP different times on both games depending on how big the update or dlc release is.
For example to get a new truck into the game could take 1 or 2 days. However with a map dlc such as Italy it could take up to 2 weeks..
Complexity 😉
Eh, your examples of complexity are a bit off
But yeah, the time it takes us to update varies depending on the size of the update and how much is changed
Yeah but it’s better than saying 1 day - 2 weeks with no reasons or examples
Ye
I apologize for the label
Not much nowadays though, having played it since 2011 you end up playing it less eventually :p
Since 2011? Omg
Yep. I first started playing in early 2011 :p
Before the EUW and EUNE servers existed, actually. It was just EU
Bronze 😦
I've sorted it now, but thank you. I didn't realise it was a seperate guzzle package. I had guzzle http just not guzzle adapter.
its not exactly code week if its from the 7th to the 22nd
Universal date
The whole universe celebrates this?
Yes
more than that
How Will the Timezones will effect MP when its fully release from beta?
Since (I guess) timezones is visual change only, there is should be no changes to how TruckersMP process it.
I didn’t even know TMP is ever going to release from Beta... 😂🤔
oh in ats there is timezones now?
Yes
weird
I've seen it in action in Freight Market only
Don't know what actually this feature for
fairs
What does the new file system mean to the players? 🤔
I guessed that, but I have no experience in modding and have no idea how to make it working
This is not a modding in the way you thinking
What do you mean by custom skins if it's not paintjobs...?
UI Skins
ooohh
Skins for the Launcher and the tab ui
i had that anyways...
It is time to revisit my unpublished project
About time 😄
🙄
Developer features for UI testing without restarting TMP (like hot update) will be nice, but... dreams...
Yo can i have the API for ets2map.com please?
@ember canyon https://stats.truckersmp.com/api
It's loosely documented in random threads on the forums 
Yeah
Since Doko is gone, there is no thing you can't check thought Developer Console in your browser
hopefully kat documents it better with the rewrite 
soon™
😄
oioi
🤔
It's no longer need now 😛
but did you lean html6
mhm
this deffo does the job tho
literally
making rly simple code, to make a TMP Server Status, and yes Tuxy... It's cached 😉
lol
Before you kill me 😛

Who said Cache? 
lol
I don’t think I will be using Java for a while 😂😂
oh Visual studio when will you ever be dependable 😐
how is it not?
I've never had any major issues with visual studio, and the issues I've had have been me doing it wrong 
Visual Studios 🤔 i have never had a problem with it
Because you never use it? 
Only issues I have with Visual Studio is it being slow to start, and that I accidentally click "Open in Visual Studio" in the right click menu sometimes
yh
lol
My coding skills look awful in this archived page https://sgtbreadstick.tk/popup-tool.html
I was that bad at coding xD
Now if you look at the things i do, my coding looks much better
Font-awesome likes to rly annoy me sometimes
I thought i fixed that
Note to self, maybe check things before finishing...
ok
if you use font awesome correctly, it's not annoying (you probably over zealously apply custom CSS to those items)
once 5 is out, you will just compose a circle around them btw, which will make that particular design choice easier
currently it's RC4, iirc. there's one more RC before final release
Alright I'm at my wits end. I've been trying to figure this out for two days now and I just don't get it. I have a project (first project ever btw) in visual studio 2017 and I'm trying to use a grid view to show some data from a view in my database and for the life of me idk why everything I add the sql data source V.S freezes. I tried to start VS in safe mode and it fixed the freezing issue but it breaks my connection to a browser :/ I need help
oh it freezes when I try to use the design view
I don't know what's causing this to do what it did :/ https://sgtbreadstick.tk/i/EmePbp4d.png
seems that all icons are going messed up https://sgtbreadstick.tk/i/DGfcsVw2.png

interesting issue
on a side note, why is your main content container wrapped in a semantic header tag?
https://static.thorerik.com/s/2017/10/30/120722.png
Sat down at a desk with a spare screen that you can plug into your laptop at the university, and didn't find the display port cable (all of them usually have that). Then I checked behind the monitor, and a DP cable was plugged in, so I followed it. Turned out someone had plugged both ends of the displayport cable into the monitor.

well lol
idk tuxy i just left it like that when i first did the site a few months ago 😂
oh i know why
it's so you can use the scroll up button
that's when you fix the scroll up button, rather than create semantically horrible documents 
ew, float
well i fixed it
i just changed the .fa to .fa-3x for the status icons xD
I always never think of the tiniest of things that could cause it -_-
if you need to change something, it's usually a good idea to create a new class that is unique to that issue and use that, instead of capturing something generic like .fa
Best code is always written at 3 AM
LOL
True
Guys
I'm trying to edit a footerinputbar
like that
with responsive design
but it isnt changing
And I'm so triggered
also, if you have to use !important, that's often a sign you're doing something wrong
also, in chrome, if you use inspect element, then switch to computed, you'll see the current styles applied to it, click on the style that is wrong (eg. border-color) and it'll show what class and file is causing said style to be applied
there you can see text-shadow comes from the class .dropshadow in app.css line 12
most of my commits are between 22:00 and 02:00
xLars: It does if you switch it to device mode: https://static.thorerik.com/s/2017/10/30/153709.png
ctrl+shift+m
When you go into device toolbar, you should see any rules that apply, if it doesn't apply, your selector is wrong
alternatively, your not actually touching the right file
Fixed the issue by just disabling everything that could be disabled lol. Will have to spend more time later on to find the actual source but for now that will have to do.
Also anyone good at photo editing here?
What is Java Plug-in software?
is this a new kind of software?
I did a research on website and youtube
very complicated xd
you're thinking of applets SgtBreadStick
Omg this website +18 xd
the one tuxy sent...
Eh
Oh
Tha advert
Ea
It’s a site and advert @steep knoll should check out xd
Hehe why
Idk
🤔
:sweat_smile: :sweat_smile:
It's crap
And there's no web developing in it
🤔 they actually have html element to have code 😮
So trucknet and wix have something in common?
no
They both crap

I can't insult here, damn :/
LOOL
No it ain't
So Report Page
If you say that to J-M & Tuxy & Krashnz they'd kill ya
Hahahaha
No no
I don't want that
If Stuart puts importer so I can import trucksbook into trucknet and there’s a map then maybe I’ll get trucknet
To ban for this 😦

When someone tells me to install an OS this is what happens... https://sgtbreadstick.tk/i/f83pXWyE.png
I said 🐱,CJ
Deal with it
doesn't impact you anyways, why do you care? 
I thought this is the #letshacktruckersmp channel? 🤔
php's biggest problems are the religious backwards compatibility and sticking with underlying function names and params
makes for a lot of consistency problems and weird interactions that the dev needs to be aware of
super easy to introduce bugs because you missed a small print in the documentation
Religious problems?
Wow! We’ve got 100 members in this channel now! (But German has 200
)
And 100 Turkish too...
Will members of this channel ever get a color?
Why should they
So everyone can be easily identified instead of having everybody as...grey or at the very least have the role in a color just like the languages role or streamer
There is no need for this role to have a colour
there is no need for your role to have colour tho?
cos we can see u in a different group on the side
it's useful to keep the colors that stand out mean some sort of importance/real meaning
Well
that one was low rock, even for you 
I think rock had a rocky road there 
They're stuck between a rock and a Tuxy 😛
Has anybody ever gotten coding tests (PHP/JS) on paper? Near the edge of getting triggered about it 
once
js isn't bad
php is literally impossible without the documentation or IDE having your back
the thing about paper tests though is that the idea and line of thinking is more important than the actual accuracy of it (or the teacher is a failure)
accuracy in the sense that the syntax and function names are spot on
accuracy of the algorithms etc. of course matters a lot
Basically what they want is a running code
Anyone known with Discord API, NoteJS and DiscordJS?
On my exams, which are digital, they don't even care that much if it runs, hte logic is what matters
Ofc. if you write psuedocode then that's very engative, but if you have a syntax error or something it's alright
I wish I had your teachers :p
all my coding courses were either project only (no exam) or it was algorithms and the exam was in pseudocode
I have like 2 projects this year, I wish I had more as I usually get a good grade for them.
I usually have exams. In one subject this fall I have a "home exam", which is a project, in addition to a normal exam
And that project is in C :p
I litterally made a memory cleanup system for it
this is the stuff I gotta do tomorrow (similar stuff): http://prntscr.com/h5ftxf
Registering the addresses to all memory I allocate, so I can just use clean(); before ending the program to clean up all memory, sockets, pipes, etc. that I use
Yes, the code in that file is probably what they say it is, konfig :p
I hate mixing php and html like that
It's pretty bad practice and messy
remind me in a few years when I actually have some professional experience 
We can throw tux at your teachers :p
We had Java applets previous year, we made a whole project with it on PC and they continue to have the test on
paper :areyoukiddingme:
And I find it so much harder, no visualization - nothing
Testing on paper isn't too uncommon, though it's going away. But then they should be lenient with syntax and shit like that
Actually throwing tux to my teachers isn't that bad of an idea
And have the documentation for the functions and classes you'll use included with the exam
Yeah, I'm fine with it on paper but I will need more documentation + more leniency on errors
and they don't give both
But about paper and digital exams: On my university I've been in the first "group" in several subjects who have digital exams, instead of paper
I guess digital is a lot more comfortable to work with?
Only made 1 test partly digital, I had to make a html website then within 15 minutes from a template. I got that pretty much on point, that was a good grade. Then it just started to drop.
Ye. Still no compiling java code and such, but at least some very very basic syntax highlighting, and more comfortable to write on
Also recognizing errors in the code is fine with me on paper, but they asked me to make 1/2 of an applet previous year. Well, that didn't work without any documentation..
Then it should be focused on the logic, concepts, and maybe a few central libraries, not using all the libraries in hte language at least, imo.
A man can have dreams, right 
Hopefully it goes well enough, then next year I'm outta here
The only specific libraries I've had at exams without docs that I can remember on the top of my head is ArrayList, HashMap, ConcurrentLock and Thread (all java)
Maybe some other trivial libraries
^ I remember having to remember all the code for the different data structures from the top of my head (Java) loool it was ... horrible .-.
It looks like VS and I will never get along....
-tries to build project-
-Error list appears-
VS: Would you like to use last successful build?
Me: No.
-dialog AND Error list disappears before I get a chance to read what it was-
-Tries again....same crap-
gg i give up
Just open the panel on the bottom
if it's not there, you should be able to add it from the interface menu (can't remember what it's actually called, as I'm a linux player)
I mean the error viewr is at the button but it empties right after I click no
Like it said something about the designer.cs so when I went to take a look...poof no problem. try to run again and then I see the red lines for a second then poof gone again lol
I'm just going to start a new project and start rebuilding piece by piece :/
@shy swan I know a little Discord API with Node and Eris lib, tell me what you wanna do I might be able to help
Na. I need a little bit more that a little bit. Lol. I want some information about shardmanager...
I use discord.js for @desert stag
I'd wait for the next major of discord.js, they merged a simplified shard manager into master a few weeks ago
unless you need more advanced stuff
I haven't even looked into shards for my bot
I'm assuming discord.net just handles it all for me
or it's not in enough guilds for it to matter
depends on how much processing you do and how often the bot is in need of actually process something
From the 2014 exam about databases:
"All attributes are VARCHAR. Dates are given in the form YYYYMMDD". Why would they not just use the bloody date field type.
@desert stag bails out of the processing quickly to avoid a lot of load
@north flax to increase the chance of you messing it up
Also, teaching you how to introduce subtle date issues to your applications
Actually, the task is about finding what attributes are unique
.fi - Are you Finnish? :p
yep
Ah, I didn't know :p
currently at Heathrow waiting for a delayed flight
Currently in a unviersity lecture here
8 or so, iirc?
8 yeah, only 2 with talking people
So this one, staff discord, and your emote ones? :p
yup
starting as a software development engineer on monday 
Oh? Anything or anywhere interesting? :p
Twitch
Nice :p
congrats on the promotion 😃
Ye, congrats :p

I'll be doing the formal stuff about being hired as a developer/consultant next week :p
As in contracts, arguing about workhours, salary
nice
I can use a transactions to simulate double inserts in mssql?
What do you mean, and what do you want to achieve?"
So I have two tables that are related by a foreign key. I want to write a stored procedure to accept some data incl. the foreign key attribute to populate the two tables at once to avoid the constraint error
I wanna build a PC and Xbox one all in 1
How will I go about doing this
So basically code Xbox one OS or something onto PC
ok, @full locust you don't need a stored proceadure for that, more trouble than it's worth tbf. but by starting a transaction, you are telling the database engine to hold off on committing anything until you've told it to, so that's what you're after
SPs is something you'd keep for more advanced, multi layered queries with nested joins and sub queries
ohh ohh I see. Thanks I'll do just that
so I can put that in a custom sql statement for a web application and it's fine? (complete noob)
If you use an ORM, it should have transactions as a built in feature
Ohh? this is the first time I've heard about ORM. I'll look into it thanks 😃
Progress so far....the form view looks really out of place but it's required for the project. Does any one know of a way to make it look...any better? 😫
apply some styling similar to bootstrap or material design, move the labels so they are above the input fields
So using something like googles mdl could work?
It's horrible
https://sgtbreadstick.tk/i/VxoQGrXS.png Ugh i hate it when the rounded corners don't work -_-
loool well thanks for letting me know before wasting hours in vain
classic
Much better xD https://sgtbreadstick.tk/i/djz0HbCv.png
Ignore the white dots, it's this snow.js i put on my site 😛
snow.js, killing cpu cycles since 1995
Lol
actually more like 1999, since ecmascript wasn't really a thing in 95
Not using my CPU lol
And i have an AMD CPU (APU) (A10-7800) and it seems to be alright lol
@amber oasis like this?
Pro tip: don't rely on placeholder only
once text is in it, you loose the context for what the field is for
oh so have something like "please enter your name here: [fieldwithplaceholder]"
placeholders can sometimes be used instead ot labels
but they're usually better for format example
can, but it's considered bad for ux, looks good as ui though
oh ... lol 🤦🏽
there is a reason material ui transforms placeholders into labels above when you start typing ;)
here's a tip, don't do PHP in a .html file or you get something like this... https://sgtbreadstick.tk/i/9Nyu1hlP.png
I completely changed it and it looks better and works better 😛
Plus if you look at the bottom there's a link saying "Click Here For Source Code" 😛
Oh and yes Tuxy it's still cached 
I'm using an API that goes like TruckersMP's own but it caches itself auto
I will now wait for this to appear again https://sgtbreadstick.tk/i/I3o1FWN7.png
However i modified the Source code for public and not my demo one 😛
A Wild CJMAXiK appears!
Lol
Natedogg runs off into the forest
wait wut
cam account
lol
thought this would be a faked dom
whats a cam account?
Kat runs the TruckersMP CCTV stream
Which is several accounts acting as "cameras", streamed on twitch
Showing high traffic areas and such
uhm okay
what a waste of power :^)
He could have solar panels 
At the headquarters of Cloudflare, in San Francisco, there's a wall of lava lamps: the Entropy Wall. They're used to generate random numbers and keep a good ...
WUT
now that is cool
Does anyone of you have some experience in setting up networks?
Nope 😂
Don't ask if anyone knows XYZ, just directly ask your question/share your issue etc.
Well ok
I recently got a new (it's actually old, but new for me) PC. Since it's not possible to connect it to my wireless lan (and lan port is too far away), I built a network bridge using my laptop as bridge device between the PC and the router.
Now the problem is: almost every time I start my PC, it fails to find the dhcp server and gets an apipa ip, which is not really useful since I cannot connect to the network this way.
My laptop is of course turned on.
It usually helps if I restart my laptop first, then my PC... but that's an annoying effort and I wondered if there's a better way to avoid this failure of finding the dhcp server.
how did you connect PC and laptop AND laptop and router?
Wifi to lan port bridge, pretty common back in the day.
@wicked lava your best bet is probably to nat it and run a DHCP server on your laptop on the lan port. That said, it would be effectively bound to be used only at your home at that point. So the next best option is get a pcie WiFi card. Alternatively if your router and computer is on the same fuse, you can look into ethernet over power lines. They aren't great, but they are better than nothing
@amber oasis Installed a DHCP server now on my laptop.
Do I still have to bridge the wifi and the lan port on my laptop?
no, you have to NAT it now
how to do that?
try STW
RSS Feeds at their best. The caching seems to work nicely cos when i change something it doesn't update on the page until the cache expires lol https://i.sgtbreadstick.tk/zSEDykQ2.png
Ovh 🤓 (I Think)
RSS feeds are epic when you actually manage to get them to work
I converted a simple xml RSS feed to pure HTML with some handy PHP so it now looks like this :3 https://i.sgtbreadstick.tk/SV4Z0pQc.png
And i got the cache_timeout to 3600(seconds)(1 hour) 😉
So the page will stay like that for 1 hour
It has all the posts from truckersmpstatus.com and has things dated to 2nd Spetember 2015 :3
there's also components enpoint there^
I only used RSS feeds to make a webhook bot tbh and i managed to do a lot more with it 😛
still doesn't make sense to use RSS, since the incidents endpoint contains the exact same info, and a lot less expensive to consume
Hmm, i'll see if i can get some things to work with it then :3
Ugh it wont show up -_-
the only thing wrong with rss is xml
Ok so rich presence is now out for the public
This can only be one thing 🤔
Showing your current ETS2/ATS details from in the game
Never knew how hard it can be to sort the server API results per playercount 
let sorted = response.sort((a, b) => b.players - a.players);
should get you there 
in php, usort can do it
Ah, I'm doing it in Vuejs but considering to write it in php
anyway thanks for that, I'll give it a shot :)
The code I posted is ES, should be pretty ready to use with vuejs I believe
response is the inner property from the api
eg. with request, you'll probably find it in res.data.response if it's been JSON.parsed()-ed
yeah I parsed it, this is how it looks atm: http://prntscr.com/h8fr8k
just tried a lot of stuff to sort it, but I'll attempt that one tomorrow.
$servers_in = $servers_in->sortByDesc(function ($server) {
if ($server) {
return $server->percents;
}
});
Laravel makes it pretty easy
btw I am using the same sort as Tux showing in my Vue project
(who needs php when you can use a microframework like flask)
Is it me or did you try to make people laugh 
depends on your needs
Well, perl works
:U
Anything works if you do it right 😉
all the different techniques work with experience
same
Hey guys,
I have a dropdown list that links to a database but I want the first value shown to be a placeholder. How can I achieve this? Currently it shows the first vehicle in the database.
Also what do you recommend as the best method to store around 10 photos in a db?
Visual Studio Code is performing above my expectations with some plugins, I prefer it above ST3.
what part of it is bad, in your opinion? :p
@full locust how are you populating the list? Foreach loop?
@rugged copper nope I just have a view with the model name that I connect to
@meager olive how is vscode different from vscommunity?
VScode is much more lightweight, sth like notepad ++ / sublime text
ohhhh? so it's something to compete against np++ I see. Okay Thanks
If you can provide your code, @full locust, I can help you
it's asp tho
Also, why do you will need a photos in a DB?
Well I have images of some cars that will be up for rentals
Code for first
<asp:DropDownList ID="ddlCars" runat="server" CssClass="form-control" DataSourceID="LinqDataSource1" DataTextField="Model" DataValueField="Model">
<asp:ListItem>""selected disabled>Please select a Car Model</asp:ListItem>
</asp:DropDownList >
Just store a links to this images and save images themselves in a separate directory
ohhh I thought of that but I wasn't sure if it was the best idea. Thanks 😀
Storing images in DB is not a good idea
ohhh welp so it's the other way around lool 🤦🏽
@unkempt hamlet what's your experience with using cards from bootstrap?
"A lot"
Loool alright that's great then would you recommend using it for displaying some items with pictures for example different cars? I don't know if I should have a page with I would lay out the cars and when a user clicks on a rent button it would carry them to another page to fill out some more details. The project itself states I have to use cross page communication so I'm thinking of maybe using that as a way to implement it
Card is the perfect to do this thing
Alright thanks I'll get to trying it out 😄
woahhh you did that?
I tried adding it in but I need BS 4....and when I add v4 it breaks my page 😢
what exactly it breaks?
I use this Sublime Text. It’s quite good tbh
I used it aswell, but some stuff I needed didn't work on it unfortunately.
I'm pretty sure those cards are also available in 3.3.7 @full locust
i mean you could store as base64
¯_(ツ)_/¯
or just have it like link to the file location on the server
👋
Sorry for the late reply @unkempt hamlet It makes the navbar I have jumble itself all over the place.
@meager olive well for some reason the outline just won't show in 3.3.7 so it doesn't look like a card. But I've changed around some of the css to make it work now
Yeah, I've added some custom CSS to them aswell. It works properly.
¯_(ツ)_/¯
Are you making a car renting company or just a website for a course or something
Could be both ¯_(ツ)_/¯
@pliant ruin for a course project
Also I need help again. Sorry for asking so much but it's my first web page I'm doing lool
How can I achieve something like this
on this
I've tried using absolute ccs positioning on a div but instead of it 'floating' it just squeezes itself underneath the carousel 😭 . Also I have the 'what is supposed to be floating' div inside the carousel's div.
any help is appreciated.
z-index
did you try putting it in the same div as the img is in?
Quick on the design, although that is a sexy car. If you are doing car rentals maybe rethink your background?
@meager olive It's inside the carousel now but still sqeezing itself above the picture itself. I'm trying some different approaches now that look like they may work so I'll get back to you on that.
@pliant ruin meaning like changing it to a static background?
I didn’t even know it was dynamic..
I mean change it to a more realistic car that would be for rental
If you're using bootstrap I may have a method or two
@meager olive I am 😄
I can help you in a few hrs, I have driving lesson now first.
@pliant ruin oh oh I see okay. I think I have a png like that I can use
Use wix 
Yeah use wix in a programming class
Gotchu
Lol
Jonny, it's just that they might actually look at the content and if they see a JDM car as the background of a rental site...Might get a bit skeptical
@meager olive okay np well I'll keep trying somethings in the meantime
Well I can understand that as it does look...well not rental-ish lol I have somemore cars tho so I can replace it with a corolla
Ohh I see, I see well maybe I can send you the semi finished design when I'm done to stream line it because I'm not the best when it comes to design since I get carried away by nice looking stuff to the point of having each page look completely different 🤦🏽
Haha, yeah sure. I'll be happy to help with that.
Lol gg 🤦🏽
It's me again 👋🏽
I want to add a way to neatly show error messages on my page. To be more specific I have a method that looks for a user and if the user doesn't exist I want to display it in maybe some kind of pop-up window. What would you recommend I do? I've tried using a customer validator but I can't get it to work 😦
It's in C# btw
(you could always go on an actual coding server)
toastr.js, or if you're on bootstrap you could even use modals.
@pearl badger meaning?
@unkempt hamlet how you do that? 😮
@quick glen what toastr.js all about in a nutshell?
Javascript driven toast notifiactions
Bascily, small popup notifiactions that appear in the corners of your screen. Triggered by a javascript command.
meaning it would be more helpful to go on a actuall coding server as there is more people specialized in that programming language and the responce time is quicker @full locust
Ohh I was thinking of IAAS type of thing lol my bad well okay I see
Visual Studio Code been changing their colors again what 
Visual Studio in a nutshell 😂
@quick glen is it something easy to pick up? Like something I can learn in 1 day?
Toastr.js? Its litterly just a simple "library" that you add to your website and run a javascript command to show them. Takes you less than 5 minutes to set it up and get it working
Thanks 😄 This is my first time doing a web development project so sorry for sounding so....'uninformed' 😂
@full locust https://mdbootstrap.com/javascript/modals/
Someone said Toastr.js and now i want toast 😂
@unkempt hamlet Thanks!!! 😄
leak TruckersMP Server Source code
U get banned for asking about any server source codes
Rock you get banned if you ask about TMP Server codes
Nope. Not that I've heard of. But you won't be given anything either
IF you spam us about it, on the other hand, then that's spam.
Maybe this can interest you, the code is blurred ofc but it gives you an idea of how big it is and how huge the work is to maintain it. https://www.youtube.com/watch?v=j8zEGvr6Trs
Are you interested in seeing how we port the mod over to new patches? Here is a short timelapse video that shows 8 hours of developer mwl4 working on porting...
I will never see that much code ever in my life again 😐
¯_(ツ)_/¯
you can die lol 😄
Today Microsoft announced a new feature coming to Visual Studio 2017 and Visual Studio Code that will allow you to collaborate in real-time. When you share a collaborative session, your teammate sees the context of the workspace in their editor. This means your teammate can read the code you shared without having to clone a …
Continue reading “Visual Stu …
that's pretty good
Visual Studio Multiplayer 
Out of the blue, Microsoft jumps into the editor wars with an incredible offering that gives Sublime Text an overwhelming run for its money. In fact, it just might surpass it! So come along, as I demonstrate the ins, the outs, the tips, the techniques. Say hello to your new best friend: Visual Studio Code.
Holy cow, that is all I need
same
Before I used Cloud9 for multi-people development because it was easier, but that had massive limitations
https://stackoverflow.com/questions/2473989/list-of-big-o-for-php-functions/2484455#2484455
This could be a handy reference for some of you :p
I'm trying to make this php so i can make text say i'm either online or offline on mp. but when i go offline i just get a ton of spam https://i.sgtbreadstick.tk/p4oZEtYI.png
it only shows "SgtBreadStick Is Online" once when i'm online but says "SgtBreadStick Is Offline" millions of times when i go offline
It's confusing
i tried doing workarounds but it didn't work :/
<html>
<body>
<?php
$status = json_decode(file_get_contents("https://tracker.ets2map.com/v2/fullmap"), true);
?>
<?php
foreach($status['Trucks'] as $stat){
if($stat['name'] == 'SgtBreadStick'){
$online = '1';
} else {
$online = '0';
}
if($online == '1'){
$doko = '<p>SgtBreadStick Is Online</p>';
} elseif($online == '0'){
$doko = '<p>SgtBreadStick Is Offline</p>';
}
echo '
'. $doko .'
';
}
?>
</body>
</html>
that's what i got for code
i would make it so it makes an image saying if i'm online/offline but i'm just trying to get it to work first lol
It's because you print inside the loop
Move the if($online) and the echo out of the foreach loop
ok
In addition, the map api v2 (which you use) uses the TMP as an index, so you don't have to loop.
And you should go by id instead of name, so you won't need to update the script when oyu change your name
ohh ok, thanks for the help 😄
Hey o/
What do i do in SSH to make the new window thing come up so i can run a script then close the window without killing the script?
screen or tmux
You can open another terminal, or tmux
ye
tmux is neat
you can do it the complicated way and disown the process from your current session
probably needs root, I can't remember
Ok i got tmux
but...
i cant run java it wont work in it
tbh i think ive broken it
nvm fixed it forgot to add - to jar
Hey guys I have this project for my security class and it would be great if you could point me to some reasources that could help me achieve this. (Java or Python)
bit of a wierd task
Erm
you'll probably want to double check that it's legal for you to write that in the first place
LOL cloudflare tunneling broke my https ssl so i turned tunneling off and on again and it fixed it!
lmao
@cinder spear well I mean a school wouldn't ask you to do something illegal...right?
But I can understand the concerns as I am but a stranger online lool
One thing is for certain, this isn't the place to talk about how to make RATs
my knowledge on some big data stuff saved my bacon
I would have scored better if I took a bit more time to think :p
I would've scored better if I googled 😛
I guess you knew your pokemons? 😛
Took it again, 83% :p
Based off of actually taking the time to think of what I know of big data systems and what very little I know about pokemons :p
Combinaton of both, however I didnt acctually take any time to think about the diffrent options. Just winged it
The ones I knew for certain though were quite obvious
Yeah. I would have been disappointed in myself if I picked the wrong one for Atlassian x3
Atlassian? Isnt that one of the new pokemons? 
Next up, you fork their fork of your fork.
They haven't made any changes to it
Probably because it's perfect? :3
hardly
my fork is because the old repo owner/package owner is awol and there was patches I needed to my personal discord bot
BotCattir? :p
lol
it's a fairly stealthy self bot actually: https://static.thorerik.com/s/2017/11/21/135637.png
Ah, yeah. I had forgotten you have that :p
I need help
lol
my fonts wont load on pcs that do not have the correct fonts downloaded (pragmatica)
@font-face {
font-family: pragmatica;
src: url('../fonts/pragmatica.ttf');
font-family: pragmaticaBlack;
src: url('../fonts/pragmaticablack.ttf');
font-family: pragmaticaLight;
src: url('../fonts/pragmaticalight.ttf');
}
.fontpg-Reg {
font-family: "pragmatica" !important
}
.fontpg-Black {
font-family: "pragmaticaBlack" !important
}
.fontpg-Light {
font-family: "pragmaticaLight" !important
}
thats the code Im using
this is my fonts folder
you must provide a web resolveable address to the font
typically you'd provide a https://… address to it from a CDN
yes, like that
Ah but how do I upload my files (what would you recommend) since these are not on google docs
You can't, mind you that you should generally avoid redistributing fonts you don't have a redistribution license to as well
which is why you generally should avoid using fonts that aren't included in the base OSes or available freely online via CDNs
otherwise you run into a minefield of legalities
I wonder if I can port my bot to use Rich presence instead 
Don't see why not?
5 second research: can't set the album art though 😦
I don't like pokemon 😛
same
I find pokemon interesting, it was released when I was the age of my niece, and she is as into it as I was back then
niceee
@amber oasis understood. Onto another topic do you have an examples of a search function for a website that is responsive? Meaning the type that autofills while you type.
Or anyone else as a matter of fact
Ye
Well my ram just died completely and i had to replace it
Luckily i have spare gaming ram
nooooooo
2 matching sticks of 4gb
So i still got 8gb of ram but it’s faster 😛
DAMMIT! My desktop icons reset
-____--
lel get rekt
example of how not to type set your website: https://www.stevefenton.co.uk/2013/04/obtaining-a-class-name-at-runtime-in-typescript/
A common question that crops up from time to time on TypeScript forums is how to check the type of a class at runtime using TypeScript. This can be done, although a little differently to other languages. If you have an instance of a class, you can use the name of the constructor function to …
oh my... errm
I have just seen a fully-grown man lick a pokemon game....
aaand that's enough internet for all of us today...
yup
🙀
no linux support though
aswell as macos
feels more sorry for MacOS users
sorry not sorry
MacOS is in testing
i rly want a mac cos i can do things better xD
like what?
Everything is better when u have a mac
😂
"I can do things better" usually indication that you don't have the fundamental skills you should have 
the OS is just a platform for running my toolset, as long as the platform runs my toolset, I can use said OS
Hence why I have all 3 major OSes, and use them interchangably
5 hours later
Linux support was easy to add to that extention 
You forgot to change the class description in DiscordRegisterLinux.js though 😉
meh, who reads comments anyways 😛
This code is sefl-documenting
I believe the register stuff is useless regardless of platform, as I think that is for the join buttons to function, which you need to talk to discord about anyways
that said, would be fun for that to work with VScode 😛
best issue though: https://github.com/maxerbox/vscode-discord/issues/2
How do i exit tmux without it dying?
nate kept killing my bot cos he closed it and killed it 😂
Ye lol
tbh it was funny
that it just dies as soon as you move it to the VPS
I'm surprised you got it to work properly again Nate 
Use pm2 for bots 
Funny plugin for VS Code :p https://i.imgur.com/e48MA3g.png

BetterDiscord is not allowed by Discord, but otherwise it's beautiful 
Cloudflare pls... https://i.sgtbreadstick.tk/3s8j5nvb.png
When TMP was connecting the servers to the game, was there a tutorial on how to connect a MP server to prism3d game?
I don't think so
they just knew how?
They figured it out yeah
They did a bit more than just connect them, they had to reverse engineer the game to be able to create the proper "adapters" to be able to connect it all up to a server
And them being the first ones to do it, there was no tutorial
They made the tutorial
there is a tutorial somewhere? or no?
You can find books about hacking and injecting code into games, but I doubt about making MP mods for random games
Since exactly what you need to find and and where you need to inject code would vary from game to game
3 am coding is almost as good as the balmer peak
That's the same thing my programming tutor said. Back then I thought he was just loosing it from the stress 😂


