#ot1-perplexing-regexing

1 messages · Page 591 of 1

tranquil orchid
#

I'm quite happy around 100-120ish WPM, I can't really be bothered investing more time into practicing, this is plenty fast for everything

tribal aurora
#

@opal atlas

rough sapphire
#
fortnite
gta 5
among us
subnautica
abzu
alien: isolation
amnesia: a machine for pigs
axiom verge
cave story+
celeste
cities: skylines
city of brass
costume quest 2
darkest dungeon
defense grid: the awakening
enter the gungeon
fez
for the king
frostpunk
galactic civilizations III
genshin impact
hell is other demons
hitman
inside
into the breach
jurassic world evolution
just cause 4
kingdom new lands
metro 2033 redux
metro last light redux
mothergunship
my time at portia
night in the woods
obduction
overcooked
overcooked 2
oxenfree
pikuniku
pine
railway empire
rayman legends
RiME
rocket leage
roller coaster tycoon 3
scavangers
slime rancher
solitairica
star wars battlefron II
stories untold
stranded deep
stranger things 3
super meat boy
the escapists
the first tree
the lion's song
the long dark
the spectrum retreat
the stanley parable
the textorcist
the witness
thimbleweed park
torchlight II
train sim world 2
transistor
tropico 5
verdun
watch dogs 2
world of goo
``` what game should i play?
opal atlas
#

clock tower

#

roller coaster tycoon 3

harsh tundra
opal atlas
#

world of goo seems nice

#

it's onlicalligraphy

tribal aurora
rough sapphire
tribal aurora
#

oh

rugged echo
#

Which is why it's ambiguous and bad

#

You have ln, use it

opal atlas
#

encoding it's important

harsh tundra
solid pollen
tribal aurora
#

What's wrong with it ?

rough sapphire
ashen pasture
#

Dvorak was a pain

#

And I was able to do better on QWERTY anyways

tribal aurora
rough sapphire
#

Whats dvorak?

odd sluice
#

it's another one of those keyboard layouts

tribal aurora
#

which suks

harsh tundra
# ashen pasture Dvorak was a pain

dvorak is annoying af.
colemak is very nice and keeps azxcv in place, so text writing shortcuts are in place. s is only one key away from its original place, so ctrl+s is easy to do as well

dire siren
tribal aurora
#

u can even keep colemak while playing lol

dire siren
#

ye Dvorak f*** up movements in game

tribal aurora
#

some games even support colemak

#

and they rebind keys so it's like qwerty when playing

inland wolf
#

damn

#

damn

acoustic moss
#

damn

odd sluice
#

apparently 4.5% of all messages I have sent contain lmao

dire siren
#

!e print(142/9490)

royal lakeBOT
#

@dire siren :white_check_mark: Your eval job has completed with return code 0.

0.014963119072708114
dire siren
#

apparently 1% of all messages i have contains lol lol

edgy crest
#

0.028 of all messages i have contains apparently apparently

quartz dagger
#

hey @wraith hound

#

this is the problem I am facing

wraith hound
#

What's the issue there?

#

Positioning?

brazen ingot
#

the s yea

quartz dagger
#

positioning yea

#

yes the S, I couldnt move it from cutting off on the side and also the Daze icon to the right.

#

this is what am trying to build

wraith hound
#

Can you show the CSS?

quartz dagger
#

.icon{
position: relative;
bottom: 60px;
flex-direction: column;

}

#

thats the only thing I got in my css

wraith hound
#

Then you probably want to add a parent <div> to the two and do something like:

.class-on-div {
  display: flex;
  flex-wrap: wrap;
  fiex-direction: row;
}
#

The Flexible Box Module, usually referred to as flexbox, was designed as a one-dimensional layout model, and as a method that could offer space distribution between items in an interface and powerful alignment capabilities. This article gives an outline of the main features of flexbox, which we will be exploring in more detail in the rest of the...

quartz dagger
#

like add another div that wraps the <Row>?

wraith hound
#

Errr, what's <Row>?

#

Can you show the source code of that JSX component?

quartz dagger
wraith hound
#

Where did you define <Row>?

#

I'm assuming it's a components you imported

opaque bronze
#

oops

quartz dagger
#

I imported it

wraith hound
#

Can you show the source code of the file that has that?

#

Oh, I've never worked with react-bootstrap, so I have no idea, sorry

quartz dagger
#

no worries at all

#

thank you for tryiing

opaque bronze
#

@quartz dagger you would have much better luck in a js server

wraith hound
#

It's a React server

rough sapphire
clear acorn
tribal aurora
rough sapphire
#

typing the alphabet would be heaven tho

solemn leaf
#

@lilac badge \🤔 you have a mustache

lilac badge
#

Lol a little bit yeah

#

But I shave it because It looks terrible

solemn leaf
harsh tundra
# rough sapphire this is the best layout

beautiful
btw, there was such "weird layout ideas" thread on colemak forums a few years back. people inventing the worst layouts when it comes to moving fingers or with words in top row (just like "qwerty" is read from top row) 😄

tribal aurora
#

like

#

how weird

harsh tundra
#

I'd need to find it. it was yeaaaars ago

#

like 10 years ago or something like that when I used colemak and was a regular on colemak forums...

harsh tundra
#

correction: 6 years ago
https://forum.colemak.com/topic/420-the-best-keyboard-layout-ever/ weird bad layout placing most common characters in bad places and rare letters in best places, layout using pangrams (sentences consisting of all 26 letters used only once), layout with "fuck" and "stoned" in it... I thought there were more in that thread pithink

wraith hound
#

what the heck DIscord, I'm literally on the app

drifting sage
#

How lmao

wraith hound
#

I don't know

#

I just updated and that popped up

tribal aurora
#

Ctrl-r maybe

lilac badge
#

Lmaoo

wraith hound
#

Discord go brr I guess

tribal aurora
#

electron is bloat

wraith hound
#

Must be a bug in the update I just downloaded

tribal aurora
#

always has been

lilac badge
#

I wouldn’t say that

wraith hound
#

But Electron isn't that bad

lilac badge
#

Yeah

#

It used to be a lot worse

tribal aurora
#

discord even uses root privillages for no reason

#

who knows what's going on there

wraith hound
#

Oh god, Discord is now doing bugs that I've only seen happen on web

#

Never have I seen these specific bugs on the desktop app

lilac badge
#

Lol I stand by my statement

tribal aurora
#

okay

#

ima sleep now

#

it's 12:40 am

#

😴

rough sapphire
#

is star wars battlefront 2 good?

vapid nymph
#

solution is to force kill discord via taskmanager or taskkill and then relaunch it and it will update

last mantle
#

Discord also hangs and dies in KDE plasma

wraith hound
#

oh nvm, did it again and it worked

uneven pine
last mantle
inland wolf
#

anyone noticing that u have to spam enter to send messages that start with any of !?>-

last mantle
#

bruh fucking stickers

inland wolf
#

try sending >ok

#

i have to spam enter like thrice for it to send

#

why

last mantle
#

yeah

#

ok

#

true

inland wolf
#

did it do anything weird

last mantle
#

yeah

inland wolf
#

hmm

last mantle
#

stickers are annoying too

#

huh i thought it was the stickers doing this

#

anyways, fuck stickers

inland wolf
#

llo

acoustic moss
#

>ok

#

one try

inland wolf
#

damn

acoustic moss
#

i blame it on linux

#

😤

last mantle
uneven pine
#

Bet you they're on arch

#

Just broken system input lool

solemn leaf
#

ok

#

wat

#

sent in the third time \🤔

solemn leaf
#

sus

inland wolf
#

same

#

im on windows

acoustic moss
#

discord web or app

last mantle
#

app

edgy crest
#

it takes like 4 5 tries for me

#

on app

acoustic moss
#

im on web

#

ok

edgy crest
#

thonk

#

3 tries

inland wolf
#

ok

inland wolf
#

its not some broken input

#

i tried doing the same thing in other apps

#

works fine

edgy crest
#

discord bug moment

#

probs already reported

inland wolf
#

i tried it on web

#

same as app

last mantle
#

brug

odd sluice
#

!eeeeeeeeek

#

/doesthiswork

#

testing

#

-yupitworks

#

okay bug validated

clear acorn
edgy crest
#

what result

#

if this is related to the 12th thing

#

i am not in 12th that was a joke

last mantle
vapid nymph
#

They want you to use slash commands

#

Try typing one of those characters, pressing the down arrow once, and hitting enter :)

last mantle
#

huh

#

slash commands are good ngl

#

sad that dpy has no support for it

latent scaffold
#

oh yes.

clear plume
last mantle
#

i cannot wait guncat

clear plume
last mantle
#

ye, that's why i switched to a dart wrapper

clear plume
#

Smh

#

Not using whitespace language

tribal aurora
#

Hi.

rough sapphire
opal atlas
#

there is a thing like misconfiguration of usb ports

#

I mean in performance metrics

tribal aurora
rough sapphire
#

I always get runtime error

opal atlas
#

you plugged it wrong and now it only transfers at x rate

#

not because script or the eletro components

tribal aurora
rough sapphire
tribal aurora
#

jk

#

lol

opal atlas
#

can you help with java

rough sapphire
tribal aurora
opal atlas
#

I forget what is

#

I want to know if the code in arduino

#

have a default java

rough sapphire
opal atlas
#

it just a eletric thing with a cable

tribal aurora
#

yea ik

opal atlas
#

of course you know

#

you have a keyword in the name

tribal aurora
#

man mv /dev/null / fucks up everything

#

lol

#

I can't even run my terminal now

opal atlas
#

i will try mint

ashen pasture
#

Wait if I am correct isn't a Hemlock like a plant

lunar crescent
#

yesnt, mr.hemlock is an admin on this server

tardy rain
#

Hemlock is a plant and a poison

#

Also called conium

ashen pasture
#

Noice

tribal aurora
#

Arch™️

#

or Gentoo

#

smh

rough sapphire
#

ubuntu

unique dust
#

macos

#

android is also good

rough sapphire
#

ubuntu

tardy rain
#

Manjaro

edgy crest
#

manjaro

wraith hound
#

an ubuntu flavor

last mantle
uneven pine
#

It depends what you want and what you're experience is.

#

Are you beginner, intermediate, or advanced with Linux?
Do you want stability or newer versions of software?
What is your intended use of the distro?

#

The second question means so you want stuff to be stable or do your want meter versions of everything so the potential cost of stability...

#

It's kinda hard to elaborately farther on that. ^ @rough sapphire

#

I'd recommend OpenSUSE Tumbleweed then

#

If you're intermediate and know what you're doing, and know your way around using a terminal when you need to

#

It's a stable rolling release

#

Avoid arch or anything based on arch unless you want to spend every single day fixing things that break instead of getting things you want to do done

#

Yes

acoustic moss
#

lol

#

yes.

uneven pine
#

Yes

#

You can customize it however you want

#

Most distros offer many choices for desktop environment

#

And most environments been be customized wildly

#

This is what mine looks like work KDE plasma desktop

#

It is not even close to what a default install of plasma looks like

#

Default install kinda mimics windows 7

#

If you do like to customize stuff I recommend KDE plasma

#

One question though, do you have an Nvidia graphics card?

#

Well more specifically, is it a LAPTOP with Nvidia and Intel.. Oh it's a shitbook

#

An old as fuck one at that, oof

#

I'll dm you an invite to the opensuse discord

#

Just in case you have issues with drivers

last mantle
#

we have similar tastes huh

uneven pine
#

Really nothing if you want rolling release

#

There's Solus but package availability and compatibility are issues

#

Otherwise... Sky's the limit any distro really will work, so long as it's not arch based

#

It breaks. Constantly

#

It will break without you updating even

#

And every time you do update, it will break

#

Arch and anything based on arch is more of an experimental os that will teach you how to fix problems and become an advanced user

#

Arch is mostly used by kids who don't know what they're doing and were told to use arch,
Tinfoil hat FOSSers who think they anything not free and open source is the end of the world,
And crazy people

#

The community is also awful

#

It's you have a problem that the wiki didn't fix or answer, you're on your own

#

I'd much rather learn to be an advanced user by actually doing things

#

Rather than trying to fix my OS constantly when I'm trying to get work done

#

I've tried arch, Manjaro, and endeavor over the past few years

#

All 3 had the exact same issue of being so unstable I spent more than half of my time fixing problems instead of working on my projects

#

Soi this is not just me hating on it with no substance

#

It's genuinely caused me a lot of grief and I gave arch based 3 chances of my main workstation

#

Just erase the disk during install :p

#

Looks good, sadly I can't use Firefox

#

It hates me for whatever reason

wraith hound
#

No Discord under Socialize?

clear acorn
#

There is a app for that

wraith hound
#

fair

#

I forgot about that

#

hmmm

#

I wonder if there's a way you can open an app through a website hyperlink

edgy crest
#

seen a fair amount of websites do it

wraith hound
#

I assumed so

#

I wonder if there are docs or something on it

uneven pine
#

Knowing how crappy discord docs are, probably not

wraith hound
#

Not in Discord

#

I mean just in general

#

Like in HTML

wraith hound
#

Mobile and desktop

#

Ooh interesting

rugged echo
#

@topaz aurora sorry for the ping, i just have to show you this lol
seems as if it really is just undefined behaviour, different forms of execution can give different results, and IDLE just so happens to not call the finalizer at program termination clean-up

weak flower
#

henlo off topic people

lost vortex
#

uhhh. is 10 lines of C++ supposed to create 800 lines of assembly?

rugged echo
gritty zinc
#

sure, especially if there's loop unrolling happening

#

800 is a bit much though

lost vortex
#

oh

#

when i build without debug options, it is much smaller.

gritty zinc
#

yeah, that's probably it

graceful basin
#

you could easily get much more than 800 with enough templates

#

but without templates, yeah, it's probably just debug symbols

opal atlas
#

how did I get the templates?

silk basin
frozen crane
#

yay coffee

#

I don't have to ssh into coffee because there is coffee in my body at all times

#

@eternal wing you know it

eternal wing
#

I have been summoned

frozen crane
#

hi bb

#

today I had coffee sourced from so many continents

#

👦 = 🌏

eternal wing
#

I had some very average espresso from a nearby bakery

#

ok, mr. worldwide

frozen crane
#

well one cup was all strictly form Ethiopia and then the other was a blend of south america and indonesia

#

that's like, so many places
omg

vapid nymph
#

@hollow lance

#

Show

#

Pls

hollow lance
#

ok

#

looking for the code now

#

oh well actually it's used very basically, and specific to a single project that i worked on, but i guess it may help

winter terrace
#

where can i find fellow members of the anti-anime crusade?

#

i know they're out there

clear plume
frozen crane
clear plume
#

The blend I tried was really good

acoustic moss
#

i read that as a hex code

clear plume
#

I forgot what it's called but it's very premium so I would hope it's good.

frozen crane
acoustic moss
#

no

frozen crane
#

drink more

clear plume
#

Hsp probably doesn't drink coffee

acoustic moss
#

coffee makes me happy

clear plume
#

He seems too

frozen crane
#

does pooping not make you happy?

clear plume
#

Hspish

acoustic moss
#

depends

clear plume
acoustic moss
#

not as much as coffee

dire siren
timid frigate
winter terrace
timid frigate
#

?

#

shill?

winter terrace
#

advertise

timid frigate
#

!rule 6

royal lakeBOT
#

6. Do not post unapproved advertising.

winter terrace
#

but im not advertising

#

im asking where i can advertise

dire siren
tribal aurora
#

I think u can

#

they just habe to verify the ad

#

have*

inland wolf
#

do u have ur coffee keys

odd sluice
#

hmmm is ssh a shell

#

because it certainly has sh in it

tranquil orchid
#

@thick osprey

#

It just keeps getting worse

thick osprey
#

I was given a "light-weight" repo to use at work. A node setup for an lambda auth service in AWS. Darn thing had a clean 100 package imports if it had 12.

tranquil orchid
#

good lord

#

It's infested the entirety of the JS ecosystem

acoustic moss
thick osprey
#

Can you imagine the havoc these would cause with a breaking api change?

rain pebble
#

Can npm not shut it down

acoustic moss
tranquil orchid
#

lmao if the owner of is-number decided to, he could destroy the internet for a few days

rain pebble
#

@tranquil orchid I have a feeling it could be used for diagnostics in terms of API testing

acoustic moss
tranquil orchid
#

Everything would break

rain pebble
#

That seems semi-reasonable, like pinging 8.8.8.8

thick osprey
rain pebble
#

I don't imagine a lot of people care if numbers are even or odd

acoustic moss
#

hey

#

i care about them

tranquil orchid
rain pebble
#

Would you download a script over the internet to verify that

thick osprey
acoustic moss
#

i would be willing to pay $99.99 to verify that 😤

tranquil orchid
#

They couldn't see the real danger

rain pebble
#

I'm assuming SHA-256 is done for verifying what you download is what you download too, so there's a lot of other things being done typically

#

It's not a raw GET and call it a day

#

Maybe bots are downloading it for some reason

thick osprey
#

It's likely deployment packages.

#

Just baked right into the libraries that are running the backends.

tranquil orchid
#

Yep

thick osprey
#

Nobody thinking about it

#

"What could go wrong"

winter terrace
#

nothing

#

that's why nobody's thinking about it

odd sluice
#

uh

#

why not just do number % 2

acoustic moss
#

imagine doing all that hard work yourself

#

when you have an API that does it for you

odd sluice
#

why not just use some 15 lines of code
when you have to do the difficult work of 1 line

fresh sorrel
acoustic moss
#

its satire lol

fresh sorrel
#

I wish it was real

odd sluice
#

ah yes

inland wolf
#

guys

#

if i have a table in a pdf

#

can i read it with python

#

without losing my sanity

tribal aurora
#

huh

violet roost
#

time to install ipython

#

tomorrow I gotta use it for work

#

so it's probbly practical to find out how it works

wraith hound
#

At least semver is higher

#

But that's probably because npm uses it (I think)

violet roost
#

what was it again

acoustic moss
#

leftpad

violet roost
#

kik, I thought

wraith hound
#

Leftpad?

#

I recognize that name

violet roost
#

oh, nvm

wraith hound
#

That's one of the maintainers of babel (I think)

violet roost
#

kik was the package whose name led to the conflict

#

and then over that argument, koçulu deleted leftpad

#

which basically broke the entirety of js

wraith hound
#

Ohhhhhh

violet roost
#

Stratton offered to pay for the name, and Koçulu suggested $30,000 “for the hassle of giving up with my pet project for bunch of corporate dicks.” It was clear the two men weren’t going to reach an agreement.

wraith hound
#

Left pad is also a person's username

#

So I got confused

violet roost
#

ah

wraith hound
#

They were in a public argument with the original maintainer of babel who gave up on it

violet roost
wraith hound
#

Beautiful haha

violet roost
#

which you should absolutely check out

wraith hound
#

Did someone ever republish that package?

#

I wonder

violet roost
#

left-pad?

#

it immediately got republished by npm for obvious reasons, without the original maintainer's permission, which made him (and quite a few others) rather annoyed

tardy rain
#

chad

var i = -1;
++i;
``` vs virgin
```js
let i = 0;
i++;
violet roost
#

as he said

I want all my modules to be deleted including my account, along with this package. I don’t wanna be a part of NPM anymore. If you don’t do it, let me know how do it quickly. I think I have the right of deleting all my stuff from NPM.

violet roost
tribal aurora
#

i = 1

#

pft

violet roost
#

nah, too easy

last mantle
#

but that's the thing, you do not want i to be 1 guncat

tranquil orchid
#
from __future__ import annotations


@lambda c:c()
class __annotations__:
    def __setitem__(self, name, value):
        globals()[value] = globals()[name]


class Number:
    def __init__(self, value):
        self.value = value

    def __pos__(self):
        self.value += 0.5
        return self
    
    def __str__(self):
        return str(self.value)


let: i = Number(5)

++i
print(i)
```Or perhaps
tribal aurora
#

What's annotatinos

tranquil orchid
#

It'll store annotations of global-scope variables

#

!e

a: int = 5

print(__annotations__)
royal lakeBOT
#

@tranquil orchid :white_check_mark: Your eval job has completed with return code 0.

{'a': <class 'int'>}
rough sapphire
tranquil orchid
#

Not stringified annotations (I don't know the actual name here)

#

let: i = Number(5) i here would be undefined without it

#

And would just throw an error

rough sapphire
#

Ah

tribal aurora
#

let: i = Number(5) this is related to the future?

tranquil orchid
#

The i is

#

It turns it into "i" basically

#

Rather than searching for the variable

#

Which wouldn't be defined

#

I can't wait for them

#

I often want them

#

I believe it got pushed back

#

To 3.11

#

Cause it just breaks absolutely everything

rough sapphire
#

No

#

Let's not do this here please

#

if i++ and ++i add 1, shouldn't ++i++ add 2?

wise schooner
#

i++ and ++i are different

#

i++ - ++i monkaW

#

thankful that newer langs don't have it

rough sapphire
wise schooner
graceful basin
#

in C, that one is UB, in java, it is defined

ashen pasture
#

I wonder how I wonder why
Pineapple Coffee is a thing over here under the blue blue sky

#

But seriously

#

Like wtf

#

Why Pineapple Mint Coffee

wise schooner
#

pineapple pizza

ashen pasture
#

But Pineapple Mint Coffee

graceful basin
#

in java yeah, but not in C or C++

open pewter
#

how do I change the url on an html website?

rough sapphire
#

hello

open pewter
#

how do I change the url on an html website?

tribal aurora
#

wdym @open pewter

tribal aurora
solid pollen
#

@frozen crane how do I ssh into coffee

frozen crane
solid pollen
#

lol

tribal aurora
#

@carmine niche it's like the semicolon and the greek question mark

#

:P

open pewter
mental bison
#

who is this et al guy and why is he in so many scientific papers

wraith hound
#

Take a look at that

mental bison
#

yeah it was a joke

#

sorry I didn't make it clear

wraith hound
#

ah, my bad

vital stag
rough sapphire
vital stag
#

that was a joke

#

like the other thing

rough sapphire
#

if it was a joke, should of put /s

vital stag
#

not reddit

rough sapphire
#

discord uses it all the time man

rugged echo
#

there's a lot of stuff you can do with these increment/decrement operators :D
i +++++ i, the fence operator (not sure if it'll work lmao)
i --> j, the arrow operator

vapid nymph
#

hello obj

rugged echo
#

Hi aru

inland wolf
west lodge
#

can monkeys grow beards
————————————
they already have fur on their chin why need a beard

vapid nymph
#

@prime aspen i hate slowmode, do you mind if we move here

prime aspen
#

Sure

vapid nymph
#

huh

odd sluice
#

what does make -j <number> do?

prime aspen
vapid nymph
#

oh

#

does it do coverage too, or can pytest-cov be used for that

prime aspen
#

Not sure, need to check

vapid nymph
#

yeah

#

if you don't set a number it should use as many cores as you have

odd sluice
#

well what should i do

#

ill use one core

prime aspen
#

if you got 2c4t make -j 4

odd sluice
#

okay

prime aspen
#

Your PC shall suffer but you get speeb

odd sluice
#

ow my eyes

vapid nymph
#

darn

#

will stick with pytest for now

odd sluice
#

I see what you mean

vapid nymph
#

to note: I intend to make unittest compatible tests, just they're ran with pytest due to pytest-cov

#

also

#

why does ward have jinja2 as a dep

#

and pygments and rich

odd sluice
#

why does compiling take so much resources

prime aspen
#

Need color in life

odd sluice
#

huh

vapid nymph
#

coloredlogs is already a dep 😔

#

so colorama is a dep

odd sluice
#

oh no 43 packages to go

vapid nymph
#

like

odd sluice
#

and i f-ing forgot to include tkinter

vapid nymph
#

would be nice to use some stuff that i already use

prime aspen
odd sluice
vapid nymph
#

LOL

#

ward isn't on my path

#

actually

#

one sec

#

i was in the wrong venv

prime aspen
#

wrong venv
painPeko

vapid nymph
#

this project is for 3.8 and 3.9 so i have two venvs

odd sluice
#

hmmmmmmm maybe i should use venvs instead of fumbling around with anaconda even tho i have no use for it

#

also why is vmmem taking 1.5 GIGS of memory

#

that's a lot...

prime aspen
#

Compilation takes memory as well

#

So er..

odd sluice
#

ah i c

prime aspen
#

It's not superstition if 50% of the time it works all the time

odd sluice
#

ow my ears

prime aspen
#

it gets better/worse

odd sluice
#

OW

vapid nymph
#

oof

#

ward is not compatible with pytest tests

prime aspen
#

oh yea, turn your volume down

vapid nymph
#

which is a big enough reason for me not to use it

#

since

#

unittest tests are compatiable with pytest

#

which means i have a fallback

#

btw

#

arisu, do you wanna work on a project I'm making

prime aspen
#

whatchugot

vapid nymph
#

discord modmail bot fluwushed

prime aspen
#

GH repo?

vapid nymph
#

any immediate thoughts?

prime aspen
#

Gonna wait til stable v2.0 and migrate my cogs there as exercise first

odd sluice
#

huh people what's the syntax for update-alternatives?

prime aspen
#

Used it a few times, can't remember

vapid nymph
#

there's like

#

no source for it

#

so we're just starting with v2

#

that's a pending pr if you want to review it

prime aspen
#

I'll have a look after finals are over

#

Which will be 25 Aug

vapid nymph
#

oki

#

hm

#

would CONTRIBUTING.md be in docs/ or the root of the project?

violet roost
#

root I think

#

it's not documentation of the project; rather instructions for contributing to it

vapid nymph
#

true

violet roost
#

license and readme also aren't in /docs/

vapid nymph
#

yeah

#

ah

#

i love non-linear git history

violet roost
#

it looks like a knitted scarf

vapid nymph
#

lol

gritty zinc
#

oh boy

vapid nymph
#

this was my favorite part

#

as you can see, its not merged and never will be

vapid nymph
violet roost
solemn leaf
#

smh

#

extrA LINEAR HISTORY

solid pollen
#

not my smartest move

prime aspen
#

and wipe out the whole bitwarden database while I'm at it

#

yikes

humble crystal
#

Anyone know of a community I could ask general programming questions on? or where they could direct me to such a ressource?

royal lakeBOT
#

Communities

The communities page on our website contains a number of communities we have partnered with as well as a curated list of other communities relating to programming and technology.

slate oracle
#

hi can someone help me with js code ?

i am trying to fetch an api and save it as a var but i dont know how to do this
btw i am using wix.com

harsh tundra
slate oracle
#

how i do this ?

harsh tundra
#

I don't do js coding, but I'd say: just like you do any other js get and post calls

latent scaffold
#

Y'know, am I the only one who thinks it'd be kinda cool if Discord had "stories"

wraith hound
#

I don't know how I would feel about that

#

I like how discord doesn't put too much of an emphasis on your "profile"

graceful basin
#

aren't stories at their core short videos?

wraith hound
last mantle
#

soon there will be discord reels following that 😬

latent scaffold
graceful basin
#

yeah, IG just getting twitter inside of discord would not be terrible

rough sapphire
#

hello guys i am a deleted user

winter terrace
#

you are not, and they cannot

last mantle
#

ah

narrow zinc
pastel prism
#

What algorithm is used to write the text for the channel name?

wraith hound
mental bison
#

USB-C to USB-C adapter

#

I got this with my raspberry pi

wraith hound
#

Are you using it as an extension?

mental bison
#

its a few inches long so it wouldn't be a very useful one

wraith hound
#

Sounds like a useless adapter then

mental bison
#

I guess it has a power switch but couldn't I just unplug the pi?

wraith hound
#

@low chasm do you know how I could make this rust better

low chasm
#

Hm

wraith hound
#

The string has mostly repeated content

#

1 char difference for the first 7

#

Same char for the second 7

#

So like, it's there a way I can reduce the repeated content

low chasm
#

Im not too sure, I'm not an expert in rust, so if you have a question about it you could have a go in the rust server, they're far more accomplished then me

wraith hound
#

Okie

shut ermine
#

mmm i wonder what's a pepperess catblep

last mantle
#

@clear plume

shut ermine
#

:)

edgy crest
wraith hound
inland wolf
#

lol

wraith hound
#

Or ansi_term

#

I was just messing around to practice rust

spare lance
wraith hound
spare lance
#

something like rust equivalent of :

"hello {}, today is {}".format(user, date)
gritty zinc
#

in rust that'd be format!("hello {}, today is {}", user, date)

spare lance
#

ahh alright pretty cool

delicate anchor
#

i hack

#

discord

#

hehe

acoustic moss
#

it can only use literals

wraith hound
#

That whole function returns a String

#

That I pass into another format! later on

edgy crest
acoustic moss
#

oh

#

hmm

wraith hound
#

format! would be pointless if you couldn't add logic

inland wolf
spare lance
#
format!{"\u{001b}{}{}\u{001b}[0m", ansi_col, text}
``` wont work?
wraith hound
#

That should work

tribal aurora
#

dam, monkeytype's "code python" is now updated

violet roost
#

yay, it's chili's otname

vapid nymph
#

finally

clear plume
#

Fr

acoustic moss
#

oh ffs

tribal aurora
#

?

acoustic moss
#

fuck you discord previews

reef geyser
#

lol

#

I said maybe once

acoustic moss
#

ugh

reef geyser
#

because of a project I did when I was still learning python and was in over my head

tribal aurora
reef geyser
tribal aurora
#

lmao

fringe tulip
#

Anyone who uses linux on a daily basis, what's better about it than windows? I installed linux on an old laptop recently but I haven't really figured out the point of it over Windows.

graceful basin
#

C development is nicer and you get access to the gnu ecosystem

clear plume
#

From what I've heard and seen it's mostly about how you can configure it

#

Plus most of the time it doesn't come with 50 gigs of bloatwear

graceful basin
#

ye, it also tends to work better under resource pressure, and some people really love their eccentric window managers and desktop environments on linux, where windows just gives you 1-2 depending on how you count

fringe tulip
#

Ok, but I can't get over how annoying installing apps is

graceful basin
#

yeah, that can be an issue sometimes

inland wolf
#

some would say its easier on linux

graceful basin
#

it really isn't

inland wolf
#

beuae u dont have to search the apps website for the right installer, u just make ur package manager do it

fringe tulip
#

I'm coming from windows, I just prefer getting the installer off the site's page

graceful basin
#

on windows you have: download installer and run it
on linux: is the version in system repositories up to date? Use that
do you want flatpack/snap/appimage? Use that
does it have prebuilt binaries in gh releases? Use that
does it just have source distributions for linux and you have to built it from scratch? GLHF (this is python for example)

#

also, do you really want the application as a system dependency

fringe tulip
dapper dew
#

Ubuntu brought new life to my old laptop. With Windows it was lagging and struggling to get along. With Ubuntu it is packaged with apt, which is great to use from the terminal

graceful basin
#

linux app installs are practically unfixable due to the way linux systems work.

vital stag
#

The laptop cost me 400 dollars 6 years ago lol

#

And it's perfectly usable now

hybrid pivot
#

a potato flew around my room before you came

viscid hemlock
#

I always thought you could call functions in type annotations.. Like ```py
def some_func_that_returns_type() -> None: # Typed as None
return

class Test:
# Should be typed as None because that is the return type of the function
val: some_func_that_returns_type()

graceful basin
#

that's valid python

#

it will work up to 3.11

#

it's just not a valid type hint

viscid hemlock
graceful basin
#

well, in 3.11 it will also work, but it will just be a string

#

rather than None

viscid hemlock
graceful basin
#

ye, it was postponed until 3.11

#

it was going to be in 3.10

#

but then all the people using annotations for not type hints got mad

viscid hemlock
vapid nymph
#

it makes sense ngl

twilit shore
#

i’m sad my original wii is giving me an error message when trying to read discs

#

It just started being wierd

#

i think i might have to take it apart

#

and clean the reader

cunning dove
#

from-future -import-braces does it mean python will be a clone of LISP ?

wraith hound
#

Have you read the error?

#

!e

from __future__ import braces
royal lakeBOT
#

@wraith hound :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 1
002 | SyntaxError: not a chance
wraith hound
#

No braces

oblique raven
#

!e

__import__ random

print(__import__)

print(random.choice([1,2]))```
void temple
#

alright so I have connect raspberry pi dht11 to a flask website

#

the data required is humidity and temperature

#

then I need to be able to graph the value collected for the day

oblique raven
#

!e

__import__ random

print(__import__)

print(random.choice([1,2]))```
opaque jolt
#

okay

oblique raven
#

what is __import__

opaque jolt
#

so you need to graph temp and humidity?

void temple
#

yes

opaque jolt
#

okay

#

wht distro is on the rpi

void temple
#

im not too sure

#

actually how do you graph using python

#

Is there a way ?

#

And then to print the screen

opaque jolt
#

yeah

void temple
#

how do i do that

opaque jolt
#

cough

void temple
#

can i find it on github

opaque jolt
#

you just have to use it to display temperature

void temple
#

thank you

opaque jolt
#

yes sir

#

no problem

#

if youneedhelp lmk

void temple
#

will do

opaque jolt
#

its actually a fairly simple package

void temple
#

it is definitely

#

is there a way I can request data from the raspberry pi and display it on my website

opaque jolt
#

websites are kinda a grey zone for me

#

😅

inland wolf
#

@shadow ridge here

shadow ridge
#

okay

inland wolf
#

when u make changes ur changes will show up here

shadow ridge
#

oh i see

#

then i can commit and push changes from there

#

i see

inland wolf
#

so to commit u just have to type in that summary box

#

yes

shadow ridge
#

hmmm

#

and how do i make a pr?

#

i go to the original repo and.?

inland wolf
#

u first have to push ur changes to the fork

#

and then go to ur fork on github

#

and youll see the pr button

shadow ridge
#

oh

#

i understand

#

finally

inland wolf
#

yes

oblique raven
#

duh, I mean what does it do

#

😩 I need eivl so I can talk about PC stuff and have him answer literally 1 question about wattages and a power bill

last mantle
#

go on...

oblique raven
#

Ok so, I have a 850W PSU, and I need it for well, everything, and I was gonna ask Eivl, because I know that he probably didn't guy 11 hard drives at once, so I wanted to know how much higher his power bill went, when he needed a better PSU per hard drive

#

basically, I want to know if getting a higher psu will affect my power bill by alot

rough sapphire
#

yo

tribal aurora
#

not a chance

#

lol

void temple
#

fair enough thanks for help anyways @opaque jolt

tribal aurora
inland wolf
#

ok

tribal aurora
#

u seem to use vscode even after finding vim yert

inland wolf
odd sluice
#

vim is evil

tribal aurora
odd sluice
#

i don't understand why people use it

tribal aurora
#

evil in emacs

inland wolf
vocal quail
odd sluice
#

no i cannot

vocal quail
#

Lmao

tribal aurora
#

it's so easy

odd sluice
#

no

#

it really isn't

vocal quail
#

Just press i bro

#

I mean just cuz you can't learn it doesn't mean it's bad

odd sluice
#

i still forget how to exit
i still have to search it up hahaCouldntBeMe

vocal quail
#

:q!

odd sluice
vocal quail
#

Oh yeah it's evil for sure

odd sluice
vocal quail
#

Just that nothing else

#

And press enter

odd sluice
unique dust
#

vim is for nerds who never have sex, true chads use joe

odd sluice
#

lmao

vocal quail
#

Shit

graceful basin
#

the only reason I even started using vim was to not have to press combining keys, and well, vim isnt good at avoiding that anyway

unique dust
vocal quail
#

My god

odd sluice
vocal quail
odd sluice
vocal quail
#

Huh cool

odd sluice
vocal quail
#

Does it handle binary data?

odd sluice
#

I haven't tried

#

why not try it

#

it returns a url

tribal aurora
tribal aurora
#
alias open="xdg-open"
alias lf="ls -AF --color=tty"
alias gf="git fetch"
alias gp="git push"
alias gcm="git commit -m"
alias gl="git log --oneline --graph --all"
alias ga="git add ."
alias gsa="git status"
alias f="clear"
alias fl="clear;ls -F --color=tty"
alias fa="clear;ls -F --color=tty"
alias rm="trash"
alias p="pacman"
alias sp="sudo pacman"
alias ls="ls -F --color=tty"
alias ys="yay -S "
alias cr="cargo run"
alias cdoc="cargo doc --open"``` man, I have some weird alias lol
odd sluice
#

lmao

#

you use joe™️

tribal aurora
#

ye

vocal quail
#

I can probably type Syu faster than anything else

tribal aurora
#

not faster than me

vocal quail
#

Also I'm constantly riddled by pamcan -Syu

vocal quail
#

Maybe I should set an alias

solemn leaf
#

q

tribal aurora
clear sage
#
/*
 * Averages the pixels in a given image (img) within a circular
 * region centered at (x, y) with a radius of 'radius' pixels.
 * This function uses the "simple" approach to average RGB
 * colors which simply returns the mean of the red, green, and
 * blue components.
 */
color getAverageRGBCircle(PImage img, int x, int y, int radius) {
  float r = 0;
  float g = 0;
  float b = 0;
  int num = 0;
  /* Iterate through a bounding box in which the circle lies */
  for (int i = x - radius; i < x + radius; i++) {
    for (int j = y - radius; j < y + radius; j++) {
      /* If the pixel is outside the canvas, skip it */
      if (i < 0 || i >= width || j < 0 || j >= height)
        continue;

      /* If the pixel is outside the circle, skip it */
      if (dist(x, y, i, j) > r)
        continue;

      /* Get the color from the image, add to a running sum */
      color c = img.get(i, j);
      r += red(c);
      g += green(c);
      b += blue(c);
      num++;
    }
  }
  /* Return the mean of the R, G, and B components */
  return color(r/num, g/num, b/num);```


Was directed to this channel t o ask for help in understanding this c++ code. I have intentions of converting it to Python but 1) Im not sure what some of the syntax here means 2) How the logic of the program works exactly

Anyone know specifically how this specific bit of it works?

```c++
 /* Iterate through a bounding box in which the circle lies */
  for (int i = x - radius; i < x + radius; i++) {
    for (int j = y - radius; j < y + radius; j++) {
      /* If the pixel is outside the canvas, skip it */
      if (i < 0 || i >= width || j < 0 || j >= height)
        continue;

      /* If the pixel is outside the circle, skip it */
      if (dist(x, y, i, j) > r)
        continue;

      /* Get the color from the image, add to a running sum */
      color c = img.get(i, j);```

How does this give me a circle exactly?
#

And what does the syntax in the for loops and stuff (like int i = x - radius for instance) mean?

odd sluice
#

idk c++
but this is similar to javascript so lemme try

clear sage
#

is this js or c++?

#

Tbh im not sure what lang it is,m i assumed c++ because of the brackets

odd sluice
#

what

#

im pretty sure this is js hahaCouldntBeMe

odd sluice
#

actually nvm

#

it might be c

#

IDK IT'S SIMILAR

graceful basin
#

it is C++

#

PImage img would likely be a pointer in C, and JS cannot do int i

clear sage
#

is PImage some kind of image editing module like PIL?

graceful basin
#

seems like it

#

couldn't tell you where it comes from though

odd sluice
# clear sage ```c++ /* * Averages the pixels in a given image (img) within a circular * reg...

so the first loop checks that the x coordinates are between x - radius and x + radius (the diameter)
next for loop does the same for y

the next if checks if x-radius and y-radius is outside the canvas (it skips it so that it does not render)
the next if checks if any of the above ones are outside the circle's perimeter (it skips them too)

i don't know what PImage is, but I can infer the following from the code
it has a method get which returns the colour values at that given point
then they just add the values to r g and b

#

this function finally returns the mean of the colour values of everything in the circle

clear sage
#

and wont x ALWAYS be between x-radius and x+ radius?

odd sluice
#

yes

#

they are iterating between x-radius and x+radius

#

so it would be

for i in range(x-radius, x+radius+1):
  ...
#

it would work a 'lil something like this

acoustic moss
#

bonjour hash

odd sluice
#
for i in range(x-radius, x+radius+1):
  for j in range(y - radius, r+radius+1):
    if (i < 0 or i >= width or j < 0 or j >=  height):
      continue

#

this is part of the code ^

acoustic moss
#

the (i < 0 || i >= width || j < 0 || j >= height) is for checking that (i, j) is a coordinate within the image

odd sluice
#

yup

clear sage
#

give me a while to read, im a bit slow at understanding and reading code

odd sluice
#

ah ok

acoustic moss
odd sluice
acoustic moss
#

lol

viscid hemlock
#

Why isn't or used?

#

Is there a difference?

clear sage
acoustic moss
#

ye

gritty zinc
odd sluice
#

whatever it is in
it's readable
so peeposhrug

gritty zinc
#

in Rust you'd to if !((0..=width).contains(&i) && (0..=heigth).contains(&j))

gritty zinc
#

why not

#

there's no two-sided comparisons, sadly

#

but ranges are pretty nice

acoustic moss
gritty zinc
acoustic moss
#

width of the image

odd sluice
clear sage
#

i see

#

I tried to understand the code and here is the understanding of it I cam up with , tho i still dont fully get it yet

odd sluice
#

send yo code and I'll try to help

clear sage
#
for (int i = x - radius; i < x + radius; i++) {
    for (int j = y - radius; j < y + radius; j++) {
      ```

In the first for loop, x-radius would be a point on the perimeter on the lft hand side of the circle, x+radius is a point on perimeter on right hand side of the circle

So basically here, the first for loop sort ofgets all the x values lying on a line going thru the radius of the circle

For every time the for loop is run, or for every value of x, we do a similar test with y.
odd sluice
#

for every value of x, we test every value of y
it's like a sequential search

clear sage
#

like this what i meant

odd sluice
#

for n x's and m y's
we check:
x1y1, x1y2, x1y3....x1ym
x2y1, x2y2, x2y3.... x2ym
....
xny1, xny2, xny3.... xnym

acoustic moss
#

yeah

odd sluice
clear sage
acoustic moss
#

wdym test values of y

#

you test (x, y) pairs

odd sluice
odd sluice
#

the final result is the same

acoustic moss
clear sage
#

But here is the prob, for some point i in the range(x-r,x+r) as marked by the green dot, if i traced a line containg points in teh range (y-r,y+r) (which i assume what the second for loop does) wont some of these y points go out of circle?

acoustic moss
#

you then do the if (dist(i, j, x, y)) > r check to yeet the coodinates which are inside the square but not in the circle

odd sluice
clear sage
#

smth like this

#

is what i mean by w

#

This way y wont go outside circle right?

odd sluice
#

hmmmmm
I can't think of anything off the top of my head
you'll need to find w somehow

acoustic moss
#

yeah

clear sage
#

would it make it faster?

acoustic moss
#

trigonometry

#

not noticably faster

#

at least i don't think so

odd sluice
#

this is fine i think

#

i actually think the extra calculation will make it less efficient

clear sage
#

not the hypo or opposite/tall side

acoustic moss
#

from the centre

#

draw the triangle from the center

clear sage
#

like this?

acoustic moss
#

the hypotenuse would then be the radius of the circle

#

yes

odd sluice
#

I don't think it's worth saving a few iterations

#

but it is possible

acoustic moss
#

🤷

clear sage
#

so to calc max range of y within circle , it wouldbe smth like max y = sqrt(r^2-xAtThatPoint^2)?

clear sage
acoustic moss
#

sqrt(r^2 - (x-i)^2)

odd sluice
clear sage
acoustic moss
#

yeah xAtThatPoint is x - i

odd sluice
#

I guess you could use timeit to test it

#

anyways
that's the loop

clear sage
#

i assume the trig method might be slower

#

since it has powering involved

odd sluice
#

I would think so too

acoustic moss
#

ehhh

#

i dunno

#

the bigger problem is that

#

you might miss a few pixels if you use sqrt

#

because you;ll have to round it off