#ot2-the-original-pubsta

652 messages ยท Page 133 of 1

jovial island
#

and understanding what is being done

upbeat sandal
#

What isn't basic about zip?

jovial island
#

my argument there is that you should usually know how to implement anything you're using - as far as information wrangling goes, as opposed to specialized tasks which are not as reasonable to be able to write

upbeat sandal
jovial island
#

I would argue that zip is basic, but I'll also argue that it'll look like magic, and that's bad

jovial island
upbeat sandal
#

zip isn't even guaranteed to use getitem

jovial island
#

the way some people are taught for-loops makes them think that there are multiple versions for range/len, lists, zip and so on

#

and, given that zip is basic, yes, they absolutely should know how to write it.

#

in any case - I did not protest against showing zip. I was only interested in making the point that the problem was solvable using basic things.

jagged blaze
#

men

upbeat sandal
onyx pawn
#

hello can someone help me decompile this .dll? im using dotpeek but its saying thats its not supported

jovial island
#

i love you like i love rust

#

allot๐Ÿฅบ

hollow heart
#

kinda weird

jovial island
#

its a joke and hes my friend -_-

hollow heart
#

i know, still weird to me tbh. dunno if it's just me

jovial island
dusty mirage
#

Yo can I be the cat so I can have an excuse to break stuff in the kitchen at 3am

dusty mirage
#

Great

brazen jacinth
brazen jacinth
brazen jacinth
#

@jovial island if you live in the province of ontario, it provides some resources here - https://www.ontario.ca/page/sexual-violence
Otherwise PLEASE check your provincial government pages for something related on reporting.

#

take everything i say with a grain of salt

edgy apex
worldly carbon
#

๐Ÿคญ

dawn siren
#

@gilded steeple quick ban old anya

gilded steeple
errant monolith
#
*hi*
\*hi*
#

huh

#

no syntax highlighting for markdown

#

sad

hazy laurel
#

Notice that the text is indented italicized

hazy laurel
errant monolith
#

?

#

it's not indented
it's in a codeblock

#

with language set to markdown

hazy laurel
#

idk why I said indented lol

#
*meow*
*meow*
#

see the difference

#

but of course if you're on mobile, you probably won't see much of any syntax highlighting

errant monolith
#

italicized:
hi

what I had:

*hi*
#

I see no italicization

hazy laurel
#

I probably should've checked beforehand but that is likely because you're on Discord Mobile

errant monolith
#

ah that might be it

hazy laurel
errant monolith
#

oh right I forgot there's no syntaxes highlighting on mobile F

#

mb lmao

hazy laurel
#

there's... some

errant monolith
#

well for major languages

hazy laurel
#

I've noticed some programming languages have some syntax highlighting but mostly none

errant monolith
#

yeah they aren't consistent about it :(

#

python has it

#

at least

#

sadly you can't see it when you type in the typey bar

#

it's just normal font with no changes

#

unlike non mobile discord

hazy laurel
#

Not that I'd ever wanna touch code from my phone

jovial island
#

@slate leaf hey brad have you seen fall guys?

slate leaf
#

Like a year or two ago I think

jovial island
#

its free to play and cross play and it has more levels which is cool

slate leaf
#

Alrighty, I might give it a gander

jovial island
foggy flicker
#

Yeah it just got free on epic

upbeat sandal
#

I'm here. in the chat.

edgy apex
dusty hedge
#

yo mama so old her age made a python int overflow

edgy apex
#

yo mama so fat, just instantiating her causes a MemoryError

upbeat sandal
#

would that person be a singleton?

#

is this C++?

edgy apex
#

i thought something like class YourMom(Person):

upbeat sandal
#

or

you.mom = Person(...)
edgy apex
#

fine i'll change it

versed wigeon
errant monolith
dusty hedge
#

yo mama so lame, writing her to the hard disk causes corruption, removing the entire filesystem

edgy apex
#

Chill bro

#

Chill

errant monolith
#

yo mama's initialization is so riddled with recursion that the core gets dumped when she's created

edgy apex
#

Yo mama so fat, she can't fit in eivl's RAM

dusty hedge
#

yo mama so thick, the radiation from tsar bomba doesn't reach under the skin

dusty hedge
errant monolith
#

yo mama's initialization is so riddled with inline recursion that trying to compile it crashes gcc bc of how big of a file it produces

edgy apex
dusty hedge
dusty hedge
errant monolith
edgy apex
errant monolith
dusty hedge
#

MY LIFE IS RUINED

errant monolith
#

which makes it the worst language

#

ever

dusty hedge
#

matlab

#

1 indexed

errant monolith
#

lmao

dusty hedge
#

i've not used inline functions

#

only defined variables

edgy apex
#

recursion using inline functions... seems weird

#

idk

errant monolith
#

exactly lmao

#

it's a horrible way to do stuff and that's the point

dusty hedge
#

i mma try it

#

inline function recursion in my header file

versed wigeon
#

the 1-indexed languages are basically designed for engineers

errant monolith
#

ew

#

lmao

versed wigeon
errant monolith
#

why though

versed wigeon
#

0 didn't exist until recently

#

whenever someone wanted to write an equivalent to 0 they would just leave it blank

errant monolith
#

instead of being willing to have a small change in the way they think

versed wigeon
#

python lists are not actually, in memory, 0-indexed
they're 3-indexed

edgy apex
#

auuuuuuuughhhhhhhhhhh

errant monolith
#

yeah but that's in memory
I'm talking about how you access elements in the list

#

from the users perspective

#

not the machines

#

lmao

versed wigeon
errant monolith
versed wigeon
#

0 is for reference count, 1 is for the type, 2 is for the size

versed wigeon
#

3 is for the actual start of the list in memory

errant monolith
errant monolith
versed wigeon
#

0-indexing is also machine perspective really

versed wigeon
versed wigeon
#

but the machine knows that 0 maps to 1st

errant monolith
#

bc when you count first number is 0

versed wigeon
versed wigeon
versed wigeon
errant monolith
#

first means the one at the beginning
not my fault that English decided to derive that from 1 indexed nightmare

#

lmao

gusty junco
versed wigeon
errant monolith
#

yes bc back then math as we know it wasn't rlly a thing yet

#

they also didn't have negative numbers

#

but lua has those

#

why not 0 indexing?

#

lmao

versed wigeon
#

it's easier to just use 1 for 1st instead of 0 for 1st

versed wigeon
#

unnecessary -1ing

errant monolith
#

then by your logic why don't all languages use 1 indexing

versed wigeon
jovial island
#

Hi

dusky cliff
jovial island
#

I can't seem to find it wherever I look but i am trying to "jump" to an anchor in the html document using javascript?

#

html/css/js question ^

brazen jacinth
#

if i had a nickel for every level for every year i've been existing, i would have 65 cents. which isn't a lot, but it's damn weird i have a net of 0.5 bil but only on level 13

steel eagle
#

Did you just have a stroke?

brazen jacinth
#

.bm 989542118605348944

jovial island
#

@willow plinth accept my rq or else ill go to your school with my pig

#

๐Ÿ–

jovial island
brazen jacinth
brazen jacinth
#

i feel like pydis is the exact opposite of r/choosingbeggars, people here are begging to pay

#

(which of course goes against rule 9)

brazen jacinth
# steel eagle Did you just have a stroke?

that sounds weird reading it out loud, to clarify, i was talking about my account in dank memer, i have a net of 0.5 billion but im only on level 13. which also happens to be my age. so if i had a nickel for every level i have on dank memer, i would have 65 cents

#

but i also have 0.5 B

lofty loom
wheat rock
jovial island
#

@carmine marsh 11th medical

carmine marsh
#

lol

jovial island
#

wbu

carmine marsh
#

ok

jovial island
#

ok

carmine marsh
jovial island
#

gonna take pcm in 11th?

carmine marsh
#

maybe ill go into commerce

jovial island
#

nice

brazen jacinth
#

razor face is def trolling

zinc hatch
#

!e
@swift cobalt I think you're the kind of person who enjoys a bit of pedantics. Technically speaking, an object can be iterable without its type implementing an __iter__ method that returns an iterator. There's an older protocol for __getitem__ iteration which was meant to make sequence-like objects iterable (even if they didn't have a __len__):

class Foo:
    def __init__(self) -> None:
        self._values = [1, 2, 3]

    def __getitem__(self, arg):
        return self._values[arg]


for i in Foo():
    print(i)
clever salmonBOT
#

@zinc hatch :white_check_mark: Your eval job has completed with return code 0.

001 | 1
002 | 2
003 | 3
heady schooner
#

pong

#

who pinged me ๐Ÿ˜ญ

swift cobalt
#

Pong

#

๐Ÿ˜›

brazen jacinth
#

on a scale of one to ten the pain of colors is so loud, i can't even write it

remote widget
#

Just a suggestion tho

carmine marsh
remote widget
#

Well, as I said it was just a friendly advice. I'm currently in 12th and what I have understood till now, until u don't get a job in a good company, u won't have enough time to code because Commerce isn't easy. It can easily take up all yr time

tranquil sleet
#

plus hobbyist programmers are some of the most knowledgeable programmers i've found

#

their day job would be something completely unrelated to CS and programming would be their pastime ๐Ÿ˜„

#

and you don't land job in good companies after 12th, at least in india, where's bachelors? ๐Ÿ‘€

remote widget
#

And yea, I agree with u

versed wigeon
remote widget
#

But since as hobbyists have passion, at least they are always eager to learn new things in Python (this is true for me at least)

primal bay
#

hey guys

#

i have a question

#

who here knows how to develop google app script

fluid plank
#

yeah most of the time it is a hobby and volunteering

mental idol
#

@fast trench In case you were curious. coverage is a tool that helps you see where your tests might miss those branches in logic.

jovial island
#

@rough osprey

#

Ok so

#

You can try contacting Instagram support

#

Or

#

Try to contact the police

#

They prob have a section for cyber crime

rough osprey
#

@jovial island he wanted me to give him a 100โ‚ฌ steam card and I wasted his time so much he gave up๐Ÿ˜‚

#

I don't know if he'll send it or not but you guys helped me relax by saying that I can just say it's not mine which is not

mental idol
#

Thanks copilot! (there are three pages of these ๐Ÿ‘€)

unreal sigil
#

oh my ๐Ÿ‘€

sinful sun
#

dev = [*]

mental idol
sinful sun
#

Truly the peak of AI development

dusky cliff
#

amazon released a copilot clone or whatever

#

codewhisperer

languid osprey
#

I saw something about that earlier

remote widget
#

@languid osprey congrats on the Helper role!

sinful sun
#

Longest grind to helper yet?

#

150k messages?

edgy apex
#

var $ = document.querySelector;
fast 0.03kb alternative to jquery

#

(working 2022)

somber belfry
modest jay
#

another server, what do i tell them

brisk edge
#

it's good

daring jay
#

takes a while, for sure

bitter kite
#

yes, gotta make sure all of those messages meet the quality standards

remote widget
#

Shit, I should probably stop shit posting...

jade crown
#

yo

#

this channel dead

slow valve
#

willy wonka chocolate factory 3 am experience vs chukky cheese factory 3 am experience

fluid haven
slow valve
#

๐Ÿ’€

brisk edge
#

@fluid sparrow, seems like the tzinfo interface is only meant to handle datetime objects

#

!e

from datetime import datetime
from zoneinfo import ZoneInfo

tz = ZoneInfo('Europe/Berlin')
print(tz)
print(tz.dst(datetime(2000, 1, 1)))
print(tz.utcoffset(datetime(2000, 1, 1)))
print(tz.dst(None))
print(tz.utcoffset(None))
clever salmonBOT
#

@brisk edge :white_check_mark: Your eval job has completed with return code 0.

001 | Europe/Berlin
002 | 0:00:00
003 | 1:00:00
004 | None
005 | None
brisk edge
#

that None is passed for time objects

cedar turtle
#

henlo

lofty loom
hazy laurel
fluid sparrow
brisk edge
fluid sparrow
#

I am very lazy but I am also obsessed with the datetime library, so I might check later

slow valve
brazen jacinth
#

r/suspiciouslyspecific

tribal tinsel
brazen jacinth
jovial island
#

you touch it and the paws wrap around your hand in a death choke

drowsy monolith
#

itโ€™s off topic

jovial island
#

@civic wharf @restive remnant peace โค๏ธโ˜ฎ๏ธ

remote widget
#

Lmao

edgy apex
#

Yoooo

#

Didn't know Pydis had a forknife gamer club

brazen jacinth
jovial island
#

@errant seal that user's been asking that question like 5 times already, they don't ever solve any part of it themselves and if you look at search from: user it's pretty much the same for >1month >.<

errant seal
#

sorry, which user?

#

@jovial island

jovial island
#

well uhm. can I dm you for a moment about it?

errant seal
#

sure

#

ModMail would be better if you had a concern though

brazen jacinth
#

what the hell

#

did i just witness

#

im posting it on youtube

#

i was trying to do a speedrun

#

but then this happened

jovial island
#

i love forknife

brisk edge
#

not on mobile @languid osprey

languid osprey
#

ah hm

brisk edge
#

on mobile

languid osprey
#

ah

daring jay
brisk edge
#

nice

#

that's not markdown tho pithink

daring jay
#

yeah no discord has it's own extensions on markdown

keen burrow
#

a wa

daring jay
#

a wa

jovial island
#

a wa

tranquil sleet
#

a wa

cinder coral
#

Hey there

#

Anybody working on projects lately?

#

Iโ€™m bored lol

tranquil sleet
cinder coral
#

wdym

#

Rust the game?

tranquil sleet
#

rust the lang

#

๐Ÿฆ€

cinder coral
#

Oh right

#

The coding language

#

Yea I donโ€™t know it lol

jovial island
#

Forknife gamer club

fluid plank
#

i like this otn

#

reminds me of my fav vtubers

edgy apex
#

how german are you

cinder coral
#

Hi

#

I made a spammer in python that spams the bee movie

#

hehe

clever salmonBOT
#

5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.

clever salmonBOT
#

bemovee.txt line 1975

7```
cedar turtle
#

im so german i can say eselifterbraun 9 times without stuttering

edgy apex
#

wenomechainsuma

#

tumajarbisaun - indian

#

wifenlooof - german

#

eselifterbraun - also german

swift cobalt
#

About 1%, according to my genealogy report

jovial island
#

ofc i read it its my fav movie

#

๐Ÿ˜ณ

edgy apex
#

ya like jazz?

jovial island
#

allot

#

๐Ÿ

edgy apex
#

i've seen that one before

jovial island
#

i know you have

vale spire
#

anyone likes chess here?

vale spire
frigid pollen
#

@swift cobalt You know those moments when you walk out of a door and you stumble but everyone else is looking the other way?

frigid pollen
edgy apex
#

ok i pull up

swift cobalt
#

๐Ÿ˜›

frigid pollen
#

"Hey, look! It's OpalMist! He walks out doors like a boss!"

frigid pollen
#

Love that movie.

#

Haven't watched it for years.

#

Have it on DVD

swift cobalt
#

Like I said. OpalMist: the man, the legend

#

What is this movie?

frigid pollen
#

The Devil Wears Prada.

swift cobalt
#

Fuck the what! You know I've never seen this movie?

#

I ashamed to say

vale spire
#

you guys play chess?

frigid pollen
#

No longer.

vale spire
#

sad

swift cobalt
#

Once upon a time I did. I had a old-man friend who'd invite me over for beer and chess once a week

vale spire
#

I can provide the game play

#

beer, if we meet

swift cobalt
#

I feel like this is the setup for a long and protracted pun

#

Like waking up before everyone else so that you can put all of the coffee mugs in the house out on the deck, and then telling everyone as they're getting up that it's kinda muggy outside

#

In general, yes I'd love to play! ๐Ÿ™‚ But not right now. Now, I sleep

swift cobalt
#

XD You have a coffee mug with your name on it

#

Referring to yourself in the 3rd person

vale spire
vale spire
#

I would replace the not with an and

swift cobalt
#

When I was coaching a friend of mine through first year programming, I told her about my philosophy

#

Of learning through trial by fire

#

So she got a coffee cup made that said "Trial by Fire" and had this on it

#

I think it sums the programming experience up pretty nicely

jovial island
#

im hungry for some pizza but its 3amlemon_sentimental

jovial island
#

i can make me some, but if i do ill get in trouble so im just here hungry and not tired at 3am๐Ÿ˜”

swift cobalt
#

Cereal is always good for that

#

Filling, hydrating

#

Cronchy

jovial island
#

no milk๐Ÿ˜”

vale spire
#

a croissant?

foggy flicker
#

just sleep ez

edgy apex
#

cursed 4k XP bg

frigid pollen
#

It seems, if anything, an improvement over the original.

brisk edge
#

cursed blessed

jovial island
lofty loom
#

Bliss but RTX

willow plinth
feral oriole
real wing
#

Moin o/

brazen jacinth
#

the only time you'll hate java is after your boss asks you to refactor the unrefactorable deeply nested functions and classes that he asked you to nest

#

i speak not from experience

#

๐Ÿ‘

civic wharf
#

java java java

#

ok i just had to get that out of my system

rare moat
#

Java sucks, Python sucks, C# sucks.

#

all these languages suck. use C.

sinful sun
#

Scala and clojure devs making bags, looking at python devs

rare moat
#

Clojure is the only good LISP anymore change my mind.

brisk edge
#

Python devs making bank

civic wharf
#

the only part i dont like about java is

class Main {
  public static void main(String[] args) {
  }
}``` and no runtime generics
brisk edge
#

java generics are a mess

#

just like go generics

civic wharf
#

indeed

#

they compromised a bit too much on them i think

rare moat
#

i thought Go generics were pretty good?

sinful sun
#

I thiught go generics were a meme

brisk edge
#

adding generics as an afterthought makes a mess

rare moat
#
// SumIntsOrFloats sums the values of map m. It supports both int64 and float64
// as types for map values.
func SumIntsOrFloats[K comparable, V int64 | float64](m map[K]V) V {
    var s V
    for _, v := range m {
        s += v
    }
    return s
}
civic wharf
#

like they wanted to keep java 1.4 code bytecode compatible with 1.5 .. but why

rare moat
#
m map[K]V

what the fuck is this

civic wharf
#

now nobody even cares about java 1.4 but the consequences continue

civic wharf
#

is that an m map[K]V in your code or are you just happy to see me

rare moat
#
V int64 | float64```
#

i guess this specifies a type parameter V that can be an {int,float}64..

civic wharf
#

where is K defined

daring jay
#

K is comparable

brisk edge
#

it just exists

rare moat
#

and k can be.. anything that is comparable..?

daring jay
#

looks like it

#

but idk go or whatever that language is

hazy laurel
#

burn it

rare moat
#

its Go.

civic wharf
#

wait comparable means something?

rare moat
#

i wonder if you can specify K can be anything that is hashable.

brisk edge
#

go burn it

hazy laurel
#

burn go it

rare moat
civic wharf
#

comparable with ... something .

brisk edge
#

it go burn?

rare moat
#

(which honestly i think is kind of cool honestly. compile-time restriction of types based off what they can do is fucking awesome and i love the idea of that)

sinful sun
#

Comparable probably means implements <, >, ==

civic wharf
#

is it like Comparable<Object> lol

hazy laurel
#

idk who this "Go" character is, but I don't think I'm glad he exists

daring jay
#

yeah that's how it is in Rust

daring jay
rare moat
#

if you were writing a hashtable you could restrict keys based off of whether or not they are hashable.

daring jay
#

oh you sweet summer child /s

rare moat
civic wharf
#

let's not go

brisk edge
#

where do we go from here

civic wharf
#

to he--

rare moat
#

honestly this is the only thing i regret about being a C programmer.

i do not have the fun features of a modern and flexible type system.

#

which kind of makes me sad, but.

civic wharf
#

go does?

daring jay
civic wharf
#

is go the one that has interface{}

brisk edge
#

isn't Go's type system heavily criticized for its lack of flexibility?

rare moat
sinful sun
#

You can always learn more things?

brisk edge
daring jay
hazy laurel
rare moat
civic wharf
#

now i get it ... comparable is comparable with .. an interface{} lol

daring jay
#

literally pl theorists are over here shilling dependent types and algebraic effects and the industry is just "omg non-nullable types!!!"

civic wharf
#

groan

brisk edge
#

Thereโ€™s no incentive to convert a pure function that takes an interface to use Generics in 1.18. Itโ€™ll only make it slower, as the Go compiler cannot currently generate a function shape where methods are called through a pointer.

sinful sun
#

What about muh strong, independent types who dont need anyone telling them what they are

brisk edge
civic wharf
#

๐Ÿ’€

rare moat
civic wharf
#

then what the heck is it called through

daring jay
rare moat
#

๐Ÿคฃ

daring jay
#

yes I said their

#

no i do not know why

hazy laurel
#

banned

#

know your homophones

rare moat
#

phon

hazy laurel
#

es

civic wharf
#
T = TypeVar("T")
List[T]``` is so much better right?
daring jay
#

ikr

brisk edge
#

ring ring, hello?

rare moat
#

banana phon

daring jay
#

I like pep 593 it's somewhere between refinement types and dependent types but I don't know where

brisk edge
#

!pep 593

clever salmonBOT
#

Sorry, an unexpected error occurred. Please let us know!

AttributeError: 'Context' object has no attribute 'trigger_typing'

civic wharf
#

no we are not hacking in a type system shh

brisk edge
#

say what

daring jay
#

what.

#

!pep 0

clever salmonBOT
#

Sorry, an unexpected error occurred. Please let us know!

AttributeError: 'Context' object has no attribute 'trigger_typing'

rare moat
#

THE BOT FUCKIN BROOOOKE.

brisk edge
#

FreeBSD yert

rare moat
civic wharf
#

the virtual base class thing is pretty insane imo

brisk edge
#

good insane or bad insane?

civic wharf
#

convoluted insane

#

a bit like magic

daring jay
#

I wish type inference in Python was standarized

civic wharf
#

like "it magically works" lol

#

like isinstance([], Sequence)

#

if i recall correctly it does a bunch of shenanigans to check if various functions exist on the class?

#

after looking up through some registry thing

brisk edge
#

oh. I thought it just checked the mro

civic wharf
#

that would make more sense but I don't think its in the mro, sadly

#
>>> from collections.abc import Sequence
>>> isinstance([], Sequence)
True
>>> type([]).__mro__
(<class 'list'>, <class 'object'>)```
brisk edge
#

I feel like we should make a !csrc command to search the CPython source code

civic wharf
#

i kind of wish they were in the mro

#

it would be simpler that way

civic wharf
#

i dont know how we could even do it

clever salmonBOT
#

Objects/abstract.c line 2610

object_recursive_isinstance(PyThreadState *tstate, PyObject *inst, PyObject *cls)```
brisk edge
#

why is it recursive? pithink

#

!e list.instancecheck

clever salmonBOT
#

@brisk edge :warning: Your eval job has completed with return code 0.

[No output]
round moss
#

I assume because it calls itself if it's second argument is a tuple, and well, __instancecheck__ can also call it.

brisk edge
#

mhm. it does check for a tuple before recursing

round moss
#

Oh, you can do isinstance(3, (str, (bytes, int)))

#

That's fun

#

So it needs to do recursion

#

TIL

brazen jacinth
#

wow will you look at that, i just switched to arch!

remote widget
#

Huh?

cinder coral
#

Hello

#

How ya doing

#

In texting so that I can be voice verified lol

#

well not texting

#

But messaging

#

Whatever u wanna call it

slate leaf
rigid echo
wheat rock
tranquil sleet
brazen jacinth
tranquil sleet
#

๐Ÿงข

jovial island
#

Ooh, that's a pretty nice Code Jam role icon

foggy flicker
tranquil sleet
foggy flicker
#

250wpm is what arch users start with

#

They go on to reach 300wpm+

tranquil sleet
#

i can agree with the 2nd and third one but first one seems very unrealistic

#

does that count clicks as in mouse clicks or key presses?

foggy flicker
tranquil sleet
#

nah that aint possible

#

not humanly at least

#

doubt osu players can reach even 20

foggy flicker
#

Who said Arch users are human in first place?

#

Damn, it's so hard to type on mobile

tranquil sleet
#

where's your archโ„ข๏ธ

foggy flicker
#

Only if I could install arch on my mobile

echo fern
foggy flicker
brazen jacinth
#

Reasons why i should be an moderator

  1. I have never committed power abuse
  2. I have never committed power abuse
  3. I have never committed power abuse
  4. I have never committed power abuse
  5. I don't pay taxes
foggy flicker
#

I guess we should fight for our rights here

#

This seems to be a serious issue

vague shadow
#

power abuse is one of the requirements actually

#

so I guess you're all off the table

slate leaf
clever salmonBOT
#

:incoming_envelope: :ok_hand: applied mute to @vague shadow until <t:1656535884:f> (59 minutes and 59 seconds).

brisk edge
#

but you can't

slate leaf
#

They are certainly muted

daring jay
#

no they aren't

hazy laurel
#

is it power abuse if a giant pokes another giant

brisk edge
#

earth to chris, are you there?

slate leaf
daring jay
#

one sec

#

brad is the criminal

#

it's undeniable

#

just look at that infraction ratio

slate leaf
#

lol

#

I forgot they have the "no u" filter on

hazy laurel
vague shadow
#

Yea, brad is just muting himself

daring jay
foggy flicker
#

Yeah can somone please ban Chris

daring jay
#

wait actually I'm curious

#

!ban 126811506632294400 does this rebound

clever salmonBOT
#

:x: @daring jay, you may not ban someone with an equal or higher top role.

daring jay
#

sad

foggy flicker
#

Not skilled ic

foggy flicker
#

Damn it, this guy is muted and still sending messages

brisk edge
#

technically they're not talking, sooo

brazen jacinth
#

and i was solely responsible for current day gas prices

dusky cliff
#

it was a trick question

#

played like a fiddle

fluid plank
#

where's the bread?

buoyant sage
#

is anyone here a tutor at Course Hero or applied for becoming one?

hazy laurel
languid osprey
#

@rare moat

rare moat
#

alright Aboo enlighten me

lofty loom
#

Enlighten us

rare moat
#

wow that really just came out of my mouth

languid osprey
#

traits are a way you can define a group of methods, or some shared behavior on a struct

#

what the fuck

lofty loom
#

Let's accelerate that
dumps gasoline on you

languid osprey
#

:p

rare moat
#

๐Ÿคฃ

languid osprey
#

sort of like ABCs in python, I guess

lofty loom
#

But no inheritance

languid osprey
#

you can get shared behavior on multiple types without inheritance

rare moat
#

C O M P O S I T I O N

#

whatever that means

languid osprey
#

or like, do stuff with trait objects and generics

rare moat
languid osprey
#

which let you define functions and type things like Vecs which'll accept a type which defines some trait

rare moat
#

oh?

#

so like

#

if i had a hashtable key which defines a hashtable trait (or w/e)

#

restricting a function parameter based off what traits it defines

#

apparently Go has that stuff too.

languid osprey
#

like ```rust
fn foo(x: impl MyTrait) { blah }

#

x will accept types which implement MyTrait

#

I'll be off for now ๐Ÿ‘€

rare moat
#

OKAY THANK

echo fern
#

note that fn foo(x: impl MyTrait) is the same as fn foo<T: MyTrait>(x: T). It's a function generic over a single type parameter, which has a MyTrait bound. Both of them use static dispatch - at compile time there'll be generated a version of this function for every concrete type T you use with it. It does not use dynamic dispatch, like x: Box<dyn MyTrait> would.

swift cobalt
#

Crimes Against Humanity?

#

XD

echo fern
#

!rule -1

clever salmonBOT
#

:x: Invalid rule indices: -1

echo fern
#

ah right, that was mod trolling, not an actual easter egg

willow plinth
#

๐Ÿ“จ ๐Ÿ‘Œ applied ban to mods permanently.

sinful sun
#

You cant advertise here friend, you should ask for mod permissions first

tranquil sleet
#

๐Ÿ“จ ๐Ÿ‘Œ

jovial island
rugged portal
#

@remote widget I've accepted defeat I will perform 2 queries.. :(

remote widget
#

๐Ÿ˜”

#

wait did u try executemany?

rugged portal
remote widget
#

Fuck

rugged portal
#

Which apparently is harder than it is supposed to be imo lol

#

My query I used worked in the query tool where I make my queries but the lib said fu

#

f-string did work but I'm not taking any chances with the url.

copper fable
#

@spiral ember dude i love raft

brazen jacinth
#

joe mama

spiral ember
errant seal
#

If that link didn't work: @jovial island

brazen jacinth
#

I add two damn reactions to a message in mobile in 2 seconds, and I'm apparently rate limited

sour basin
#

happens all the time

fossil sapphire
#

rip technoblade...

steel eagle
#

No need to spam every channel with the same message

austere notch
#

hi

edgy apex
#

crazy firefox

#

really had to teach users to block windows' edge advertisements

willow plinth
lone lotus
#

okay

#

forget abotu the scraping stuff

#

just need help with db

safe loom
#

what's the question*

lone lotus
#

I want to insert data into a db but when i do I get the most absurd error I have ever seen. gunna post the code, then the error

#
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using System.Threading.Tasks;
using MySqlConnector;

namespace ScrapingZameen2MySQL
{
    class WebScraping
    {
        public static void Main(string[] args)
        {
            HtmlAgilityPack.HtmlWeb website = new HtmlAgilityPack.HtmlWeb();
            HtmlAgilityPack.HtmlDocument html = website.Load("hchanged for security ");
            var car = html.DocumentNode.SelectNodes("//a[@class='car-name ad-detail-path']").ToList();

            var connection = new MySqlConnection();

            try
            {
                connection.ConnectionString = "server = localhost; User Id = root; " +
                    "Persist Security Info = True; database = Car; Password = changed";
                connection.Open();
                Console.WriteLine("Succesfully connected!");
            }

            catch (Exception e)
            {
                Console.WriteLine("MySQL Connection Failed due to: " + e.ToString());
            }
            Console.WriteLine($"Connection Confirmed: {connection}");

            foreach (var content in car)
            {
                //Console.WriteLine(content.InnerText);
                var carname = content.InnerText;
                //Console.WriteLine(carname);
                string Query = $"INSERT INTO Car.Zameen_CS(Car_Name) VALUES ({carname})"; // Information we want to send
                MySqlCommand MyCommand2 = new MySqlCommand(Query, connection);
                MySqlDataReader MyReader2;
                MyReader2 = MyCommand2.ExecuteReader();     // Here our query will be executed and data saved into the database.
            }
            connection.Close();
            Console.WriteLine("Vehicles Name has been inserted successfully");
        }
    }
}
#

so there is some scraping but I don't need help with that

#

Yes its allowed

#

I contacted support

#

posting error code now

#
Unhandled exception. MySqlConnector.MySqlException (0x80004005): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Benz S Class  2015 S400 Hybrid for Sale
                )' at line 2```
brisk edge
#

probably because you don't have quotes around {carname}

safe loom
#
string Query = $"INSERT INTO Car.Zameen_CS(Car_Name) VALUES ({carname})"; // Information we want to send
brisk edge
#

also, use a parameterized query instead of string interpolation

lone lotus
#

I do but I don't as well

brisk edge
#

quantum understanding

safe loom
#

A parameterized query is a type of SQL query that requires at least one parameter for execution.

lone lotus
#

okay

#

That still doesn't help me

#

as in, i dont get what to do

brisk edge
lone lotus
#

just not the same guy

#

will that still allow me to insert an array of data? one by one ofc

brisk edge
#

there's probably a bulk equivalent of AddWithValues

#

that will allow you to do

INSERT INTO tbl (col)
VALUES
  (val1),
  (val2);
lone lotus
#

Man, i'm quitting

#

shit to hard for me

#

I'm moving back to python

brisk edge
#

๐Ÿฅด

lone lotus
#

thanks for trying

#

fuck C#

safe loom
#

I've only used C# for game dev.

lone lotus
#

Alright yall have a good night now

#

probaby gunna be using C# tmr

neon umbra
#

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

real forum
lone lotus
#

Itโ€™s written in C#

#

Anyways Iโ€™m back working on it

#

Even my own brain wonโ€™t let me quit

brazen jacinth
#

lemon is a lie

remote widget
#

๐Ÿ‹ is a ๐Ÿคฅ

tranquil sleet
#

XD

nova ember
fluid plank
fluid plank
rapid anvil
#

hey i js doxxed you

#

and this is crazy

#

i have your ip

#

ill boot you maybe

#

wrong server

wicked hollow
#

let's not make jokes about this, please.

lone lotus
#

Iโ€™m back within 1 hr of quitting

jovial island
#

@rigid wadi wtf

void minnow
wicked hollow
hazy laurel
void minnow
#

It sent me to a discord server

hazy laurel
void minnow
#

Thanks

hazy laurel
void minnow
#

oh

#

Im clueless when it comes to these things

hazy laurel
void minnow
#

yeah

hazy laurel
#

then yeah, that's just an invite

#

if you accept it, you just get put into a Discord server

#

the worst that can happen is that it's a Discord server you don't want to be in, and in that case you can simply leave

void minnow
#

Cool

daring jay
#

These servers have a common pattern of linking to a verification channel

#

Which has a QR code

#

If you scan that, your account is compromised

#

But just joining does nothing

hazy laurel
#

I'm just saying that the worst that can come of clicking a Discord invite is that it's a server you don't want to be in

#

Any other consequence is going to be from a different choice

hazy laurel
digital bane
#

Hao are ya?

hazy laurel
#

I never have an answer other than "tired"

#

but I'll say "good"

#

You?

digital bane
hazy laurel
fluid plank
#

when youre bored

#

u gain superpowers

willow plinth
#

@echo fern this ^

#

oh it sends image below

#

rip

echo fern
#

hmm

lusty brook
#

5 minutes of painfully slow cloning just to error out .... ahhhh

brisk edge
#

99% error moment, except it's 100%

dusky cliff
#

rip

remote widget
gritty timber
#

can anyone help me with two java programs?

willow plinth
#

thats why i pointed ^

remote widget
#

No I mean

#

What is the program

willow plinth
winter cove
remote widget
#

oh cool

lusty brook
winter cove
#

oh, it's in french

#

oh

#

no

#

it's got milliseconds

#

thats what threw me off

tranquil sleet
#

lol what did you think it was

winter cove
#

not ms

daring jay
#

what, did you think it took 5 months? /s

winter cove
#

no lmao

#

just thought it was broken

#

wait a minute 62 milliseconds, that doesnt sound right

radiant socket
#

20s?

winter cove
#

This time format has just puzzled me

tranquil sleet
winter cove
tranquil sleet
#

true that

#

1000 60 60 24

winter cove
#

1000 60 60 24 7 a month? 12

tranquil sleet
#

XD

willow plinth
#

best message

languid osprey
#

i panik owo

willow plinth
#

.status 429

rustic harborBOT
#
**Status: 429**
willow plinth
#

.status 429

rustic harborBOT
#
**Status: 429**
willow plinth
#

yey

jovial island
willow plinth
#
    comment: Pattern = re.compile(r'(//.*)')
    get_cluster: Pattern = re.compile(r'(\d+)(?:[,}])')
    variable_regex: Pattern = re.compile(r'(?P<name>[^\d]\w*) *=[^=] *(?P<value>.+)')
    comparison_regex: Pattern = re.compile(r'(?P<name>[^\d]\w*) *== *(?P<value>.+)')
    val_token: Pattern = re.compile(r'([><$(==)+*-])')
    string = re.compile(r'(\'|")(?P<value>[^\1]*)\1')

๐Ÿ’€

pallid wagon
#

@jovial island what kind of help do you need with value investing?

jovial island
#

@pallid wagon Iโ€™m also creating a tK interface where you type in the industry it shows you the list of stocks

pallid wagon
#

That sounds good

#

On which part?

#

@jovial island please post your question here instead of DMing ๐Ÿ˜

#

The data may have something that tells you industry

jovial island
#

Alright nevermind @pallid wagon

#

Thanks anyway

jovial island
#

ehh so i needed a good laptop for coding recommendation, budget around 700 and 1000

cursive harness
#

anyways so

#

yeah

#

don't buy a lenovo one

#

they break just by looking at them a lil too hard

jovial island
#

its funny bc someone in apple server adviced me to get a lenovo

#

but generally i hate that laptop's design jkklsfll

cursive harness
#

i've had a lenovo chromebook for 3 years

#

for school

jovial island
#

ugh

cursive harness
#

screen has broken arround 6 times

jovial island
#

the design alone gives depression

cursive harness
#

thank god we got insurance

jovial island
#

frr, did u buy another after?

cursive harness
#

no like

jovial island
#

i just want a laptop since i can get it wherver i want building a pc is..

cursive harness
#

they forced us to buy a shitty chromebook

jovial island
#

i mean i would build once i get rich haha

jovial island
cursive harness
#

i mean if you want a good laptop for coding i'd say get a chromebook

#

the cheapest one you can

cursive harness
cursive harness
#

it can't run games though

jovial island
#

i wanetd a macbook but apparently u cant game

#

BUT I COULDNT EVEN BE PLAYING AT TEH FIRST PLACE WHY AM I FOCUSING ON THAT PART IT DOESNT MATTER

fluid haven
cursive harness
#

just dualboot

jovial island
#

TYY

cursive harness
#

damm

#

didn't know

jovial island
cursive harness
jovial island
#

im glad it exists

jovial island
#

macbook pink is so aesthetic and cute help

cursive harness
cursive harness
#

im using a macbook 2016 pro

#

handdown

#

and it's pretty aight

jovial island
#

do u play too?

cursive harness
#

i can play inscrypiton at a whopping 20 fps

cursive harness
#

i just play osu and that's about it

jovial island
#

do u do coding on it?

#

if its good for coding ill give up gaming ( im lying)

cursive harness
cursive harness
#

you gotta like the keyboard

#

that's about it

#

i mean it depends on what you're working on

jovial island
#

right, isnt it also about being fast in executing code or whatever?

fluid haven
jovial island
cursive harness
#

i mean im not saying get a 1999 computer to do programming

#

but a modern-ish laptop should be alright

fluid haven
#

If you have some heavier tools running like an editor, debugger, browser, discord etc at the same time when working on a very low tier laptop you'll have a lot of lag and may even experience programs shutting down due to low ram

cursive harness
cyan vine
#

electron apps and lack of ram is not a good combo

jovial island
#

and the laptop im using rn dont even have cpu

#

since it's schools too

#

so like

cursive harness
jovial island
#

cant run a virtual machine

cursive harness
#

huh?????????

#

it has a cpu

jovial island
#

like we cant adjust settings

#

so no vm

cursive harness
#

you know you don't need the bios

#

to run a vm

jovial island
#

thats why i need a new one

cursive harness
#

right?

jovial island
#

but i tried and it tells me failed to boot

cursive harness
#

what os is it running

jovial island
#

linux

#

32 px

cursive harness
#

a school computer???

jovial island
#

rn i have windows

#

but the vm i want is linux

cursive harness
#

a school issued computer or

cursive harness
#

you can use wsl

jovial island
cyan vine
#

if your windows is up-to-date enough, and space permitting, you can use wsl2

cursive harness
jovial island
#

id download few pictures and it tells me full already

fluid haven
#

My current laptop has only 6gb ram so I do run out at times.

cursive harness
jovial island
jovial island
cyan vine
#

windows subsystem for linux

#

you turn on some settings and then you can download ubuntu for example from the windows store

#

it'll give you access to the shell

cursive harness
#

i mean i haven't been on a pc with less than 16 gigs in arround 2 years (except school chromebook which i just use to read manga and school books)

jovial island
#

alright thank u !

jovial island
#

i think chromebooks are good for my budget

cursive harness
cyan vine
#

another low budget option is use a usb stick to boot a linux os, but this comes with downsides of r/w on the usb, and if you're using a custom laptop it would probably cause issues with your bootloader, so maybe not worth it

jovial island
#

i mean if i can run a vm on a chromebook and have at least one video game id get it

fluid haven
#

Chromebooks are nice if all you do is use chrome

jovial island
#

thats all i need from a computer kk

cursive harness
jovial island
jovial island
cursive harness
#

a chromebook is just a work laptop

cyan vine
#

i'd rather recommend a decent laptop over a chromebook, depending on your budget

#

you don't need touchscreen or anything so it shouldn't be that difficult

#

if you don't want windows you could alwyas put pop os or something on it

jovial island
cursive harness
cursive harness
#

im still gonna adress you by he 99% of the time though (not bc idc you're a girl it's just i'll forget)

jovial island
jovial island
cursive harness
cyan vine
#

lenovos are usually decent, i wouldn't bother with gaming laptops like alienware

jovial island
#

the suggestalaptop discord kicked me out

cursive harness
cyan vine
#

focus on specs over brand

jovial island
#

ik i shouldnt be like ' i hate it ' since its decent but like

#

id like having a comfortable process while working bruh

cursive harness
#

my cousin's laptop fell from like 10 cm onto a 2cm thick carpet and it basically fell apart, my chromebook screen broke 6 times in less than 3 years using it like a normal human being

cyan vine
#

you don't have to justify yourself. just get a list of specs you need and start from there

cursive harness
jovial island
cursive harness
#

design is design

#

if you like it

#

sure

#

if you dont

#

dont buy it

cyan vine
#

e.g. 15" screen, 8gb ram minimum

jovial island
#

when it comes to gaming what makes a laptop good?

cursive harness
#

i'd do 8 expandable/16 gigs

jovial island
#

ah btw i wanna play genshin impact on it

cyan vine
#

i don't like to recommend gaming laptops

cursive harness
jovial island
#

not the battleroyal ones its ok ill keep on phone since id be like noob

fluid haven
cursive harness
#

it's gonna run you 1k on a gaming laptop since theyre so overpriced

#

for no fucking reason

jovial island
#

ehh let's just... forget the gaming part.

#

im done

#

i need a vm

cursive harness
cursive harness
jovial island
cursive harness
#

yeah my wording was still rude though

jovial island
cursive harness
#

sorry bout that