#ot2-the-original-pubsta
652 messages ยท Page 127 of 1
Roleplaying
oof
whenever I text in this channel, I always feel like I'm gonna get warned at some point, for no reason
Then stop doing stuff which u feel like is gonna make u get a warning
idk, I try but-
lol
Sometimes I suspect if u r even 16
then how old do u think she is
Same for myself but we don't talk about it
same, I doubt it too
I..... uh nvm
I better go study for exams
They do be starting from Tuesday 
same for me
Also got CS tomorrow but we don't talk bout it
mine from tuesday too ๐ biology uhh
LOL
Let's hope I score good since I feel like I know literally everything 
hunter be teaching the teacher
Uh
Many of the times, yes
But in those cases, the teacher just does anything to make everyone forget what I said and continue on with the lecture
I mean, they do know I coded in Python in the last 2 years. They just dk at what level ๐คทโโ๏ธ
shessssh
PNG
that time when you enter the room and all the shit starts filling your head and the useful stuff comes back up in the last 5 minutes up and you scribble hard like hell
ok
Happens every time
feel you
everyone thinks I wrote a few if statements and a print statement and I call myself a coder
but at least they still come back
in my case they dont even come back
show them ur project
guess they cant even understand the whole project except for importing
๐คฃ
hurts like hell when you cant even attempt problems that were attemptable at some level
Meh, cba to do so
All my projects ain't of any of their interest anyways
I remember this instance...
I showed my mom a piece of code I wrote about smth an year or two back and she be like: Where's the 0's and 1's at
at least she knows that computers work on 0s and 1s ๐ซ
iirc she did learn like Fortran or smth back in College or smth (tho she isn't a coder, idk why the heck she even learnt it)
lmao, but..fortran ๐
stereotype ๐คฃ
more of a nice question
She learnt like, uhhh, 25 years ago
python existed
C
ASSEMBLY, OUR BELOVED
Reasons I prefer not to show my code to anyone anymore
Wasn't that famous back then. Python became popular recently
whole c family coming back
even c has a family ;-;
inarguable
She did learn C++ too(?)
no idea
i touched a bit and i change to python LOL
hurts to think that I dont have one anymore
nice
๐ซ
I learnt C#
Fun experience
Ah, yes
they are just weird so i change to python
include <iostream>
cuz python is like human language
How can we forget this
using namespace std; ๐
bad old times for me
Is that C++? Idk
yeah
Or is that C
cpp
shouldn't you be studying according to 11 minutes in the past....?
But we changed to Python and I automatically became the most knowledgeable person in the class ๐
lmao
Don't say like that. Am already bored of Eco
my school is learning java this year
and the way the teacher teach ๐คฆ
Lucky
its been 3 months and teacher hasnt even finish variable
i want to cry
i mean
any newbie can even finish it in a month
in an hour*
Just learn classes and show the code to the teacher and make her cry
LOL
and they teacher cs in malay
Lmao
teacher be like, yeah yeah we'll get to that, and then the whole year passes and you get conditionals for tests
Relatable
gg
We do be having a chapter called Stack this year
Which is just a fancy name for lists
but my classmates cant event remember those 4 data type
dies
I also thought the same until I opened the chapter ๐
and that makes me wonder am i too smart or are they too ||not clever||
I would take the first one
wont comment
both dont seem sweet, the way they're taught, is bad.
nobody's smart (according to common people POV) ๐
lol
Hi mari
my classmates be joining cs class to avoid biology
i guess thats why
they dont have the interest
Classes are objects
Dicts are objects
Lists are objects
Hence proved: Dicts, Lists and Classes are same
me who loves biology and hates it at the same time
LOL
I mean, bio is easy
Eh, I never had that option ngl
Like, we can't skip subject classes until 11th
we can choose packages for subject
And then, in 11th u gotta listen to the teacher else u won't get marks and sit in the class even when u don't want to ๐
chemistry + physics + (cs/biology)
That's here from class 11
School ends in class 12 here
fr?
Ya
I have been studying in the same school for 14 years (this is my 14th and the last year)
mine is 7:30 - 1:50(average)
Rn the timings are 7:30 to 11:35
u go to school for 4 hours?
7:45 to 2:45
oo
mine is 730 to 250 on monday
iirc most unis here offer 12th year and 13th year rather than schools
and the goddamn school purposely arrange the timetable to tons of subject with just 1 or 2 period
uhhhh
so i legit need to carry the whole damn cabinet to school
Used to happen in the past, now u gotta complete till 12th
how sad
And I'm talking about like 30 years ago
Yea, uh, seems about right
oof
uh, you wouldnt want more than those, would you?
yes?
imma ask in official mc server
lol
well
hm?
๐คฃ ๐คฃ ๐คฃ
idk why is grass block black and white
pillar sus
ahem ignore that
U sure there's no other green colored block and that is the grass block?
lemme show u
alright look urself
which one do u think it is
if u say grass_block_top then thats the black and white one
in cpp, after decimal is u have like more than 3 or 4 zeroes in a row it ignore it so 0.1110002 becomes 0.111
The game colors it in
You know how grass changes colors depending on the biome? Or if there's snow on top of it?
Yeah, think of it like a photo filter but for textures
oo ya i forgot about that
nice
but the tradeoff is that it is cpp
ya true
damn that REALLY hurt
good song
Caribbean's adopted the British system somewhat so we got A levels as shown there
As nobody really says grade down here
lmao, we get graded on assignments and tests
I hear the word "marked" more than graded
interesting
we get graded ๐ฆ ๐ซ
understandable
grades are better than calculating in percentile
Agreed
Cool tower. What library did you used?
yalllike rap
Has anyone heard of this? https://github.com/Myndex/SAPC-APCA
From what I've read so far, it's kinda a replacement of WCAG contrast ratios
Ursina
@jovial island Just in case, I just remembered that SQL has support for datetime objects to be stored directly to the db without any conversions of the datetime types
๐
Download that Discord update...
?
(Top-right hand corner green download arrow on Discord)
It means there is a newer version out there
Lol
Lmao
@jovial island Oh-oh moment? ๐
Nah, uh-oh moment ๐
Pish.
Otherwise people would be DMing me all day with all sorts of things and I think it's easier if I have that all whitelist only.
I like igniting the flame, you could say ๐
I'm not always around, I don't have all the answers and I don't always feel like helping.
I give plenty of my time as it is and I prefer it to be on my own terms.
Uh-oh moment, indeed. Hurumph. ๐
Yep, I understand
yet another otn ruined
ah nice
:/
what?
Just delete this name and add the correct name ๐
These names have started giving anxiety
where does the dennis scale start and end?
Okay. So apparently it's a wedding tradition somewhere, that at the rehearsal dinner the bride gets the groom a "groom's cake" where it's a cake decorated with the groom's favorite activities/personality.
... My fiance would hate this BUT I think it would be hysterical. ...... What kind of decorations should I do?
Also!! What flavor??
I wonder if I can get a cake that somehow incorporates hiking and like ... machine tools.
hmm, a mountainous terrain is fairly doable with just cake
Lava cake fo sure
I wonder if I can do like a chocolate peanut butter flavor...
@hidden kernel @slate leaf provide input pls
what are your fiance's hobbies?
other than playing the kazoo during staff meetings
Hiking, making things, reading scifi fantasy, building things, vidya games
Lmao, I should start putting a kazoo in the cookies I ship out
lol
cookies?
Oh interesting
Maybe a bright yellow (for the tools) with a chocolate crumble dirt trail
building things
Pop the ingredients for the cake in a hiking boot.
anxiety??
you still ship out cookies???
I would say, one very nice thing was having letters written to each other that we sent and read as we were getting ready at the start of the day, after she left for getting ready
Of course I do!
can give it a weird name like CAKENMERX to give it Scandinavian flat-pack vibes.
Ooooh that's cute. We are doing the weird thing where we're getting ready in the same place though
Could still be fun! Are you doing a first look or is that defeated by getting ready in the same place?
The plan is to do a sort-of first look. So getting ready in a big airbnb situation and then doing the first look there as well
surely i couldn't bother you for some from your next batch ๐
Nice nice, definitely recommend it to get the waterworks out of the way (more for the groom lol)
I'll send some yout way~
lmao
Lmao that would be great
Chocolate cake + globs of peanut butter sounds great tbh. How to tie it in to a theme is the tricky part, and to make it simple-ish to prepare as well
Nice
You could also try a volcano theme and make it a volcano cake
And could do probably a chocolate peanut butter flavor
Does it really? I mean, tree stump cake def. worth it
Did you uh... ever ship the last bunch out?
thats so cool 
chocolate cake with peanutbutter frosting is probably my favorite cake
I don't particularly like peanut butter
warm the cake up and throw some ice cream on the side with it and I'm a happy camper.
i forgor you were getting married in july ๐
wrong month my friend
It's like you get to spend the rest of your life with your best friend and partner in crime with tax benefits
lmao
Something you do when you stop looking for that ideal thing and settle
Sammeeeee
It's soo cool
finally found the way to do this
Hi
sarth or ashley or hunter or sparky or literally anyone
can u all help me in #game-development
;-;
the grave for love ig
what about me
and in certain cases gain residency of another country in two simple words
Hm?
its fixed already
next time
What is this channek about
Its an offtopic channel
Sure
you can but we might redirect you to the linux discord server which might be more helpful
๐
HAHA, i already LOVE terminals
kek, time to repost the code in #esoteric-python and condense it to one line
this is the truest thing ive heard all day
lmfao
Have fun!
whats that thing called that discord bot games do when they strike out the text or blacken out the text ? how do you do it on your own ?
Its just markdown:
||spoiler|| -> ||spoiler||
~~strikethrough~~ -> strikethrough
thanks
Welp @brazen jacinth totally baited me into condensing this blessed-based terminal animation into a one-liner. Then a bunch of people in #esoteric-python helped me golf it further. (Updated 5/21 -- cut about 20% of the code out)
Un-golfed code: https://paste.pythondiscord.com/amevowohid
(i:=__import__,n:=255,p:=lambda a:print(a,end='',flush=True),t:=i('blessed').Terminal(),H:=0,w:=t.width,h:=t.height,p(t.clear+t.home),x:=1,y:=1,X:=1,Y:=1,u:=lambda v,p,m:v if 0<p<m-1else -v,p(t.hide_cursor),all((x:=x+X,y:=y+Y,X:=u(X,x,w),Y:=u(Y,y,h),R:=i('colorsys').hsv_to_rgb(H/n,1,1),p(t.move_xy(x,y)+t.bold+t.color_rgb(*map(lambda m:int(m*n),R))+"โป"),H:=H+7&n,i('time').sleep(.01))for _ in iter(int,1)))
hehe
Python.org "Try to limit use of the walrus operator to clean cases that reduce complexity and improve readability."
I'm trying but it's not working...
Limit by not using
@jovial island I didn't realize what you had was a final project, usually I would always explain my method of how to do it but since I wasn't sure I just told you what to try, I just want to make sure you understand it. When you create the object of whatever class that was, it would call self.searchBox.toPlainText(), I'm assuming that the default value of searchBox was "". So when it was called on creation it was just an empty string. When you would run self.pushButton.clicked.connect(lambda: self.search(search_term, location_term)) the search_term and location_term were already defined as "" from when what I just mentioned was called. I hope this makes sense, and if this doesn't feel free to ask!
This is the most satisfying thing I've seen in a while
haha, thank you! May be fun to add some features like letting the trails fade out over time...
I feel like the screen gets cluttered and then it's not as much fun to look at
I just messed with it, and made it sleep 0 seconds and it was strangely still satisfying
Though chaotic.
Yeah it makes quite the laser show haha
If you can post the gif in #esoteric-python I'd send it there, I'm sure people will get a kick out of it. (assuming you haven't yet)
Oh good point, I didn't post the gif there.
btw I'd recommend using a terminal with good color support -- e.g. the default Terminal.app in Mac OS only supports a small default set of colors, versus iTerm2 which supports 24-bit colors. I've found Windows Powershell etc to actually be pretty solid for this.
I just used cmd prompt, lemme check powershell
Yeah I think cmd or powershell are both good
cmd seemed pretty decent
I'm actually surprised how good terminal emulation on Windows has gotten. I'm sad that Mac is so far behind now
I haven't used the library blessed before, how easy is implementing something like fading out?
windows terminal is even better :p
it's a much nicer alternative to conhost or whatever windows calls it
Yes, I've been using that now!
There isn't any native support for it. You'd have to manually seek to the character and re-write it with a different color
Maybe a simple thing to start with is a queue of (x,y) positions of written characters. When it gets to a certain length start doing q.popleft() and erasing those characters.
Ah, sounds like a lot of work but also sick lol
@tawdry fog the queueing thing worked but I had to make a small change: https://paste.pythondiscord.com/gubesukagu
Damn that's sick
Wish there was opacity in terminals
๐ฆ
If you're still just messing with the library and have nothing else to do, you should make a bunch of functions for different patterns, then loop through em.
That would be cool, or maybe make a command line tool that takes different switches. Have you seen sl?
Or even better, depending on how much you'd want to get into it, use something like pyaudio, and depending on the amplitude (I think that's the term) set the colors of what it writes, and then try to detect major differences in average amplitude throughout the song then change the function based off that number :D
Though that sounds like a lot of work now that I'm done writing that lmfao.
lmao i'm not even sure I understand
are you saying to read audio input and convert it to colorful/moving symbols on the screen?
I did something before, (Though really simple) but it basically played a song, and while it played looked at the pitch the song was at, and based off that number (I believe it was 0-1024) it would map it to a rgb value then print out that color.
It's kinda hard to explain if you don't see the program running :D
Ah! Yes
Also I made it when I had little python experience so even if I found the code, you'd be better off figuring something else out from scratch lol
I mean you could use this to make a cool like equalizer view pretty easily.
That sounds pretty cool :D
If you make any other cool things with this library if you don't mind send them to me, they're very satisfying to look at!
For sure! I post them here from time to time
@tawdry fog I did this mandelbrot set vis too #ot2-the-original-pubsta message
Thanks for the encouragement. I'm not much of an artist so it's been nice to make something that people like to look at.
That's pretty cool!
This is where I dislike python's syntax, because otherwise I'd wanna try making the 3d spinning donut, with code shaped like a donut but with color, in python :D
Other than that though, I love python :D
what if it was a quine
That is sick.
colored code shaped like a donut, which renders itself (in different colors maybe, to make it less trivial)
Yeah those renderings are super cool, I love the detail on the colors
Heck, implement your own python interpreter, with the code shaped like a donut, then execute the code for the python interpreter inside the donut code interpreter
Okay my brain is frying :D
Kali ma linux? More like debian but with tools ma linux
like a donut, you might say...
Okay, this is completely off subject lol, but anyone who is fairly knowledgeable on ASIC miners on the hardware level, the limiting factor for their speed is really just heat, correct?
Here is the result:
Also, source: https://github.com/brad90four/mandelbrot
@shadow tangle I probably should mention: If you ever open that file to read it in python code again, you may need to specify the encoding as well
@light void you have coverage listed in the for enterprise section as under tidelift. I'm not super clear on tidelift - is a company required to use the tidelift version, or is just a completely-optional manager like continuum's anaconda?
tidelift offers services that help enterprise-size companies manage their use of open source. Tidelift also offers services to open-source projects, like they will be the first point of contact for security reports.
@pseudo creek there isn't a tidelift version of the library.
so a company doesn't have to use tidelift to use e.g. coverage, but it's probably a good idea provided they can afford it?
definitely you don't have to have anything to do with tidelift to use coverage. It's free and open-source.
anyone have a chrome extension that can replace specific text on a page? (eg scan for "HELLO!" and replace it with "BYE!")
Wait what's this
party mode stuff
how do you all pronounce python, like PIE-THIN, or PIE-THONN
you get your combo gauge up a bunch, and essentially spam very long messages very fast
ya got it xD
best do it in a private server, not here
spammed my frnds dms 
if i wanted to have an old english accent i would do "pee-tonn" else i would do something that sounds like both above but more on the "pie-thin" side
It's more like PAE-THUN for me
that belongs in the PIE-THONN category then
more like pae-th-on
and wtf is pie-thin
thin doesn't sound right, I've never heard someone pronounce it that way
THIS ^^^
Its pronounced python
Come to OT
nvm frick
I thought I was in #python-discussion
But basically, it's this:
only if we could send images
Every character you type = 1 point...
Every message you send in quick succession = +1 combo...
Every combo = times the number of points by whatever combo you're on...
For example, If I want to get 2048 points, I can do:
2048 characters on 1x combo (default) = 2048 x 1 = 2048 points
1024 characters on 2x combo = 1024 x 2 = 2048 points
512 characters on 4x combo = 512 x 4 = 2048 points
I do both ๐ฐ
snek
pie-thin? I've heard people say pae-th-on and pae-th-un
Yeah ๐ , like- sometimes I'll say pae-th-in, sometimes pae-th-on, and sometimes go deeper with pae-th-un.
so how is the swedish boi that got sentimental doing?
lmao who
I've started saying "pythun" bc of all the Englishmen
Pythn is the best way to pronounce it. Change my mind
wait you guys don't say "Pyth On" like the human torch when you start coding?
haha yeah
Pie weighs a ton
I say "pie thon," where "on" is pronounced just like the word "on."
I think I started saying it this way bc it takes less energy than saying "pythawn"
Someone I worked with always jokingly called it Pith-on
Like piston with a lisp ๐
Do you say JSON or JSAWN?
aren't those the same thing?
it's jason
or you do you mean "json" like "jason"
sorry yes ๐
I cannot imagine saying it like that, interesting
Pronunciation convo going on ic ๐
JavaScript Object Notation
The American pronunciation of Python and JSON always seems to take forever.
"We use PyTHAAAAAAAAAWWWWWN"
it's just like if you said "on"
I say j sawn hahaha
py-th-un is better
I assume you don't pronounce "on" like "in"
I exaggerate, but somehow the presence of a prefix causes an elongation of the on.
so, interesting. dawn you say jason?
oh lmao
@radiant socket you say jason?
kinda?
and pythawn?
man i do read json like that
i say them normally ๐
normal is different for different people though 
no, the way i say it is normal
maybe I should start saying jason to match my new pythn pronunciation
Python named for Monty Python, which is British, therefore it is Python not Pythawn ๐
begins to identify as brit
I say pythawn
ends identification as brit
Pyth-u-n and JS-aw-n (because of how Object is pronounced) seem right
I have family in britain, so I'm obviously british
You have been corrupted
My brother has lived in the US for about 10-15 years... he has an odd accent now lol
are you suggesting that brits can be corrupted???
how dare you say such terrible things about your own people.
lol of course not! shitshitshit
lol
I'm sure you have to fit in. Once you're back in Blighty with a cup of tea and your own weight in biscuits you'll be right as rain.
JSAWN for me
JASON
he was cured
oh no...
JAY-SIN
is the only correct way to pronounce it
what is cached image
no
JASON
@sharp glacier so are you really a yakult ajumma? :P
@hollow heart LOL only at heart ๐
huh
@jovial island, this is what @jovial island's name looks like for those of us with the right fonts installed
thank u very much
my ears
Whatโs your favorite programming language and why is it Python?
C and no
Haskell ๐
Although it has some warts. I think it's fair to say the module/import system is not that nice to use.
I think laziness is still underrated in functional programming language design tbh
It's a big part of what gives you referential transparency
@daring jay @zenith nova someone is taunting u
this is a c++ server right
yes ๐ณ
Hello.
I am an SEO. Where can I find an SEO group?
apa ni
Happens
whats that
Your VSC rich presence extension didn't connect to discord
lmao
but its working yesterday
Isn't a permanent issue. Retry and it's gonna work
everytime people ask question nobody can help and there is only me that dk how to help them

U still help ppl tho ๐
i rarely help ppl
because idk how to help
i cant even help myself
btw gtg
Cya
Gn
What the
pai-son chan-kun
What do you mean by this?
Isn't a function referentially transparent when it has no side effects and reads/mutates no form of state?
I'm curious as to what nonstrict semantics have to do with it
amzeezing
Can you give a loudness warning next time please
The example I had in mind is defining if as a function, which sadly Haskell doesn't do
if' :: Bool -> a -> a -> a
if' True x _ = x
if' False _ y = y
Because of laziness only x or y will actually get evaluated depending on the condition. If you wanted to write this in a strict language it would have to be like:
if' :: Bool -> (() -> a) -> (() -> a) -> a
if' True fx _ = fx()
if' False _ fy = fy()
At this point you have to care about the distinction between (() -> a) and a which I think is a referential transparency issue
It does not appear so, no
what does that have to do with referential transparency?
that's the entire philosophy of nonstrict semantics
Because you're treating "computation that produces X" differently than X itself
you're saying if the computation of the arguments isn't referentially transparent, the function isn't either?
I don't get it, but perhaps I'm just missing something
to the extent that you have to make a distinction between thunks and their results, to me that seems like the crux of referential transparency?
the expression and its evaluation are semantically equivalent
I've always thought that referential transparency was "as long as the arguments provided to the function are the same, the function will always produce the same result, and as such, you can replace the call with the result of the function"
Right but that's not the case for thunks in strict languages
like in my if example
You can't just replace the two branches of the if with their values and maintain the usual semantics of if
You need to add in an extra layer of indirection/thunks to make it work right
tbh I know next-to-nothing about haskell so I don't know what thunks are
the only functional programming languages I've worked with are ocaml and idris, and not too much for either
A thunk is just a no-argument function
Like if I wanted to implement if as a function in Python, might look something like:
T = TypeVar('T')
def my_if(cond: bool, true_branch: Callable[[], T], false_branch: Callable[[], T]) -> T:
return true_branch() if cond else false_branch()
Callable[[], T] is a thunk that evaluates to T. And since Python is strict I have to treat true_branch() and true_branch separately, whereas in Haskell that distinction does not exist. Every expression evaluates to a thunk
Not sure if that helps explain what I'm getting at...
I do see what you mean, I think. But not really, at the same time.
haha. I'll take it
Let me put it another way. Say do_very_expensive_computation is an expression. In Haskell when I say:
let foo = do_very_expensive_computation
It does not run do_very_expensive_computation. It just sets foo to be a function that, when run, does the expensive computation. Hence it performs exactly the same as do_very_expensive_computation
To me that is the essence of referential transparency
foo and do_very_expensive_computation can be used completely interchangeably
In a strict but otherwise pure language, the LHS and RHS of the assignment might evaluate to the same value, but they can have very different performance.
I finished horimiya, turns out romcoms are pretty good
Yo @spiral ember do u know about port forwarding and NAT stuff? I wanted some help
U can also do Anne = Character(*AnneData)
oregairu is your next anime to watch


@muted phoenix Do you still have a question?
nice
Yeah but itโs very dependent on your ISP
Oh, well do u have ang idea about how to check my current NAT type?
Length Name
------ ----
20110000000 io.txt
file too big sadge
i tired opening the file in python and reached 97% memory useage
NAT type?
Problem? -> Use prior knowledge -> Docs -> Google -> Topical channels -> Help channel
| | | | |
(True) | | | | |
Implement fix <------- Worked? <------------------------------------------------
|
| (False)
Next step``` steps i follow if i run into a problem, anyone else do this?
there are extensions to files
where can i learn
tnx
Yea. Like is it strict or what
Never heard of there being multiple NAT types
Usually NAT just translates private IPv4s to public
Well there are 3 types of NAT
Strict
Moderate
Simple (I forgot the name, but it was smth like Easy)
there's also SNAT and DNAT
I just needed to change it for GTA Online 
it's relative
it's relative
i mean, it might be higher than bytecode, b-
i think im gonna go slep
and wake up tommorow, with C hopefully being low level
see, this is the problem with boolean-oriented thinking. c may not be low-level, but it sure ain't high level neither. thus i give you the shouldn't-be-new criterion of a medium-level language, which c fits nicely into
low-medium
take it or leave it
i suppose the existence of prolog et al does push others down. i accept your proposal
Thansnkz
one of the lowest high level language 
Forum channels are in beta right now
can I get it
idk ask discord
@dire arch do you have anything which has actually been peer reviewed, cited more than 5 times, or contains a significant finding from actual evidence?
@rough saffron What problem are you having with js?
I have a tutorial question on shortest words but I pretty much have no idea how to write it out at all
lecturer taught me little to nothing on this so far
`` /**
-
Write a function to find the shortest word from a list of words.
-
@memberof! Exam_questions
-
@function
-
@param {string[]} word_list An array of words to find the shortest in.
-
@returns {string} The shortest word in the input array.
-
@example shortest_word(["hello", "cat", "ok", "12345"]) // "ok";
*/
Exam_questions.q1.shortest_word = function (word_array) {
var words = [];
if(!words.length){
undefined;
}
else{let words = s.split(" ");
let shortest = words[0];for (let i = 0; i < words.length; i++) {
if(shortest > words[i].length){ shortest = words[i] }}
return shortest.length
};``
That's what I've written for this but i know it's completely wrong
We can't help with exam questions
it's not an exam question
it's a tutorial question
but the file's called exam question
Lol
i mean they wouldn't give us exam questions a week after introducing us to javascript lol
I can think of two approaches here, either something like what you were doing, keeping track of the current shortest word. Or using an arrays sort with function that sorts it on length and then taking the first.
hmm ok yeah
are you able to spot any obvious mistakes in how i've written this so far that would stop it from working
i've got lots of problems like these
You are comparing shortest to the next word.length instead of shortest.length
You are returning the length instead of the word
The if at the start makes no sense and makes the whole function immediatly end
You declare words twice
You split s but s doens't exist.
There is word_array as the function input, but that's already an array of words and needs no splitting
ok i need to restart this haha
tip: You can use for of to loop over the elements of an array instead of using the index.
for (const word of word_array) {}```
ok
i really appreciate your help
problem is right now that i dont understand any of the javascript syntax right now
It takes a bit to get used to if you only know python
yeah
python got taught to us way too quickly and rushed for a single term as well so that doesn't help
Are you undergoing a cs degree?
nope
Cause i feel they should take their time when teaching the first language of someone
What you had was 90% of the correct answer though
design engineering
I see
so we're not even expected to be experienced in coding
meant to make some kind of game for my assignment by next month as well rip
yeah ive had some explanation of the steps i need and i've tried that
i'll try writing out a pseudocode first
I think the nicest way to solve it would be with reduce but that might be a bit complex
Is javascript worth learning?
I mean, if i don't intend to do any web dev during my life
I don't think so if you don't do webdev.
is html and css enough for basic stuff?
For static content it is.
For static pages generated on the backend php or python are good to work with.
For dynamic pages you'll have to use js or something that compiles to js
Do you think that web dev is even avoidable when being a programmer nowadays?
Sure
http://www.seanmuller.co.za/Academics_rentseekers_IJED_AcceptedManuscript.pdf
beyond academics being rent-seekers within universities, universities are also rent-seekers in the classical sense in relation to land. Often tax exempt, get subsidized by the government through tuition programs for students. Many (at least here in the US) received their land on a grant. And neo-classical economists took over back during the gilded age.
https://www.bestvalueschools.com/faq/what-is-a-land-grant-university/
https://stuartbramhall.wordpress.com/2013/12/29/the-robber-barons-behind-neoclassical-economics/
A land-grant university is a United States institute of higher education that was given federal land by the Morrill Acts of 1862 and 1890. Read on to learn more about the history of land grant universities in the U.S. and the status of these institutions today. History of the Land-Grant Program In the early 1800s, ...
Still haven't answered my question lol
pdf link
I could link to a pdf that proves the earth is flat, doesn't mean it's true
You've linked a manuscript with no actual evidence or quantitative analysis, just unfounded conjecture
so you don't want to read. got it.
show me your PhD in university studies and economics before you can even ask that question then.
I don't usually entertain the flavour of the day ideas that people take from niche/microcommunity YouTube channels, but you're actively giving people objectively terrible advice
Read through the manuscript, nothing in there was supported
University studies isn't even a degree lol
The research projects I've done into higher education, assessment and pedagogy for assessment is more credible though
You've clearly been convinced by some pop culture, new-wave ideas, and are excited to share them with everyone else
It's quite common on this server for people to randomly join and start purporting that some new idea of theirs (which is never, ever novel) has all the answers to all the problems, if we'd just hear them out
sure sure, economic theories that Nobel prize wining economists agree with are totally zany
As I said, I usually ignore these types of messages because it's a huge waste of time to even interact, but you're actively giving people awful advice
all I've been saying is that universites do engage in rent-seeking and I'd like to see that change
It doesn't make them credible
Economics is inherently subjective, and will never model reality
No, you were pushing for people to do bootcamps instead of going into higher education
no I wasn't
And to repeat this same point that everyone already told you countless times, bootcamps are specifically designed for employability
I was just debating the validity of one being better than the other
That makes them "better" to find work than a purely academic pursuit, to some extent, but the reality is a degree proves way more
You very clearly have an emotional attachment to one side, and weren't listening to reasonable views about the other
displaying the ability and knowledge to do the job speaks for itself, regardless of method that it was obtained
Right, so I glazed over the PDF, and since I'm studying in South Africa found it interesting. It's not wrong about the grants, but that's specifically for people in academics doing research. The study doesn't relate to people getting a STEM degree and going out into the job market at all?
my emotional attachment is my time and money
Ok, that's your time and money to do with as you please
A lot of people on this server are pre-uni age, and are more likely to be affected by such statements
mfw i thought i was still in careers discussion
I'll say it again: displaying the ability and knowledge to do the job speaks for itself, regardless of method that it was obtained
the fact I've seen it happen with those I did network with, including the high school grad who went right into bootcamp and landed a job (with the intent of having a company pay for his uni while working, because economic rents making paying your own way too expensive). it works. and you know what the key factor in his success was. Motivation to keep learning and display his found knowledge in really cool projects.
I think it ultimately comes down to the individual more than anything. You can have a bootcamper that just doesn't display the motivation and knowledge, just as much as you can have a university student display the same level.
I'm going back, can't believe I took the bait for this
and yes, companies will pay for your uni. There is a guy in the georgist server going for his masters in data science and his company is paying for it.
Masters means he already got a degree
having a company pay for your postgraduate is a lot different than your first degree
Do you have someone whose company is paying for a bachelor
Most larger companies over here are willing to pay for your postgraduate studies while you work for them, since it's beneficial to the company for people to have a higher education from a university, because what's being taught is useful
MBAs are most commonly sponsored by companies too, i dont know anyone with an mba that paid out of pocket
the kid from the bootcamp
Literally who
Get them to come in here so they can share their story then
I know a guy who knows a guy
displaying the ability and knowledge to do the job speaks for itself, regardless of method that it was obtained
no one disagrees with this. the only problem is how you'll prove that you have ability and knowledge if you don't get into an interview or your resume gets tossed because you don't have a degree
that's a part of the monopoly on knowledge, the rent-seeking, economic rents I was pointing out
what monopoly on knowledge ๐ง
university bad, i cant believe im reading this
that a university degree has within the job market
no, the way they are currently set up is bad
wasn't your whole point that a bootcamp gives comparable knowledge?
Realistically, what do you want people to do
it can give you the knowledge to get your foot in the door
A university degree is clear proof that you were able to obtain the knowledge, none of the knowledge is monopolized
that's such a big embed
It really is a shame the embeds are so big, theres some really nice ones
Correct. And if uni isn't a possibility for someone, it's a great way to get your foot in the door. But you won't learn the same amount of knowledge in a 3 month bootcamp that you do at uni
literally my whole screen
it is in perspective of the job market. even though someone can be knowledgeable and have the skills, if they are going to get tossed out of the pile just because they didn't pay for a degree, then that is a monopoly in favor do those who did.
If you don't have experience and no degree, of course. How do you want to compare to someone that spent 4 years studying to break into the job market?
How are you going to stand out?
Degrees have such power because theyre backed by accredited institutions that guarantee a minimum quality in the syllabus
Who guarantees angela yu's or whatever's bootcamp
Nobody, so back of the line, thanks
Really grinds my gears when some bootcamp kid gets a free ride into a big firm just cause they got some kind of deal with the bootcamp
Didnt spend 4 years for this
what is university? is it a corporate slave generator?
University is "best we got so far"
oh thanks i am in my last year and i feel like crap.
Congrats, here's to many more
hmm that reminds me of someone. imma ask him later
boyyssss
keep on dreaming
Another name ruined
it's fine, someone was bound to commit a bad @languid osprey at some point
@copper tartan, i know people ask if you are network chuck, but im gonna ask, are you smooth mcgroove? https://www.youtube.com/watch?v=t4W12k0MYC0
Get the UNDERTALE Acapella album on iTunes โบ http://apple.co/2364yEe
Google Play โบ http://bit.ly/25TZ8l3
Spotify โบ http://bit.ly/24N7F3l
Catch me live on Twitch! โบ https://www.twitch.tv/smoothmcgroove
I originally planned on doing this song last October after I played Undertale, but...I had a bad time and didn't record much music at all. I've...
and did you clone yourself 9 times?
prolly lol
I hate when people ask if I'm network chuck - but I'm flattered when someone asks if I'm smooth mcgroove, that is an excellent dude.
I'm not, but I did do a smooth mcgroove style cover of the star trek TOS series intro one time
A deeply unoriginal a capella video, made back before I had a real beard.
Find me at https://lemonsaur.us
excellent dude indeed
That's just wonderful
How have I not seen this before
I like network chuck, but his video titles are egregiously click baity. ๐ฆ
true
like a common thing is you need to learn this blah blah thing right now!!
I mostly blame the YouTube algorithm that makes those videos stand out more, but it's still annoying lol.
Imo you lose pretty much all privacy the second u get an internet connection. You can try a lot and make it very difficult for people to see you, but never impossible
@quartz parcel
yeah
thing is
hey
in the modern day world
I believe that
if you use tor for example
The NSA will try to track you down
and you will probably be monitored by more than 5 people
tor?
The Onion Router
tor is like browser
Oh yeah right i have heard of that
across atleast 3 nodes
the onion router
its used to access the "dark web" if you heard about that
Seems slightly far fetched to me
Plus
What are you gonna do when you're private
If you really wanted free speech
You will probably not get it
Since if you want to say something on facebook
you need to make an account
So what is it gonna do with chrome or firefox or everything else
and by making an account they will track the shit out of you
and then you will be more sus
Tor + linux tails + vpn is pretty much as private as u can get i hear, but even then youre depending on a vpn co
I doubt the nsa will track you down if you use tor
Lol thx
well
You can use it as a conventional web browser too, it's not just a dark web access thing
depends on your searches
ik but it's popular for that
Thing is
idk make your own vpn?
Afaik if you connect to a malicious tor exit node
Maybe, but I've seen more people use it as a privacy thing rather than for accessing the dark web
Well itโd have to be located far away from you
there are 3 possible ways your info can be leaked
first of all you can do an MITM fake SSL certificate attack
and the second way is that you connect to an HTTP website
and not HTTPS
3rd way is cookies from websites
Make sure you still follow the server rules in this channel btw
hm?
Dont stray too close to talking abt how to leak ppls info
oh ok
I'm just saying you can prob get ur info leaked
if you use tor as a general purpose browser
I wouldn't recommend doing that
plus websites will see you are using tor
The best way to not get hacked or smth like that is to not be a target, so dont be any sort of politician lol
interesting
idk who would use TOR on a regular basis
Firefox is fine for me, pretty customizable
So like your best bet is not using google assistant for example
but you can use google services normally
Well tbf if they did, they wouldnt be likely to say ig
You can close web and app activity and personalized ads in your google account settings
Alot of people
If you use Tails OS the traffic gets routed through tor by default
through obfuscated bridges or direct connections
Thing is
From my experience the only ppl who use tails are hackers and ppl in a "privacy" phase lol, till they realize you cant be completely private online
If an entry node is malicious
you can get joe mama'd
and you get your ip leaked
if you don't use a vpn
Thats where vpns come in tho
and even if you use a vpn the NSA has the right to "request info"
You can't say no to law enforcement
or else you become the criminal
for not cooperating
If you dont do anything illegal, you dont need to worry bout the nsa. Using tor isnt illegal afaik
why do python developers wear glasses?
what?
If you dont do anything illegal, you dont need to worry about the nsa (therefore why use tor in the first place?)
Theoritically if you don't do anything illegal you don't need to worry about google nor the NSA
wait will nsa catch me for downloading a repack?
But if you care about not being in a filter bubble
You can use Duckduckgo for example
What about in countries where free speech is suppressed
Tor is useful there
what do you mean "filter bubble"
But I'm saying that Tor isn't really secure afaik
filter you according to sites and searches you do
It's a term where you get put in a "bubble" and get news that only you want to see
like
so imagine if i like cats and i search dogs it will give me results on how "cats are better than dogs"
and if i like dogs its the opposite
if you search like is apple good
it says its good
if you search is apple bad it says its bad
ahh very interesting
that sort of thing
i wasnt aware of that
Lemme send you a link to a sumsub video on that
thats basically what social media do lol
Wake up, guys! Which pill would you choose - red or blue? Regardless, if youโre making a choice - the filter bubble has you! To make this all clear for you, weโre telling you the story about filter bubbles and echo chambers! Follow the white rabbit..
We hope you enjoy our video!
00:00 Intro
00:34 Barak Obamaโs Speech
01:02 The Filter Bubble Tr...
.bm
im gonna bm it and not checks my dm's later
@quartz parcel, please enable your DMs to receive the bookmark.
hey wait a minute
i saw elon musks tweet about changing your twitter to chronological instead of with recommended but when i did that my feed was empty
i thought there was a pr on negative words as responses from bots?
didn't they remove it?
I wouldn't say the same for whistleblowers
Yea
But I'm talking about using it for general use
is downloading a repack legal or not
If you don't have something important to hide then you probably shouldn't make people know you're hiding something
cracked games?
yea
illegal
so nsa be watching?
depends
afaik if you're in Germany then big oof
Germany has the most strict copyright laws iirc
always
well germany wants you to work
i think i illegally downloaded nuclear throne
not play
like imo
If you're a regular person and don't have any important things to hide
You probably shouldn't tell people you have things to hide by using tor for example
You're one person against a whole agency that is monitoring the internet and sometimes more
Tor exit nodes have control over all of the Tor traffic
^
which NSA has a lot of
40% of exit nodes are hosted by the NSA iirc
I personally hate the NSA, and the US Government in general.
not an unpopular opinion
^
even NSA hates NSA ig ๐
they gotta be there
like imo
They don't. Security holes just allow attackers from China or Russia in.
cus yk how bad things are in dark web right
Yep
I mean they got a point
Best way to be private is making your own pc from scratch and using a geo cache with a pre paid burner phone and using it to communicate with the internet or smth lmao
and making a secret base under a tree with an alternate exit
you are a genius
I am studying practical electronics, so I guess that's my first step.
from sratch
once you're connected to the internet, everything else is moot
like even the transistors
Thing is
mesh networks seem better for privacy
Just you breathing is a digital fingerprint
every second you take to think about something can be linked back to you
every millisecond you take to type each letter can be used to identify u
what does that cover?
Your characteristics also
I am totally against google and microsoft and most companies, as they are just data hungry @&#^$*#@
you missed the elephant in the room
Discord is a data hungry company too, y'know
meta
^
yep
Youre against the company but not the individual willfully signing away their data?
Company's need to be regulated ngl
individuals are kinda forced to sign away their data for convenience
well cus they force us to or they be like fck off
Forced? Youre forced to use google?
We are in a technological world
Yes. Especially in HS
trying to go back is like saying ima use a knife in a gun fight
when I did use it
yea ever heard of android?
e.g. WhatsApp in most of the world cannot be avoided
Google classroom
Buy some other phone?
What'sapp is meta
Iphone (closed source) ๐
yeah, so? Meta is bad/worse
worse ofc
Thing is
ikr
I'm just saying in general, you can't really choose private software
You could just text people, sms still exists
If you want to communicate with others like normal human beings
You must become part of the society
yeah, I tried that
Google won't accept a random person trying to use their services
people don't like that
Fuck society
eww do RSS
fsocietyโข
RRS?
This is turning very edgy very quickly
i forgot the name
They make their services zero trust
You are telling me an SMS is anonymous?
Monitoring SMS was like from 1990 prob
Tbh, if I was in a US prison for anything related to a crime, I would die.
There are free and open source alternatives that dont have as much telemetry
eww. edge
like what
irc
I'm not saying there aren't
Yes!
IRC is still monitored
they are just not convenient for the general public
If you wanna be completely anonymous dont use the internet then
Contrary to common belief law enforcement monitors IRC too
Yea well
Cant have a cake and eat it too
Fuck the law
Not using the internet is a big problem
??
You want people to break into your home and law enforcement do nothing?
.-.
For you, because youre putting arbitrary resteictions on yourself
Most US law enforcement abuse their prisoners
I see
yea
If I ended up in jail, i would kill myself
Hm, is it actually the majority? I'd guess it depends on where you live too
