#ot1-perplexing-regexing
1 messages ยท Page 50 of 1
I've since figured it out, but I've had similar issues across a few different distros
my friend with a 40xx card had to go through a lot of hoops to get it working. then they decided to switch back to windows ๐คฃ
f*** you nvidia
torvalds, idk
i tried linux mint and it has xorg drivers by default (cuz its ,,opensus")
well they dont fucking work ๐
lol
the linux experience
OS wars generally aren't super productive - you can use what you like, experiences can be pretty subjective, and people have varying needs.
true
nvidia has open source drivers, though I understand they're not as good as the proprietary stuff
I'll be honest... I really am too averse to the inconvenience to avoid using proprietary software when I need
you can do that, but its not bound to a setting in the control panel. maybe you have to do it manually
let met test
i generally dont care about proprietary/opensus if it works, although if there is an open source alternative that works just as well - ill use it
I've kinda achieved it with a registry setting to use the windows 10 taskbar, but who knows how long that will work. Kinda janky already
looks like a register edit. it will work until a full UI change in windows 11, but im guessing that will not happen until windows 12
It's just a shame and so dumb that you can't change it within the settings, very few people with this issue would feel comfortable editing the registry with all the warnings it gives you
People have been complaining about it since 11 came out, but so far there doesn't seem to be any desire to change it
I bet replacing the taskbar altogether is a Herculean task on win
There were some options for 10, but none for 11 so far. It's... rough
it's almost like microsoft doesn't value user customization
@viral parrot ๐
https://dropmefiles.com/sqYTZ :
test.py- collection of different microbenchmarkst.py- little library for microbenchmarking some codeshow_results.py- prints difference between platformsbench-<system-name>.json- contains data
How to use:
0) close any heavy background tasks
- run
test.py(optionally: give the process higher priority) - wait as long as you want (more = better)
- it will print results and also save them into
bench-<system-name>.jsonfile - do 1-3) on different system
- run
show_results.py, it will show the difference between results on linux and on windows
I have prepared some results from half an hour of running test.py on both platforms. I believe these results are pretty accurate.
You can find corresponding bench-windows.json and bench-linux.json files in attached archive.
You can run show_results.py to see results from my tests.
You should delete these files before running tests on your machine (to not mix our results).
https://paste.pythondiscord.com/U3VA
results i got
histogram shows how much faster linux is compared to windows for all microbenchmarks
lets check manually that at least some of these tests are correct.
lets choose this: x.__class__ 8.5 ns 2.9 ns +196.866%
we can see that there is a HUGE difference in speed
here is the code that performs the same test:
from time import time # measuring time
from itertools import repeat # quick iteration
n = 10**8 # number of iterations
class X: ...
def main():
x = X()
t1 = time() # save time
for _ in repeat(None, n): # repeat n times
x.__class__ # do thing
t2 = time() # save time
return (t2 - t1) / n # return time per iteration
# you can see that there is a lot of unnecessary overhead in main() fucntion:
# - timers
# - repeat() creation
# - iteration
#
# we only care about x.__class__ time, so we should subtract all other time
# here is the same function, but without x.__class__ part:
def main0():
t1 = time()
for _ in repeat(None, n):
pass
t2 = time()
return (t2 - t1) / n
dt = main() - main0() # (x.__class__ time + overhead) - overhead
from t import format_value
print(format_value(dt))
if i run this code, i get 7.5 ns on windows and 1.3 ns on linux
>>> 7.5 / 1.3
5.769230769230769
``` so windows needs +477% more time that linux to run this code
this is not the same value as in [#ot1-perplexing-regexing message](/guild/267624335836053506/channel/463035241142026251/) because of some noise and inaccuracies, but it definitely is not 0%
apparently my dyndns script was the culprit ๐ญ
what broke
it enabled cloudflare proxying for an A entry that shouldn't be proxied
which also meant I could have fixed this remotely ๐คก
at least the script should be fixed now
it's a very tiny thing to try to measure 
the windows timers are not that accurate
that shouldn't be an issue here
you cannot expect ns accuracy when measuring execution time, even ms are sorta suspect
it's measuring a long time difference
ok
judging by the results, the actual measured times were around 0.75s and 0.13s
why are you using time.time for measuring time deltas? 
at least use time.perf_counter
they are inaccurate by several milliseconds max
test itself runs for several seconds
it is not that important actually, because time deltas are pretty big
what are the respective times for main and main0 for windows and linux?
n = 3 * 10**8 # i increased it a bit
# also, im using perf_counter now
win:
15 ns # main
7.9 ns # main0
7.5 ns # main - main0
lin:
7.7 ns
6.3 ns
1.4 ns
``` results, of course, are pretty noisy, but difference is always huge
ok, at least the main0 is roughly comparable
I wonder what happens here
this should just be a glorified dict lookup
(if that)
>>> import platform as p
>>> p.system()
'Windows'
>>> p.processor()
'Intel64 Family 6 Model 142 Stepping 12, GenuineIntel'
>>> p.architecture()
('64bit', 'WindowsPE')
>>> p.python_build()
('tags/v3.11.5:cce6ba9', 'Aug 24 2023 14:38:34')
>>> p.python_compiler()
'MSC v.1936 64 bit (AMD64)'
>>> p.python_version()
'3.11.5'
``` ```py
>>> import platform as p
>>> p.system()
'Linux'
>>> p.processor()
'x86_64'
>>> p.architecture()
('64bit', 'ELF')
>>> p.python_build()
('main', 'Aug 25 2023 13:19:50')
>>> p.python_compiler()
'GCC 11.4.0'
>>> p.python_version()
'3.11.5'
tbh, i have no idea why results are so different
dumb linux question: is there a more primitive and more common alternative to neofetch?
like, what do poor Debian people use, if they don't want to apt install neofetch?
Neofetch is probably the most common from what I see
Neofetch is false advertising. It didn't behave anything like window.fetch()
๐คจ
what is neofetch?
a very popular tool. you do neofetch and it spits out your system information, and makes it look cool in process
heh, how cute
๐ฅบ
not something I'd ever install on a server or use more than once but a cute side-project, I guess
i think many people that daily drive linux have it
not on a server, of course
no point on a server though yeah
it's just fun
why?
what's this nice-looking shell prompt?
how else are we supposed to feel superior
โญ๐ข
heh, fair enough
especially if it's arch
it is my god given duty to inform everyone around me that i use arch btw every 5 minutes
hmm, but mine doesn't look like that... i'll have to investigate
it took quite a long time to piece it together
doing your duty is a good thing
toml is not very amenable to the thing that i wanted to do
this is a sign that you are taking starship too far
it'd be way easier if i just used my own bash script for a prompt
ah, it's "powerline" i guess
the diff thing is great too, but it doesn't show in the screenshot ๐ค
the git diff?
yeah it's adapted from one of the template/demo things
yeah
but it's cooler
all defaults :kek:
i removed the language versions thing, though perhaps i should not have
give me some credit ๐ฉ
i tweaked with it just barely enough to not be all defaults
mine is
based
๐ฉ
that's based, mang
me when ๎ฐ๎ฐ๎ฐ๎ฐ โฅ
๐ฅบ
fantasque sans mono nerd font has been my go to.
comic sans but mono nerd font
#### Git
# $branch [+$added -$deleted] [$status]
[git_branch]
symbol = "๏"
style = "bg:#FFF6A3"
format = '[ $symbol $branch ]($style fg:#070707)'
[git_metrics]
disabled = false
added_style = "bg:#FFF6A3 fg:#03AC13"
deleted_style = "bg:#FFF6A3 fg:#B90E0A"
format = "([\b \\[](fg:#070707 bg:#FFF6A3)([+$added ]($added_style))([-$deleted ]($deleted_style))[\b\\] ](fg:#070707 bg:#FFF6A3))"
[git_status]
style = "bg:#FFF6A3 fg:#070707"
modified = "" # git_metrics shows us if we've modified files already
deleted = "X" # default char is too curvy, replace with normal X
format = "([\b \\[](bg:#FFF6A3 fg:#070707)[$all_status$ahead_behind]($style)[\\] ](bg:#FFF6A3 fg:#070707))"
discord eats the branch character though since it doesn't have the right font
and I got the google/adobe cjk font to prevent getting too many rectangles in discord usernames ๐
ooh
shouldln't the battery discharge symbol be a graph of how full the battery is?
that seems difficult
you coudl probably do it, given enough symbols
but, imo it's not worth it
I have threshold 30 set, so it only appears below 30% anyway
ooh it seems they added more stuff
does WSL have access to battery percentage of the host machine
ยฏ_(ใ)_/ยฏ
hmm, weird
I already have nerd fonts, and I made sure of it - ubuntu mono nerd font is installed and mentioned in fc-list
so what's up with my prompt?.. or do I need some specific nerd font for symbols?
ยฏ_(ใ)_/ยฏ
what terminal are you using
fish
that's a shell
is it the vscode terminal?
gnome-terminal, then, I think
yeah, that's it, "Version 3.44.0 for GNOME 42"
oh huh
vscode's terminal works fine, actually
well, almost, that's a missing symbol there, but the powerline works
wtf are you doing, gnome-terminal
for the symbols in vscode you need to add the font to your font-family in vscode (control + ,)
hmm, like, terminal-integrated-font family?
aha, thanks, got it. I misspelled it at first
okay so that solves vscode
now, wtf is wrong with gnome...
maybe I should just change terminals and not bother solving this manually, lol
alacritty ๐ฅบ
windows terminal is nice
yeah I had used it as a daily driver for quite a while
it somehow claims it's in beta despite having 40k stars on github
winterm is pretty good
Though sometimes it stops working after it's been udpated and I have to restart
though i can't use it yet ๐
no, this was a response to robin saying he needed to restart after update
lmao, I went "how does a terminal prevent a system from booting"
this seems to be just a windows thing
okay I fixed the font issue
hmm, I think I have an outdated starship though
how did I even install it?.. I think it came with fish
or...
ah, I probably installed it manually but like a year ago
time to do another cargo install
I think the common method is the classical sketchy pipe a script from the web into sh
i'm pretty sure you just cargo install --locked starship
that's what i'm doing, yeah
You'd have to install cargo for that though
warning: package
hermit-abi v0.3.1in Cargo.lock is yanked in registrycrates-io, consider running without --locked
implying i don't have cargo
is that some kind of alternative package manager for windows?
https://github.com/hermitcore/hermit-rs/issues/436 tanking a release for one bug...
i mean, one could say that ๐
it's the package manager for rust
chocolatly
nuget ๐ฅบ
btw I cleaned my cpu fan, now it's fine
no more 85 degrees at 50% cpu load
it was just so dirty it didn't rotate at all
wth
I have no hopes of ever running cool.
You are always cool in my eyes

@stark prawn
Joy and Happiness doesn't preclude them from carrying metal pipes and lockpicking kits.
LOL
Evil Ice Panda
Pengwings
hmm?
benedict
Subscribe and ๐ to the BBC ๐ https://bit.ly/BBCYouTubeSub
Watch the BBC first on iPlayer ๐ https://bbc.in/iPlayer-Home http://www.bbc.co.uk/grahamnortonshow Graham Norton chats to Benedict Cumberbatch about him not being able to say "Penguins".
#bbc
All our TV channels and S4C are available to watch live through BBC iPlayer, although some progr...
woah ur rich
should i even enable EXPO
And I can't pronounce Cumbersnatch.
not really, i just know how to get really good deals
Benadryl Cucumberpatch
step on my property
my whole pc as it is rn costed me $600
CPU: Intel i3-3240 (4) @ 3.400GHz
cry about it
does that even run the latest windows?
.wa s second generation intel core release date
Failed to get response.
oof
like 2011
im not a kid
but the pc as a whole (case) is older than me
some parts are newer
..what does it take to run latest windows?
i used to have a low end pc and using windows on it was absolute hell
it needs to be on this list or you're a hacker
https://learn.microsoft.com/en-us/windows-hardware/design/minimum/windows-processor-requirements
second gen i3 wtf
linux was a bit better
that's over 10 years
ayeee
tpm2 iirc is the one that makes some older chips incompatible
does windows 11 come with an integrated cryptominer or something
what is tpm2
i didn't have any issues on win10 with this cpu
nah, just windows
well... i had an intel pentium cpu 
gp440 something like that
dual core
o there's atoms on the supported list
I feel sad for whoever has an atom based pc with win 11
and no graphics card either
surprisingly my pc was really quiet
and i used it for like
5 years
only upgraded it once to install 2x8gb sticks of ddr3 memory
honestly the only thing different i notice from my old pc is the faster start up time with my new pc
ssd?
and the fact that it can run minecraft in vanilla mode
ye
i tried installing optifine shaders on it and it humbled my igpu instantly
lol
no lag spikes??
nope
at all?
the fps is pretty smooth even when loading new chunks
guys... life is not fair
you probably havent worked yet since you're underage
people run minecraft with 0 lag and i can only play hl1
once you do making an investment of $600 sounds reasonable
yeah + living in a 3rd world country
stuff here is expensive compared to income
lol a bit worse
dont really wanna say exactly where
but its still better than other places tbh
bruh people in brazil be running some old ass hardware
theres a few people in here who talk about it
and yet... brazil has one of the highest hacker populations in the world
maybe the hardware is so outdated its vulnerable
we should have a competition to see who has the shittiest machine
lmao
On a basic board you wouldn't need to
But you would generally have a ground copper fill on the top or bottom layer
Which... well, essentially makes that a ground layer
Like here's the keyboard, it's just a two layer board, but the top layer has a ground copper pour, it'll connect all the GND pads but avoid the others
Like you can see a lil better here
I think I can understand it and what I'm looking at
Keyboards are simple enough to just handwire with a microcontroller.
Is the lighter red the top most layer or second layer
top layer
Blue stuff is the bottom layer
Which doesn't consist of a heap of things, just a bunch of traces, the diodes for each switch and a few other small things
Did you make that
The keyboard? Yeah
Cyberpunk underwear
Alternate name
Oh wow, yeah I see the underwear aspect
Wonder if it's what batman wears, utility tighty whiteys
Or Darth Vader's underwear, voice modifier, urinary release button, etc
am i the only one that sees wings? like a bird or moth or such?
Yes. Because I see darthvaders under roos.
Idk where they are from, but those wings people stand on to fly around
Green goblin
The goblin glider
True, although less fun ๐
PCB design looks like fun but daunting
.
where did you get this program?
Wish people would use ai to handle PCB designing instead of using it to do their homework for them
So I didnt have to learn this
Why do you need nmap for a email scraper?
Unless that is a typo.
Does pip install everything from the requirements file even if there is an invalid entry?
nmap is, well, not a python package
so I'm suspicious that they're installing malware (and so nmap used to be a malicious pypi package)
you're on a roll today, it seems
but the simple and boring explanation is that they want nmap and so added it to requirements.txt which of course won't work
that's a charitable way to put it, the uncharitable is that I saw one example of that and so am very primed for another, even though it's not actually very likely here
no it didnt
Is nmap in the requirements.txt file?
yes
That package doesn't exist though.
@tranquil orchid are you good with pc components too?
I mean, there's not a heap to them ๐ just a lil bit of research, buy some stuff, slap em together and you're good to go
the pacage wont work
The package is gone.
CPU/GPU combo for UE5 on a non-professional level and gaming
i have been looking for emaill scrapper how can i get one
@river oracle it looks like you are trying to install a virus, that's a very bad idea and you may have been infected
I was considering the r7 7700x, r7 7800x3D, and r9 7950x, and r9 7900x3D to be paired with either a rx 6750 xt or 3070 Ti
I don't have a clue what the current state of the PC market is at the moment, I built mine like ~3 years ago before the whole GPU price spikes and stuff started to occur
So not sure what'd be good choices these days
I feel like it doesn't really matter anymore. Unless you know what you are doing.
You can't go wrong with anything really unless you are doing something really intensive.
Or niche
Yeah I just set myself a budget and had a hunt around until I found the best combo I could find for the price
Yeah, my most recent cpu/mobo was a combo deal.
I'm there. Dont like it.
Then just filled out the rest with whatever.
Ended up yoinking a 1660Ti for a sweet price, a ryzen 5 2600 and then whatever other stuff and things
alright i will take a close look at that and prevent it
1660 super is just a 1660 TI but cheaper
The super is probably even better than the ti for the 1660 card variants. Was a weird release
who i need a email scrapper how can i get one
I bought a 2080 super right before the pandemic. Felt really lucky for a while.
I got the 1660Ti stupid cheap so was well worth it
Might as well just build a am4 system to abuse the ddr4 ram prices
Yeah I didn't need anything special, I just wanted something half decent that worked for the stuff I do, which is nothing crazy
8 cores is my minimum amount
I refuse to have a pc that has less cores than a xbox series x
This server isn't the place, please read our rules
Some of ryzens cpus for am4 has the 3D cache if I'm not mistaken so it's still a very solid option over am5 and ddr5 ram
cache in 3 dimensions 
Why stop at 3
Cache through time
Haven't a clue
sram or whatever
boxes
I think I count a billion transistors
multiply by 50 or something and you're probably getting to the right ballpark
chiplet
What's inside the chiplet
Have you ever see those videos of cpu wafers getting ground down?
The one game I thought would benefit from 3d cache ends up tying with a non 3d cache cpu
The entire process is fascinating how we can create billions of microscopic transistors.
Ground down as in grinded up to dust or ground interms of eletrical stuff
Depending on 5800x3ds price compared to 7800x3ds price I think I will settle for an am4 system
Am4 is a no brainer. Ddr5 ram is so far the only perk for am5
It's only $300 cheaper for a full am4 build with 64GB 3600mhz ram kit compared to a am5 build with 32GB 6000mhz ram kittho.
Reminds me of all the datasheets I've had to read that're listing out a signal bit by bit
I'm not rich I just know how to manage money between paychecks
14% of pay goes to government, $175 goes to mom for rent, $150 for food/beverages. Half of the rest goes into bank to be saved, and the rest can be used as whatever catches my interest. Usually being 30-70usd
No?
@rough sapphire which one are you

what the hell is this abomination
I don't do drugs
Japanese engineering
lol I think I'm good, my computer is just fine for what I need ๐
Why buy that at all
buy a thinkpad
When the original 3070 is 400 usd
mfw portable
New
Lenovo ideapad gaming 5
thinkpads are solid laptops
With a ram and storage upgrade
W jack opinion
I don't think I would ever buy a gaming laptop, they just don't make sense ๐
the only thinking im doing is... think why i wasted my money
๐ญ
Dont use it for gaming
wasted on what
What on earth are you using it for ๐
I used mine as a portable productivity workspace
But like, why do you need that much power ๐
I just use my macbook at uni and when going places
whats up with the eyes jack
Does just fine
Ue5
Is unreal really that heavy?
darude whats ur job btw
I work at Mcdonalds full time
Welp, luckily I'm not a game dev ๐
rn
BRO @rough sapphire
And if you dont know what you're doing, like me
SEND ME MCDONALD TO RUSSIA
I cant optimize my code at all
Bet
huh?
you'll get better as you learn more theory and practice more
based
oh
what bonehead would think im serious abt him sending me food
Yeah once I get new system I can switch from godot and gdscript back to ue5
below 18
Identity theft
lmao
godot is pretty nice
Also my current laptop cant handle more than 2 instances of occluded light sources.
The one I had previously used occluded light as toilet paper
More or less objects blocking light and casting shadows. I forgot what it is, but still remember what it does
do you make games in a pixilatdd way?
For some reason if I make an application go into the "not responding" state it makes it load the applications faster
reverse psychology
Feels like forever if I make it not go into non responsive state
Also it wont let me install arduino ide software.
wdym won't let you? ๐
I have enough space on my c drive, but it says not enough space
So I tried precompiled zip file, wont even launch
This laptop is very fidgety
But if I wanna play a 2D top down survival game that's cpu intensive at a very playable fps. I can.
Nvm dont starve isnt as cpu intensive as I thought.
Ideapad gaming 3 has a lot of different specs. This one is moderately decent. My last one used radeon Vega 8 graphics
All I tend to want out of a laptop is something with solid battery life, and nice and portable
Power I don't really care about
This was my last laptop, except it was windows 10 and had a different cpu
And I dont think it had a type c port
Anyways, I should go back to drowning in datasheets, I have so many schematics to make by the end of the week
Is that for college or job
College sounds overwhelmingly torturous
what year?
Have fun dont die under hundreds of pieces of paper
Getting towards the end of my 2nd year
good luck
What's the dropout rate in Australia
Haven't a clue
LOL
why is he asking that ๐ญ
Cus US has a high college dropout rate
Mostly people going for a diploma in a completely useless field
it legal to drop out from HS?
Yes
As long as you're 16 you can drop out
They cant stop you, if you try before you'll get into trouble and eventually your parents can get fined or taken to jail
Something something chikd neglection
where i live we have drop outs as young as 3rd grade
Damn
I don't even care about my classes really, I mean they're alright as well, some are far more fun than others, it's the student team stuff that I really enjoy though
Who wouldn't want to go to uni and build rockets
I would like to go for that
I just wish I took my education more seriously when I was a younger brat
that's cool stuff
That is some cool stuff
Wonder what my local tech college does
Cant find anything, seems they're more keen on being boring
Enjoy your data sheet work, I'm going back to what I was doing
it feels so good to understand documentation
i love being slightly smarter than average
read more documentation and youll understand more documentation
Everyone thinks they're above average at driving , for example 
How can everyone be above average
Just recently I was arguing with a guy saying that ai is better than humans and just basically making fun of me because I don't know ai because when he asked chat gpt it made him a 2d game with no errors with I call cap so he said ai will replace all programs so I told him what language did chat gpt write the code in he told me English ๐๐
Little fun story
@subtle dew if you are on windows, you can change the title fairly trivially with auto hot key https://www.autohotkey.com/docs/v1/lib/WinSetTitle.htm
The WinSetTitle command changes the title of the specified window.
@reef geyser what's for breakfast?
@viral parrot hi
we were talking about windows vs linux perfomance a day earlier
i posted code and results here: #ot1-perplexing-regexing message
cool, do you have a direct link?
oh i found it
!remind 4d #ot1-perplexing-regexing message
Your reminder will arrive on <t:1693687329:F>!
gpt once gave me a faulty bomb making recipe
mf wanted to kill me
I wanna make a game in english
What do I install to do so?
a brain
I come precompiled with a brain
Some people get compilation errors but still compile
Which I would be one of those
There we go @vale raven - Shell agnostic clean session. https://github.com/Preocts/python-src-template/pull/125
ik
Or maybe i still have it lying somewhere
Yes but from the small side, if you'd put something very close to it, it would basically act like a microscope
k bye
<@&831776746206265384>
@tranquil orchid what do you think the chest piece is?
A literal voice box?
Its connected to the throat
that just looks like a gpu lol
It does
I was trying to be funny cus it's a box connected to the throat ๐ฆ
If it's a gpu I wonder if they made it
Or one of nvidias 30k ai gpus
It probably is their own gpu, msrp of optimus is supposed to be 20k
I don't even know what this robot is ๐
https://en.cppreference.com/w/cpp/keyword/and i think more people should use this
Its Tesla's optimus robot
They want to rebrand as more than just a car company
Itll use all the software and shit tesla cars use for moving around and whatnot
we need to set some rules
Looks like an nft project or something
Probably is
Idk what its use case is
Most rich people still use professional butlers and maids, other people do things themselves for work ethic
First gen is always the worst gen with issues and etc
We gonna have used robots for like $200 in the future
Wasnt Elon warning us about ai
Now hes putting it in everything tesla makes?
Is it even ethical to build robots designed to look like humans?
And do human things
what rules
why would you ever use that
for boolean checks
when && has existed for years and is practically the standard
if (a == 0 and b != 0){}
parens
true
.xkcd 927
the question is why not &&
imo it sometimes makes the code harder to read, in my own language i have and instead of &&
(btw how to parse expressions i am really stuck)
Sorrow speak pal
@tulip falcon you cant just ditch out mid conversation like that ๐
I lost enthusiasm for what I was going to say midway through it and deleted it
just got a response from tccpp
i'm waiting for others
to see if you're right in at least one case
I use and..
lol
cool
What's the difference between them
more people use and = more often and is used over &&, you get it???
https://github.com/cpplint/cpplint/blob/develop/cpplint.py
TIL cpplint is one giant Python file
They both do the same thing
no not really
need to check the truthness of the left side
wait what
so now they're arguing about broken keyboards
ok
wow
spent an entire day on making a calculator
What does it calculate
lol
agree
yaml would be nice for config file too
lmaoo
also msgpack for serialization if more low-level and high performance
I think they meant msgpack instead of json
haha I can see how it could be read the other way too
there's always msgspec => https://jcristharif.com/msgspec/
msgspec is really cool. fast too
I quite like cap'n proto, mostly because of the name
what is all of this
@deep cedar I looked a bit more and I have no clue what cs61a is, but you should look though all the #409692123944714240 channels and see if any fit it. There is also #internals-and-peps if by "core python" you mean about python internals. If you just mean python in general, that's what #python-discussion is for.
Got it, that makes sense. I will probably post it in help. I am basically looking for some people that I can talk to without all the noise here in bigger channels.
By core python I mean, barebones and just simple Python.
CS61a is the world's best programming course taught at UC Berkely
nothing about python is simple
Well, only the standard library.
I'd think a graph theory course would would be the best
I intended pun
Unfortunately this isn't really the best place for finding study groups, I would recommend posting on the Python Reddit though. I would also use discord's search feature for finding other people talking about cs61a. And just talking about standard python, #python-discussion is the place.
I don't get it
Got it, thanks for the help though. Much appreciated.
GraphQL is wild https://paste.pythondiscord.com/4HVQ
graphql is cool
It is pretty cool. Feels like an entirely different language to learn in the language I'm using. xD
All this because I want to pull my daily PR/Commit count with a final tally on files touched, additions, and deletions.
seems like something that could probably be better done locally ๐ค
a git hook or something
If all the work I did was local then I could track it there.
But it's rarely all local and the stuff that is rarely hangs out on my machine. I usually delete the local repos when I'm done with them.
how are you doing work not-locally?
Might not be my machine (remote access). Might be work done on the github UI itself.
i c i c
Looks pretty easy. A query to:
- Pull user activity for the day
- For each repository listed in activity:
- Query to identify PR diffs for that day
Slap it all together in the bragsheet
pog
oh, and pagination handlers. ugh.
How does pagination work on graphql
I see first and last cursors... where next?
oh, that's endCursor for next.
you can pass parameters in your query; i presume there
Ah, yeah. Looks like the initial query I just say "sort this way and give me the first 10". Then I can say "do that again but give me results after this cursor"

(venv) preocts @ Preocts ~/daystats (main)
โโโถ $ python -m daystats.pullstats
Contributions(commits=9, issues=1, pullrequests=3, reviews=0, pr_repos={Repo(owner='Preocts', name='python-src-template'), Repo(owner='Preocts', name='walk-watcher')})
PullRequest(additions=30, deletions=36, files=1, url='https://github.com/Preocts/walk-watcher/pull/48')
PullRequest(additions=83, deletions=62, files=3, url='https://github.com/Preocts/walk-watcher/pull/47')
๐
timezones are going to bite me here 
But I don't want to have third party imports for this. whaaa
Maybe I can just set the utc offset in a config and call it close enough 
you don't want it to just use your local?
GitHub is UTC for all returned timestamps.
Unless I missed a way to declare that in the query.
hm. are you getting naive datetimes ig?
So if I'm looking for all contributions on 2023-08-29, I'm actually looking for a spread of them between 2023-08-29 and 2023-08-30.
Yeah, I can make it dirty by just keeping the utc offset in a config.
(venv) preocts @ Preocts ~/daystats (main)
โโโถ $ python -m daystats.pullstats
2023-08-30 00:00:00 - 2023-08-30 23:59:59 : Local
2023-08-29 19:00:00 - 2023-08-30 18:59:59 : UTC
#abolishtimezones
This is literally #earthisflat
This is a fun idea but out of time for the night.
https://github.com/Preocts/datstats/blob/main/src/daystats/pullstats.py
Got it "working" and that always feels good.
Just need to wrap my head around those timezones. I think I'm offsetting in the wrong direction.
Wait
Isn't this for braghook?
Isn't that a thing that sends an embed to Discord?
Did you abstract the data gathering to it's own repo?
Is it time for a game of "how many repos can we involve in sending a message to Discord"?
I vote we make our own GitHub API wrapper next, and daystats can import it
This will be for brag hook.
Braghook has the option for an embed to Discord.
The dailystat repo will hold a self-contained version for other uses. I did this mostly to learn GraphQL but I also have interest in these stats.
I'm not sure what the final output will look like. My original goal was to get a single line that said "Changed N files with N additions and N deletions in N repos."
A wrapper around this API sounds like a chore. It's very verbose.
Listing every PR in a webhook? Probably not a good idea. Listing them in the saved brag (markdown)? Yeah, I'll likely do that.
Neat
I might steal it
Work is feeling very soul sucking lately, and I'm thinking seeing these numbers come in might help me feel like I've actually accomplished something
Make daily brags. Changed my outlook on my daily life.
2023-08-28
Over all progress toward cleaning of the automation repo went decently. Feeling good about the choices to practically rewrite the api library. Two weeks effort but the code already feels more solid to work with.
- Shoulder tapped by [name] for 30 minutes - training for PagerDuty
- 4.5 hours of meetings
- Focus time interrupted twice
Usually a few TODO notes for the next day
"focus time interrupted twice"
you guys get time to focus??
Yeah
That looks more like self review to me
But that's good too
I take focus time.
It's a lot like a self review. When my leadership asks me "what's been happening" I usually start opening brags to remember.
But it's also little nods to myself. "Remember, you felt good about this idea"
I want braghook to append all the PR details to the bottom of the brag once the day is done. That way I don't need to go looking.
I close the door
User knocks
I ignore the user
User knocks again
I shake my head
User knocks again
I wave them away
User knocks again
I turn my screen to show them the pile of faces in my meeting
User knocks again
I mute my meeting and open the door
"My printer isn't working"
"Do you have a ticket?"
"No"

I hate users
You have a door?
I do
I was actually in a big room with multiple doors and a three person department
But I've since been moved into an office that was being used for storage of IT stuffs, so my desk is surrounded by boxes of monitors and phones and spools of Ethernet
I never did get my own room when I was in office. Not really anything that would make the working enviornment more bearable but something I never had.
It's also one of the ones with a window overlooking the production floor.
And because there's so much stuff in it, my boss put a lock on the window and didn't give me the key.
The users will open the production manager's windows to talk to them, and then come to my window and get confused when it won't open. And then they knock and I shake my head because there's nothing I can do about it.
And then they get personally offended that I "refused" to open my window for them
Users man
They're the worst
Sorry
I'm rambling
It's been a long day
Family hurt my feelings
You said you were leaving
It's okay. You're not bothering me.
I'll let you get back to it
You got one of those late night cookie delivery shops in the area? My treat.

I don't think I've ever seen anything like that before

It's a thing. I don't have them here but I've heard of them through channels.
where you at?
check doordash, the cookie places are usually lurking on there, uber is more for normal food
Can I get a good paying job for Professional Data Analysis certification from Google?
I have found this course on coursera and would like to know if it's worth it or not?
I have seen many of the teenagers get into high paying without any Degree
You saw teenagers get high paying jobs without a degree? Ask what they did
You'll do a lot of shit, one course can help make you but it won't break you
hi ppl
Gideon Overcame Adversity Together
only a few out of hundreds of thousands
put yourself in the shoes of an employer - would they pick someone that did some online course for free over someone that spent hundreds of thousands of dollars at a university with a bachelors or master's degree?
I suspect we may have different definitions of "high paying" and "many"
there may even be many definitions
wow thay color choice is terrible
oo le
lol
I took it and enjoyed it. I didn't put it on my resume and I wouldn't unless ur just applying for an internship. By itself it's definitely not enough to just start applying for jobs.
So depends what u mean by worth it
It's definitely worth it if ur trying to decide if u have an interest in this and want exposure to the tools and ideas.
apply
Usually internships are only for juniors college students ( which is super BS tbh) or ppl who just graduated
But there's exceptions
U could apply anyway. No one hires interns based on skill or talent. Usually just enthusiasm
So if u love this Sh** you'd be surprised how much can go ur way
I had a couple sophomores apply last year. We interviewed them, they didn't get hired but we have em a shot
it is possible to get an internship as a freshman, though
I would say apply and familiarize yourself with the process + start improving your resume
One guy clearly was just was finance student guy who thought programming was profitable so he wanted to learn it on the job without ever really having tried it.
The other was very passionate about software development but it was a data analytics internship and he just didn't seem to be the guy for it
This guy is correct
I'm never wrong
Relationship simulating chatbot,
well get on it then
Tbf I'm employed and most of my stuff is semi functional on a good day
Your still in school you got years
That's the correct way
U won't
Not cuz ur bad
But cuz no one does
Computer just break
It's part of life
I once spent 3 hours trying to find error that turned out to be a single misplaced semi colon
It's fine
Or was it a curly brace
I think it was a brace
Which actually makes it dumber that it took me so long
that's really sad. were you just not using any tools whatsoever?
them goshdarned newfangled machines
So it was like my first week as a dev and it was in this weird google IDE that's for like what I can only describe as " YAML but it's SQL" and I had no idea how do anything and I barely even knew sql
I just got my ass kicked up and down the block my first few months
That's fine. Honestly troubleshooting is a better skill to have than most anything else
Everybody asks for help
That's fine too
Don't worry about that
Sorry, that is not our intention to fix things for you
Fr doh
oof
@reef geyser good news. Nedbat said he would adopt you
Here's Jah asking
I don't see a response from Ned
I think this is slander and heckery
It was a silent approval
๐คจ
Silence is consent




I hereby denounce the previous conversation and vote to move on with something else
all in favor say aye
.topic
Suggest more topics here!
Then just dinner that night.
It's dinner that so happens to be on Easter.
But I would pick Christopher Lloyd. Love that man.
Second pick is Tara Strong
Do your kids also like Christopher Lloyd?
I DON'T HAVE CHILDREN
๐ด
playing half life 1 to numb the pain
..... wow
PGP is a signing algorithm, not an encryption algorithm
Huh, apparently it can do encryption too
@heavy minnow so this bug button, will launch your program with a debugger attached
the bug?
debuggers allows you, to well, debug your program
how
iirc it is literally called bug
by allowing you to stop execution, and view value of every variable
oh wow
so you can like press a button and it goes line by line?
yeah seems very useful
well, it will execute until it finds a breakpoint
on that point, it will break/stop execution
and give you the control over application
so, if you put breakpoint on the first line of code
is breakpoint a keyword?
wdym by that?
well, execute you step by step, allow changing variable values and view them
that's probably too advanced for me
its simple
uh
let me record it for you
it sounds scary tho
i know
linux is also scary, until you figure it out
yeah it looks scary even tho it's not so big of a block
ah wait you mean the code in the screenshot?
dont worry, it is not even python ๐
I use mac for now and it's already been a little bit of a struggle to adapt after using windows
lmao
I'm dead
I thought you said that code was simple
lol
simple rust
what
i thought MacOS is literally the easiest OS
to use
anyways
lol
well maybe
pls wait
i hate discord
same
๐คฏ
my mind went kaboom when you pressed console lol
"restart" - restart the program
"stop" - well, stop the program
first item - resume execution - resume execution of the program until it the next breakpoint
pause icon - pause execution - pause the execution of the program (emulates as if breakpoint was "hit" (reached))
line with a jumping arrow - step over - execute the selected line of code
line into the ground - step into - step into the calling function (ie if the line of code was about to call your_function, it would step into the code of that function)
line into the ground #2 - step into your code - step into the calling function (except, that function is guaranted to be yours, and not some library's fucntion)
line from the ground - step out - resume execution, until the function returned (ie you are running execution of the function, until you are "out" of the function's code)
2 red circles - list all breakpoints you have set
crossed circle - disable ("mute") all breakpoints
i hope i didnt over complicate
idk if you did, but I think I learned something hehe
another thing - the highligheted line (blue), is the line which is about to be executed
so the first item resumes the execution without you having to press anything?
yep
no, wiht jumping arrow is just next line of code
good to know
it basicallyt emulates what would happen if you was clicking that buttong 238459234 times per second
ie program would not be in a pause state
exactly ok
emulate?
well
lmao
the blue line right?
maybe?
i mean, just try debugging that program i wrote
for yourself
lol?
playing around is always much better
cuz you are enjoying learning new things?
idk
I think it's because of that face lol
and the misunderstandings
sorry for my ignorance btw
no-no
and thanks for your time and patience
you are not ignorant at all
np
I like to learn at least
if i something didnt explain - you can always come back
thanks
i have to look through the rest of this list and play around like you said
interactive learning is productive learning
i mean, if you dont know what the button does - just press it
precisely
exactly, brute force
(except if it is red, of course)
until the pc crashes and explodes
lmao exactly
omg now I realize I need a daily dose of programming memes lol
lol
btw one thing - you cant place breakpoints on empty lines of code
as breakpoints stop the execution of code
but on empty lines of code - no code executed (and they actually dont exist, internally, so debugger literally wont be able to find non-existing (for it) line)
yep
well, breakpoint is pretty much the red dot
hmm
it marks the "point" at which code should "break" its execution
maybe for another day lol
hense, "breakpoint"
ik
but why can you write breakpoint if there's already a red dot
breakpoint is python's builtin
red dot is for pycharm's debugger
now I get it
i believe you can somehow integrate so that pycharm's debugger would understand breakpoint()
thanks again :)
wait is it a function now? lmao
...
or method
iirc breakpoint is a function

