#ot1-perplexing-regexing
1 messages ยท Page 437 of 1
I just mean its kind of mindblowing to think about what things might not be obvious without the Internet. TBH, without the Internet, I would find it completely unbelievable that many of the things people are into are possible
and voat is a cesspit
I went there one time and backed out quickly.
But what I saw was more political than other.
eh, it gets pretty disturbing to be honest imo.
It might not be as visually disturbing as some things but hearing people spew hatred and conspiracy theories kind of makes me sick.
And in those corners of the net they are really open to being disgusting about it
These are people who go to these other alt platforms because they are so venomous they get banned
So yeah, its not pleasant to go there is all im saying
To be honest youd probably fit in on Mastodon if you cared enough to @sand goblet . Anyone with the will to correct someone for using a slur has a place there. haha.
Im not thinking that you're wrong either.
What I get out of it... is when I feel the negative feelings I sometimes feel about using other social media, its a place where a small close knit group of people who host their own things exist and I happen to know them. Honestly, if you WERE interested in joining, you'd struggle to find a server worth joining open for sign ups.
I just happen to be on a good one but its not exactly open to the public
mastodon is like mos eisly
i forget how nice this server can be sometimes
it's big but it's not just 1000 people screaming their question into the void
I think the questions shouted at the void are just well directed.
The design architecture of the server is pretty brilliant
gdude, maybe it's to allow groups promoting proper teen sex education and relationships need that clause?
The design architecture of the server is pretty brilliant
@scenic blaze you can get your question answered, and even if you don't know where to, people will show you how to ask your question, and get it answered
Joe, lemon, ves, and the rest of the staff have done a great job on this server
Joe Lemon kinda sounds like a beetles parody
but yeah the question channels are really incredible, really cuts down on the crosstalk
but yeah the question channels are really incredible, really cuts down on the crosstalk
@empty prism python bot is amazingly well written
Its easily the best server on Discord. I think you guys could probably do a TED talk about how to make a Discord not suck.
Its possible I have not tried out enough Discords to say that, but the ones I have tried out make me feel that way.
What is binod?
i'm in tuition
ye
math?
11 methods?
everything that i'm doing
u know why?
haha it exists?
ye
no
they are trash af
well
if they were actually good at python, they would have worked for good company
and earn a lot more
maths had the chance to grow and develop with people from milleniums ago studying it
where python is like a few decades old(?)
unless uni student of course
hmm yea
ye
idk
what do you mean
i mean look at ms hatch
she was teaching python
"Your logic seems reasonable and I don't know what's wrong with it"
bruh
ye
and i doubt if ms or mr munro can teach us more advance topic in VB we are doing in python
๐ฌ
thats rough
python and other programming languages are kinda cool though
its like learning an actual language but for computers
its rad
ye
yes
i should have learned java or something first
it's hard to learn other language once u learn python
rly?
the syntax is way too easy
haha thats good then
lol tru
ye i can type faster
btw how many lines does your light up code has?
lemme check
probably very large considerin i don't give a second thought about length
my code is super messy
i gave up in cleaning it up i don't have time
i need to move on
lol
like empty line?
i think this my second largest
maybe the third then
hmm sure
maybe i should delete that
the first one it the big 2 bot
oh so that second largest one you completed
fair fair
wasn't big 2 something you did on grok?
and the second one is my custom statistic math module
that was cool
ye
ha ok
i had to force myself to stop doing week 3 prob 2
i need a break honestly
classes are a tough thing to wrap your head around
especially without prior experience
ye
you done classes?
have you guys ever had a moment where you type in python general thinking it is an offtopic channel?
I thought we were conversing about html and english in an offtopic
just realised it was python general
happens to me quite often actually
yep, that was my fault
wut is fisk and why i shouldt read during drinkig coffe
Yeah, don't read @grim pelican while drinking coffee, that's a bad idea
:)
@sand goblet Correction on my previous correction. CrossCode DOES use Haxe. At least for the PS4 port. Looked at the licensing info again and it's just right there at the top.
Oh interesting, okay
Remember our talk yesterday...
A little bit
Good airflow is one of the best way to stop it spreading - that corridor looks the opposite of good airflow
The sad thing is that I dont think anyone here is going to learn.
catsotrific faliure
People here live in bubble where their political beliefs are religious almost.
And there is just nothing you can do about it
is sublime text or vsc better
It's a matter of preference, and even then one might be better for a certain task than another
I use vsc for web stuff these days.
Yeah.
I should correct that
for frontend stuff
I need to look up the hotkeys in vsc for jumping to all the locations of a highlighted name. Im trying to interpret this Vue component I downloaded from github and its just really a mess. Its one massive component.
But its cool so Imma learn it
@sand goblet how feasible is it to learn kotlin without IDEA
You totally can
there are language servers for vsc and stuff
but on the other hand, kotlin and IDEA are designed to go together
you won't find a better combo
they're even created by the same company
yeah my issue is i need something that isn't resource heavy
i'll try IDEA but it'll probably be too heavy
sublime text or notepad
I mean you'll be running a gradle daemon and the java/kotlin compilers too
You can lighten it up a bit by turning off the code inspector
jvm work in general isn't light
VS Code is neat but I've been having to compile plugins myself lately
I like Sublime in general anyway
i have vsc but i don't want to add extra complexity if i'm trying to pick up a new language
Do you remember which plugins?
it'd be like trying to run netbeans for python i guess?
The gradle plugin is one of them
I also had to roll the python plugin back a few versions
do you think a usb linux boot could handle kotlin dev?
No
damn
You need the RAM
I just don't use VSCode for things where I have a better IDE, like PyCharm. Right now all Im running is Vetur.
as far as plugins
I'm using vscode for two reasons right now
- I can use it on my chromebook via code-server
- The RST plugin in IDEA is incredibly slow
like I legit get typing lag with it
that's not very encouraging
i use sublime text bacause my computer cant handle vsc but im lving it
looks like kotlin dev is out of the window for me then
What're you running?
usb linux on a low spec laptop
ubuntu 20.04
ubuntu or manjaro won't make a difference if i need the ram
I used to live everyday thinking about what my computer could and couldnt do. Pretty much my entire life. This is if the first one Ive ever owned where I just completely stopped thinking about it.
I do have a laptop where I have to think about it still. But I mainly just use vim on that
I mean running off a USB is your first mistake
that's already naturally slow, and it has to load the entire thing into RAM to get any kind of speed
it's literally my only option right now
yeah. I wouldnt do that unless I was buying sacks of poop on the dark web or something.
that was a joke btw
That sucks. I have been in situations where I had to use very old computers that couldnt do anything so I remember how that feels.
I just kind of quit doing a lot of things I did formerly for a while...
i can't do anything with javascript at the moment ๐
You get spoiled with a nice computer very quickly...
Thank god for old.reddit.com I guess.
coronavirus has really made this a hard year
Indeed.
Yeah
What is the origin of the word terminal in computing? Typically terminus reffers to a boundary.
I'm guessing its the end point connecting to a user?
because if you use one you die
lol
From that day on, you will be a social outcast. You will walk alone till your dying day.
Ive adapted my browser workflow from scrolling throuygh many tabs in multiple firefox instances to just typing the tab I want in my url bar, and moving there instantly. It works no matter what virtual desktop the window is in. Its so good. I dont know how long I could have been doing this but its changed my life.
Unh that's smart
it has a whole grammar component yup
i was making a method like this: java public void theMethod(FakeClassStatus... // I got here and it auto-predicted statuses
yup yup
it's real good
it's particularly good with it in java
but it's great at it in kotlin too
i like idea for these things
makes creating my own subpar (replacement for) forge registry really nice
oh and im sitting here working on a 1.12 mod because
the heck are you replacing the vanilla registry for
no im just making a custom registry for a mod that im rewriting
okay but why
good question
who hurt you, my son
have you been using OnlyIn?
because never use @OnlyIn
i have not heard of @OnlyIn except maybe once or twice browsing forgecord or something
I like the way your KDocs are rendered
yeah IDEA does that
I'd rather reinvent the wheel than make an event-driven registry as the only thing setup
when not in rendered form:
My IJ isn't doing that 
after idea makes it look nice
i think you need to turn on something like "display rendered javadoc" or something
Hmm okay, I'll try that thanks
What happened to fisk anyway? I haven't seen him for a long time on this server
He was always a great helper
Lol
Question about HTML, JS and XSS: How to make that HTML <input type="hidden" name=... id=... value="{$templatevar}"> will not execute value JS when this is passed there (this variable is passed as query parameter)?
You could possibly wrap it in ' characters so the value, if seen as JS, would be interpreted as a standalone string (or " if you want " instead)
i don't know if that's what you mean but it's an idea
Huh, my university is requiring a negative covid test before being allowed back on campus. This should be interesting
That's wise of them at least
Yeah, and they're at least offering free covid tests because they're now mandating this
In theory at least
Sure sure
I think my only concern would be getting it while at the testing center
Then you just get a conga-line of infection
Ha, yeah. Get the test, returns negative, you actually get the virus shortly after the test
Yeah. Huh, they're also requiring a daily online self screening form every day that you're going to be on campus
With an accompanying USB rectal probe to measure your temp.
My uni is completely remote next semester. Kinda sucks because I'm tied into renting a place here for at least 6months
I could instead live at/near my mum's house and get free food
and also live in a less shit place
I just dislike the town/city my uni is in - it's boring shitty suburbia
Why can't you do that even if you're remote?
I can do that - i'm just annoyed that I already agreed/signed to rent a place near my university
Oh rip
@lone verge my team dropped out unfortunately ๐
(can't talk in #728010915580084336 because of that)
who codes like this
what was your idea going to be, originally
@lone verge A simple RPG with a React frontend as a visualization that is connected to the backend via an IRC bot that is running on an IRC server
I don't think anyone codes like that, which I have a feeling that that might be part of the joke
idk maybe that's just me
yeah it is lol
What are opinions about lodash? Is this a large library that slows things down excessively for the sake of short cuts or is it pretty good? I noticed that this girl is using it to shuffle an array which seems weird.
ah I actually like how its files are separated out so I can read them anyway and see how they are doing this stuff
I dont think I have ever seen anything as unreadable as Vue apps. Its a pretty powerful way to make an app, and putting it together isnt that hard as you move through it, but once its there... its a mess.
Its hard for me to follow reading it. But... I thought the same thing when I learned OOP, because it involves jumping around to every place that a name is mentioned. Im sure I will get used to it. I like it.
I think what it is, is the order of execution isn't clear, and Im not used to that. Thats why you have to rely on these browser dev tools so much when doing this.
but yeah, its just that im new to it
#ot1-perplexing-regexing
ctrl + d ๐คฃ
huh
terminate the terminal
Having an enum where there are two values that = 0 is stupid, right?
It doesn't work?
I mean, I guess they both evaluate to 0 in C, but not in Python the way this is written
typedef enum
{
X_Channel_First = 0,
X_Channel_Y = X_Channel_First,
X_Channel_Z,
Like, am I missing something or is this stupid
if you want them to have the same purpose, that was stupid
if you want them to have different purposes, that was kind of a thing
also, they can be useful for storing cache for one of the vars
I had some use cases for several enum entries containing the same value, but that was in C# where enums are class-ish things
Enum.TryParse was awfully convenient for making console menus
So the way I connect to Citrix for work is just fucked. I ring the help desk, and he takes me through the most nonsense support steps gonig - try a different browser, clear your history etc. I do just in case, and of course it doesn't work hoping at the end of it he'd escalate things. Nope. He just pretty much told me to fuck off
someone is fucking with me today. I try and look at the health dashboards of AWS and GCP to see if they're having issues - and neither will bloody load
yesterday somewhere, some people (including me) were talking about using applications with online code editors and things, well apparently https://python.org/shell also accepts it
oh god
well upon trying apt search tldr i was told the disk quota was exceeded
pythonanywhere has some heavy limitations on that and your permissions, yeah
It has a bunch of stuff installed because you are also allowed to just use bash directly via their website or an ssh connection
I remember tinkering around with it when my webserver kept fucking up
the programiz shell isn't nice but it works
trinket.io seems to be better at preventing us from doing things
ok i was wrong
their other editor is not as good
problem: for some reason some things aren't working, but at least i can bash
tutorialspoint.com has a partial way of blocking it, but i bet i can get through it maybe
why not just use repl.it for online coding? It seems miles ahead of any other platform
and why would i do that when i already messed with it
I dunno - not really sure what your goal is
eval('os.sys' + 'tem("bash")'?
syntax error
eval('os.sys' + 'tem("bash")')?
that's basically what im trying but i don't think i can just run code from an eval
you could try os.execlp('bash', 'bash')
import os
x = 'syst' + 'em'
os.__dict__[x]
``` Seems to work
or do the syscall through ctypes
ok so wookie's idea does show that it can find the function, it just seems to do nothing when i run it (probably because it's like w3schools where you can't touch it while it's running)
sure but i don't know how to do things
but why would i do something like that
i was trying to see if i could escape to bash and interact with it live but that works
You have to put all your commands in the stdin tab beforehand, but you can interact with bash
or i could just look at a 274-page document containing hundreds of commands and examples of how to use them
ok
ok new plan: discord bot that responds to !tldr
using discord.py because what else should i use
@rancid forge https://github.com/yourWaifu/sleepy-discord
A bot that responds to !tldr should be easy
that's what im working on
@rancid forge you asked what else you should use ๐คฃ
i mean
just cut the ! prefix, copy the line into a system call and redirect the output into a file that you then read and send a response from
That would be the simplest, albeit a hacky, solution
well i think it'd be better to just pull the db on occasion
wdym
What will the bot say
it will respond with (hopefully) an embed of the tldr manpage
Ah
that probably will be useful
When do these channels' names change?
I assume midnight UTC
correct!
FarmArt - 1 point
hell ye
Generally the approach is that if it doesn't say you can't, then you can. But I don't know how hazy it actually is.
Can you link it?
Btw modmail would probably be a better place for this conversation
What are you trying to do on the service?
Seems to be fair game, if the forums are anything to go by
And you're right, the rules aren't overly explicit on the matter. My gut wants to say you could contact the Showdown folks to see if there's any API or what have you that you can tap into or if there's specific things they do or don't want you to do
Guys what is the difference between an unsigned 32 bit number and a 32 bit number?
Integer* not number
Oh
So it's only positive right?
I see
ty
Guys could I download rust libraries for offline use?
Instead of putting it into the dependencies part?
Nonono
I mean could I just download one for it to be ready?
Like maybe I want to use it in 10 projects
But I don't wanna spend my internet on all of them
Download the crate once , and use it everywhere I need offline
Yep, same kind of deal as pip if I'm remembering correctly
So how could I?
Like download the .rs file
And put it in the same directory of my file?
I would like to say "Fuck Windows"
So do I
Windows decided right when I started up an important work call to be the perfect time to download and install windows updates in the background
Ooooof
Always fun
It's getting smarter
Meeting took twice as long as it needed to and I was killing processes left and right trying to stop it
lol
"Oh, he's opening up his browser again, time to start downloading!"
@plucky ridge So how could I?
Like download the .rs file
And put it in the same directory of my file?
lol
Because my interests have been focused elsewhere
Although my experience on it is like 3 hours , but I'm starting to love it
Oh
I see
Been playing more with JavaScript and the like
It can do a lot more than I give it credit for
And other things that rhyme
I like JS too tho . But Rust as a low level is so cool
The syntax is like a high-level language . But it's used as low-level
I see
I guess I could do use library::method; where library.rs is in the same directory as my main.rs
Since all crates have a repo
I could download the source easily
Yeah I really didn't get as far as I thought when I last played with it, so all that's a bit over my head
Or I could use the path kwarg
I'm mostly seeing stuff for Cargo Workspaces
Like :
[dependencies]
library = {path = "myLib", version = "1.1"}
But I think like Lukas said, when you initially snag them, they're stored and cached on your system, so you wouldn't necessarily be redownloading them every time
But I'd like to have them on my system , for when I go somewhere that I don't have internet access
Or maybe install them on a computer without internet
That's what I'm saying
They're stored on your computer (cached) when you get them from cargo
ik
But
Maybe e.g I want to install them on our school computers which don't have internet access
Then I
I'd have to download them
Ah, that makes more sense
Then yeah, I guess you'd just have the .rs files on a thumbdrive or something
kk thanks for help tho
Yeppers
Okay, I can kind of see that
And a little bit of Python . Like the package managing stuff
But the general layout is fairly common
Oh thanks
The whole function function_name() { } is pretty standard
It feels like js to me anyways
That's fair
Yeah
I try to section of languages into their own part of my brain
I feel like mutability and objects would be a big difference
Otherwise I get a bad habit of mixing and matching when I really REALLY shouldn't
Well , mutability isn't even available to C or C++ even
I mean like setting the variable to be mutable
What?
I know that variables in C/C++ are mutable and can change . But you can't define them to be immutable
as far as I know
you have const
C const (in some places) is the same as rusts let
But what about rust's const?
Oh huh, forgot that Rust const's can't be inferred
that is like C++ constexpr it seems
Oh lemme see . Thanks for all this information tho @rough sapphire
Well , rust is C with more low-level capabilities
uhhhhhhhhhh
imo . I have 3 hours experience so don't expect much from me lol
They're both incredibly powerful for different reasons
But I can't think of anything that Rust can do that C can't
Correct
It will force you to take care of branching paths
As well as prevent you from accessing parts of memory you shouldn't
So it could have more capabilities
it is really hard to make a language which can do something other langauges cannot
true
C and ASM are some of them because it currently is leading in really small binary sizes. Rust macros are space inefficient
But the ways languages do thing are different anyways
but IIRC there is a solution in the works
To a point, yeah
What is ASM? haven't heard of it ngl
Assembly
Essentially the step just above binary/machine code
I see
And in fairness to Rust and its macros, it's still a relatively young language, all things considered
It'll be interesting to see how they work around that
Right
ye, it is not unsolvable by any means, the language is in active development
It's like 5 years since it came out?
That sounds about right, can't remember off hand. Alright, enough of me being lazy, time to take care of the office shred.
LISP is also really old
lisp 62 yo
@rough sapphire fortran 63
wow
I think fortran is pretty much the oldest lang still in active use
python is in the 90s IIRC
Oh 1980
40 y.o
Actually 30
Not 40
Still , I never enjoyed learning a language as I am with rust
honestly, I really do not like the ; at end of lines
I do . I mean , it's about preference anyways
Like only Python and lua and Maybe JS don't have ;
They do tho , but like still no-one uses it
I said , maybe js
I like it actually
It makes it more like a "programming language"
XD
Well , I always hated that I couldn't download C++ libraries . Tho I love C++ . And Rust is like the good features of C++ + some JS
I was not able to use C++ libraries properly
And Rust is like adding a line to your file
Like when I first built from source , I was feeling like hackerman
I was so excited
Oh . idc about peoples bad opinions on me tho
Either them being toxic or anything
Oh . I'd rather Django
But I'll try it
Oh
So It's frontend?!?
wow
It's more like JavaScript "replacement" on the frontend (client)
@rough sapphire js is annoying, so if there was a replacement it would be awesome
i see
@round zenith Undeniably true
wow
I'll definitely try it
wow
Is Rust a low-level language? lol it can do frontend and backend stuff too
I mean C could too
But like Front-end?
wow Nice
Well , I couldn't install C/C++ libraries anyways
And when I know Rust , I may not even use C/C++ ever again
I see
@rough sapphire Just curious tho , but are you a web dev? Or like what?
Oh
"Currently"?
Oh
Oh...I actually don't enjoy front-end
Nice
Like I know Vue.js , Javascript (ofc) and CSS/HTML but still I don't like it being "open-source" and like everyone being able to access it . Also I don't like the fact that it has to rely on backend for the data part . So I am a back-end dev myself and I like it (at least more than I do like front-end)
What's wrong with open-source?
It's not that bad, honestly
Can just be tedious on more complex stuff, but the basic concept is fairly simple
Like if I was working at a company doing only Back-end , I'd never get bored . But me having to write 100 lines of fricking HTML and CSS is so boring
But there's something to be said about making something look the best it can with a few lines
first of all , I suck at designing
I never said I was good at it either
And even colormind.io couldn't help my design
But at least I could solve problems . And that's why I love back-end
Actually , I like back-end cause like 3 years ago when I learned HTML and CSS , ( I didn't even know JS! ) I was always looking at login pages , staring at the code for hours and not knowing how the hell are they saving data and accounts
Then I got familiar with PHP
The worst language ever made
But I still started to like it
And now I'm using Django and Flask
ORM is life-changing man
I hated having to write INSERT INTO user(username, password) VALUES('idk','password');
And when I learned Django , I thought I had to deal with these stuff . But nope!
yeah
Well , I don't hate Vue.js for SPAs , but like ... Front-end is boring for me
I see
It's better than trying to center a div for long hours
Well , I usually just add a center tag
But still , such a pain
Yeah
Position absolute be like Nope
xd
I don't like Fullstack dev , but I'm on for a backend job
But I don't have the legal age to work so not for now
I mean , I like some other aspects of coding too tho!
Like I enjoyed GUi using Kivy
And wxPython
Or like gamedev
But still I'm mainly a Back-end
Yeah . But not with Python , I use love2d
But Python itself is slow
So still not good
love2d is written in C , you can code in lua . So a fast framework/engine
And it's more problem solving than syntax
I like that
But games need to be performant
If they are "games"
And lua has better libraries for game dev than Python
Like bump , anim8 ....
ikr , It felt weird for me too at first
But you know , it's very embedable
And lightweight
And fast
Not as fast as C
But fast
lol
Well , I'd rather love2d than any python game library
I tried Pyglet, Pygame, Arcade, Cocos2d, Panda3d but they were not my type
Maps? they're not . They are a table . So like :
local map = {
{1,1,1,1,0,0,0,0},
{0,0,0,0,1,1,1,1}
}
And there is a tool called TILED which can generate maps from a GUI
You draw the map , you get a table
Oh
Yes they are
They are weird
Like __index
idk
I am not much familiar with them . Just some knoweledge
Yeah true
setmetatable and so much more you have to deal with
Rust is the best , correct me if wrong
Maybe
The actual words are really similar to their english counterparts as well
It's essentially just "base of data" instead of "database"
Ive been stuck longer than I care to admit on this
I should have had
import { mapState } from 'vuex'
but I had
import mapState from 'vuex'
ah, yup, javascript
Does Python have anything similar to that? Thats a named export?
Nope
as opposed to the default
It has named imports, not named exports
the import system is pretty weird coming from python but i think i get it.
note the export keyword usage
ah as opposed to export default
See, when I first saw that syntax I thought it was just a way of getting multiple things from a module
similar to from x import (y, z)
yup
but you can't import things that haven't been exported
not using ES6 modules anyway
also hey you got an avatar
That makes sense. And the export default syntax just allows you to omit the curly braces?
and grab the entire module
I hate that the package you're importing from is second
Very strange import/export system but I think i get it enough.
Just feels so backwards
I get it. And then, just make sure to export anything you import. I suppose in that way its fairly explicit no matter what file you're in what something is for.
If something is there to be exported, you know it
Ive been having a lost of trouble today with es-lint and indentation expectations.
I almost just want it to stop.
Its not helping by weird about 2 vs 4 spaces on indents.
I typically use 2 spaces between html indents and 4 in js
and maybe that is why it cries constantly
The most truly bewildering thing about it is that every other file is fine the way it is and it doesnt care. But suddenly one file is just all this
Its pretty dumb.
It doesnt usuaslly help. Maybe Ill try it and close the edtior after and reopen the files
npm run serve
and then it updates as I work.
So I dont actually run the linter manually. So sometimes it just decides that something I did is breaking that indent rule. And I havent figured out what it is that fixes it yet. Ive been dealing with it all day. Essentially what I do is... I open .editorconfig and change indent from 2 to four. Then I change it from 2 to 4 at the bottom and press CTRL + SHIFT + I (in linux this autoformats). Then I close the server, then I run npm run serve --fix again. Then I repeat this in circular patterns and eventually something makes it stop.
And it repeatedly occurs again later.
For reasons I cant identify either.
I almost would like to just turn it off entirely.
ohh.
there is.
okay then lol
But lets see if this makes my files look terrible.
I'm okay with it. I would prefer if it understood that I like 2 spaces in my HTML under <template> but 4 under <script>
But thanks that helps
It does.
It formats my code with indents that are not my favorite...
but works so its fine
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
that is what i did to fix it
I like vue-cli
It has made learning all these tools that go into it easier than it was for me to figure it out manually.
Ah I see
Like webpack, etc.
where is that, all I could find is .editorconfig. Do I jsut write a new one?
ohhhh yeah im dumb its there
i somehow missed this file all day.
So... what is the significance of module.exports = {} vs normal export?
weird. JS is weird af. Im getting more used to it tho.
ah ok
Ive seen that before
nice thank you haha
Maybe I will like eslint more than I realized.
Thats telling it to error as opposed to warn?
err
as opposed to warn
Its breaking my lint command trying to put it under rules but ill figure it out...
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'vue/script-indent': ['error', 4]
}
If I remove the last line it works. With it, it does this
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue-pets@0.1.0 lint: `vue-cli-service lint`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue-pets@0.1.0 lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/shaen/.npm/_logs/2020-08-11T22_59_11_823Z-debug.log
the log doesnt have anything that is incredibly obvious to me....
Maybe it will be more obvious to someone else
But yeah it works if I take that out
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/essential',
'@vue/standard'
],
parserOptions: {
parser: 'babel-eslint'
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
}
}
not manually, but this is the default from vue-cli
I'll probably play with some other linting options and see if they work
sure
It still errors but it finds all the indent errors before it does, it just doesnt fix them now. Im gonna play with it a bit and see what I can get it to do
yeah its cool, as long as I have a way to get it to stop telling me there are indent problems I can get over my particularities.
So Ive been learning vue, bootstrap-vue, vue-router, and now vuex. There are still a lot of things in vuex i havent covered yet.
But what else is important after that?
It seems like by then Ill be ready more or less.
Right, I dont plan to learn every one of its components but they are useful. They make use of slots a lot.
yeah
I havent learned mutations or actions yet. Mainly just the store of global data which seems pretty handy, otherwise youre passing stuff between components way too much.
I'll have to look up the mutations and actions next and then I think im done and just need to build something.
Hello.
Is this plausible?
what does it do?
@rough sapphire
Automatically sends you a notification when someone connects to your WIFI
Does it work?
No.
I can feel JavaScript coming to be part of my identity similarly to how Python has become, but its different. Python3 is like my religion. Its my weapon of choice. But Vue is going to open up possibilities... and I actually don't hate it. Its definitely a necessity, a means to an end. It's not something I look and think, "O, magnificent beauty" and quote its founders, etc. But... it is going to make me use JavaScript a lot more than I was before.
Ive known JS for a while more or less. I just didnt see any reason to use it for anything. It was more work than it was worth and tended towards being a complete mess. And most of the solutions to that problem are over engineered to be honest. In a lot of ways, theyre bad solutions. But they are the best thing wew have for interfacing with users right now.
I still think its insane to write a website that is mostly writing (like reddit, blogs, etc) with a frontend framework.
But these days if you want to reach users with applications (not websites, if youll humor me that there is a difference), the most likely way is over https
So it just is what it is
Vue is the first experience Ive had with liking JS. Maybe its just growing on me
That doesnt make it better.
I mean, for things that you need to have an interactive app with the user, by all means, its the only way we have to do that. But if your website is just content.... No, its really not. Its treating documents like they are apps when they are documents.
HTTPS is a protocol
If you are serving a document, just render and serve a document
Its more lite to do it on a server
if you are serving one document, render and serve, if you are serving many, no, constantly sending complete pages sucks
It is.
SPAs are not current hotness because "It's pretty" but "It's better user experience"
even business apps are expecting SPA type performance
Its better if what you are serving is literally an app.. For example, what we are using right now is an app. It makes perfect sense that this is running on a frontend framework.
Reddit... Wordpress... etc
Not at all
Makes 0 sense.
Im just giving examples.
Even Facebook and Tumblr are better of not being frontend.
The UX for me when I use these types of apps is... "I'm trying to look at this. The app is trying to direct me away to look at that."
Thats not a good user experience.
Just give me the content and leave me alone
Thats how I prefer to view content.
Now if Im playing a game, or doing a quize, or typing in a chatroom
Yeah, that needs to be reactive
Its a lot of blinking if you're losing users on slowers devices, from far away regions of the world, etc... when youre making massive web apps for no reason. Because its easier?
Thats my issue.
Im not saying they arent great for when they are great. I just think that people assume thats the way you start with any web project. It shouldnt be.
Yeah, I agree thats the best way, thats how I do mine (pelican), though I never update it haha.
But I didnt start saying this to be angry at JS. Im actually really enjoying learning Vue as I said and I think it will make a lot of things possible for me that I couldnt make before.
But... I still think the frameworks are over used
Because people assume their users need this shitty experience
lol
I like old reddit.
Thats all i know
Thats not my primary concern with Reddit. The thing I hate about it in its current state is that its trying to cosntantly direct me to the next thread. I feel like I have to fight reddit to show me the discussion in a thread.
Its like, "Nahhm you wanted the next thing right?"
You click on more comments
It shows you a few, then "Next post right?"
Its annoying
So that reminds me...
Remember when you told me not to use <v-for="(thing, index) in things" :key="index">?
Ive since seen a bunch of people doing it.
Why is that bad?
So generally you just need to manually put an id in all your objects
yeah
It seems like it would have to be wouldnt it?
ah
I dont think they would go out of their way to make the object have an id attribute if they could just cram a index in there
So that makes sense
a lot of people do that though
It seems to indicate that there are performance gains if you dont need to do it.
All I know is the test quiz app I built the other day was massively only the size that it recommended and Im going to have to learn how to reduce the file size at some point. I cant remember what the numbers were but I want to say the chunk file was like 800kb. For a dumb quiz app.
I can only imagine if it was a real ass app
lol
Ill have to learn about those
ohh
right
I do that with some of these components in this app im doing now
is there a way to incorporate gzipping into the build tools?
It probably already does it, yeah, it does everything I could think of to reduce size lol.
And more things
You know I used to think that people were intentionally obscuring their code when they would rename the variables and put the entire thing on one line
I didnt understand it was because these apps are so massive
lol
actions call mutations which update state... Damn.
I'm fried out on programming, Ive been doing it all day.
I mean, really its lessons in programming more than real programming which is different. but Ive been doing lessons all day.
Ahhh
export default {
// These are the same:
// addItem: (context, item) => {
// context.commit('appendItem', item)
addItem: ({ commit }, item) => {
commit('appendItem', item)
}
}
This is weird.
So...
if you have an object or a module that contains some names or whatever, doing { blah, blaaaaah } just destructures it and grabs those names out.
And you can do that probably anywhere Im guessing.
yee
storm where im in blue circle
oof
It hasn't rained where I am in what feels like a month
we've been getting rain for what seems like every other week
and i mean when there's rain in the forecast, it's there for the entire week
we get rain every other day, used to be daily a month ago :/
Literally, I've been told by the forecast it's supposed to rain "tomorrow" for like 5 days in a row, now
Has not rained
I'm searching for a linux tool that hosts a terminal on a website (if that makes sense). Basically I want another computer on the same network to be able to open a website and there should be a full terminal there. Basically like ssh'ing into that computer but with a browser
(I'm aware of how insecure this is)
I mean you could just spin up something with flask
Or maybe you could eval nc on port 80?
This is terrifying, though, please do none of this and just use ssh
Certain computers at my company have the terminal and everything else that's "useful" disabled. The browser works however and I would like to access another pc from these computers as well
I thought that perhaps someting like this already exists since it's not that crazy of an idea
I'd be wary about trying to circumvent security measures that your workplace has set up
That's a good way to lose a job
Hah, yep.
Can't you telnet through some browsers...?
I remember doing something telnet-like awhile ago
Well, I'm part of the IT team that set this exact measure up. It's just that when I'm working on a "restricted" computer i'd have to have another laptop with me in order to have full access
Ah okay, that makes more sense
it's not a permanent solution, obviously
And there's no like.... admin account override or something?
Yea, what's up with that?
not that I'm aware of, it's not exactly a modern company
Well sure but usually there's just another user account specific for IT
Not everyone works for a company that has their shit together ;]
I know what you mean, but I believe our system was set up by someone who didnt exactly know what he was doing
What OS?
windows
What version I mean
Are those 7 machines still networked and communicating with your 10s?
Because that's a huge security hole
7 got sunset at the start of this year
yeah, this system is definitely in need of a general overhaul
well, thanks for your help anyway
Yeah sorry I couldn't be of more use
Windows Admin Center
yes please
All of the various systems on the shuttles require some sort of coding, either written software or boards with the logic baked into them, in order for thing to function. Managing oxygen release, thrusters, calculating trajectory, relaying radio signals back to the base on earth, that sort of stuff
oh
so like what kinda
IDE or language do they use
itโs def a low level lang
right ?
assembly or C most likely
That I'm not quite sure. Like I said, some of them were straight up wired by hand to do the functions they needed
damn no wonder they get paid so much ๐
assembly lang tho
well canโt modern day engineers just copy the source code from the apollo landing and use it today
They wouldn't want to
Source code for Apollo computers is available
cuz itโs outdated ?
Partially, and also because that code was custom made for that particular shuttle
ohhhhb
It's one of those like.... hand crafted pieces that it's hard to replicate reliably
i would really appreciate if @plucky ridge or @lofty dirge could teach me more about python whenever youโre free
like ik basic stuff
spaceX used C and C++
but not that kinda advance shit
I can guide you to some resources.
python for testing
yes pls do
and html,javascript on chromium for their ui
There are lots of uses for C but ASM it's harder to pinpoint where you really need THAT level of improvement over C
C uses compiling right
!resources We've got a whole page dedicated to good beginner resources. We have everything from sites and books to YouTube videos. A popular site is Automate the Boring Stuff
or interpreter
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
Also, good morning everyone ๐
Can use either, but compilation is the more common thing you'll see with C
You'll C with C
Yeah I was thinking it when I was typing it
great talk with u hemlock
But I was in educator mode so I couldn't bring myself to lay down the sick puns
Always happy to help
There's a LOT of resources there
The bot link I just sent has tons of stuff on it
Stuff that we've hand picked because we feel its some of the best that's out there
How are you today Hem?
lemon tree plus I got this brown on me curly yellow dancin on fishy smell a greenum fish strip on a dancin floor frek as she wanna be
Rust is best among all low-levels
Tho C is the mother of all , rust is still the best
It's a bit hard to get used to tho
Has anybody tried coding while laying in bed and did it work
I have done it before when I was behind a deadline, and it's not pleasant @scenic blaze
Just sit and code
But mainly because I had to use a laptop, and I don't work well on laptops
Well they said "laying in bed"
Not "sitting in bed"
Has anybody tried coding while laying in bed and did it work
@scenic blaze
Yes and no
rip. I'll just try to wake up more and code at my desk
Yeah
Or amphetamines
Caffeinated water?