#ot1-perplexing-regexing

1 messages Β· Page 645 of 1

mild abyss
#

🀣

slender mirage
#

I like ur name lmao

#

πŸ—Ώ

rough sapphire
#

mm k?

lusty rune
#

honestly it felt pretty scuffed to me, it would've been very nice if they kinda normalized(?) it

hidden pebble
#

yeah, using the like to dislike ratio wasn't a good idea at all

jaunty wraith
#

!e import gravity

royal lakeBOT
#

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

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | ModuleNotFoundError: No module named 'gravity'
jaunty wraith
#

sad

surreal otter
#

If you wanted to create a live chat using web workers, where would you begin?

errant sail
#

@vague egret they want us to move channels.

#

@rough sapphire

errant sail
#

I forgot who else was talking to us.

#

But yeah my bs is in environmental science

vague egret
errant sail
#

MS in software development

rough sapphire
#

Oh

rough sapphire
vague egret
#

@errant sail I was lost amongst all those channels

#

found it again

#

LMAO

errant sail
#

I wanted to work with AI in the Agriculture field but I been struggling

rough sapphire
#

Oh why

vague egret
errant sail
tranquil orchid
#

Electrical and Computer systems engineering for me

#

But I dabble in a bit of aerospace

latent scaffold
#

I still can't pick a degree to pursue

vague egret
#

So which languages do you work with?

tranquil orchid
latent scaffold
#

I think I'm torn mostly between computer science and mechanical engineering

dapper dew
#

Mech Eng ftw

#

(totally not biased)

errant sail
tranquil orchid
#

Stuff and things

vague egret
rough sapphire
tranquil orchid
#

Heavily used in scientific computing

rough sapphire
#

I've know python Java css html php and android

latent scaffold
tranquil orchid
#

One of the few (if not only) popular proprietary languages

dapper dew
#

Yup

latent scaffold
tranquil orchid
errant sail
vague egret
latent scaffold
tranquil orchid
#

I enjoy a healthy mix of electrical and programming stuff

#

Just pure programming would drive me crazy

dapper dew
rough sapphire
vague egret
#

and I am not old enough to have a international payment card

latent scaffold
#

ah yes. watch me major in "soil science"

tranquil orchid
#

I wouldn't mind doing aerospace either, but there just isn't a huge industry for it in Australia, so I'll just keep it as more of a hobby for now

errant sail
#

I’ve played with a few code languages but I’ve been heavy on building websites in AWS lately

latent scaffold
#

I had an aerospace class in high school

tranquil orchid
#

In highschool πŸ‘€

latent scaffold
#

indeed

#

It was...

acoustic moss
latent scaffold
#

well I think actually it kinda sucked

errant sail
jaunty wraith
tranquil orchid
#

Although Australia is sort of starting up a space industry, so I guess I'll see what happens

last mantle
tranquil orchid
#

I can go into any industry with Electrical and Computer Systems anyway

errant sail
#

I wanna do more with my code but I feel I need a partner to help me think more because I be overwhelmed doing it alone. πŸ˜‚πŸ˜‚

latent scaffold
latent scaffold
dapper dew
lusty rune
lusty rune
#

machine learning was such a boring subject for us because it went over everyone's heads

dapper dew
#

That is every planet in this solar system

last mantle
acoustic moss
#

pluto is a planet as far as im concerned

#

😠

tranquil orchid
#

Baby planet

acoustic moss
#

he'll grow

dapper dew
tranquil orchid
dapper dew
latent scaffold
#

Why do we have plus1 but not :minus1:

tranquil orchid
#

I considered doing Robotics and Mechatronics - AI stream as well

#

But I think Electrical and Computer Systems is the way to go for me

latent scaffold
#

I mostly want to go into mechanical engineering for things like robotics

lusty rune
#

the only reason i got invested into electrical/microprocessors is because the teacher was solid πŸ’―

#

too bad i picked cs instead of electrical πŸ—Ώ

tranquil orchid
last mantle
acoustic moss
#

no

tranquil orchid
#

And I'll end up doing my masters at some point as well, maybe I'll do that in mechanical if I want to get into that a bit more, or I'll just do it in pure electrical

vague egret
lusty rune
#

yeah it was heckin amazing

#

watching assembly programs turn into real lights with pattern was πŸ”₯

latent scaffold
tranquil orchid
#

Mechatronics is pretty much as the name implies

#

Mechanical + Electronics

#

aka, robots

#

kinda

latent scaffold
#

What's the difference between that and robotics \πŸ€”

dapper dew
#

Thats what is so great about Mech Eng - it covers pretty much everything

tranquil orchid
latent scaffold
#

I see

tranquil orchid
#

At my uni it's just called "Robotics and Mechatronics", it's all in the same sort of category

latent scaffold
#

I think we only have "Mechanical Engineering" as far as that's concerned

lusty rune
#

honestly in india, any stream covers almost everything, first-second year were good because in CS we had exposure to bunch of civil/mech/pretty much everything

#

carpentry had to be my favorite

last mantle
lusty rune
#

minus the time they told us to fucking draw the shitty diagrams in a record book

tranquil orchid
#

can I get in on this πŸ‘€

lusty rune
#

so we had to draw screwdrivers, files and stuff

latent scaffold
#

The NMSU College of Engineering came to do a presentation at our high school once

#

Well, a high school across the street from ours

#

A select group of students, including myself, was invited to go watch it

#

basically I've been hooked ever since

tranquil orchid
#

I dunno how I heard about my uni

#

But it's very very good and I like it a lot

jaunty wraith
lusty rune
#

worst part was that it contributed to our overall marks

jaunty wraith
#

that is really dumb

lusty rune
#

welcome to india

tranquil orchid
#

I got one of these recently for a little soldering practise, huge 555 timer

latent scaffold
#

The heck does that mean

tranquil orchid
#

You've never used a 555 timer? πŸ‘€

latent scaffold
#

oh goodness that thing is huge

#

Where would I even hear about such a thing D:

lusty rune
tranquil orchid
#

Like one of the most popular IC's ever

dapper dew
#

Yeah I've never used one either

#

But to be fair I don't build many electronics

errant sail
#

I actually built a tower once and I’m think about taking my software degree and digging into robotics and what not.

latent scaffold
tranquil orchid
#

yeah

lusty rune
#

yes

latent scaffold
#

wow I'm cool

jaunty wraith
#

555 timers are well known

latent scaffold
#

what is an integrated circuit

jaunty wraith
#

it's a circuit that has stuff integrated in it

#

no joke

tranquil orchid
#

They'll look something like that

jaunty wraith
#

look like ants

vague egret
vague egret
floral apex
#

And why does it look like a large DIP chip

tranquil orchid
#

There's three 5k resistors in there

#

Between the supply and ground

jaunty wraith
#

Several books report the name "555" derived from the three 5 kΞ© resistors inside the chip.[9][10][11] However, in a recorded interview with an online transistor museum curator,[12] Hans Camenzind said "It was just arbitrarily chosen. It was Art Fury [Marketing Manager] who thought the circuit was gonna sell big who picked the name '555'."[13]

floral apex
#

Speaking of 555

latent scaffold
#

shoulda named the song 555

jaunty wraith
#

marketing shenanigans

late ether
#

what will you prefer to use? python3.9 or 3.10.

dapper dew
#

3.10

uneven pine
#

3.11 soonℒ️

jovial oriole
#

is it possible to get a memory leak in python

#

any% speedrun reasons

uneven pine
#

Instagram literally lived on a memory leak for a couple of years

#

They disabled the GC and instead of it trying to keep up with the memory leak, they just restarted the servers on a set scheduling

jaunty wraith
#

average Kubernetes system

graceful basin
#

It depends on what you mean by memory leak. A true C++ memory leak (an allocated Block being unreachable) is impossible, since CPython tracks all objects in a linked list, but you can easily leave dangling references and not clean up some objects that way

craggy crypt
#

del gravity πŸ’€

reef geyser
#

@jaunty wraith its possible that we are all the imagination of a spontaneous, rare quantum fluctuation that produces a line of logical thought for a fraction a second and disappears afterwards

rough sapphire
#

i wanna make music but idk which program to choose / how to use it

#

please hleb

jovial oriole
uneven pine
# rough sapphire please hleb

As someone who has been into music for many years... You have to try them all. Everyone feels differently about different ones

#

My personal choice is FL Studio

#

Many people prefer Ableton

#

Cubase is also quite popular

#

If you have a crapbook there's Logic

#

There's also Reaper, Studio One, Reason, and Sonar

#

They all have their own pros and cons

#

And various pricing

#

So I'd recommend looking into all of those, trying the demos out

rough sapphire
#

also i need smth free cause 1) in russia & 2) no money

uneven pine
#

You're not going to do anything serious for free

#

Your best bet is garage band if you have a Mac

rough sapphire
uneven pine
#

You'll struggle with basic stuff free. Like I said, your best bet is Garage band if you happen to have a mac

rough sapphire
#

dont

uneven pine
#

Otherwise... I think LMMS is the best free production DAW you can get

#

But it suffers from FOSS syndrome seriously

rough sapphire
#

what does that even mean

uneven pine
#

It's a foss ripoff of FL studio there can do ~10% of what FL can

uneven pine
uneven pine
#

Digital audio workstation

rough sapphire
uneven pine
#

The software you use to produce audio

rough sapphire
#

ah i c

uneven pine
#

And foss syndrome is the tendency for foss software to have horrible UI, extreme lack of function, and lack of documentation, while its community will constantly tell you it's just as good as the paid alternatives

#

Prike example being GIMP (vs Photoshop)

rough sapphire
#

ok

#

(lets... not do that with this ui)

uneven pine
#

Is that LMMS now? They're definitely improved since I used them

uneven pine
rough sapphire
#

that i am in a python server

gritty zinc
#

I really try to use FOSS nowadays whenever I can, but sometimes it's just very obvious how much better it is to download totally lawfully acquire something proprietary

uneven pine
# gritty zinc it's a sad fact

Most people don't want to admit this. I'm glad we have the FOSS options but lying to ourselves (and others) about what their capabilities are doesn't help anyone. And ends up hurting the experience of users

rough sapphire
#

and those are kinda applicable to python

uneven pine
#

There are obviously outliers

#

For example, Blender is by far the best 3D suite out there imho.

lusty rune
#

yup, nothing beats blender

uneven pine
#

I've used 3ds Max, Maya, and Cinema4D, blender is way better in every way than those.

#

Inkscape is pretty good too

#

And Krita

#

But things like Resolve, Photoshop, DAWs, there's no free alternative that gets close.

rough sapphire
uneven pine
#

Paint.net can't do 1/16th of what Photoshop does.

#

And Ms paint not 1/512th

lusty rune
uneven pine
#

Not even close.

lusty rune
#

after effects is also king

uneven pine
#

GIMP gets 1/8 MAYBE 1/4 of the way

lusty rune
#

yeah it's up there

#

but tbh, adobe deserves all the credit because their softwares are 10/10

#

minus the shitty subscription model they came out with cc

uneven pine
#

But still, horrific UI, loads of things missing, bad and outdated documentation, no way to set up keybinds to match Photoshop without manually editing the hundreds and hundreds of binds yourself

lusty rune
#

think my dad still runs cs6

uneven pine
#

No I'm actually happy with the subscription model

#

I couldn't afford the $600 price for a single version of a software

#

But at $10/month I can easily afford PS.

lusty rune
#

yeah i'm not really a fan of subscription model

#

also i don't think it's $10?

uneven pine
#

And when I get neck deep in a project, either my employer provides it, or of I'm on a contract I can just pay the $60 for the whole suite

#

PS+Lightroom is $10/month. That's what I've been paying for a long time @lusty rune

lusty rune
#

ah, i thought all cc apps

uneven pine
lusty rune
#

PS itself is $20/month here

uneven pine
#

$55/month standard pricing is amazing

lusty rune
#

yeah i'm gonna pass on that

uneven pine
#

Consider how many apps are in CC

latent scaffold
uneven pine
#

That would be $600/version, new version every year

lusty rune
#

honestly if you're a graphic designer or such then it's a killer deal, the subscription model i mean but other than that i'm not really a fan of that

uneven pine
#

If you JUST used PS+Lightroom (which was $300), After Effects, and Premiere, every time you needed/wanted to upgrade would be

#

$2100

#

Now is $660/year for a single seat

lusty rune
#

whew

uneven pine
#

Way less if you're a student

#

You don't have to save for 20-30 months to afford just to start using it

#

I mean, let's be real, if I just needed PS+Lightroom it would still be $900 with the old model

#

That would have taken me at least 9 months to save for, assuming life didn't throw anything at me

lusty rune
#

yeah that's fair

uneven pine
#

I'm in a bit better of a financial situation these days, but it would still be months of saving, and not putting the money into an actual savings/emergency fund to be able to afford that

#

When now I can pay $10 as I need, and have access for a month

#

And you can negotiate in contract work for the license to be paid by the company hiring you if it pertains to a job

#

Whereas before, that wouldn't be feasible

lusty rune
#

hmm yeah that's actually pretty nice

uneven pine
#

People don't realize that yeah

#

More subscriptions are annoying

#

But Adobe actually saves a lot of people a lot of money with that model

#

It makes their software attainable without piracy to the masses

stoic ravine
#

Does anyone here know much about Slack Bolt API's?

mild abyss
#

whats codejam

#

oh new event

low chasm
mild abyss
frozen crane
#

Fine, I'll look at announcements

#

Happy?

floral apex
#

Otherwise just settle for alternatives

#

Stuff like Affinity, Figma and open source

#

I'm also avoiding Adobe from bad experiences with Creative Cloud

#

For some reason it will try to eat up a lot of CPU processing power where normally other applications barely do anything

#

And it gives me the impression they're too lazy to fix buggy software

clear plume
#

Omg aboo helper

#

😩

small coral
clear plume
#

Aboo helper.

latent scaffold
#

guh??

small coral
#

i think that's the second time i've seen someone i'm familiar with become helper

#

first one was fronto

latent scaffold
#

for me it was hsp, brad, fronto, aboo

#

uhh I feel like there's been more

#

dawn

#

mina, I think

floral apex
#

Aboo is pee colored now

latent scaffold
#

suits him

floral apex
#

@low chasm

latent scaffold
#

welp

#

also it's weird seeing the contrast between normal dark Discord and.. this

rough sapphire
#

i barely could see it

#

because of my build overwrite

latent scaffold
rough sapphire
#

lovely now i can

rough sapphire
#

annie/dark is the best build overwrite

latent scaffold
#

I don't even know of any others

rough sapphire
#

same

latent scaffold
#

but I do love this one

rough sapphire
#

same

latent scaffold
#

I didn't even know it was a thing until today

rough sapphire
#

bruh

#

i had it on since like a month ago or so

tulip cedar
#

They were primarily made for Discord Staff to test out stuff and not update their app repeatedly

rough sapphire
#

They are made*

#

They're not supposed to be public

tulip cedar
#

Yea, but eh, the discord staff do make build overrides for public, like Slash Commands v2 and annie/dark
You won't be able to use a build override made for staff anyways, since that's gonna error out

mild abyss
mild abyss
#

keeps it bright

rough sapphire
#

Was the slash v2 a build override? Thought it was as always an experiment

tulip cedar
#

Nope. There was a build override released for that which also included the slash command perms

rough sapphire
#

Thank god I didn't got it

tulip cedar
#

They termed it as Slate iirc

#

Why would u say so?

rough sapphire
#

Slash commands are simply terrible, personal opinion

tulip cedar
#

Well, I agree to some extent, but that thing happened before they pushed the slate v2 (or was it slate?) update to Canary, which happened a few months ago

rough sapphire
#

The thing is that they have lots of ideas that are nice, but once it's released - example slash commands and auto mod - there are lots of stuff they didn't seem to have thought about, things that are pretty much obvious.

#

Same for the modals, you're so much restricted you can't really do what you want

tulip cedar
#

I do agree with u on Modals. They are hella limited

rough sapphire
#

I've barely seen anyone use them, they rather stay on the old

What will be the x value? Send in chat

tulip cedar
#

Yea. They will become more interesting when discord allows to add more UI components to it
But tbh, Modals are a great thing for application bots tbh haha

rough sapphire
#

Yeah yeah true

#

But why release a half baked feature

tulip cedar
#

It's Discord, what else can you expect

rough sapphire
#

It was obvious people would ask for more customization and component types in their modals

#

Same for the automod, it was used to bypass the message content privileged intent and use prefix commands on a bot without the intent

#

I believe they've fixed it now

tulip cedar
#

Yea, they fixed it a few days back (last week only iirc)

rough sapphire
#

At least they don't take ages to fix important issues

tulip cedar
#

Not true in every case, but yea true. They still haven't fixed their new Android client

rough sapphire
#

Mobile is just forever broken

tulip cedar
#

It's not as important as fixing the API I agree, but the app is hella laggy and unoptimized

rough sapphire
#

Always has been and always will be broken

tulip cedar
#

Crashes all the time, takes 2 seconds to change server even on 6 GB RAM

rough sapphire
#

Well it's still very important

#

Plus I'd guess they have two separate teams, so they probably don't have an excuse

tulip cedar
rough sapphire
rough sapphire
tulip cedar
#

Discord being Discord Β―_(ツ)_/Β―

rough sapphire
#

yuh

solemn leaf
drowsy rose
#

i clicked on this willingly

#

and i dont regret it

dense moon
#

Hey guys i'm working with some data that uses some German abbreviations, any german that could help me with it please? It'd be great if you have some knowledge in industrial machines.

low chasm
lusty rune
#

yo @weary moat sorry to buzz you but i couldn't wrap my head around how to get your neovim dotfiles working, it was on WSL so it was extra messy, do you have anywhere i could start with because i've no idea how to deal with lua files?

weary moat
#

which copies the contents of the nvim folder to the correct locations specified in install.conf.yaml

lusty rune
#

god bless, i'll give it a shot

#

thanks

weary moat
#

np. shout if you get stuck!

lusty rune
#

aye

weary moat
#

for plugins

lusty rune
#

whew, almost installed vim-plug πŸ‘€

jaunty wraith
#

@weary moat have you tried chezmoi for dotfile management?

weary moat
#

nope - but I'll be having a look now!

lusty rune
#

i'm not sure what i did but my wsl crashed πŸ‘€

#

i cloned your stuff and setup dotbot and ran install

#

it died

#

i ran it again just in case and i think it worked

latent scaffold
lusty rune
#

whoa

weary moat
#

sorry, can't help here. I haven't used a windows machine in 'ahem' years

tulip cedar
latent scaffold
tulip cedar
#

What's that?

latent scaffold
#

green

tulip cedar
#

Never saw a GSOD

lusty rune
latent scaffold
weary moat
#

the content of the nvim folder in that repo just gets copied into the neovim config folder - ~/.config/nvim

latent scaffold
#

it's the same as a BSOD but green

lusty rune
#

yeah

weary moat
#

if you have content in there, neovim should use it when it starts up - it looks for init.lua as the starting point

tulip cedar
lusty rune
weary moat
#

yep. I've split things up. That loads main.lua from the lua directory

lusty rune
#

yeah everything seems to be in order but nvim is still basic

weary moat
#

space is my leader key - try space-e-f

#

if it's working, that should bring up the explorer tree on the lsh

#

lsh

#

lhs. can't type today

lusty rune
#

nope 😐

weary moat
#

plugins installed?

#

PackerInstall

#

stupid question - neovim is v0.7?

lusty rune
#

not stupid at all

#

it was an outdated 0.4

jaunty wraith
#

maybe you need to run PackerSync?

lusty rune
#

πŸ—Ώ

jaunty wraith
#

that's old

weary moat
#

ah. that won't have lua support

#

my stuff needs 0.7 - telescope requires it

lusty rune
#

aye i should also run packerinstall

#

thanks should be alright now

lusty rune
#

gotta admit this nvim config is beautiful but i get this error at the start , probably because i don't have pyenv, thanks @weary moat

weary moat
#

Ah yes. You'll need to set the python interpreter to whatever suits you

#

That's in settings.lua

#

Best make that a venv of some flavour. It will need pynvim installed in it

#

Also, I have a few language servers configured - pylsp for example. You'll need those installed to get linting and code completion working

#

I also use lazygit and lazydocker and there are keybindings to fire those up in floating terminal windows.

#

But they'll need to be installed separately in order to work

mild abyss
#

u have problems with nvim config in lua?

mild abyss
#

i forgot because i dont use lazygit and lazydocker.

#

wait im dumb. it wasnt meatballs who needed help

#

sorry

weary moat
mild abyss
#

1AM moment

lusty rune
weary moat
#

Working yet?

lusty rune
#

yeah it is!

#

it's beautiful

weary moat
#

Wonderful! Glad you like it

#

Space-f for telescope stuff (find.. In my head)

#

Space f b (find in buffers, for example)

#

Space g for lazygit

lusty rune
#

how do i navigate after opening stuff with nvim tree? like jumping to previous file

young shoal
lusty rune
#

it's pretty handy dandy

young shoal
#

i use comma (,)

lusty rune
#

i thought i was good with tmux, this is next level stuff

weary moat
#

Oh, jk is mapped to esc too.

weary moat
lusty rune
#

oh hell yeah

#

this is awesome

weary moat
lusty rune
#

yeah wouldn't need tmux if you have this

weary moat
#

It's a fairly niche interest. Nice to find somebody that shares it!

lusty rune
#

it actually makes me want to go full linux because wsl is being quite dramatic sometimes

jaunty wraith
#

do it

young shoal
#

WSL is great. windows is alright

weary moat
#

Ctrl Y for a new terminal, btw

lusty rune
#

woaaaah

#

this is some mind blowing stuff

weary moat
#

If you install fzf, there's also a space ff keybinding for that

jaunty wraith
#

Telescope supports that natively doesn't it?

weary moat
#

Terminal stuff config is in in toggleterm.lua

weary moat
#

Space p to launch the pudb debugger. That needs to be installed to work

lusty rune
weary moat
jaunty wraith
#

what's a keebio iris πŸ‘€

weary moat
#

I fancied an ergodox but didn't want to spend the cash! This thing is excellent.

chrome crypt
#

why not, take this one

#

Visit https://www.squarespace.com/LTT and use offer code LTT for 10% off

Buy a Seasonic Ultra Titanium Power Supply:
On Amazon: https://geni.us/q4lnefC
On NewEgg: https://lmg.gg/8KV3S

Split ergonomic keyboards have been increasing in popularity in recent years as use of computers and the internet has become more frequent. Options like the Ergo...

β–Ά Play video
weary moat
jaunty wraith
#

looks comfortable to type on

karmic gust
#

my hands do not go inside that keyboard

lusty rune
#

have you checked out zsa moonlanders? some of my friends are real big fans of it

weary moat
lusty rune
#

that is true 🀣

weary moat
#

Ubuntu based desktop that's wholly keyboard driven. Brilliant stuff

lusty rune
#

woaaah

#

might be overkill for me for now 🀣

lusty rune
weary moat
#

Blows people's minds when you boot your pc and it comes up with an empty desktop and your keyboard has no markings!

lusty rune
#

XD

jaunty wraith
#

still have it on a laptop

lusty rune
weary moat
#

Yeah, somebody did once ask if it was broken!

weary moat
# jaunty wraith still have it on a laptop

My laptop replacement is a raspberry pi 4 with a big ssd and I take my keebio on the road. I'm always working at somebody's desk with a monitor, so it works just fine. I ssh into my home machine and away we go!

lusty rune
#

oh wow

jaunty wraith
#

ah. pis are hard to get now

weary moat
#

I've just bought a portable monitor for it - mainly for the organisers room at PyCon UK to make my fellow keyboard loving organisers slightly envious!

jaunty wraith
#

one of my laptops is now just a literal desktop

weary moat
lusty rune
#

that's one way to avoid laptops

jaunty wraith
#

I see you're editing your config like a faithful vimmer

weary moat
#

Almost constantly obvs!

lusty rune
#

how much did the rpi cost?

weary moat
weary moat
lusty rune
#

whew

weary moat
#

Β£25 for the case and ssd mount (terrapi Q)

#

Β£100 for the 1tb ssd

#

Plus a few cables

jaunty wraith
weary moat
#

Firenvim is different. It (optionally) takes over any text box and runs neovim in headless mode

#

It doesn't add vim navigation to the browser itself

#

No more crappy editors in Web based stuff

#

I use anvil.works a lot and that lets me use their Web ide but with my.own local editor

jaunty wraith
#

oh, right. Vimium would switch to insert mode, wouldn't it pithink

weary moat
#

Yes, but still in the same editor. (just the raw browser or possibly something like codemirror). This replaces it with neovim

jaunty wraith
#

hmm. I'll have to check it out again

weary moat
#

A demo of copilot working with anvil inside my local neovim

timid latch
#

TIL you can use functions in an assignment target ```py
In [33]: print("what").something = 10
what

AttributeError Traceback (most recent call last)
Input In [33], in <cell line: 1>()
----> 1 print("what").something = 10

AttributeError: 'NoneType' object has no attribute 'something'```

jaunty wraith
weary moat
#

Yeah, I cheated by feeding it earlier!

#

But it shows firenvim nicely

jaunty wraith
#

it does! I'm definitely gonna try it out on Saturday

weary moat
#

Be warned. It takes over always by default. I don't like that and you can set a keyboard shortcut to do so when you decide

jaunty wraith
#

I see, so like how you can disable Vimium by entering insert mode

weary moat
#

Yeah, sort of. It's just not the default config

jaunty wraith
#

well, nothing good comes without configuring it πŸ˜„

gritty zinc
timid latch
weary moat
jaunty wraith
timid latch
gritty zinc
#

6.44 ms Β± 625 Β΅s per loop (mean Β± std. dev. of 7 runs, 100 loops each)
blazingly fast, I guess

#

wait, that's still on debug

#

let's see it on release

wraith hound
#

hi folks just ftr, hyperfine is cool

gritty zinc
#

oh no

#

something's really wrong with my ffi

#

oh wow, super wrong

#

how come I get, in Python, a bytearray of a size that's not even a multiple of my struct size

#

oh fuck, I probably transmuted wrong

#

😩

#
pub struct SimResults(Vec<SimState>);
impl IntoPy<PyObject> for SimResults {
    fn into_py(self, py: Python<'_>) -> PyObject {
        let slice = &*self.0;
        let (data, len) = (slice.as_ptr(), slice.len());
        let bytes: &[u8] =
            unsafe { std::slice::from_raw_parts(data as _, len * std::mem::size_of::<SimState>()) };
        PyByteArray::new(py, bytes).into()
    }
}

there, this is probably right

#

617 Β΅s Β± 64.3 Β΅s per loop (mean Β± std. dev. of 7 runs, 1,000 loops each)
BLAZINGLY FAST

acoustic moss
#

&*self.0

#

should i ask

gritty zinc
#

it works because Vec<T> implements Deref<[T]>, I think. So *vec is a naked slice. And another & makes it a normal slice.

wraith hound
#

naked slices are !Sized right?

#

or is that just str that I'm thinking of. I think it's both.

gritty zinc
#

yes

#

if you're asking how it works that we have an !Sized naked slice here for a moment and then cover it up: 🀷 πŸ₯΄

wraith hound
#

I know not to ask questions about the magic that rustc does

royal lakeBOT
#

:incoming_envelope: :ok_hand: applied mute to @rough sapphire until <t:1656620390:f> (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).

mild abyss
#

it's cool

mild abyss
#

oh that reminds me.

#

i have to update it

#

nvm no need

worldly current
#

rip technoblade...

rare isle
#

hi

tulip cedar
#

Please don't crosspost

gritty zinc
#

what's cursed about a bit of unsafe ffi? πŸ₯΄

flint basin
#

i saw somebody make a FixedSizeBox on the rust forum

#

using some nightly APIs like ptr_metadata

#

there are some very cool APIs in development rn

#
  1. std::async_iter (async iterators)
  2. std::intrinsics
  3. std::lazy (if you know the once_cell crate, they are implementing this into std)
  4. allocator_api
  5. std::cell::SyncUnsafeCell
  6. std::boxed::ThinBox
  7. some cool traits in std::marker
  8. ptr_metadata
  9. layout_for_ptr
  10. a lot of cool looking stuff in std::ops
tardy rain
#

Ah man, someone was asking about a leetcode question and then closed the channel before i could answer

#

Hate it when that happens

wraith hound
flint basin
#

unfortunately the latter 2 probably wont be stable for a while

#

but generators are usable in nightly

wraith hound
#

ah. most of core::ops is lang items, right?

#

or am I misinformed

flint basin
#

they are traits for overloading operators

#

stuff like Add, Sub, Mul, etc

#

like the dunders in python which allow you to overload operators

wraith hound
#

yes, I believe most are lang items

flint basin
#

mhmm

wraith hound
#

well, I dunno about most, but I'm pretty sure some are

royal lakeBOT
#

library/core/src/ops/arith.rs line 66

#[lang = "add"]```
flint basin
#

πŸ‘

#

out of all the APIs they are working on, I'm really liking ptr_metadata

wraith hound
#

I haven't written much unsafe Rust yet >< I'm sure I will soon

flint basin
#

it can get pretty crazy lol

#

i hae only written simple unsafe code

wraith hound
#

yeah I think the only unsafe I've written was a quick transmute from the examples in some docs

flint basin
#

like dereferencing a *mut T to access a field of the struct the pointer points to and setting that to something else

gritty zinc
#

i've written some FFI, which is technically unsafe

#

twice I did it, and each time I fucked at least something up πŸ₯΄

wraith hound
#

I think the biggest misconception about unsafe is that it's, well, unsafe

#

When all it really means is that rustc doesn't know if it's safe

gritty zinc
#

first time: I forgot the names of some C# types, and messed up the extern fn signature on one of the sides, resulting in half an integer being chopped off in one of the args

#

second time: see above; I forgot what transmuting a &[T] to &[U] does πŸ˜”

low chasm
#

Rename unsafe not_inherently_unsafe_but_it_can_be_just_rustc_cant_confirm

jaunty wraith
#

only transmutation I know is very unsafe

wraith hound
#

miri is very cool and anyone who writes unsafe code without miri (with flags) deserves their pain

floral apex
flint basin
#

but I fixed it πŸ‘

#

was a human error from me mostly because I forgot that I never made the *mut not-null at some point lol

distant hazel
#

does anyone use this feature of pycharm and it just works?

#

i don't want to learn regex i just want colored logs

#

my log format is

2022-07-01 23:29:15.243 | DEBUG    | cli:log:37 - Test log message
rough sapphire
#

if u use this does it work for pattern ^.+?\|\sDEBUG\s*\|.*$

distant hazel
#

can confirm it did smth lol

rough sapphire
#

prob simpler: ^.+?\|\sDEBUG\s.*$ then just one pattern for each level

distant hazel
#

what do the formats under the top LOG FORMATS achieve

rough sapphire
#

i do not know, have not used this program. looks like specific pattern for different outputs that might group segments of line for colors or format

latent scaffold
#

I searched up "idealog" and now I'm being offered a book on democracy

distant hazel
#

this also leads you to believe there's a plethora of pre-made custom log formats

latent scaffold
#

oh it's "Ideolog"... missed opportunity

distant hazel
latent scaffold
#

Man, it's got awful ratings

rough sapphire
#

Features:

Code highlighting based of log level: error, warn, info, etc.
Intention to highlight columns (time, category, threads, stack frames) in log file editor.
Folding of uninteresting events
Hyperlinks of stack traces in log
Navigation to source code that emit log events (F7).
Go to next error action (Shift + F7)
Extends selection
Intention to highlight distance between events (marks time as red)
Advanced error stripe (heat map)

lol splunk-lite

latent scaffold
#

Well, if you want colorful logs

#

I think I can suggest rich's log handler

#

if... y'know that fits your case

wraith hound
#

Or loguru uwu

distant hazel
#

but this is for like just viewing .log files in pycharm's editor

#

i am using loguru

latent scaffold
#

in that case... um...

distant hazel
#

ok wait i think i get how this is supposed to work

latent scaffold
#

there's Grep Console but... I don't think it'd help for viewing the files in the editor

distant hazel
#

so i can highlight the whole line but not a match

#

?

latent scaffold
#

somehow I'm surprised there isn't a better option for this

rough sapphire
toxic skiff
#

When my friend also called me a moron I realized BoyWithUke was correct all along

hexed sierra
#

@exotic harbor here

#

find these icons at the bottom left of discord

#

click the compass one

#

type in mathematics

#

and it's the first one there

exotic harbor
#

lol i have so many servers I never even knew about the compass. I did find it via google tho. thanks a bunch

hexed sierra
#

aight

latent scaffold
#

I always go through phases of leaving certain servers

#

it's... weirdly satisfying

exotic harbor
# hexed sierra aight

I like meeting people, so if you ever want to video chat or just talk personally feel free to DM me. No hard feelings at all. I'm an expert in color science and lighting/LEDs (only some aspects of LEDs tho) if that interests or is useful to you at all

hexed sierra
#

hmm do you ever do stuff related to tracking with cameras based on lighting patterns?

latent scaffold
#

I didn't know that color science was even a thing

twin ibex
thin cloak
mild abyss
rough sapphire
#

Mine is blue

#

Jk

fierce mirage
#

I hate that VSCode randomly imports stuff based on the things you write (apparently)

#

So it imports cmath in almost all my codes

#

Because it contains "e"

#

But e is everywhere

#

Dafuu

rough sapphire
#

turn the setting off

fierce mirage
#

Fair enough

rough sapphire
#

sad there is no hotkey for it. sometimes it would be nice to boop and have import done midcode

rich hazel
#

β€œim not fear mongering im stating my opinion on the matter based off of multiple failed scientific advancements and the fact that nothing is 100% concrete until its been done. if it goes off without a hitch thats fine, but if it does create β€œtiny” black holes that are expelled into space and then subsequently fizzle out within seconds whose to say it wont have a greater affect on the universe as a whole. the entire idea of string theory is that any reaction triggers a chain of reactions throughout the universe and considering scientists are trying to uncover the secrets of the multiverse, our universe, and time travel is it really completely unplausible to believe this could trigger some type of event throughout the universe?”

#

How would you guys respond to something like that in regards to CERN being turned on again on July 6?

rough sapphire
#

"okay"

uneven pine
#

I say it sounds like some Facebook crap

rich hazel
thick osprey
young shoal
#

the classic, "go read a book"

rich hazel
acoustic moss
#

"touch grass"

rich hazel
#

Done.

#

I hope he feels offended

thick osprey
# rich hazel I’m actually doing this

I use it at work with stubborn clients. It's my "I'm done with this conversation and not responding anymore" answer. If I'm really miffed, I'll add a smiley at the end.

#

Something about "Understandable, have a nice day. πŸ™‚ " that really gives the email emotion.

graceful basin
#

I would just send them the Wikipedia article on black holes

hasty storm
#

What is better procedural or object oriented programming?

graceful basin
#

Depends on your goals

rich hazel
hasty storm
rough sapphire
#

looks like wrong reply

#

what u mean by procedural and object oriented? u use procedural in object oriented. u mean functional?

graceful basin
hasty storm
#

Like object oriented like using classes and stuff

rough sapphire
#

o

#

then yes, depends on what u need code to do

hasty storm
graceful basin
#

You will of course be using procedural stuff as well, pure OOP is more of an academic concern

rich hazel
hasty storm
#

Are most projects a mix of both OOP and procedural

graceful basin
#

Yes

hasty storm
#

Why is that

rough sapphire
#

but class does not mean object oriented patterns are used. it is just the object part. u can find code using class but not in a object oriented pattern. likewise procedural can follow the patterns but never use a class.

graceful basin
#

Because OOP provides tools primarily suited to complex problems, whereas procedural provides simpler tools for more basic tasks.

hasty storm
#

Oh ok

#

So could I make a game like chess using pygame purely using procedural

graceful basin
#

Yup

rough sapphire
#

ye

graceful basin
#

Though with games in python you do generally want a class rather than global variables

hasty storm
#

Why?

graceful basin
#

Because it provides you a nicer way to track game state

hasty storm
#

Ok

#

But are there ever moments where you have to use 1 and not the other

graceful basin
#

You don't ever have to do anything, but there are situations where one is the objectively better choice

hasty storm
#

Ok cool

rough sapphire
#

u can make procedural without classes do anything classes can do. sometime u look back and say oh, i just made a class and that would have been easier

hasty storm
#

What projects would you recommend for someone who knows the barebones, but has never actually done any practical work with python

rough sapphire
#

same other way too. build out a class and look back seeing, oh that is just three functions and no need for the class

hasty storm
#

I’m planning to do chess

graceful basin
#

Not chess, chess is painful, but tic tac toe etc

hasty storm
#

But how to actually do it

latent scaffold
hasty storm
#

Someone told me it was a breeze

graceful basin
#

They were wrong

#

And probably never made chess

#

Or made chess wrong

hasty storm
#

They said they only drew the board

graceful basin
#

Chess rules are complicated and full of edge cases

hasty storm
#

But didn’t make the pieces move

latent scaffold
#

.-.

wraith hound
#

always a fun project that can be implemented in a lot of ways

hasty storm
rough sapphire
#

chess has six piece each with at least one rule for movement with many having more dependent only on where other pieces are and what moves were done already

wraith hound
#

six pieces? don't you mean sixteen each?

graceful basin
#

Do tic tac toe first

rough sapphire
#

checkers is good start maybe to learn the chess board

graceful basin
#

Checkers are also a good shout

#

Practice a bit working with grids

rough sapphire
graceful basin
#

Before you try and make chess

wraith hound
#

ah yeah, 6 types

hasty storm
#

@graceful basin would you say tho, chess is a hard project for a beginner

graceful basin
#

Yes

#

It requires debugging and testing no matter what, since you will get the rules wrong

hasty storm
#

Ok

rough sapphire
#

chess as a lot of rules so difficulty is in coding all the rule while learning how to code

hasty storm
#

I’ll try and do tic tac toe

graceful basin
#

And then you have to figure out why and how

hasty storm
#

I think I’ve actually already done it before

#

But it was a while ago

latent scaffold
#

tic tac toe is annoying tbh

#

just because the different winning conditions can be a bit annoying to check

#

without hard-coding, anyways

hasty storm
#

its like a million if statements

graceful basin
#

Salt-die has a nice way

acoustic moss
#

theres just like 8 ways you can win its not that bad

graceful basin
#

You can also do list slicing

latent scaffold
#

yeah but salt is a genius

graceful basin
hasty storm
graceful basin
#

Anyways, fireworks are starting, catch ya later

hasty storm
#

bye

latent scaffold
#

Cya

acoustic moss
#
wins = [(0, 1, 2), (3, 4, 5), (6, 7, 8), (0, 3, 6), (1, 4, 7), (2, 5, 8), (0, 4, 8), (2, 4, 6)]
for win in wins:
    if all(board[i] == "X" for i in win):
        # X won
hasty storm
#

could you elaborate on the all function

#

express in laymans terms

acoustic moss
#

it returns true if all the elements in the iterable given to it are truthy

hasty storm
#

how could the elements be true or not

acoustic moss
#

all([x, y, z]) is close to x and y and z

wraith hound
#

x is truthy if bool(x) is True

acoustic moss
#

each tuple represents a combination of indices, such that if all indices have the same thing theres a win
like the (0, 4, 8) tuple represents the indices of the left diagonal

#

i check whether board[0] == "X" and board[4] == "X" and board[8] == "X"

hasty storm
#

so does it just evaluate if that statement is true

#

for elements in the tuple

acoustic moss
#

index is

0 1 2
3 4 5
6 7 8
acoustic moss
#

it checks the condition for all the indices in the tuple, and returns True only if all of them are True

naive temple
#

okay guys i found out something

#

wsl won't allow you to touch window stuff at all

#
[sudo] password for pete:
touch: cannot touch '/mnt/c/Tools': Permission denied```
topaz aurora
naive temple
#

so i'm fine to do rm -rf

topaz aurora
#

idk

#

should you though?

naive temple
#

i don't know

#

somebody tricked me to do that

topaz aurora
#

then you shouldn't lol

naive temple
#

but i did cancelled it too quickly

#

so it only remove my root

#

and i had to reinstall wsl

latent scaffold
#

Nothing good can ever come of rm -rf /

#

Let this be a lesson, I suppose... Don't execute random commands if you have no clue what they'll do

latent scaffold
latent scaffold
#

You can access some files on Windows but not all

#

if you let rm -rf / run to completion, it's possible it could've deleted some of your personal files

#

Windows would still work, all of the system-critical files are protected

#

but I actually dunno how rm -rf / works β€” you don't have permission to /mnt/c but you do have permission to stuff like /mnt/c/Users/$USER/* β€” and I don't know if it'd stop traversing down /mnt/c because of that

mild abyss
#

though youre still able enough to have power to brick your own system

floral apex
#

@tranquil orchid The cheat

#

Just yell at the user that they forgot the decorator's parentheses

#

And both are happy

#

They get IDE autocompletion. I get less work

young shoal
#

nepo wins the candidates

hidden pebble
#

just like last year...

naive halo
#

hm what is the best way to remove a cough?

lusty rune
#

you can mix that with a lemon tea

naive halo
lusty rune
#

honey is quite effective for me, not sure how it is for others but gets rid of my cough for a nice period of time if i mix it with lemon tea

#

straight up honey relieves it until the taste expires πŸ˜…

naive halo
#

ah I see, will see how it goes

#

tea naturally does help

lusty rune
#

yeah tea is very good for coughs and colds

#

not the iced tea btw

naive halo
#

ah yeah cold stuff and dry stuff isn't good for the throat at that time

#

though I must say milk shakes help soothes for just a while

lusty rune
#

yah, tea with lemon/honey before bed and gurgle with warm water should give a good night's sleep

#

oh yeah! milk with turmeric is excellent for me too

naive halo
#

many ways, mind as well try em all, wonder how well it works since my cough is from covid

lusty rune
#

oh boy, do you perhaps have umm, i dunno what you call it in english, lemme take a look

#

i don't know if you have these but they're called Nigella Seeds and were used quite a bit during the pandemic, not sure how effective though but i have a little bottle of them

naive halo
#

oh man I definitely do not have that, first time hearing of them

lusty rune
#

yeah probably hard to find outside of india

naive halo
#

doubt American stores have it

lusty rune
#

yeah most likely not πŸ‘€

#

"black cumin" or " black caraway" as wikipedia calls it

naive halo
#

oh wait

#

I heard of that

#

I might tbh

#

oh wow yeah I do have one, sitting in the open, a nice bag

lusty rune
#

hehe

naive halo
#

thanks Asian mom

#

lol

lusty rune
#

i just ate them raw before sleeping, about 10-20ish seeds i suppose

#

swallowed with water if they didn't go down

#

and they usually didn't πŸ‘€

latent scaffold
#

sounds... delicious...

naive halo
#

seems like pills

latent scaffold
#

quote quote

lusty rune
#

reminds me, i should replace those because my cat kinda broke the bottle now and is probably filled with cat saliva now

naive halo
lusty rune
#

loves playing with that bottle for some reason

naive halo
#

probably the cap attracts your cat

lusty rune
#

the sound more likely xD

naive halo
#

cats with strings and caps, seems all the more common

naive halo
lusty rune
#

he punctured it too 😭

naive halo
#

oh man the claws?

lusty rune
#

yeah LOL

#

also bites it

naive halo
#

yikes

#

a feral cat it sounds

lusty rune
#

nah lol

#

a very young one which is probably why

#

i drop it in the bedframe and he will spend like hours trying to pull it out

#

the moment its out he goes to play football with it

naive halo
#

oh man seems full of energy

lusty rune
#

the young ones are usually like that i suppose

naive halo
#

and mischievous

lusty rune
#

true that

#

need to trim those claws

#

made me bleed like 3 times 😭

naive halo
#

roughh

#

you aren't allergic to cats?

lusty rune
#

nope

#

at least i don't think i am ? πŸ‘€

naive halo
#

that's good, means you won't be any bad effects if they scratced you

lusty rune
#

oh that

#

yeah

naive halo
#

I'm allergic so if they did do that well I'm gonw

lusty rune
#

o wow sounds rough

naive halo
#

hah

lusty rune
#

you got any petS?

naive halo
#

a dog

lusty rune
#

oo what breed is it

naive halo
#

Jack Russel terrier Chihuahua something breed

lusty rune
#

that's a big name πŸ—Ώ

naive halo
#

alot of things combined yea

lusty rune
#

is it a smol one

naive halo
#

old old dog, have him for ages

#

he's medium size

lusty rune
#

like this?

naive halo
#

bit fat I must say

#

uh

#

nope

#

bit bigger

#

lemme just get a photo

lusty rune
#

sounds very much like the dogs you see on streets in india πŸ‘€

naive halo
lusty rune
#

oh yeah very close

naive halo
#

mhm

#

he's still looks happy after so many years so it's a blessing

lusty rune
#

lotta strays in india are like that a bit bigger perhaps

#

how old is it

naive halo
#

14

lusty rune
#

damn boi

naive halo
#

got him as a wee pup

#

but he is aging

#

the thought of soon lol

#

still as energetic as he was when we got him

#

could I have a look at your cat if I may?

#

auto correct be like

lusty rune
#

the pictures are a mess tho i can't take them very well 😭

#

is probably asleep in the other room so perhaps some other time if i get a good one

naive halo
#

ah sad, cats are so so cute

#

especially young ones

#

gotta love animals and pets

lusty rune
#

found his mom too

naive halo
lusty rune
#

they were scared shitless for some reason too

naive halo
lusty rune
#

there were 3 of those

#

yeah, that was the first time i saw heterochromia irl

#

mans was really pretty

naive halo
#

for real, they all look quite unique

lusty rune
#

this one out here rlooking like a goblin fr

naive halo
lusty rune
#

even sits like a goblin om

lusty rune
naive halo
lusty rune
#

gives me those elden ring cat vibes

naive halo
lusty rune
naive halo
lusty rune
#

it was in saudi arabia so you're spot on 🀣

naive halo
#

lolll

#

definitely somewhere with desert

naive halo
# lusty rune

never played elden ring, but I can see what you mean

lusty rune
#

those were ferals

#

part of me thinks we shouldn't have fed them bc it became a routine and then they just disappeared, or so i heard after i left

#

male cats are hella crazy, they kill the little ones πŸ—Ώ

naive halo
#

ohh yeah the really wild ones are the strongest one wins

lusty rune
#

plenty of cats in saudi arabia

#

throw trash in the local trashbin and 10 cats come out

naive halo
#

I heard of that, maybe because it's near Egypt and with the Egypt cats and stuff that's why

lusty rune
#

hmm true that, never thought about it that way

naive halo
#

the Egyptian does got alot to do with cats

lusty rune
#

some of them look really amazing, had a hecking almost lion sized cat sit in my balcony

#

it was white af and hU GE

naive halo
#

honestly tho I agree, they also got nice coats

lusty rune
#

more than the width of a normal door

#

hella big

naive halo
#

wait are you sure those arent female lions /j

lusty rune
#

honestly coulda been but never seen one that big since

#

because tbf saudis got this odd taste of keeping these wild animals as pets

#

very common in uae too

naive halo
#

it's a culture I'm pretty sure, just like Egyptian

lusty rune
#

nah i don't think that's culture

#

more like too much money and time

naive halo
#

lol

#

there is the animal traffickers too I heard

lusty rune
#

probably

jovial oriole
#

Crunchy otn

wet acorn
#

does anyone know of a simple tui which will just act as a normal console but open a separate window and look nicer

north hazel
rough sapphire
#

so, snow what have you been doing all this time?

north hazel
#

dealing with life.\

rough sapphire
#

mhm, college?

north hazel
#

ive had a lot going on, but im slowly returning to discord.

north hazel
north hazel
#

more like, mental health crashes.

#

but, i am becoming better, and am returning back to discord

#

i use to be on discord 25/8

rough sapphire
#

ahhhh i feel you

north hazel
#

i used to camp this python server

rough sapphire
#

i mostly just tend to eat bread when im about to have a mental breakdown

rough sapphire
rough sapphire
north hazel
#

eating bread by itself? are you insane?

#

disgusting.

rough sapphire
#

youre weird

north hazel
#

you're weird

rough sapphire
#

bread by itself slaps 😀

north hazel
#

nah man

#

thats terrible.

#

if im eating bread, it has to be with something.

rough sapphire
#

or doritos

north hazel
#

dawg

#

okay.

#

doritos is understandable

#

i do that too

rough sapphire
#

yup

north hazel
#

but

rough sapphire
#

but what

north hazel
#

hash browns???????????????

#

tf

rough sapphire
#

its good bro

#

try it

#

you trust me right?

north hazel
#

idk man.....

rough sapphire
#

im full of good ideas bro

north hazel
#

i will wake up early tomorrow, go get hashbrowns, just to try it with bread.

#

if its nasty

#

im gonna hate you

rough sapphire
#

😩

north hazel
#

hopefully.

rough sapphire
#

its good bro i swear

#

if you dont like it, stop eating bread

north hazel
#

no

rough sapphire
#

ok

north hazel
#

ok.

rough sapphire