« first day (3751 days earlier)      last day (1419 days later) » 

15:16
@JBis So what exactly is Nginx?
I went ahead and installed it on my linux vm
alonside NPM and Nodejs
and git
Im still looking for a lightweight DB I can use thats compatible with node
user14692552
$.ajax({
  url: fullUrl,
  type: "GET",
user14692552
Uncaught SyntaxError: Unexpected token '.'
@MisterSirCode it is a webserver
user14692552
Its telling me that the unexpected token is in this line???
user14692552
$.ajax({
15:20
What is the code before it?
whats your full code?
user14692552
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mustache.js/4.1.0/mustache.min.js"></script>

<script id="template.mustache" type="text/template">
<div>
  {{#d}} {{#results}}
  <div>
    <title style="text-decoration: underline"> {{Team}} </title>
    <p>Offensive Report</p>
    <ul>
      <li>{{OffensiveReport}}</li>
    </ul>
    <p>Defensive Report</p>
    <ul>
      <li>{{DefensiveReport}}</li>
    </ul>
,SpecialTeamsReport", -> ,SpecialTeamsReport";
user14692552
ooh forgot dataType in my AJAX aswell
user14692552
not sure if that matters though
user14692552
15:21
Wow @VLAZ ... I don't know how I overlooked that
lol
you are using fetch and $.ajax
@codingdreaming use an IDE
Although, if you have a newline in that fullUrl that should also be invalid
user14692552
You can use fetch with ajax?
you have no reason to use jquery
Both do the same thing. Usually there is no reason to use both at the same time
15:23
fetch is much better anyway
const json = await fetch('url').then(resp => resp.json());
user14692552
Get rid of AJAX completely?
user14692552
And call that constant before my fetch?
@JBis So how efficient / useful / "good" is it compared to other applications / servers
are there features unique to it?
anything interesting?
just curious
@codingdreaming get rid of jquery completely
@MisterSirCode the alternative would be apache. It's much easier to use than apache and more performant iirc (but performance doesn't matter for your site). You could use Node directly but thats a pain in the ass and you open yourself to more security issues.
user14692552
Ok.. have to do some research. Only ever really used jQuery & AJAX to pull from SharePoint. Ill be back... hopefully not though
15:29
Nginx job is to take a request, send it to the proper handler, get a response, and send that response
node's job is to process and request and return a response
@MisterSirCode Well, "nginx" is pronounced "engine X". I guess that's interesting.
yeah....i only recently found that out when i said "niginx" and people looked at me weird
@JBis Thanks, Ill definetly use this then. Appreciate it
user14692552
@JBis best IDE for JS?
> ell, "nginx" is pronounced "engine X". I guess that's interesting.
15:30
@codingdreaming WEBSTORM!
didnt know. very interesting ;3
user14692552
GRacias
@codingdreaming Webstorm or Visual Studio Code with extensions
I prefer visual studio code... cuz... free
user14692552
Oh its also made by JetBrains
Protip: makes you sound like an evil genius. "I work on engine X".
user14692552
15:31
Oh not free though.
Yeah webstorm and jetbrain apps are fancy asf, but expensive asf
I really want "rider" and "webstorm" but both are too expensive for me
user14692552
I got IntelliJ for free?
IntelliJ is free..
but their specialized IDEs are not
user14692552
jetbrain apps are fancy asf, but expensive asf
user14692552
Oh
user14692552
15:32
gotcha
@MisterSirCode they aren't that bad
Rider is like for those expaaaansive unity indie game devs who have too much money
@MisterSirCode you can get them for free
I heard something like that, but Ive also heard that the free versions are crappy
no
you yourself can get the full versions pro version for free
@codingdreaming are you a student?
15:33
Oh here we go with the "educational license".... ive never once gotten an accepted one
@MisterSirCode do you have a school email?
user14692552
@JBis recent graduate
@codingdreaming access to educational email?
user14692552
but still have access to my alabama student email
user14692552
15:34
The IT department said they were going to shut it down like 2 weeks post graduation and I still have access haha
Honestly going so far for educational licenses, Id rather go be a pirate and find "free-er" versions then struggle trying to obtain student licenses
Student licenses only work when my school's county organization requests them
it takes like 5 min, your school doesn't need to get involved
user14692552
Can't pirate on work computer @MisterSirCode
user14692552
That would be big nono
Have fun...I found pirating stuff like IDEs a huge hassle. Nobody bothers cracking them
15:35
@codingdreaming Oh I know... and I dont really do it that often... every once in a while... sacrifices must be made
Considering Ive spent over 500 dollars on apps, games, IDEs, editors, viewers, and other applications over the years
I think ive spent my pay
and its not worth it
especially with all the crappy "subscriptions" and things we have these days
user14692552
Personal computer
user14692552
Everything I get is through torrents
@codingdreaming your email is probably already there but you can check. jetbrains.com/shop/eform/students. If not, you need to make a PR here github.com/JetBrains/swot.
Careful... I once torrented "Interstellar" because I couldnt find the DVD and I wanted to watch the movie again...

And a day later, my ISP called me and warned me.

Careful....
user14692552
really?
15:37
@MisterSirCode your school is probably not listed. Go to the repo and make a PR.
See, with torrenting, when you download from a swarm, Payed "Stalkers" will watch IP addresses
then sell them to companies
companies warn ISPs
earn money, and you get screwed
thats what happened to me
I didnt believe it could happen... well... until it happened.
Torrenting is just... not safe... unless you have some expensive VPN that supports it
You shouldn't generally be in trouble with strike one when that happens. However, at strike two or three things might start getting serious.
@VLAZ Yeah.. Im currently on strike 1
user14692552
May get yourself put on a list
ISP called, asked politely if I could delete the movie and the torrent app
I followed as so
15:39
for reference here's the PR i made. Didn't get school involved and it was done within 3 days. github.com/JetBrains/swot/pull/5142
nothing happened
There used to be seed boxes you could hire. Few bucks a month and you have some machine somewhere which can download and seed torrents for you. You get to connect to it and download via HTTP.
user14692552
What do you need a pull request for?
user14692552
or am I a dunce and PR = public/private repo
Dunno if they are still much of a sthing.
15:40
@VLAZ Seed boxes still exist... though most people just use them for archiving
And VPNs are popular as hell
Anyhow... surfshark is the cheapest that supports torrenting, so if youre serious
use it
@MisterSirCode theres legit no reason to use torrents for movies
My ISP doesn't care. And most of what I torrent is linux distros that I just re-seed.
@codingdreaming you don't need a PR. Your email is probably already added. If you want jetbrains webstorm for free sign up here jetbrains.com/shop/eform/students
Although, the stupid RSS feed for it broke, so I probably have to change my torrent client.
Well, I tend to find plenty of those non-existant english dubbed japanese anime movies and studio ghibli movies in HD there

Plus, no ads, and, as long as your careful, no malware
Torrenting is very good for finding stuff that doesnt exist anymore... or thats extremely difficult to find
Maybe Im just a torrenting addict
who knows
15:46
¯\_(ツ)_/¯
anyhow, back to my vm
How do people, use back pressure in nodejs streams?
Back pressure?
user14692552
Heard chiropractor.js is good for that
2
Wait... I just realized... ive been struggling to find a solid location to host my discord.js bot for ages... and Ive just been storing it on a raspberry pi for months
I can run it on the linux vm on google cloud
forever
no more turning off when my father turns off the internet 0 - 0
rofl
15:49
i need to learn node.js for a test
how would you guys do this in a short period?
@Trajan Hire someone to take the test for you because that isn't how programming works.
i know vanilla js
Lol.... You know nothing of Node.js and you have a test for it? dude thats dangerous.
However, since its just javascript, its relatively simple to learn how to use.
However, I dont know any good locations to learn it quickly... thats just research youll have to do on your own.

It isnt like a history test
you cant just look up answers before the test
@Trajan if you know vanilla then there's not much to node
what do you need to learn?
like modules etc?
Im pretty sure he just needs to understand the basics...
Globals... Packages... Importing and using Packages
15:51
so ill just go trhough a few prominent tutorials and then play around with it a bit
Just take some node.js beginner tutorials on youtube
ok cool, was just looking at how you guys would approach this
i dont think ill past this test but i want to make a good learning process
user14692552
I was about to say youtube
the only thing about youtube is that the learning is a bit slow using videos
@Trajan I mean if I was a complete beginner but I knew JS... id take a hand on approach and copy the Node.JS Example Project (if thats still a thing)
or do something hands on myself
like make a discord.js bot with node.js
@codingdreaming w3schools is a terrible resource. We suggest using MDN. Here's an potentially equivalent page: Setting up a Node development environment - Learn web ...
@MisterSirCode cool project
user14692552
w3 is mids but
user14692552
They do provide some practice exercises
Heres my take on it:

W3Schools isnt good for standards, but for absolute DEFAULTS with no programming knowledge, it really takes a baby steps approach to things.

MDN is a great resource which follows standards and language specifications, and its really good for beginner AND expert programmers, however, its not very good for someone who has no knowledge on the subject, itll seem scary and static
15:57
thanks guys
umm... i would guess the task will be to query an api
Id reccomend discord.js or... if you want to go VERY basic... pull out a Request API or something
oh wait.. I think request is Deprecated now
what is a Request API?
its basically a caller that can request and send information
Kinda like vanilla web-javascript's xmlHttpRequest
ok
i reckon that could be the test
usually these tests require pulling an api, doing pagination, and filtering the results
if you want to simplify getting packages... use npm install --save packageName
which saves it to your package.json and package-lock.json
16:01
ok ill go through some basic tutorials on the weekend
Whens your test?
whats a good api out there to try to query?
@codingdreaming do not confused w3 with w3schools they aren't connected
yeah... w3 is the WWW organization
@MisterSirCode no
16:02
@MisterSirCode they said i didnt have to do it my any particular time
or... not?
@JBis it isnt?
I thought W3 was the WorldWideWeb organization
@MisterSirCode mdn is fine for "someone who has no knowledge on the subject". Much better than w3schools.
Rather take longer to learn something the right way
Well they have examples, but Ive met a few people who say the site is just too intimidating and they have a hard time learning
16:04
are they on the right page?
they have a beginner tutorial thats really simple
Who knows...
Ive heard that design can have major mental impacts
but Ive never had any major issues understanding MDN
so I have no idea
user14692552
I didn't confuse them
user14692552
w3schools or w3 which is easier to type for you...

also I linked the website prior to "abbreviating it" I know what I am saying
user14692552
haha
user14692552
I got my JSON objects from GET from SharePoint to create external file in VSC, for some reason the JSON for every object from SharePoint includes a metadata object aswell those can be deleted right?
16:19
well.. I managed to install my discord bot on the virtual machine, however, it has a shit ton of errors
oh wells
time to make a website..
I really wish I had a working desktop, as editing through the terminal is hell
hello
user14692552
Is anyone familiar with JavaScript template libraries?
anyone know why the code in this codesandbox- codesandbox.io/s/epic-moore-autoz-mju0u made to join you into your ZOOM classes doesn't work for your first class?
user14692552
Mustache is being difficult, doing some research on Nunjucks and Handlebars wanted to see if anyone had any suggestions
16:26
@MisterSirCode im not bothered by that
@MisterSirCode faceplam
this isn't supposed to be a dev machine
dev local, push to github, pull to the vm, deploy on vm
Hard to dev on a computer where I can only run .jar files
why
all you need is a browser and text editor and node
Because school IT setups are... well.. less than smart
user14692552
mac?
user14692552
16:29
use bootcamp
Im considering just using repl
user14692552
run windows
since it has git integration and node
However I doubt Ill be able to run nginx on it
so Ill have to do that part separately
@codingdreaming you can (and should) develop on a unix based OS such as macos
then design the server in node.js
16:30
windows sucks for dev
@MisterSirCode you don't need nginx for local
user14692552
Ive always heard the opposite
^~2 this
@JBis Actually Ive been working solely on windows and linux raspbian for years
worked fine for me
user14692552
Ive always heard stray away from Mac use windows or linux
i said unix based so linux or macos
16:31
because MacOS sucks
its proprietary.. good mac's are like 12,000$
and its shitty integration / locks
And its nearly impossible to emulate / use in a VM
alright im not getting into apple debate rn
Could I get some help with this stackoverflow.com/questions/65849093/…
how did you guys learn frontend?
user14692552
Tbh no such thing as a good mac 0.o
like the whole thing is a mess imo
16:32
@Trajan Stealing other people's websites back in 2014
and puttin em on codepen.io
editing them
@MisterSirCode how did that work?
user14692552
@MisterSirCode lmao
I mean.. its 2021, I know multiple languages and I have more experience in frontend web development then any other subject
@Trajan I posted code here and @rlemon trashed it, now i post code here and @rlemon doesn't trash it
@JBis YOU PINGED LEMON
Shame!
Shame on you!
:3
16:33
@MisterSirCode this site looks interesting
What site?
codepen.io never heard of it
@MisterSirCode lol i thought @jbis was the dictator of this chat room lol i bow to superior authority
aaand i said lol too many times and now i sound weird
lol
@JBis is about 15
user14692552
16:35
?
Well, although JBis is experienced, hes about my age... and he makes mistakes aswell.
personally I think the room's god is karelG
It used to be rlemon
before he left :(
ahh
anyone here watch hermitcraft
I miss caprica
@MisterSirCode i just find that i learn js, learn react/angular, learn css/html, but putting it all together is different skill
and ui wtf
Ui is a tad difficult
CSS Flexbox
grids
static flexibility
all sorts of concepts that take time to learn
I still struggle a lot
16:37
anyone know how the AJAX works for online video downloaders like keepv.id or pastedownload.com those things seem really interesting
Ive only made like 1 or 2 semi good websites in my time that actually worked on all devices
user14692552
What would you need AJAX for on that?
@LlamaButt I believe it just sends in the video data as a stream
@Trajan I'm 18 but ok
how does it retreive ot though
16:38
yeah he aint 15 lol
im 11 lol
Im about 2 years behind him
@LlamaButt I'm RO. Same role as a bunch of others here.
user14692552
JBis
so anyone here watch hermitcraft
16:39
I wish I was a RO... though I wouldnt even know where to start looking for that role
ive been chatting in here since probabaly early 2018
even earlier on a previous account
user14692552
I'm assuming that is minecraft related
=yes
a bunch of my favorite youtubers playing together on aminecraft server its really cool u should check it out
tbh my favorite is grian
user14692552
Haven't touched that game in like 6 years haha
oof
i dont play it too much, but i love youtube vids about it
user14692552
const getItems = () => {
  return fetch('sharepoint list url')
    .then(res => res.json())
    .then(posts => console.log(posts))
}
16:41
@LlamaButt my guess is its not implemented on the frontend due to CORS. Probably sent to backend for processing and then frontend is given download link.
ahhhh
@codingdreaming good
user14692552
JBis this is why I am weary of fetch, I am unsure how to really fetch anything... I put in the list url and nothing happens nor is anything posted in console.
*frantically googles CORS, frontend, backend and link
lol
user14692552
do I need to make a
user14692552
16:42
var fullUrl = _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getbytitle('WeeklyReport1')/items?$select=Team,WeekOf,OffensiveReport,DefensiveReport,SpecialTeamsReport";
|| mdn CORS
wow
ok im impressed
user14692552
and call fullUrl in the return fetch? since that url has selectors in it?
@LlamaButt if you aren't familiar, CORS is very useful to know about
|| mdn using fetch
does it have uses outside of retreiving data from other domains
@codingdreaming ^^
@LlamaButt James? yeah he can do a bunch of stuff
|| are you planning a robot uprising
@LlamaButt Yes
he denies it
user14692552
16:44
Been reading and watching videos, but can't seem to find anything SharePoint related it seems every URL they call is linked to a premade JSON file
well now he doesnt
|| are you collaborating with my microwave
Invalid command! Did you mean: aye, die, afk? Try help for a list of available commands..‍
user14692552
||kill LlamaButt
This conflicts with the First Law.
|| sandbox
16:45
Please go and play in the Sandbox
what do you guys build for yourselves?
'please go play in the sandbox mommy will be here soom'
lol
If you guys want to test things with james, thats fine but please do it in sandbox
ok im done playing with james
this is the most active this chat has been in like 2 years
16:46
@jbis could I get some help with this- stackoverflow.com/questions/65849093/…
pls?
too much code to look at
create a minimal example and then maybe
user14692552
Are you creating a application to automatically join zooms as yourself so you dont have to attend?
no
it joins me into zoom
function timeNow() {
  var d = new Date(),
    h = (d.getHours() < 10 ? "0" : "") + d.getHours(),
    m = (d.getMinutes() < 10 ? "0" : "") + d.getMinutes();

  return h + ":" + m;
}
function Aday() {
  tst = localStorage.getItem("a1");
  if (tst == null) {
    alert(
      "Hello, it appears that there was a problem retreiving your stored data, meaning either that you have cleared your browsing data or started using a new device or browser to access our service, or this is your first time. Either way, please enter your ZOOM links into their respective boxes below."
this is the code to check if its time to join
thats not minimal
16:49
lol
this is what happens when people follow w3schools tutorials
lol
if it helps thats actually not how i learned the basics but its how i learned a lot of keywords
> if (counter === true) {
user14692552
Is something wrong with main site?
16:53
@JBis Ive never use a static check on a boolean before... is there a specific reason
user14692552
Jk
user14692552
just behind
Like normally wouldnt just a == work for a boolean?
!!> 0 == false
@BenFortune true Logged: `` Took: 1ms
17:00
ok, made it more minimal
as minimal as I could
function timeNow() {
  var d = new Date(),
    h = (d.getHours() < 10 ? "0" : "") + d.getHours(),
    m = (d.getMinutes() < 10 ? "0" : "") + d.getMinutes();

  return h + ":" + m;
}
function Aday() {
  tst = localStorage.getItem("a1");
  if (tst == null) {
    alert(
      "Hello, it appears that there was a problem retreiving your stored data, meaning either that you have cleared your browsing data or started using a new device or browser to access our service, or this is your first time. Either way, please enter your ZOOM links into their respective boxes below."
dang, a 256gb server is cheap on google cloud
I mean like its not THAT cheap
but its not that bad either
17:34
Fixed it
return fetch('fullUrl')
need to be
return fetch(fullUrl)
and needed to call getItems(); after my fetch
So wow @JBis you werent kidding, fetch is 100000x better than jQuery. More compact
@bigchungus Everything is better than JQuery
ANYTHING is better than jquery..
could I get some help with this- stackoverflow.com/questions/65849093/…
pls?
@LlamaButt you've been warned before
ok geez
sry
user14692552
17:45
Don't be sorry, just don't do it again
user14692552
it = spam posts
user14692552
var fullUrl = _spPageContextInfo.webAbsoluteUrl +

const getItems = () => {
  return fetch(fullUrl)
    .then(response => response.json())
    .then(data => console.log(data))
}
getItems();
user14692552
Trying to figure out why this is returning XML
user14692552
No one answer me, let me solve this or atleast attempt to give me 5 min

« first day (3751 days earlier)      last day (1419 days later) »