#ot1-perplexing-regexing
1 messages Β· Page 645 of 1
mm k?
honestly it felt pretty scuffed to me, it would've been very nice if they kinda normalized(?) it
yeah, using the like to dislike ratio wasn't a good idea at all
!e import gravity
@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'
sad
If you wanted to create a live chat using web workers, where would you begin?
okie
cool
MS in software development
Oh
Why tho
I wanted to work with AI in the Agriculture field but I been struggling
Oh why
These stuff's are complex

Electrical and Computer systems engineering for me
But I dabble in a bit of aerospace
I still can't pick a degree to pursue
So which languages do you work with?
Rockets go zoom
I think I'm torn mostly between computer science and mechanical engineering
Oh yes lol
Like the Seriously AI should exist in agriculture
Python, C, bit of matlab
Stuff and things
for me it's JS PHP PYTHON C and assembly
What is last one
Heavily used in scientific computing
I've know python Java css html php and android
Is that what you went with?
One of the few (if not only) popular proprietary languages
Yup
I was told to imagine a graphing calculator on steroids
Yeah pretty much
Im seconds away from paying for a cert in computer engineering
AI is just manual coding.. image processing stuffs needs ML , just a wild guess
How'd that work out for you? \π€
I enjoy a healthy mix of electrical and programming stuff
Just pure programming would drive me crazy
I'd say pretty well
The steroids??
I wanted to learn electronics but sadly components are not available in my nation
and I am not old enough to have a international payment card
ah yes. watch me major in "soil science"
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
Iβve played with a few code languages but Iβve been heavy on building websites in AWS lately
hmm I seeeeee
I had an aerospace class in high school
In highschool π
name every planet
well I think actually it kinda sucked
My cousin is coming to Australia to get her masters in cyber security
that will take a long time
Although Australia is sort of starting up a space industry, so I guess I'll see what happens
π
I can go into any industry with Electrical and Computer Systems anyway
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. ππ
I'm having trouble remembering what kind of spaghetti my very excellent mom made
anyways... I think I liked what the class offered but I don't like how our teacher delivered it to us
Mercury, Venus, Earth, Mars, Jupiter, Saturn, Neptune, Uranus
india suffers heavily from bad teachers
every planet
machine learning was such a boring subject for us because it went over everyone's heads
That is every planet in this solar system
he did not ask that did he
Baby planet
he'll grow
He did not specify that
Yeah that sounds about right
When I was a kid, Pluto was a planet!
Why do we have
but not :minus1:
I considered doing Robotics and Mechatronics - AI stream as well
But I think Electrical and Computer Systems is the way to go for me
I mostly want to go into mechanical engineering for things like robotics
the only reason i got invested into electrical/microprocessors is because the teacher was solid π―
too bad i picked cs instead of electrical πΏ
Do mechatronics if it's available
you would have to group in a bunch of kuiper belt objects too then, like eris(?) and sedna
no
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
microprocessor starts with 8086 that processor is sick
yeah it was heckin amazing
watching assembly programs turn into real lights with pattern was π₯
Honestly I struggle to find the difference between a lot of these mechanical engineering sub-things
Mechatronics is pretty much as the name implies
Mechanical + Electronics
aka, robots
kinda
What's the difference between that and robotics \π€
Thats what is so great about Mech Eng - it covers pretty much everything
That is robotics
I see
At my uni it's just called "Robotics and Mechatronics", it's all in the same sort of category
I think we only have "Mechanical Engineering" as far as that's concerned
Find your futureΒ in any of our amazing degree programs, designed to offer you a challenging and rewarding academic experience. An education from NMSU means you will graduate prepared to lead by experience. Possibilities to gain real-world know-how can be found on and off campus through undergraduate research opportunities and classroom projects....
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
πΏ
πΏ
minus the time they told us to fucking draw the shitty diagrams in a record book
can I get in on this π
so we had to draw screwdrivers, files and stuff
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
wait what? 
yeah it was dumb as hell
worst part was that it contributed to our overall marks
that is really dumb
welcome to india
I got one of these recently for a little soldering practise, huge 555 timer
The heck does that mean
You've never used a 555 timer? π
you say it like everyone got a couple of those lying around πΏ
Like one of the most popular IC's ever
I actually built a tower once and Iβm think about taking my software degree and digging into robotics and what not.
is "IC" an "integrated circuit"
yeah
yes
wow I'm cool
555 timers are well known
what is an integrated circuit
look like ants
i use it for system clock or de-bouncing the circuit
basically a small chip full of transistors making a circuit
Why is it named 555
And why does it look like a large DIP chip
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]
Speaking of 555
Trusted by many Filipinos for more than 30 years now, 555 stands for value laden benefits namely Sarap and Sulit. 555 is committed to provide budget conscious consumers with high quality but affordable products, thus a constantly satisfying experience with every 555 Sardines, 555 Tuna, 555 Carne Norte, 555 Meat Loaf, and 555 Beef Loaf. β¦ 555 Rea...
shoulda named the song 555
marketing shenanigans
what will you prefer to use? python3.9 or 3.10.
3.10
3.11 soonβ’οΈ
How many seconds cpp devs go without a memory leak
https://tenor.com/view/circle-gif-23021267
is it possible to get a memory leak in python
any% speedrun reasons
Obviously yes.
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
average Kubernetes system
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
del gravity π
@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
sus
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
also i need smth free cause 1) in russia & 2) no money
You're not going to do anything serious for free
Your best bet is garage band if you have a Mac
ok then im not gonna do anything quote unquote "serious"
You'll struggle with basic stuff free. Like I said, your best bet is Garage band if you happen to have a mac
dont
Otherwise... I think LMMS is the best free production DAW you can get
But it suffers from FOSS syndrome seriously
what does that even mean
It's a foss ripoff of FL studio there can do ~10% of what FL can
What does what mean?
- daw
Digital audio workstation
- foss syndrome
The software you use to produce audio
ah i c
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)
WHO SAID SOMETHING ABOUT GIMP
ok
(lets... not do that with this ui)
Is that LMMS now? They're definitely improved since I used them
I did? I used it as an example?
it's a sad fact
i just noticed
that i am in a python server
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
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
and those are kinda applicable to python
I've gone the opposite way, over the years I've bought licenses/subscriptions to the software I use for these purposes, and have been happy
There are obviously outliers
For example, Blender is by far the best 3D suite out there imho.
yup, nothing beats blender
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.
for photoshop: theres paint.net, and uh uhhh well um ms paint
GIMP might be a better alternative
Not even close.
after effects is also king
GIMP gets 1/8 MAYBE 1/4 of the way
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
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
think my dad still runs cs6
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.
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
ah, i thought all cc apps
PS itself is $20/month here
$55/month standard pricing is amazing
yeah i'm gonna pass on that
Consider how many apps are in CC
PowerShell
That would be $600/version, new version every year
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
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
whew
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
yeah that's fair
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
hmm yeah that's actually pretty nice
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
Does anyone here know much about Slack Bolt API's?
no u
Adobe's cool for those who can afford it
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
aboo helper??
Aboo helper.
guh??
i think that's the second time i've seen someone i'm familiar with become helper
first one was fronto
for me it was hsp, brad, fronto, aboo
uhh I feel like there's been more
dawn
mina, I think
Aboo is pee colored now
suits him
@low chasm
welp
also it's weird seeing the contrast between normal dark Discord and.. this
So then we're using the same one lol
lovely now i can
yes that is so.
annie/dark is the best build overwrite
I don't even know of any others
same
but I do love this one
same
I didn't even know it was a thing until today
There are many others, just not for us
They were primarily made for Discord Staff to test out stuff and not update their app repeatedly
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
lol π
Was the slash v2 a build override? Thought it was as always an experiment
Nope. There was a build override released for that which also included the slash command perms
Thank god I didn't got it
Slash commands are simply terrible, personal opinion
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
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
I do agree with u on Modals. They are hella limited
I've barely seen anyone use them, they rather stay on the old
What will be the
xvalue? Send in chat
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
It's Discord, what else can you expect
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
Yea, they fixed it a few days back (last week only iirc)
At least they don't take ages to fix important issues
Not true in every case, but yea true. They still haven't fixed their new Android client
Mobile is just forever broken
It's not as important as fixing the API I agree, but the app is hella laggy and unoptimized
Always has been and always will be broken
Crashes all the time, takes 2 seconds to change server even on 6 GB RAM
Well it's still very important
Plus I'd guess they have two separate teams, so they probably don't have an excuse
The older version of the app wasn't this laggy tbh. It was heaven in terms of speed, if u compare it with the current version
Haven't faced the change server lag yet, but randomly crashing I get all the time
Yeah but still had bugs every now and then when they released a new version
Discord being Discord Β―_(γ)_/Β―
yuh
~2000 BΓ©zier Curves per Frame, at 25 Frames each second, multiplied by 30 seconds makes ~1,500,000 BΓ©zier Curves. Each frame was plotted programmatically on the Desmos graphing calculator using custom software.
If you are want to see a bit more about how this sort of thing can be done, do take a look at some of the experimental Graphs I produce...
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.

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?
That repo uses https://github.com/anishathalye/dotbot
which copies the contents of the nvim folder to the correct locations specified in install.conf.yaml
np. shout if you get stuck!
aye
oh, probably worth mentioning I use https://github.com/wbthomason/packer.nvim
for plugins
whew, almost installed vim-plug π
@weary moat have you tried chezmoi for dotfile management?
nope - but I'll be having a look now!
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
WSL's given me a GSOD in the past lol
whoa
sorry, can't help here. I haven't used a windows machine in 'ahem' years
Isn't that a BSOD?
yes but G
What's that?
green
Never saw a GSOD
i think it worked the way it should on the second try, created config files and stuff but um, how do i run the.. neovim config files to take effect?
happens only on Insider builds
the content of the nvim folder in that repo just gets copied into the neovim config folder - ~/.config/nvim
it's the same as a BSOD but green
yeah
if you have content in there, neovim should use it when it starts up - it looks for init.lua as the starting point
Ah that explains
hmm, there's require("main").setup("full") in init.lua
yep. I've split things up. That loads main.lua from the lua directory
yeah everything seems to be in order but nvim is still basic
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
nope π
maybe you need to run PackerSync?
πΏ
that's old
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
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
u have problems with nvim config in lua?
use term command for that. iirc there is a plugin that adds floating term support
i forgot because i dont use lazygit and lazydocker.
wait im dumb. it wasnt meatballs who needed help
sorry
No. I'm helping somebody use my config on their own machine
1AM moment
yeah i did that thanks
Working yet?
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
this thing is awesome lol
how do i navigate after opening stuff with nvim tree? like jumping to previous file
space for a leader is interesting, might try that π
it's pretty handy dandy
i use comma (,)
i thought i was good with tmux, this is next level stuff
Oh, jk is mapped to esc too.
Space fb will bring up telescope with open buffers listed
I don't bother with tmux any more. I did for years but now I use kitty as the terminal and this neovim config
yeah wouldn't need tmux if you have this
It's a fairly niche interest. Nice to find somebody that shares it!
it actually makes me want to go full linux because wsl is being quite dramatic sometimes
do it
WSL is great. windows is alright
Ctrl Y for a new terminal, btw
If you install fzf, there's also a space ff keybinding for that
Telescope supports that natively doesn't it?
Terminal stuff config is in in toggleterm.lua
Ah. Quite possibly! Can't remember my own config!
Space p to launch the pudb debugger. That needs to be installed to work
you're a gift that keeps on giving 
I liked how I could use either thumb for that originally. Then I went and built a keebio iris and now only one thumb for space!
what's a keebio iris π
Here's a list of parts you'll need in order to build yourself an Iris keyboard, to get going with a split, column staggered keyboard: Iris PCB Kit IrisΒ Plate Kit Iris Middle Layer (optional) USB-C to USB-C Cable (for Rev. 5 and higher) TRRS Cable (for Rev. 2-4) 2u Cherry MX Stabilizers Rotary Encoder and Knobs USB-C ca
I fancied an ergodox but didn't want to spend the cash! This thing is excellent.
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...
looks comfortable to type on
my hands do not go inside that keyboard
had a feeling you'd be using one of these haha
have you checked out zsa moonlanders? some of my friends are real big fans of it
I did. They looked nice but much more expensive than buying the keebio kit and getting the soldering iron out
that is true π€£
Ubuntu based desktop that's wholly keyboard driven. Brilliant stuff
.bm keyboard driven linux env
Blows people's minds when you boot your pc and it comes up with an empty desktop and your keyboard has no markings!
XD
yoo, that was my main driver for quite some time
still have it on a laptop
and it's broken in half π
Yeah, somebody did once ask if it was broken!
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!
oh wow
ah. pis are hard to get now
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!
one of my laptops is now just a literal desktop
Yeah, I got lucky and bought one just before the plague hit
that's one way to avoid laptops
I see you're editing your config like a faithful vimmer
Almost constantly obvs!
how much did the rpi cost?
Another favourite neovim doodad: https://github.com/glacambre/firenvim
Can't remember. It's a pi4 with 8gb ram. About Β£75, I think
whew
Β£25 for the case and ssd mount (terrapi Q)
Β£100 for the 1tb ssd
Plus a few cables
I wanted to try this out, but I already use Vimium, double escapes just doesn't sound good
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
oh, right. Vimium would switch to insert mode, wouldn't it 
Yes, but still in the same editor. (just the raw browser or possibly something like codemirror). This replaces it with neovim
hmm. I'll have to check it out again
A demo of copilot working with anvil inside my local neovim
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'```
that is frightening, but I guess it just has a lot of context to work with? especially with todo apps
it does! I'm definitely gonna try it out on Saturday
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
I see, so like how you can disable Vimium by entering insert mode
Yeah, sort of. It's just not the default config
well, nothing good comes without configuring it π
I mean, sure, you're assigning to an attribute of an object
fair, it just looks so wrong
I hope that's true or I have wasted large portions of my time on this earth
you could do some cursed fluent API with that 
as long as the thing being assigned to is not the function call it self (i.e you need either an attribute or subscript after it) it works.
so yhe I could see some cool stuff with that, like py objects.get_at_pos(10, 10).name = "foo"
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
hi folks just ftr, hyperfine is cool
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
that's just .as_slice() but cooler
it works because Vec<T> implements Deref<[T]>, I think. So *vec is a naked slice. And another & makes it a normal slice.
naked slices are !Sized right?
or is that just str that I'm thinking of. I think it's both.
yes
if you're asking how it works that we have an !Sized naked slice here for a moment and then cover it up: π€· π₯΄
I know not to ask questions about the magic that rustc does
: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).
rip technoblade...
hi
Please don't crosspost
cursed
what's cursed about a bit of unsafe ffi? π₯΄
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
std::async_iter(async iterators)std::intrinsicsstd::lazy(if you know theonce_cellcrate, they are implementing this intostd)allocator_apistd::cell::SyncUnsafeCellstd::boxed::ThinBox- some cool traits in
std::marker ptr_metadatalayout_for_ptr- a lot of cool looking stuff in
std::ops
Ah man, someone was asking about a leetcode question and then closed the channel before i could answer
Hate it when that happens
- like what? i doubt that will ever be stabilized.
- oooh, sounds nice
- like what?
the ones in std::ops i am interested in are:
CoerceUnsizedDispatchFromDynGeneratorStateGenerator
unfortunately the latter 2 probably wont be stable for a while
but generators are usable in nightly
they are traits for overloading operators
stuff like Add, Sub, Mul, etc
like the dunders in python which allow you to overload operators
yes, I believe most are lang items
mhmm
library/core/src/ops/arith.rs line 66
#[lang = "add"]```
I haven't written much unsafe Rust yet >< I'm sure I will soon
yeah I think the only unsafe I've written was a quick transmute from the examples in some docs
like dereferencing a *mut T to access a field of the struct the pointer points to and setting that to something else
i've written some FFI, which is technically unsafe
twice I did it, and each time I fucked at least something up π₯΄
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
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 π
Rename unsafe not_inherently_unsafe_but_it_can_be_just_rustc_cant_confirm
only transmutation I know is very unsafe
miri is very cool and anyone who writes unsafe code without miri (with flags) deserves their pain
ah yes, the uhoh block
https://twitter.com/wonderofscience/status/1542522502353547272?t=2kQpezaS-e3_44jeoMwsrQ&s=19 Venom wants out
This ferrofluid audio-visualizer created by artist Dakd Jung dances to the music.
https://t.co/YCYoIHBcXw
108077
17620
earlier today, I segfaulted in my Rust code
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
damn that's cool af
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
if u use this does it work for pattern ^.+?\|\sDEBUG\s*\|.*$
can confirm it did smth lol
prob simpler: ^.+?\|\sDEBUG\s.*$ then just one pattern for each level
what do the formats under the top LOG FORMATS achieve
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
I searched up "idealog" and now I'm being offered a book on democracy
this also leads you to believe there's a plethora of pre-made custom log formats
oh it's "Ideolog"... missed opportunity
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
Well, if you want colorful logs
I think I can suggest rich's log handler
if... y'know that fits your case
Or loguru uwu
but this is for like just viewing .log files in pycharm's editor
i am using loguru
in that case... um...
ok wait i think i get how this is supposed to work
there's Grep Console but... I don't think it'd help for viewing the files in the editor
somehow I'm surprised there isn't a better option for this
When my friend also called me a moron I realized BoyWithUke was correct all along
@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
lol i have so many servers I never even knew about the compass. I did find it via google tho. thanks a bunch
aight
I always go through phases of leaving certain servers
it's... weirdly satisfying
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
hmm do you ever do stuff related to tracking with cameras based on lighting patterns?
I didn't know that color science was even a thing
its nice. less things require your attention
It is and my project has HSV and RGB stuff
my life is grey
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
turn the setting off
Fair enough
sad there is no hotkey for it. sometimes it would be nice to boop and have import done midcode
β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?
"okay"
I say it sounds like some Facebook crap
You can go with the oldie and goldie: "Understandable, have a nice day."
the classic, "go read a book"
Iβm actually doing this
"touch grass"
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.
I would just send them the Wikipedia article on black holes
What is better procedural or object oriented programming?
Depends on your goals
Heβs too dense to understand it, already made that point
Iβm planning to go into game development in the future with c++ or c#, Iβm using python as a vessel in order to learn how to program
looks like wrong reply
what u mean by procedural and object oriented? u use procedural in object oriented. u mean functional?
Then you want the basics of object oriented programming, but more than that isn't really used in games due to performance
Like object oriented like using classes and stuff
So is procedural mainly used in games
You will of course be using procedural stuff as well, pure OOP is more of an academic concern
I meant to reply to @graceful basin
Are most projects a mix of both OOP and procedural
Yes
Why is that
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.
Because OOP provides tools primarily suited to complex problems, whereas procedural provides simpler tools for more basic tasks.
Yup
ye
Though with games in python you do generally want a class rather than global variables
Why?
Because it provides you a nicer way to track game state
You don't ever have to do anything, but there are situations where one is the objectively better choice
Ok cool
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
What projects would you recommend for someone who knows the barebones, but has never actually done any practical work with python
Some simple board game
same other way too. build out a class and look back seeing, oh that is just three functions and no need for the class
Iβm planning to do chess
Not chess, chess is painful, but tic tac toe etc
But how to actually do it
is that supposed to be simple?
Someone told me it was a breeze
They said they only drew the board
Chess rules are complicated and full of edge cases
But didnβt make the pieces move
.-.
conway's game of life
always a fun project that can be implemented in a lot of ways
Iβm thinking about using multidimensional arrays for that
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
six pieces? don't you mean sixteen each?
Do tic tac toe first
checkers is good start maybe to learn the chess board
pawn, rook, knight, bishop, king, queen. multiple per side ye, but six types of pieces
Before you try and make chess
ah yeah, 6 types
@graceful basin would you say tho, chess is a hard project for a beginner
Yes
It requires debugging and testing no matter what, since you will get the rules wrong
Ok
chess as a lot of rules so difficulty is in coding all the rule while learning how to code
Iβll try and do tic tac toe
And then you have to figure out why and how
tic tac toe is annoying tbh
just because the different winning conditions can be a bit annoying to check
without hard-coding, anyways
its like a million if statements
Salt-die has a nice way
theres just like 8 ways you can win its not that bad
You can also do list slicing
yeah but salt is a genius
This is true
how do you actually optimise that bit apart from doing a trillion if statements
Anyways, fireworks are starting, catch ya later
bye
Cya
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
it returns true if all the elements in the iterable given to it are truthy
how could the elements be true or not
all([x, y, z]) is close to x and y and z
x is truthy if bool(x) is True
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"
index is
0 1 2
3 4 5
6 7 8
yes
it checks the condition for all the indices in the tuple, and returns True only if all of them are True
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```
Yeah, there's a barrier in the file systems
so i'm fine to do rm -rf
then you shouldn't lol
but i did cancelled it too quickly
so it only remove my root
and i had to reinstall wsl
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
It won't let you do anything that you'd need Administrator priveleges for
isn't sudo admin enough
No, it is not. You'd know if it was when you got the little popup asking for permission
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
just because u can elevate privileges does not mean you can be "god mode". some parts of the system cannot be touched or modified even by root user
though youre still able enough to have power to brick your own system
@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
nepo wins the candidates
just like last year...
hm what is the best way to remove a cough?
i personally love honey
you can mix that with a lemon tea
my family does salt water and gurgle it, but honey, interesting heard of it before, how well does it work?
yeah we do the warm salt water gurgle as well, about twice/thrice a day
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 π
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
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
many ways, mind as well try em all, wonder how well it works since my cough is from covid
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
oh man I definitely do not have that, first time hearing of them
yeah probably hard to find outside of india
doubt American stores have it
oh wait
I heard of that
I might tbh
oh wow yeah I do have one, sitting in the open, a nice bag
hehe
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 π
sounds... delicious...
seems like pills
quote quote
reminds me, i should replace those because my cat kinda broke the bottle now and is probably filled with cat saliva now
they are good in rice
loves playing with that bottle for some reason
probably the cap attracts your cat
the sound more likely xD
cats with strings and caps, seems all the more common
sounds delicious
how would you know...
oh man the claws?
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
oh man seems full of energy
the young ones are usually like that i suppose
and mischievous
that's good, means you won't be any bad effects if they scratced you
I'm allergic so if they did do that well I'm gonw
o wow sounds rough
hah
you got any petS?
a dog
oo what breed is it
Jack Russel terrier Chihuahua something breed
that's a big name πΏ
alot of things combined yea
is it a smol one
like this?
sounds very much like the dogs you see on streets in india π
oh yeah very close
14
damn boi
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
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
i'll make that up with this goblin that used to come back in my home dunno where he is now πΏ
found his mom too
wow that is a first of that facial frame I see, it is quite unique
they were scared shitless for some reason too
the eyes tho, really beautiful
there were 3 of those
yeah, that was the first time i saw heterochromia irl
mans was really pretty
for real, they all look quite unique
this one out here rlooking like a goblin fr
also I'm sorry, just me or does he look like a rat
even sits like a goblin om
LMFAO
this one fr looks like a fkn rat
if he stood still I would think that is a cat statue
gives me those elden ring cat vibes
something about the tail and posture
yep with the desert kinda look
it was in saudi arabia so you're spot on π€£
never played elden ring, but I can see what you mean
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 πΏ
ohh yeah the really wild ones are the strongest one wins
plenty of cats in saudi arabia
throw trash in the local trashbin and 10 cats come out
I heard of that, maybe because it's near Egypt and with the Egypt cats and stuff that's why
hmm true that, never thought about it that way
the Egyptian does got alot to do with cats
some of them look really amazing, had a hecking almost lion sized cat sit in my balcony
it was white af and hU GE
honestly tho I agree, they also got nice coats
wait are you sure those arent female lions /j
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
it's a culture I'm pretty sure, just like Egyptian
probably
Crunchy otn
does anyone know of a simple tui which will just act as a normal console but open a separate window and look nicer

so, snow what have you been doing all this time?
dealing with life.\
mhm, college?
ive had a lot going on, but im slowly returning to discord.
nope.
ic
more like, mental health crashes.
but, i am becoming better, and am returning back to discord
i use to be on discord 25/8
ahhhh i feel you
i used to camp this python server
i mostly just tend to eat bread when im about to have a mental breakdown
ofc i know
interesting.
its tastyπ
youre weird
you're weird
bread by itself slaps π€
i sometimes eat bread with hash browns
or doritos
yup
but
but what
idk man.....
im full of good ideas bro
i will wake up early tomorrow, go get hashbrowns, just to try it with bread.
if its nasty
im gonna hate you
hopefully.
no
ok
ok.
Ok.*