#voice-chat-text-0

1 messages ยท Page 89 of 1

vocal basin
#

it's an overcomplicated mess that keeps growing

hoary olive
#

i used it for arduino's

#

my code sucked

vocal basin
#

if Arduino supports it, then fine

somber heath
vocal basin
#

Java doesn't allow raw pointers

#

for something made in Java, I'd probably expect an array-like structure to be implemented there instead of an array

#

implementing MutableMapping is fun

#

(list is MutableSequence)

#

@hoary olive
what's the purpose of that custom array?

#

numpy does same as C for bool arrays

vocal basin
hoary olive
#

i have a lot of fields, linkedList, would be too slow

#

~6k

vocal basin
#

linked lists are faster for some situations too

vocal basin
#

other operations can be optimised by using np.uint8 explicitly

#

depends

#

it has a weird design, not the worst

#

"steampunk of the programming languages" as bcantrill said

somber heath
#

I do like steampunk.

vocal basin
#

Java has even worse naming scheme

somber heath
#

@novel hound ๐Ÿ‘‹

vocal basin
#

goto is reserved too

#

for if they ever decide to add it

#

it never was in Java, iirc

hoary olive
#

James Gosling created the original JVM with support of goto statements, but then he removed this feature as needless

vocal basin
#

JVM probably still has gotos inside

#

just like CLR

#

Goto (goto, GOTO, GO TO, GoTo, or other case combinations, depending on the programming language) is a statement found in many computer programming languages. It performs a one-way transfer of control to another line of code; in contrast a function call normally returns control. The jumped-to locations are usually identified using labels, thou...

#

it's unstructural

#

continue is limited

#

same for break and return

#

continue, break, and others are bad too but less bad

#

C# has goto

hoary olive
#
        testing:
        for (Integer numbers: arrayNumbers)
            if (numbers != 0)
                count++;
                continue testing;
vocal basin
#

some languages have continue 2, break 2, iirc

#

to do that for outer loops

#

it's better to design your code in such a way that you don't need this

hoary olive
#
    public void add(int number) {
        if (count == arrayNumbers.length) {
            int[] numbers = java.util.Arrays.copyOf(arrayNumbers, arrayNumbers.length + 1);
            numbers[arrayNumbers.length] = number;
            arrayNumbers = numbers;
        } else {
            arrayNumbers[count] = number;
            count++;
        }
    }
vocal basin
#

addition is O(N^2)

somber heath
#

@whole bear ๐Ÿ‘‹

vocal basin
#

for choice, there are: AbstractList, AbstractSequentialList, ArrayList, AttributeList, CopyOnWriteArrayList, LinkedList, RoleList, RoleUnresolvedList, Stack, Vector

#

maybe more in newer java

vocal basin
#

roughly what Python's list[T] and C++'s std::vector<T> are

hoary olive
#

so adding is constant?

vocal basin
#

on average

hoary olive
#

or possibly an ArrayList now that i think about it

vocal basin
#

whee
98 games lost of the last 100

#

I was thinking on how to write a program to help understand the early game strategy in minesweeper

#

failed to come up with anything meaningful

#

to a certain extent, it's possible to calculate mine probability for each cell
first N moves can be just brute forced and the "main lines" can be picked from the result

#

the early game goal, if simplified, is to open a "0" cell (which often leads to something like a middlegame)

vocal basin
#

reading something someone else wrote isn't as interesting as coming up with it on my own

#

I've never read any serious guides on minesweeper

hoary olive
vocal basin
# hoary olive

minesweeper.online is aware of more capable algorithms

#

91.65% 78.22% 40.1%

#

thanks to selection bias, I was able to achieve 95% 66% 31%

hoary olive
#

what algo are you using? (math behind it)

vocal basin
#

idk
I'm not using any algorithm
minesweeper.online's backend does

#

they improved the algorithm they use at some point

#

it lead to some difficulty cuts

hoary olive
#

doesnt Visual studio have it built in?

#

ALM has UML for typescript

#

but its a typescript code editor; so only for typescript

jade knot
#

hewwo

#

Sorry, I'm not voice verified yet so I can't speak.

vocal basin
jade knot
#

It's unclear if that's UML 1.0 or UML 2.0

#

I was only taught UML 2.0.

#

Now it's called TsUML2 and looks like UML 2.0 to me.

hoary olive
jade knot
#

I've heard about UML designers being able to generate code from UML like starUML.

vocal basin
hoary olive
vocal basin
#

"good rating, deserved"
(only now noticed this one)

jade knot
#

I've seen a place advise against running executables.

vocal basin
#

how much of discord is peer to peer?

vocal basin
#

I'm not sure the "bad packet => take over the machine" is much of a thing with it
(I may be wrong)

hoary olive
#

i have worked with discords api, and it sucks

#

generally they read malformed http headers

vocal basin
hoary olive
#

so like discord servers go boom

jade knot
#

I've setup APIs for various things like Discord and Twitch but that's as far as I get.

hoary olive
#

I was in this server and this dude was sending a bunch of requests to discords api, and messages came with ~20s delay

vocal basin
vocal basin
hoary olive
#

what option?

jade knot
#

API for setting up bots

vocal basin
jade knot
#

Setting up bots

#

I think that's API stuff

#

I really don't know

hoary olive
jade knot
#

hey

#

I decided I wanted to learn calculus so I watched a lecture series but they haven't even got to the calculus part yet.

vocal basin
somber heath
#

@zinc wharf๐Ÿ‘‹

jade knot
#

hey BEAN

somber heath
#

@analog quarry๐Ÿ‘‹

analog quarry
#

Hi! Are we all not allowed to speak or am I missing something?

vocal basin
#

!voice

wise cargoBOT
#

Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

analog quarry
#

It said I was granted access but the channel still says I don't. weird

jade knot
#

hello

#

Weird I'm getting emails in French now.

vocal basin
#

"it'd be a little bit surprising to find Australia as a member of North Atlantic Treaty Organization", I guess

jade knot
#

the anniversary is on the 24th.

vocal basin
jade knot
#

That too

#

I'm waiting for KSP2.

#

Well, early access.

#

I saw someone play this game called Red Heart yesterday. Looks a bit bioshocky.

#

I'm a former professional box opener.

#

I played a bit of it on PC

vocal basin
#

Rain World is great

jade knot
#

I found the way to get sound was to plug something into the 3.5mm audio jack.

#

So I could get it working on the USB headphones.

vocal basin
jade knot
#

I wasn't using the 3.5mm audio jack for phones

#

It needed something plugged into that for anything else to work.

#

My motherboard had Via audio drivers.

#

This was in 2012/13

vocal basin
jade knot
#

oof

#

!voice

wise cargoBOT
#

Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

vocal basin
#

my current difficulty record has a win probability of 2.33%
it took 714 games (roughly 14 hours) to get
so my win rate is ~0.14% (which is somewhat lower than 2.33%)

rugged root
#

On shortly, running behind today

jade knot
#

I played Gameboy Tetris yesterday but got bored pretty quick.

rugged root
#

Out of all the old ones, I love the way the Gameboy Tetris' music sounds

jade knot
#

Yeah that's the main reason to play it.

rugged root
#

Gameboy had great music despite its limitations

jade knot
#

I played it on a 49" TV lol

rugged root
#

Oh yeah that's not going to help the experience

#

I AM ONE WITH THE BLOCKS

jade knot
#

I think I have a photo

hoary olive
#

wassup hem

jade knot
somber heath
vocal basin
#

tetris breaks my brain too much, so I play this instead

rugged root
jade knot
#

I'm looking forward to the Tetris movie.

somber heath
#

I saw the shorts to that.

hoary olive
jade knot
rugged root
#

Bloomberg. Its one of the accounting programs

hoary olive
#

they dont have password resets?

rugged root
#

It's in a weird place, it's specific to one of the programs, SuperForms

#

Should be an easy call to their help desk

hoary olive
#

i was tryina get this external speaker to work didnt work

rugged root
#

Honestly, out of all the helpdesks I've dealt with, they are by far the easiest to work with

hoary olive
#

i have a pioneer with 6 channels

#

but sound comes from my tv , so gotta go fix that later

vocal basin
jade knot
hoary olive
#

its a surround sound speaker system

rugged root
#

.... damn it I forgot to do shred, I'll be back

#

Back in like.... ~20 min

cerulean ridge
jade knot
hoary olive
#

ye i dont find any "Audio output" though

jade knot
#

Then your TV doesn't have an optical output.

hoary olive
#

my TV has a SPDIF

#

huh maybe i turned it off like the idiot i am

#

let be check

jade knot
#

Also check the input selection on the amp, it might be TV, optical, aux.

somber heath
#

@tight kraken๐Ÿ‘‹

jade knot
#

brb gotta turn off my dishwasher

hoary olive
#

ok, it didnt work

jade knot
#

What is the model of your amp?

hoary olive
#

let me get the manual

hoary olive
#

ok let me go ahead and follow the manual, if you got anything let me know

rugged root
#

Yo

#

How dangles it

#

Sore. I hate the bed at my boss' place

#

But I'll be home again tonight, so (hopefully) no more sore neck

#

It hurts to turn my head to the left

#

It's the mattress

#

I'm glad you said neck

#

"ooOOP"

#

Yeah would make more tension

somber heath
#

@polar linden๐Ÿ‘‹

polar linden
#

Hello

rugged root
#

If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know about the voice gate

#

Oh that's right it doesn't hyperlink for you does it, Opal

#

Oh huh

#

Didn't realize they changed it

#

Makes sense, in a way

vocal basin
#

someone too worried about security got their hands on formatting

rugged root
#

"No channel for you!"

#

Check out the Hem(lock no access) channel

#

That'll tell you what you need to know about not accessing Hem

#

It's worth watching

#

I think it holds up

#

Although David Spade....

somber heath
#

@north imp๐Ÿ‘‹

rugged root
#

@terse needle How did you learn lambda calculus? Was it in school?

north imp
rugged root
#

Hey nowar

#

Man I really can't stop myself from shortening names...

#

Yeah I'm looking over the wiki

#

Ohhhhhhh

#

Lamb

#

That's strong

#

Oh ewe

#

Right right

somber heath
#

Am I the GOAT of puns?

rugged root
#

I'm always intimidated impressed with how smart you guys are

somber heath
#

History shall tell.

rugged root
#

Oh, I thought it was when you belittled a weak male

#

I never took higher level maths, so it's a lot to wrap my head around

#

Highest I did was college algebra

#

Never even did trig

#

Nope

vocal basin
#

(where does "higher level maths" start?)

rugged root
#

I mean we did that

#

But not the more advanced stuff

#

College algebra was just what it was called

#

@somber heath I appreciated it

#

It's like.... Uni level algebra

vocal basin
#

I once again forgot how our maths school program was ordered

rugged root
#

I mean we covered those in geometry

#

I can gather it

#

It'll just take me a bit longer

#

You cool with me asking for clarification if I get stuck on this?

#

Although I guess we do have quite a few functional junkies on staff

#

Hey LX

vocal basin
somber heath
#

@buoyant basin๐Ÿ‘‹

rugged root
#

@buoyant basin Yo

stuck furnace
#

Hello kitty_wave

buoyant basin
#

hi bro

rugged root
#

Opal, the Aussie ninja

#

How's it going?

#

@midnight agate How're you today?

buoyant basin
#

The situation is ruined

#

:{

#

Are you ok

rugged root
#

Eh

#

Fine enough

#

Will be better when I get home and sleep in my own bed

buoyant basin
#

I hope you are always well, my friend

buoyant basin
terse needle
#

@rugged root if you are interested

rugged root
#

Cheers, been meaning to ask about it

#

@amber raptor Sup

#

You sound as cheery as ever

buoyant basin
#

I don't sleep at all, my friend

rugged root
#

Probably not the most healthy thing

#

How's your morning been so far, Rab?

#

Any co-worker frustrations yet?

buoyant basin
rugged root
#

Oh yeah?

#

What's the project

#

@midnight agate I hear ya

vocal basin
rugged root
#

Dude... it never fails that one of my co-workers - Nanoic is back - will lock themselves out of one of their accounts

buoyant basin
rugged root
#

Ooo, nifty

buoyant basin
rugged root
#

I have a suggestion that might help

vocal basin
rugged root
#

Yeah that one

buoyant basin
#

I did not sleep for 35 hours

#

Codes are complicated

rugged root
#

I can't remember if that's approaching or is past the starting to hallucinate point

vocal basin
rugged root
#

@civic zephyr Sup

vocal basin
#

I usually have hallucinations at around ~24h of no sleep
less afterwards

buoyant basin
rugged root
#

@civic zephyr Also, don't take what Charlie yelled at you for to be the word of law

#

If I could speak I would have chewed him out, but unfortunately I had to do it via text

vocal basin
rugged root
#

Perceptual changes rarely make an appearance before 24 h have elapsed. Only after a whole night without sleep do these experiences start making an appearance (Figure โ€‹ 3A). After 48 h of sleep deprivation, perceptual distortions and hallucinations are reliably elicited (87.5% cumulative percentage of studies)

#

Neat

#

Although they seem to be more consistent around day 3 or 4

rugged root
#

Yeah sleep

rugged root
rugged root
buoyant basin
jade knot
#

I think you found the same paper as me

vocal basin
rugged root
#

Ehhhh

#

Not necessarily

vocal basin
#

overriding not overwriting, I'd say

rugged root
#

Oh I see what you're saying

vocal basin
rugged root
#

It should also be noted that you do need to use super() in order to set the attributes of the parent classes

somber heath
#
class A:
    def method(self):
        ...

class B(A):
    def method(self):
        A.method(self) #Calling A.method as a function
        #or
        super().method()```
rugged root
#
super().__init__(*args, **kwargs)

Or the like

#

I really do like what they've done with the code highlighting colors

#

@sharp urchin Yo

#

It's more muted

sharp urchin
vocal basin
rugged root
#

Do kind of wish it was Monokai

#

But I think this is less grating to folks

vocal basin
sharp urchin
#

better than normal at least:{}

rugged root
#

For something like Discord yeah

hoary olive
#

Monokai for code highlighting?

rugged root
#

Yeah, I use Monokai Pro

sharp urchin
#

same

rugged root
#

I like how much they stand out from each other

civic zephyr
hoary olive
#

i thought you were implying monokai is a word

vocal basin
#

sublime text uses it, iirc

buoyant basin
#

I have a good feeling here with you

hoary olive
#

Monokai is OK

rugged root
sharp urchin
hoary olive
#

Or just use the default theme

rugged root
#

@somber heath I'll be honest I missed what you were saying. So I'll just reply with "your mom"

sharp urchin
buoyant basin
#

๐Ÿ˜‚

rugged root
#

Or wait would it...

#

I'm doubting myself

civic zephyr
buoyant basin
#

I feel like I'm hallucinating

civic zephyr
#

For that subclass

rugged root
#

Either way, it's proper practice to use super() in most cases for Python inheritance. And yeah, that can happen

sharp urchin
civic zephyr
#

Then no need to use super()

rugged root
#

Example of the Monokai theme I currently have on. Spoilered because it's a large image

civic zephyr
#

So what opal said pretty much in the case of overriding

sharp urchin
#

super() is generally used to inherit the parent class and initalize automatically if needed

#

on its own

vocal basin
#

super().__init__ is like "super, isn't it?", but Bri_ish?

rugged root
#

If you still need the attributes that the parent class grants, then you'll still - HA that's great - need to do the super().__init__()

hoary olive
rugged root
#

It's not

#

It's Monokai Pro

sharp urchin
#
class Phone:
    def __init__(self, price, brand, camera):
        print ("Inside phone constructor")
        self.__price = price
        self.brand = brand
        self.camera = camera

    def buy(self):
        print ("Buying a phone")

class SmartPhone(Phone):
    def buy(self):
        print ("Buying a smartphone")
        # syntax to call parent method
        super().buy()

s=SmartPhone(20000, "Apple", 13)

s.buy()```
rugged root
#

Although it's not that much different

sharp urchin
#

hope this clears

vocal basin
rugged root
#

How do you mean?

hoary olive
#

no variety i presume

vocal basin
rugged root
#

I try to write clean code when I can

vocal basin
#

!e

print(fr'G:\DMS\{1+2}')
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.

G:\DMS\3
vocal basin
#

this is "for real" string

rugged root
#

Thought it was a French string

#

Also forgot that was a thing

vocal basin
#

so, rFench string

hoary olive
#

radio frequency string

rugged root
#

Hmmm, forgot the theme doesn't like it

#

I'll have to tweak the behavior

hoary olive
#

Easier said than done

#

Vscode themes are a pain in the to edit

rugged root
#

This is Sublime

hoary olive
#

Sublime has two ways you can make themes from my experience prior

#
  1. You just specify the colors and sublime does the job
  2. You manually edit it (never done that)
stuck furnace
rugged root
#

@willow lynx Yo

hoary olive
#

sup lx how was your coffee

rugged root
#

Hmm

willow lynx
#

@rugged root hi

rugged root
#

Feels very.... orange creamcicle

#

I don't know how else to explain what I mean

vocal basin
stuck furnace
#

The light version is not that great though.

rugged root
#

Was gonna say

#

Odd that light is the only example they have

#

Yeeeahhhh IDLE's themes are god awful

vocal basin
#

there's also Wing

rugged root
#

True dat

#

@versed bane Yo

vocal basin
#

iirc

hoary olive
vocal basin
rugged root
#

There's a section for IDLE plugins but I don't think I've ever seen them. UNTIL NOW

#

I wonder how many of these are still relevant

#

Oh wait what?

#

There's one that supports Cython syntax

#

It does look like a handful of these have already been added in

#

A bit what?

versed bane
rugged root
#

How's it going

somber heath
# jade knot

When you absolutely need the whole neighbourhood to know you're playing Tetris.

rugged root
#

PFFF god damn it

rugged root
#

The Monokai Pro's sublime-color-scheme file (which is a JSON) is all on one line

somber heath
#

How did Marty not end up with permanent deafness through the whole series?

#

Like, complete and total?

rugged root
#

McFly?

somber heath
#

Yeah.

rugged root
#

Not sure, I'm a little shaky on the details

#

There's a special hell for me

rugged root
#

I legit didn't know that was a gif

#

Right?

#

Did he pass?

#

That's unfortunate

#

It's been a looooong time since I've seen it

#

I might have the box set, actually....

#

I'm not sorry

rugged root
#

I would be impressed if they were alive by then

#

He just knew, Opal

#

He just knew

#

@whole bear Hello/goodbye

#

Oh

#

Oh no

#

Nooooooo

#

God damn it

#

I hate YAML

whole bear
#

hi

rugged root
#

@dusk raven Suuuuuup

#

Doing okay

pallid hazel
#

what? whats wrong with yaml? other then the huge loading time

stuck furnace
rugged root
#

The adjuster came and went yesterday, so that's all done. The folks in the office next to us (part of the building we own and one of the folks who also suffered water damage) is getting a new desk so I'll be snagging that in the mean time while waiting for cubicle walls and what not

#

So in theory, end of the week?

stuck furnace
rugged root
#

But still not to the point I'll be happy with

#

I hate it

#

Give me regular JSON or TOML any day of the week

stuck furnace
#

Although I don't think it's widely known.

rugged root
#

Oooo neat

#

Moving buddies

willow lynx
#

What's up

rugged root
#

Not much, you?

#

@past oar Sup

pallid hazel
#

eh.. my limited exp with seems ok so far, used as config and data.. but then the scripts i use it for give a structure to follow.. so not much exp beyound that..

rugged root
#

Indifferent

willow lynx
#

Just sad ๐Ÿ™‚

stuck furnace
#

Erm, it depends really yeah.

rugged root
#

I'm sorry

#

@past oar It's an indifferent thing. A lot of languages have type inference anymore

#

So you may not have to declare type anyway

#

They still need to know how to handle types in Python

stuck furnace
#

Dynamic typing is great for development speed early on, but as the software gets more complex, and more developers get involved, the benefits of static typing become apparent.

rugged root
#

Yarp

stuck furnace
#

@past oar are you aware that python has optional static typing?

rugged root
#

That's not a hallucination thing

#

You can code Python the same way you would code a static language

stuck furnace
rugged root
#

Wait LX, do you mean the built in typeguard?

stuck furnace
#

Python is discord_sparkles ๐ŸŒˆ multi-paradigm ๐ŸŒˆ discord_sparkles

rugged root
#

Word

stuck furnace
rugged root
#

Hold on... second guessing myself, one sec

dusk raven
vocal basin
rugged root
#

You just add this to the curriculum

vocal basin
vocal basin
rugged root
#

I swear to god there was a built in type enforcement

#

Eh

#

I mean

stuck furnace
vocal basin
rugged root
#

Right right

#

-shrugs- I've always just written Python as if it's static

stuck furnace
rugged root
#

One variable, one type, one purpose

#

Yes

#

Python does not require any kind of internet connection

#

So long as you have a version of Python on there

#

Then yes, it'll work

#

There is no hard requirement for an internet connection

#

@past oar

#

Thonny?

#

Mu-Editor

vocal basin
rugged root
#

I... I don't think PyCharm even bitches about it

#

VS proper doesn't

vocal basin
rugged root
#

I'm confused what you mean

#

Thumb drive

#

I too shall dongle

#

Or just have access to the docs. Actually does Python come with the docs?

#

I think it might...

#

The windows machines are easy

vocal basin
rugged root
#

Just get an installer for something like Thonny or Mu-Editor which comes with their own Python version

#

Or that

#

Opal lives in the computer stone ages

#

If it works it works

#

2008

#

The year I graduated high school

#

Dude, there are computers from the 80's that still work

#

Don't be surprised

hoary olive
#

!e

import os
print(os.system("man python"))
rugged root
#

Maybe I'm thinking rust

wise cargoBOT
#

@hoary olive :white_check_mark: Your 3.11 eval job has completed with return code 0.

32512
rugged root
#

@past oar How old are you again?

#

Not necessarily

#

Some just work

#

Again

#

This is 2008

#

Different system demands

hoary olive
#

4 is ok

vocal basin
#

SOMA
what an amazing game
(might have misheard what got mentioned)

hoary olive
#

windows 11 runs on xmb of ram

rugged root
#

SOMA is great

vocal basin
rugged root
#

Is what it is

#

Meh

hoary olive
#

phones dont require that much ram

rugged root
#

Do you use a flash drive to use... what was it... ReadyBoost?

hoary olive
#

Opal whats your CPU?

vocal basin
#

with nothing open, phones seem to use 50% RAM, I guess

hoary olive
rugged root
#

Yarp

#

Did that on a few machines

hoary olive
#

its a windows feature

rugged root
#

It was an option on Windows 7 and higher

vocal basin
rugged root
#

You just plug it in, and turn it on

hoary olive
#

you can even do that with HDD

#

its called swap

rugged root
#

On Windows it's ReadyBoost, yeah

vocal basin
rugged root
#

Ah forgot it was vista

hoary olive
rugged root
#

Wasn't a terrible option

hoary olive
#

i barely use any swap myself i highly doubt it being that useful

vocal basin
#

"everything can have a file handle not everything is a file" or something

rugged root
#

Was

#

Not is

hoary olive
#

i knew this guy that had 20GB of swap

rugged root
#

But on Opal's old machine, it could be a benefit

#

Yep, I've heard that

hoary olive
#

Who says that?

#

I've heard 2G being standard

rugged root
#

Yep

#

VirtualMemory

#

You can tweak it, by default it'll handle it itself

#

@past oar

vocal basin
#

I have the swap file on Windows limited to 16GB, iirc

rugged root
#

Or PageMemory I think?

hoary olive
#

Dram is standard

#

Vram does way more operations slower

vocal basin
rugged root
#

Right

hoary olive
#

They use VRAM for crypto
And a gpu

rugged root
#

-rolls eyes- here we go

hoary olive
#

so that many more cores, and more processes , but slower

vocal basin
hoary olive
#

theres no linux file system

#

Linux has

rugged root
#

Uggghhhhh I don't want to listen to another OS war/Windows bashing system

#

It's exhausting

hoary olive
#

LVM, BTRFS, Ext3, ZFS etc...

rugged root
#

What distro would you push

#

Honestly

hoary olive
#

didnt dell make a linux laptop?

stuck furnace
#

Do computing stores like that still exit? pithink

hoary olive
somber heath
#

Ubuntu, probably.

rugged root
#

Linux is a very very very very very tiny part of the market for home computers

stuck furnace
#

I literally haven't been to one in like 10 years.

rugged root
#

It's not as well known, not as intuitive, not as regular user friendly

vocal basin
#

Joyent had laptops with Solaris installed (rare) stolen twice
now there's a legend about a thief who targets Solaris laptops specifically

rugged root
#

There isn't as much support out there for it

#

Not as many programs support it

#

I could go on

#

It's not good for normal users

#

Meh

rugged root
#

Didn't you literally say you hate Windows?

#

Gaming

#

NTFS

hoary olive
#

yep NTFS by default

rugged root
#

And exFAT for flash drives anymore

#

Well

#

For larger flash drives

hoary olive
#

NTFS is faster than FAT32

rugged root
#

I'm not

#

They're cheap

#

Accessible

hoary olive
#

so its a good file system

rugged root
#

@past oar You just answered your question as to why you don't see linux machines in stores

vocal basin
hoary olive
#

what :?

rugged root
#

The folks who know and want linux are power users

hoary olive
#

"Globally compatible?"

rugged root
#

FAT32 is readable on damn near everything

#

NTFS not as much

#

Updating firmware on a printer? FAT32

#

Moving files from Windows to Linux and back again?

hoary olive
#

Ye thats why ppl flash drivers as FAT32

rugged root
#

FAT32

#

Exactly

hoary olive
#

Flash != HDD

rugged root
#

Although exFAT is getting more - I know

#

However, Linux struggles to deal with NTFS out of the box

hoary olive
#

I doubt you can do NTFS on a flash

rugged root
#

You can

#

Provided you have a large one

#

@somber heath I've seen it support reading but not writing

hoary olive
#

Who uses linux with ntfs .....

rugged root
#

My use case was extracting files from a dying hard drive that Windows would open but I could with Linux

#

It was NTFS

hoary olive
#

Depends on the load

rugged root
#

*would not

hoary olive
#

When you boot it up it does that?

past oar
#

ive heard recuva or hbcd is good for recovering windows drives

rugged root
#

It wasn't even recognizing that there was a drive

#

Thankfully I have Manjaro installed (properly installed, not a live USB) on a flash drive for situations like that

#

And Manjaro specifically because of hardware compatibility

#

It just works

hoary olive
#

Could you say when it does that , and what brand you GPU is? Mjzo

past oar
#

i recently bought a handful of usbs for students to test drive different distros

rugged root
#

You talking regular Joe on the street?

#

Later DELTA

past oar
#

yes but with some basic hardware and programming knowledge

rugged root
#

You're going to have a much harder time selling that

#

All the programs that normal folks would use already have Windows installs

#

Unlikely they'll have Linux ones

#

I think with the sheer amount of support and knowledge base that's out there, and how commonly exposed they are to Windows or Mac, unless they're really interested, it feels pointless to try and get them on Linux

#

Now, I do have an exception

hoary olive
#

aight gonna head out guys, enjoy your day

rugged root
#

If someone really only browses the web and needs a simple cheap machine, absolutely

#

Later Phantom

sharp urchin
#

cyber sec?

rugged root
#

@lavish rover Hey buddy

lavish rover
#

hola

#

como estas

rugged root
#

Hanging in there. You?

lavish rover
#

wish I was

#

At least I figured out how not to rebuild 11k files

#

goofy ass build system

rugged root
#

Goooood

#

Was it a simple thing to fix or were there a lot of bullshit steps

lavish rover
#

Need to start a docker shell and use this script they have to build

#

Just would have never guessed

#

The usual way to build anything at Amazon is using our central build system called brazil

#

Except this one project apparently

rugged root
#

That's

#

SO dumb

#

So how long do builds take now

lavish rover
#

It builds only what's necessary so not more than a minute

rugged root
#

Nifty

#

Lots of red balloons

#

Is that all?

#

HA

#

Wrong Rust

#

It was a joke

#

I'm not admin anymore

#

@blazing sinew Is the card still under warranty?

lavish rover
rugged root
#

Oh I know I know

#

Just hits me every now and then

#

Crap, back later, sorry

pallid hazel
#

i keep wanting to go outside.. but i cant even get the pets togo.. below 10f atm..

rugged root
#

Sup

pallid hazel
#

was taking a nap, nothing else besides work todo.. and well.. they dont respect my hours so.. anyways why cats such pricks when they find you taking a nap.. wake you up curely.. you get up and they just go take a nap..

limpid umbra
#

imagines - an array of sleeping cat based heating elements to power ? it could be done....

rugged root
#

As soon as they realized they were being useful they would leave

rugged root
pallid hazel
#

i generally work 3am to 1pm, breaks, lunch, 1hr workout included... and they constantly call me during business hours and even after.. often when im not even oncall upto 9pm

quaint oyster
#

windows registry is a fucking nightmare

#

linux kernel is just superior

rugged root
#

Cool, I don't care

#

I'm not getting dragged into another one of these convos

#

It's exhausting

quaint oyster
#

LOL

#

true

willow light
sharp urchin
#

hello

#

whats up?

tulip plover
#

from sklearn.tree import DecisionTreeRegressor

vocal basin
#

unlike the English Wiktionary, simple English Wiktionary has the pronunciation of "cellular"

#

syntax isn't that much important to understanding the code after some level of general knowledge
except for very weird languages

somber heath
#

@valid night๐Ÿ‘‹

vocal basin
vocal basin
#

@whole bear
deep learning is a subset of machine learning, so it's kind of semantically impossible to learn deep learning before machine learning

whole bear
#

makes sense

vocal basin
#

is Australian variant of Emo called Emu?

#

"ethics are important for programming, Uber"

#

I don't understand what "sentience" means

#

I understand the obvious difference with most of the current popular text AIs:
it doesn't think if you don't talk to it
(no background process)

#

like, if ChatGPT answers your question, it can't on its own decide "oh, I answered wrongly, here's a correction" without user prompting for it

#

the model that GPT aims to replicate isn't fit for that

whole bear
#

@tulip plover

vocal basin
#

this seems to be for people who already work with most of it

whole bear
vocal basin
#

I have no idea what this is

somber heath
#

@wintry mulch๐Ÿ‘‹

wintry mulch
#

h

whole bear
vocal basin
#

my specialisation

#

never saw this acronym before

#

it being v2 might imply something

vocal basin
#

in short, if you can invert a composition of two hash functions, you can invert one of that hash functions too

#

because composing the other hash function with the algorithm to reverse the composition gives the necessary algorithm

vocal basin
somber heath
#

@grave idol๐Ÿ‘‹

vocal basin
#

elliptic curves aren't used much on practice
Edwards curves are easier to compute

#

those two types are isomorphic

#

"isomorphic" meaning "equivalent" with regards to some structure

#

group structure in this case

vocal basin
dreamy stump
#

hi ๐Ÿ‘‹

#

Does pycharm shout at me for this cus it's dumb?

vocal basin
vocal basin
#

it doesn't know you use format later

dreamy stump
#

or am I

#

?

vocal basin
vocal basin
dreamy stump
#

that sounds too complicated

vocal basin
dreamy stump
#

well it doesn't shout at me for this

dreamy stump
vocal basin
mint loom
#

hi can someone please help me understand wha ti am doing wrong

dreamy stump
mint loom
#

i've searched all over google and even chatgpt and nothing has helped

mint loom
vocal basin
#

is it from SQLAlchemy?

dreamy stump
#

my own

#

it has __tablename__ don't worry

mint loom
#

this is my specific issue

somber heath
#

Like Python itself, rather than the code and Python going, "okay, here's what happened"

mint loom
#

oh

#

but it works when i only run that single function

somber heath
#

Can we see the code as a whole?

#

!paste

wise cargoBOT
#

Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

mint loom
#

however, when i try to instantiate a class before calling that function

mint loom
#

one second

#

apologies for the wonky formatting, i copy pasted multiple modules into a single file

#

but my concern is mainly with the HorizontalDistancePrompt method under the Display() class (bottom part of the code)

somber heath
#

!pep8

wise cargoBOT
#

PEP 8 is the official style guide for Python. It includes comprehensive guidelines for code formatting, variable naming, and making your code easy to read. Professional Python developers are usually required to follow the guidelines, and will often use code-linters like flake8 to verify that the code they're writing complies with the style guide.

More information:
โ€ข PEP 8 document
โ€ข Our PEP 8 song! :notes:

somber heath
#

This isn't what's causing the problem.

#

But have a look at it and bookmark it, anyway.

mint loom
#

my capitalisation

somber heath
#

See: Naming conventions.

mint loom
#

yes

somber heath
#

Yes.

mint loom
#

yes i am aware of that issue too haha thanks tho

somber heath
#

Is this in a form I can run, directly?

mint loom
mint loom
#

should be

#

wait no u dont have the

#

video files tho

somber heath
#

Ah.

mint loom
#

cuz it uses opencv

#

i can send the video file if that's allowed?

#

it's a 1 second video lol

somber heath
#

You'll have difficulty.

mint loom
#

ah

#

well basically the program just detects a green tennis ball

#

being thrown

somber heath
#

I don't know what might cause the problem. My guess is OpenCV.

mint loom
#

hmm

#

ahhh

#

dammit

#

im stumped

somber heath
#

You might need to reinstall some stuff.

#

Or use a different version of Python.

mint loom
#

hmm

vocal basin
#

try to reduce code to the minimal size where it causes the problem

mint loom
#

something that doesnt sit right w me is the fact that the method runs perfectly fine when it is isolated in a file of its own

somber heath
#

Or use a different version of the framework. Maybe update it.

mint loom
somber heath
#

Maybe make sure your pip is updated.

#

I don't use it.

#

One moment.

mint loom
somber heath
#

python -m pip install --upgrade pip

#

Do this one first.

#

You're on Windows?

mint loom
#

mac

somber heath
#

How do you invoke Python at the command line?

#

python3, python3.11, python?

mint loom
#

pip3

somber heath
#

Python.

mint loom
#

it's ok i googled

#

and i reinstalled pip

#

using mac commands

mint loom
#

ya python3

somber heath
#

Okay, then python3 -m pip install --upgrade pip

#

Check what version of Python that's pointing to, too.

#

Check that it's compatible with opencv

#

from there python3 -m pip install <packagename> --upgrade

vocal basin
#

venv aliases python to python3
(if it's used and activated)

somber heath
#

Where <packagename> is opencv or whatever

mint loom
#

ah

somber heath
#

You might like to try to upgrade scipy while you're at it

mint loom
#

alrighty i will

#

attempt that

#

thank you iโ€™ll update again after i try

vocal basin
#

(was referenced in opencv-python)

vocal basin
stray swan
#

hello is anybody there?

maiden abyss
#

@arctic dome check u dms pls

maiden abyss
stray swan
#

im currently writing something called wwm i uses a mix of autohotkey/python.
im not a programmer i just have basics.

#

with what?

maiden abyss
#

i installed python and if i enter in cmd the python --version i become a failed message

#

@stray swan

stray swan
#

hmm can you purge python ? by that i mean uninstalling it completely.

#

then you can just use scoop package manager to install it

maiden abyss
#

i did but still not working

stray swan
#

scoop will autoadd your installed apps to your path

maiden abyss
#

I writed u dm

stray swan
#

can you check that no traces of python left on your pc?

maiden abyss
#

ye

stray swan
#

you can check that with wiztree

#

gmm i hear nothing.

#

did the dm decline?

maiden abyss
#

nah

#

Maybe write me in dm

stray swan
#

ok

mint loom
#

the error occurs when i try to instantiate this class

#

but idk how to fix it ugh

mint loom
#

@somber heath hi sorry for the ping but i think i have found the problem

#
from Display import *


import cv2
import numpy as np

# Define the range of green color in HSV format
green_lower = np.array([40, 50, 50])
green_upper = np.array([80, 255, 255])

# Read the video file
cap = cv2.VideoCapture('videos/trim1.MOV')

# Loop through each frame of the video
while cap.isOpened():
    ret, frame = cap.read()
    if not ret:
        break
        
    # Convert the frame from RGB to HSV color space
    hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)

    # Apply the green color threshold to the HSV image
    mask = cv2.inRange(hsv, green_lower, green_upper)

    # Perform morphological operations to remove noise and fill gaps
    kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (5, 5))
    mask = cv2.erode(mask, kernel, iterations=2)
    mask = cv2.dilate(mask, kernel, iterations=2)

    # Find contours in the binary image
    contours, _ = cv2.findContours(mask, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)

    # Loop through each contour and filter based on size and shape
    for cnt in contours:
        area = cv2.contourArea(cnt)
        if area > 500:  # adjust the area threshold based on your specific case
            perimeter = cv2.arcLength(cnt, True)
            approx = cv2.approxPolyDP(cnt, 0.03 * perimeter, True)
            if len(approx) >= 8:
                # Draw a bounding box around the detected ball
                x, y, w, h = cv2.boundingRect(cnt)
                cv2.rectangle(frame, (x, y), (x + w, y + h), (0, 255, 0), 2)

    # Display the video with the bounding box overlayed on each frame
    cv2.imshow('green ball detection', frame)
    if cv2.waitKey(1) == ord('q'):
        break

# Release the video capture and destroy all windows
cap.release()
cv2.destroyAllWindows()
display = Display()
display.HorizontalDistancePrompt(6, 5, 10)
#

this code here

#

it uses opencv to play a video

#

then it runs the tkinter gui code

#

and it gives the same error

#

which confirms my suspicions that the opencv video display is causing it

#

i am not sure on how to fix this issue. does it have anything to do with opencv's compatibility with tkinter?

mint loom
# mint loom this code here

this code isnt from the previous huge chunk of program. i just created a random one which displays a random video using opencv and then trying to display a tkinter gui

#

yeah same issue

somber heath
#

Both tkinter and opencv aren't things I use.

#

Seek those who do.

mint loom
lucid blade
#

tkinter is a pain in zeee bum ... havent used for years but when i did i remember it being longwinded and not well documented (but im going back a long time)

vocal basin
#

or does it just fail to start at all?

mint loom
#

lemme show u another example code ( a very short runnable one) that wonโ€™t run on my mac

vocal basin
mint loom
#

but it executed perfectly on my friendโ€™s windows

#
import cv2
import numpy as np

# Define the range of green color in HSV format
green_lower = np.array([40, 50, 50])
green_upper = np.array([80, 255, 255])

# Read the video file
cap = cv2.VideoCapture('videos/trim1.MOV')

# Loop through each frame of the video
while cap.isOpened():
    ret, frame = cap.read()
    if not ret:
        break
        
    # Convert the frame from RGB to HSV color space
    hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)

    # Apply the green color threshold to the HSV image
    mask = cv2.inRange(hsv, green_lower, green_upper)

    # Perform morphological operations to remove noise and fill gaps
    kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (5, 5))
    mask = cv2.erode(mask, kernel, iterations=2)
    mask = cv2.dilate(mask, kernel, iterations=2)

    # Find contours in the binary image
    contours, _ = cv2.findContours(mask, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)

    # Loop through each contour and filter based on size and shape
    for cnt in contours:
        area = cv2.contourArea(cnt)
        if area > 500:  # adjust the area threshold based on your specific case
            perimeter = cv2.arcLength(cnt, True)
            approx = cv2.approxPolyDP(cnt, 0.03 * perimeter, True)
            if len(approx) >= 8:
                # Draw a bounding box around the detected ball
                x, y, w, h = cv2.boundingRect(cnt)
                cv2.rectangle(frame, (x, y), (x + w, y + h), (0, 255, 0), 2)

    # Display the video with the bounding box overlayed on each frame
    cv2.imshow('green ball detection', frame)
    if cv2.waitKey(1) == ord('q'):
        break

cap.release()
cv2.destroyAllWindows()

import tkinter as tk
window = tk.Tk()
window.title("My Program")

label = tk.Label(window, text="Welcome to my program!")
label.pack()

button = tk.Button(window, text="Click me!")
button.pack()

window.mainloop()

mint loom
mint loom
#

i donโ€™t even know anymore ๐Ÿ˜”

vocal basin
#

echidna

mint loom
#

what

vocal basin
mint loom
#

oh

somber heath
vocal basin
mint loom
#

no tkinter wonโ€™t even start

#

like the window

#

tkinter window doesnโ€™t open

somber heath
#

The platypus (Ornithorhynchus anatinus), sometimes referred to as the duck-billed platypus, is a semiaquatic, egg-laying mammal endemic to eastern Australia, including Tasmania. The platypus is the sole living representative or monotypic taxon of its family (Ornithorhynchidae) and genus (Ornithorhynchus), though a number of related species appe...

mint loom
#

and the error is thrown

somber heath
#

Echidnas (), sometimes known as spiny anteaters, are quill-covered monotremes (egg-laying mammals) belonging to the family Tachyglossidae . The four extant species of echidnas and the platypus are the only living mammals that lay eggs and the only surviving members of the order Monotremata. The diet of some species consists of ants and termites,...

vocal basin
#

the error may be happening in the import tkinter as tk

#

or even earlier (what would mean that tkinter isn't an issue)

lucid blade
#

have u tried a standalone tkinter project?

#

ie. just a form with hello world

#

?

mint loom
mint loom
#

same goes for opencv as well

#

stand-alone opencv works

#

but together is no go

lucid blade
#

hmm

vocal basin
#

tk also uses its own language (tcl) to some extent

sharp urchin
#

hey AF did you code in C++ for the competitive programming which you mentioned earlier?

#

or used python?

#

only

vocal basin
#

yes, because C++ is de facto the main language for most of competitive programming where I participated

sharp urchin
#

as either ways i am learning algos so i was thinking to go in cp....what do you say??

#

ohh ok

somber heath
#

@lusty fjord ๐Ÿ‘‹

steady token
#

good morning guys

lusty fjord
steady token
#

bye bye

vocal basin
#

Igorrr?

sharp urchin
#

ahh

vocal basin
#

Igor

sharp urchin
#

so me knowing only C and python should focus on more learning

vocal basin
somber heath
#

Igor is a 2008 computer-animated horror comedy film directed by Tony Leondis from a screenplay by Chris McKenna. Igor, developed and produced by Max Howard with the California-based Exodus Film Group, was the first feature-length animated film to be financed with private equity. The animation was completed at France's Sparx Animation Studios and...

sharp urchin
#

perhaps rust

lusty fjord
#

@somber heath why u ping me

vocal basin
vocal basin
sharp urchin
#

hmm so will go ahead with rust ...ty

#

yt can sometimes be "deceptive"

vocal basin
#

Rust has a difficult thing with lifetimes
but for most simple architectures (ones more likely to be present in algorithmic problems) it won't cause much issues

sharp urchin
#

they claim tht knowing python with the adequate knowledge should do it

vocal basin
#

Python for speed relies on libraries written in C, C++, Fortran, etc.

sharp urchin
#

which one do you recommend then?

#

c++?

#

slick

#

i recall

vocal basin
#

Rust for dynamic programming problems isn't in any way more difficult than C++

sharp urchin
#

yeh

#

thts slick

#

true but i already know C

#

so it might be a way for me

vocal basin
#

same for dictionaries

steady token
#

c++ is easier than java?

vocal basin
sharp urchin
#

agree

vocal basin
sharp urchin
#

why does industries use python much then?

#

if it isnt the fastest lang out there

#

in fact slow many times

#

implement?

vocal basin
sharp urchin
#

is that what they require in industries?

vocal basin
#

numpy uses C or something

sharp urchin
#

yeh cuz idts industries needs implementation over speed

vocal basin
#

and Cython for bindings

steady token
#

i just started to learn java

sharp urchin
#

i agree

#

but i always thought they needed speed in there

#

which made me question the usage of python

#

but i get it

#

hmmm

#

makes sense

vocal basin
sharp urchin
#

i sadly started with it

#

:[

vocal basin
#

C++++

sharp urchin
#

nahh

#

tf

vocal basin
sharp urchin
#

is it fr?

#

no jokes?

vocal basin
sharp urchin
#

ayoo

#

thts a language!!!

lucid blade
#

>++++++++[<+++++++++>-]<.>++++[<+++++++>-]<+.+++++++..+++.>>++++++[<+++++++>-]<+ +.------------.>++++++[<+++++++++>-]<+.<.+++.------.--------.>>>++++[<++++++++>- ]<+.

sharp urchin
#

:{

vocal basin