#ot1-perplexing-regexing
1 messages ยท Page 643 of 1
nim's ternaries are
interseting
var ternary = if conditional == 42: true else: false
yeah, nim did the fun thing and just added multiline lambdas to python's indentation syntax
I wonder if you can line break that to make it more readable
yeah, it's just
var ternary = if conditional == 42:
true
else:
false
that's way better
cool
huh
nim actually has some nice higher level stuff built in
looks like working with things isn't painful
@graceful basinThanks for turning me onto this, I'll look into it for sure.
glad to help
doesn't that mean it can do anything?
yes
I am honestly just impressed they got julia to statically compile at all
I haven't used LLVM specifically but with Cranelift IR, I just got Cranelift to emit an object file (well, give me the bytes, I made the .o) and threw a C compiler at it
once you get the IR you can just...compile it
in theory but if u read the zulip discussion thats not as simple as you might think.
yeah, StaticCompiler.jl looks to be ... heavily indev
I mean, it took oracle a few years and a research team to get native image working well enough for prod use, I would be really impressed if julia gets further than "pretend we are a statically typed language and compile that"
since well, julia is harder to compile than java
that's true
link to topic
there are four things julia has focused on working for the past three years. native compilation for libraries, maturing the SciML ecosystem, improving speed and optimization for every release, and fixing the gc by hiring a gc expert that used to work for java's gc
nice
getting a nim environment set up ๐
@graceful basinI just realized you can use semicolons in nim by accidentally writing a few and having it work perfectly fine
this is troubling but also probably useful
in very specific cases only
Yeah, semicolons are there for oneline blocks
They are effectively the C comma operator
Lmfao, rip to the guy behind me. He scheduled golf time like an hour after his flight landed. Dude's bold and stuck in line for car rental behind me
Welp
I've just learned something else broken about the "block" system in Discord
If you approach ~100 blocked messages on a screen
It crashes the mobile app
maybe if youre approaching 100 blocked messages youre in the wrong server
could also be time to reevaluate where the actual problem is
I might be automating too much. How often do I start a new project 
# Build a python venv if needed, otherwise activate existing
build_venv () {
if [ ! -d "venv/" ] ; then
python3 -m venv venv
. venv/bin/activate
python -m pip install pip setuptools wheel
fi
if [ "$(type -t deactivate)" != "function" ] ; then
. venv/bin/activate
fi
which python
python --version
}
# Create a new python module project, only if directory is empty
build_python_project() {
if [ ! -z "$(ls -A)" ] ; then
echo "Directory is not empty, are you sure this is the place?"
return 1
fi
if [ "$@" = "src" ] ; then
git clone https://github.com/preocts/python-src-template .
else
git clone https://github.com/preocts/python-module-template .
fi
if [ $? -ne 0 ]; then
echo "Failed."
return $?
fi
rm -rf .git
git init
git checkout -b main
build_venv
make && make install-dev
}
alias venv=build_venv
alias python-setup=build_python_project $1
.bm to shamelessly steal preocts' ideas seems neat
Hmm... I could add a sed call in there to edit the readme.md. Fill in the directory name as the project name.
Ever wanted to update all of your git repos?
ls | xargs -I{} git -C {} pull origin main
Oh.. you mean all the repos you have a local copy of! That's neat.
nothing really hangs out on my machine
.remind 18h
fine... to slack I go. I can't remember the remind command here xD
You're right
Just wrong bot
Your reminder must have a content and/or reply to a message.
!remind 18h
Your reminder will arrive on <t:1654630687:F>!
It was apparently two people just having a long conversation
find . -type d -name '.git' -print0 | xargs -0rx -P$(nproc) -I{} echo git -C {}/.. pull --tags
here's a little deep fried version of that
just remove the echo
why are pandas help questions so tiring
i feel like it takes half my brain cells to put together a working dataframe
before i even start thinking about a solution
someone do something about it
i need Faker.js but for pandas DataFrames
there you go, free project idea
Nice, German Discord
!e @austere elm
class D(dict):
def __setitem__(self, k, v):
key = "".join(sorted(k))
dict.__setitem__(self, key, v)
def __getitem__(self, k):
key = "".join(sorted(k))
val = dict.__getitem__(self, key)
return val
d = D()
d["test"] = "hello"
print(d["ttse"])
@tardy rain :white_check_mark: Your eval job has completed with return code 0.
hello
what are these things called again? __getitem__
dunders
thanks
!pypi faker-pandas
yours would be what, 0.1.0?
yes but at least it'd be mine
Lmao
if im gonna be pulling my hair over bad or unimplemented code, it may as well be my code
mega yikes
oof
mfw grew the code base two fold
(adding docstrings to literally everything)
this project used to be 5k LOC, now its 18 lmaoooo
Damn, 5000 lines to 18 is pretty sweet
Hey guys! I wanted a suggestion.
I want to apply for a full stack profile but right now I know about Android and Flutter only so I was thinking of learning a backend
Could you suggest me some backend framework that can be good or is in demand for mobile dev?
Java - Spring
Python - Flask
C# - ASP.NET Core
JavaScript - ExpressJS
TypeScript - NextJS
@prisma geyser
if you're not familiar with any of these languages, I can probably name the mainstream frameworks for some other languages
I was thinking of going with Go or Node.js as they are in high demand
Do you know of any mainstream frameworks for them @rough sapphire :)?
I don't know why you're making a distinction between the last two
express and next.js would work for both javascript and typescript
Go:
https://github.com/gin-gonic/gin
NodeJS: ExpressJS and NextJS
because NestJS heavily favors TypeScript, and TS is in fact idiomatic there
writing Nest in JS is an awful idea
also, i just found out i typed Next, not Nest
Nest is the one that favors TS
but ofc in my opinion TS is a must on express and NextJS too
okay but then just suggest "don't use JS"
writing JS in general in terrible
if they have a reason why they wish to use JS, i suggested express JS, that was the point
the Next/Nest was a typo
Here's your reminder: Hmm... I could add a sed call in there to edit the readme.md. Fill in the directory name as the project name.
[Jump back to when you created the reminder](#ot1-perplexing-regexing message)
Oh yeah...
Sorry, you can't do that here!
Helper+ are allowed to set a reminder at other than #bot-commands 
Hmm... to continue to build this in bash or to create a python script to do it. 
basically: learn more bash shell script or use what I already know?
Both are viable
Both would be available wherever you can use bash
What's the thing you'd be doing?
As a rough guide for myself, if my script needs to use a lot of actual bash/Linux commands, I use a bash script. Otherwise, Python.
A "do all the things" boilerplate loader for my python project template.
- create a project directory
- clone down the template
- replace the
.gitwith a new init - create venv
- install dev dependencies
- update README.md with project name (from directory)
I think it will be easier in a bash script and I'll get to learn a few things.
I love and hate writing Bash lol
Bash makes sense for this to me
It makes a change from Python. And when you go back to Python you will remember why Python is awesome ๐
Last I saw, there really aren't any great libs for git in Python
Absence makes the heart grow fonder, that's for sure.
git itself is just easier to run the cli for than try and abstract it. That's been my experience.
On your own machine, you have quite a lot of freedom when it comes to how you write Python. At work, bash is sometimes required as I don't particularly want (or can't) install a bunch of third party libs to get a Python version working.
Exactly
That's a really good point about the extra third party libs
If it's something to be more general, go as bare bones as possible
Oh heck, third party libraries are a nightmare on my work network. If the data science team hasn't already vetted it the process can take me weeks to get approval. I've actually found it easier to reinvent the part of the wheel I'm using over getting something into our artifactory.
something I've been working on today is a Python script for sending notifications. But I am forced to use Python 3.6 and can't install anything from PyPI. It's slightly annoying, but kinda refreshing to have to do some stuff by hand, so to speak.
Might still be worth getting annotations from future in there
Little bit of extra cleanliness and sanity
Wait
No right, that's 3.7 and up
So
Haha! I updated a tiny little wrapper around one of the internal APIs we use for computer inventory. I run on 3.8, and wrote this thing for myself so didn't think anything of it. Commit, review, merge... 1 hour later was on a call with three network teams clambering about how their ansible boxes ran 3.6 and the library now failed to run.
#ScreamTest
rofl
wait... doesn't 3.6 have type hints.... wonders if he forgot to set local dev environment to 3.6
It does but it doesn't have some of the nicer stuff from later on, specifically using | for unions and using types and what not from the global namespace
Almost everything would have to be snagged from typing
ahhh, yeah.
I did have to change a bunch of stuff, as I defaulted to doing list[str] and str | None etc lol
It's so niiiiiiiiiice
Yeah, using Optional[whatever] and Union[this, that] etc really pads out the line length.
I think I introduced a NamedTuple? Maybe it was something else. There's been many nice things added since 3.6.
probably using just KBs of ram
or just not running at all
oh its running all right
with a whole 0.4% cpu usage
hyper-v manager says the "assigned memory" is around 2gb
not sure if these are the right processes but the numbers are still suspiciously low
two of those are debian vms and one of them is windows 10
vms always eat a lot of resauces
I need Windows support because W11 sucks
W11 is great lol
It's 10 with all the broken stuff fixed and the bad stuff redone in an actual modern way
But too much resource usage even on idle. The apps which didn't lag much on W10 are kinda lagging on W11
I cannot corroborate they experience
For some reason it's using 60% of 8 GB RAM with nothing opened. Thanks to that, games aren't able to get enough RAM to run smoothly
"resource use on idle" is a horrible metric due to how windows scales resources
8GB of RAM is barely usable for basic things these days. That's not just a windows thing either
With a reasonably modern Linux Desktop Environment my laptop with 6GB of RAM is virtually useless
"Oh you're not using your RAM? Lemme just use that to cache some things in the background and free that up for ya when you do need that RAM"
Well, I used to run windows 10 on 4 GB ram and a cpu from 2014 or smth with good experience (was laggy, but usable)
For some reason W11 is lagging even on 8 GB
But yeah, windows will eat RAM that's not been used by other things. What are your specs?
i3 11th gen quad core with 8 GB RAM and an iGPU
Which of the 20 11th gen i3s?
1125G4
Yeah that doesn't track really. Sounds like something is funky
Will be interested to hear if you ever get it running right .
Can't imagine what would cause that
Whe 8GB of RAM is laughable, that shoumd run 11 for some basic document editing and web browsing no issues
8 gigs of ram ouch
I don't need a high spec pc but I sure do love my RAM since even modern IDE can use a lot of it.
Especially when working with GUI's.
It'll probably also play some games no issues, those on the more lightweight variety
Like Minecraft or Roblox
Speaking from a time where I was using an AMD A8-7600, AMD HD6670 and 8 GB of RAM
At one point, 4 GB
It wasn't by any means laggy up until where shaders were used in Minecraft, going around 40 FPS using Sildurs Lite with it being around the 1.14 or 1.15 update
which one looks better
rounded edges
I kinda like the squared edges more
I like the rounded one
Rounded is nicer in this isolated case. I don't have an issue with squared corners if it fits the overall design.
tip : if unsure, go with rounded edges
Seems like a tip made by a programmer
anyway, i'm going with rounded
seems like what a programmer would say
I'm in the "what does Bootstrap give my by default" camp ๐
Rounded personally. I find squared to be less lively
I.E: IBM Carbon to Windows 11 Fluent Design/Apple Cupertino/Material Design
how can I compare log 2 base pi and log pi base 2 without the log table?
@acoustic moss @brazen ingot @gritty zinc @solemn leaf
pi > 2 so the first one is greater than 1 and the second one is less
oh I missed something
Noooo 
I need to compare the sum of log 2 base pi and log pi base 2 with 2
like which one is greater?
oh AM >= GM
lmao
that x,y,z one?
dis one
yeah this one
haha ๐
I can't seem to find any other values than (2,1,2)
Have you heard of QR(Quadratic Residue) I studied it 2 days ago, QR helps solving the problem
no I haven't
I tried scanning it, but no results.
lmao
haha
It's Quadratic Residue, not QR code
Silly Grote
this might work
I'm not going to scan a random qr code
no its legit
sussy rickroll link
nope.
I can see that XcQ link
I can scan QR with my eyes
my powers are beyond your imagination

oh I'm so stupid
you take 2yz to the left side
x^2 + (y-z)^2 = 2
and then squares are always positive
then it's a cakewalk
Found this in a python book lol
lmao
one way will to going logically
raising 2 to pi requires a power more than 1 , since pi > 2
raising pi to 2 requires power less than 1
so raising 2 to pi aka log_2{pi} is greater
another way is weird but works
use any inequality between them and solve
What's the example ๐
you divide and get 0 on RHS?
also you should never use multiplication or division while working with inequalities
only addition and subtraction
not exactly
you should never use multiplication and division when there's a variable whose domain is unknown
yeah I just avoid it all
15
ye
Hey.
goodbye
@next vessel as it turns out, the go researcher dude's name is John Tromp, and guess what you-know-who's middle name is?
@clever oyster Hey, i saw you typing in the chili help channel before, what were you saying?
Hi
Yea
1 sec
So I made this code
Sorry for the bad pic I took it from my school laptop
That's not how this works, lol
Hm
Get a help channel from available help channels
alright
i need that book
nice
GGs
damn
i strive to be like you
2 billion net
insane
btw what robbing allowed servers are u in?
no reason at all
dw, its gonna reach 3 bil (soon)
0
im not in any robbing server
teach me your ways
what jobs do you pick
and everything
nice
Hi
Hi
How's u r day
Great too ..thanks!
@pallid oak C is also "simple"
theres a lot of people who've started with C or C++, its not a drastic thing, and won't ruin their programming experience
@rough sapphire a language being compiled doesn't necessarily make it harder
if c++ was easy enough to learn, there probably wouldn't be python to begin with
i mean, there's a grain of truth in that statement, though the main motivation in creating python was a language that's easy to write and read (because programmer time is worth more than compute time)
well, sure, thats a point of motivation for all high level languages, so that programmers don't have to write machine code
but of course, if we had a language that's easy to read and write, and also fast and overall good, that'd kinda mean we solved language design in general, wouldn't it ๐
Yea but if you want it to be fast it needs lower level control
manually handling memory?
Yes
you can do that in python, though?
oh, you mean for performance
theres fast languages that don't have to manually handle memory
i LOVE C++!!11
rust plugging time ๐ฅด
:p
i LOVE manually fucking around with memory and getting compiler errors that make no sense!
rust errors are much better comparatively to any language
Its easier and much more efficient with low level control
how so?
Rust is an example, you don't need to manually handle memory, and it keeps up with C and C++ in terms of speed
why are programmers that use C++ and similar languages obsessed with "low level control"
and like, C++ has smart pointers and stuff, doesn't it
its just C++ and its because of some misplaced sense of elitism
Rust in practice is generally slower than c++
according to?
because it's more memory safe and easier to manage memory
lmao
Because its harder to make rust faster since it doesnt encourage you to do low level things manually
according to what though?
rust is already one of the fastest languages
the one comparison I remember has Rust about 5% slower than C, about equal to C++. Notably, Rust doesn't have classes, which in C++ can slow things down notably if you don't avoid them.
if you want more speed you'd switch to C
According to how the language works
orrr, write python code and use Cython
do you have any actual benchmarks that back that?
not manually handling memory doesn't inherently make a program slower
you mean slower
oop, yeah
aboo slip, we all saw it
aight guys, imma learn rust starting today wish me luck
I guess you could argue a GC, but rust doesn't have one
When you dont manually manage your memory you leave room for inefficiencies
search up "The rust book"
does it?
thats a very bad take imho
Why would i make benchmarks for a discord debate
I can't just take your word for it
guys who use malloc() and forget to use free() will disagree
Yes anything that you leave up to the compiler leaves room for inefficiencies
what? All I see is docs
Die
the compiler is probably smarter at handling memory than you or I will ever be
well, manually manage memory in Rust then? when it's necessary? and that way, you don't have to constantly pay a ton of attention to everything to ensure you don't introduce yet another memory unsafety bug. Like almost every single big project in existence thanks to C and C++ and others.
in that case, why don't we just write machine code, and not use a compiler at all?
๐จ ๐ applied no u to @rough sapphire permanently.
why use machines at all?
Leaving it to the compiler is just trusting that the compiler knows the most efficient way to deal with your memory for any specific situation
besides in niche cases, a compiler will likely produce faster code than hand written machine code, mature ones are typically reliable
I use human servants to fulfill all my calculatory needs
Because c++ does that for us
that's why you also have manual memory management, even in rust
yeah I was referring to that
every function not written in assembly is a performance bottleneck and must be rewritten ASAP ๐
RIIA
yup that's the rust book, teaches u rust
hm
And rust doesn't?
*RAII
one of these days im seriously going to run !bl add filter_token [autoban] rust
why do you have a boys love command?
oh my days hsp
pride month
๐ฅด
Functions in assembly are inefficient
So the compiler can reliably generate machine code?
They're a lot slower than itteration
by functions in assembly are you just referring to
how so?
Might as well use binary to create a Warzone like game to make it an optimized version of the game
jump
everything not written in binary is a cardinal sin and you will sent straight to the underworld for it
I'll sue
Rust doesnt allow as much choice as c++ so youll have to do everything youd have to do in c++ manually
some flavor of assembly has call
you were saying something aboo?
youll have to do everything youd have to do in c++ manually
...what'd that be?
Have an example?
!bl add filter_token [autoban] c++
Meaning it doesnt insentivise lower level control
admin aboose
too late, banned
Well for example theres like 2 alternatives to the auto keyword and they all create a different code structure and have different efficincies at low level
๐จ ๐ applied ban to member that i don't know who you are referring to, permanently.
auto? Isn't that type inference lol
Yes but it changes how the program functions at low level depending on if you use say auto or templates
in C++?
Yes
What does that have to do with having to do stuff manually in Rust though
and I still don't see how any of this proves that C++ is faster
The point is c++ allows you to quickly choose how your c++ program functions at low level
c++ templates aren't at all different from rust generic functions "at low level". in both cases, you get monomorphization at compile time, with all the optimizations possible for the concrete type.
Because rust has a smaller standard library it doesnt allow you to easilly and practically change nuances
C++ makes nuances practical
Also side note, templates are bad for efficiency
Auto is much faster
having a smaller standard library makes a language slower? doesnt C also have a small standard library?
that's, i note, entirely unrelated to your previous points
It can yes
Also side note, templates are bad for efficiency
Auto is much faster
how can that possibly be true?
rust is kinda rusty imo
Rust is younger, im sure it will be as practically fast as c++ eventually
is it really that much slower right now?
I like rust too
@rough sapphire, your sense of humor is fine, because it is down right hilarious that you're saying c++ is better than rust
it was implied
Im saying its practically faster to implement low level nuances
You can generalize my statements if you want to but i was verry specific
not when you have go through a wall of text to find a missing asterisk
I like rust just as much if not more than c++
Depends on your compiler flags
And the tools your using
clang has decent error messages, I've heard
yes but does your c++ compiler link documentation on how to make lines better and optimize parts of your code?
Yea personally i like to use g++ paired with valgrind
No reason in particular im just used to gcc
okay i gotta go now
I dont need to, ive memorized most of the nessicary documentation
Alright cya man
But yea in conclusion c++ and rust are both great languages and i think they're both great. Also rust would be a respectable successor to c++ imo.
Now back to python general
@dapper dew you've been thinking about mountain biking for quite a bit now, go for a ride and give yourself a well deserved break.
My dropper post got delivered today, but I don't know if it comes with a cable
no one here knows html
what's html
There's always forms
Or the more semantic aspects of HTML, that affect accessibility tools and SEO
html takes a very little time to learn, did you mean CSS?
I literally said that The message before . Lol
Okay there are a few blocked ones between but I'm assuming they weren't paragraphs
I think it means HSP's Tiny Me Likeness
@acoustic moss You have like your own Mini-Me, right?
no idea what that is but definitely
bruh
When downloading the source (not the built distribution) the package pep517 the files in the pypi .tar.gz seems to contain two extra files than the github tag .tar.gz for the same version.
I thought the source was supposed to be same
it doesn't need to be
the one on github is going to be just the source
the one on pypi will be published from some CI, which may add some metadata
I imagine that's auto generated by flit when publishing
Basically all packagers (poetry, pipenv, setuptools, distutils) generate it or require it
It's what is run when you install
I was trying to build from source and the test is failing for that generated setup.py file so I guess I can exclude that in pytest
If you want to run the tests, mimicking CI is usually your best bet
They use tox, so you just need to run the right tox command and it'll take care of it from there
But doesn't that CI uses the uploaded source directly? aka without the setup.py file
flit install should get the package built from source for you as well
Yeah, so mimicking it should work in theory
The tox config has this nifty option: skipsdist = true
Indeed, I see that now in their tox.ini
skip_install = true is another gem of tox. You can run other tools inline with the tests.
tox.ini lines 17 to 20
[testenv:pre-commit]
skip_install = true
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure```
im currently dual booting windows and linux, and i want to have shared files that i can easily access from both oses. is it a bad practice to have a separate disk partition for shared files like shown in the image?
alr thats comforting to hear
Is there a reason for the FAT FS? I can't recall never having problems with NTFS with Ubuntu.
i mean, it's kinda what was just given to me
i just needed a file system that was compatible with everything
Hope that's at least FAT32 and just not saying it. ๐ฅด I too thought ubuntu could handle ntfs but there ya have it.
yeah its fat32
I think I had some big files back then so I can't say I've used it on a HDD, but it should be a pretty safe option.
Oh. That dialogue box is saying "with Windows", as in "Linux with Windows".
Ubuntu can handle NTFS absolutely
However every time I used it back when I dual booted ANY distro, the NTFS partitions were slow as hell on linux
I don't think Ubuntu is comfortable with it. I used to mount my Windows boot drive and Ubuntu could read it, but it was a bit meh sometimes if I remember correctly
That's fair. I get spoiled with WSL and forget there's actually a difference between a linux box and windows box.
Yeah
WSL it's great because it took away my needs to ever have a VM or dual boot again
So I don't have to deal with that OS any more than necessary for my development testing
dank memer kinda died since the buttons update
pytorch or tensorflow: which one is better in ur opinion?
Here's an excerpt from Deep learning with PyTorch (written by the devs of PyTorch) that talks about the differences:
The tl;dr, in my opinion, is that pytorch was a lot easier to get into when it just began (because it had implicit graphs and TF didn't), but by nowadays they've become very similar.
h
so, i was trying to create a python venv on this drive, and it gave me a "Operation not permitted" error
apparently, symbolic links or smth arent compatible with FAT32
yay
wuts a symbolic link?
and for some reason, windows venvs work fine, but linux ones dont?
idk
yay tried to resize the partition and it gave me an error ive never seen before
why cant hings just be simple D:
It's the ability to say that one folder = folder I guess. At least that's my understanding
For example, I can have this one folder /A be a symbolic link to /B. Whenever I access an item inside of /A it will be looked inside of /B - because that's where the files are actually stored.
well, yeah
hm ic
but why cant you just have them be the same folder?
I've had some uses for sym links, but it is pretty rare
@viral parrot thanks for you advice, i have begun collecting friend requests
not a lot of people wanna be friends, as hypothesized
I go to troubleshoot some old, buggy code that's been spitting errors all week. When I try to replicate the errors it works flawlessly ;_;
it aura at work
if this happened with legacy code, i would start getting paranoid. not sure whether or not it's working. and boom, at deployment, 7 errors.
Why are ot channels so dry nowadays
!otn a non-dry-otn
there, fixed
Wut
I don't think it is a good idea to perform factory reset for Win 10 while using mobile data for active connection? At the same time I intend on either clearing or dumping the OS for Linux, but that would be a one-way ticket as of right now because I have no Win 10 physical copy either. The main question is the matter of transfer, installation, and files. I only have one flash drive and there are bunch of personal files I wanted to move but I heard installing Linux image from medium has a chance to wipe the contents clean during the process, so here I am asking.
If you're planning on installing linux, it's usually best to wipe the drive you're installing linux on.
If you have a second internal drive, you could move your important files to that. If not, you could use a service like google drive.
What about dual boot? Is there a possibility to change the partition allocation after initial setup should I install linux first?
Yea, you'd need to partition some space on your drive for linux
you should setup the partition in windows first
Man I really wish I kept those 4 GB flash drives. Would have saved me world of trouble right now.
Would you mind if I were to ask for a recommendation? Right now I fixed my mind on mint (cin) because I've used it before for some period of time but I am open for any suggestions.
My official recommendation is not to bother with Linux
However
Elementary if you like the MacOS style
Otherwise plain Ubuntu
Hss!
Or Kubuntu if you like more windows style but not outdated windows XP interface like Mint is
(To each heir own, in the end.)
Just avoud 22.04 Ubuntu based anything
I've done some digging in recent few days and got interested in Manjaro.
Apparently their memory manager is killing all apps constantly
Especially the plasma KDE because of the amount of desktop customization.
Do not touch anything arch based unless you're very very familiar with Linux and debugging/fixing things
Is it that volatile?
It is not stable, and the ecosystem expects you to be able to fix things when they (regularly) go wrong
Or just don't work
It's very volatile yes
In fact in my 13 years of pretty much daily use arch and it's derivatives (Manjaro, there's another clstartd with an e I can't remember right now)
Are the only distros that caused serious headaches, let alone constantly
Mhm
Just like I said
Avoid the new 22.04 version
On anything Ubuntu or Ubuntu based
They gotta patch that memory manager lol
It's just killing apps left and right from what I hear
Upgrading Ubuntu is also extremely easy
So if you use 21.10 now once 22.04 gets patched up it's trivial to upgrade in place to 22.04
but that's how it was in DR1 and I don't think there's a reason to assume it would be different, since all the Unity code is new anywayWordle 357 4/6
โฌโฌ๐ฉโฌ๐จ
โฌโฌ๐ฉ๐ฉโฌ
๐ฉโฌ๐ฉ๐ฉโฌ
๐ฉ๐ฉ๐ฉ๐ฉ๐ฉ
Can someone explain me this? (Python3/Python2)
I mean like, of course global variables change inside for loop?
I think they're just referring to the fact that loops don't have their own scope in Python
Unlike some other languages
I see
lmao hardcover
filetype:pdf
is having a girlfriend a good thing?
Depends how you value relationships like that
I do
It's really situational, but it really depends on how it goes
its probably because of the fact that i feel lonely and i struggle to find motivation
and that im always an underdog and i never get respect and stuff
Yeah I understand that
what does a relationship give you
A healthy one will give you self-improvement
Because both of you will set yourselves up to be better people, in one way or another
Of course, the romantic stuff comes as a bonus, at least for me anyways
I did
did it help?
For school? Not really, but I didn't find it distracting neither
Although this was the primary effect on me
that's what im hoping for
im not a bad person, but people see me as the kind of person to take drugs and vape lol
That's just an image problem, really, and not really a "you" problem; people have prejudices
I prefer not to answer :P
In some cultures, yep
when a girl goes for a boy that boy is cool
when a boy goes for a girl that boy is just a simp
...
nah bro im serious lol
Kinda yikers
i tried and i failed miserably lmao
(lurks in hrlo)
It'd probably best to wait and focus on other things in the meantime. Building friendships also help quite significantly
yea abt that i got little friends
i dont fit in
this reminds me of myself so much
i came to this little suburban town in 2017
no friends, left everything behind
I'd look for genuine friendships over many ones
and nearly 6 years later, still no friends
im not exactly a teacher's favorite
cuz i dont like to take orders
instead, i like to do things my way
wouldn't make you more popular if you were
people fking hate teacher's pets
im a bad kid
the teacher's say i rotted to death long time ago
no save lol
i wouldn't recommend getting into relationships really young, i would rather focus on making friends and your future career paths
see i already made myself as a loner
as a proud, able to do everything loner
never tried
want to try
problem
is
im dont show myself as a nice person
everyone wants out and away from me
i mean
how ppl see me is hard to change
it could very bad though
idk how
im a basketball person
idk if that helps
well, changing your perspective of yourself is easier than changing others
my perspective is already dead hard
i see myself as unbreakable, able to do anything, dont need anyone, super prideful, invincible
nice, i don't have any sporty intrests
only a couple
i have full faith in my person
to quote, they think im just cocky af
and self centered
well, are you? ๐คจ
no
i seldom toxic others
but when others toxic me i will fk them over
i dont shit on others, but when others shit on me, i fuck them over
that would be pretty cocky
i never really try to say im better than others
jjust waitin to prove everyone wrong
u got a gf?
how was your previous experiences with gf
y
i thought it would be great
what doe s aserious one mean lol
yea idk wut does that mean
i just need emotional support
@remote hazel
your wish has been granted
lmao
hello
flamingdev requires emotional support
im freaking 14
im at your service 
๐
holy shit
there is a spider that just made a web from the ceiling
and it down
lol
im inable
at least im trying to get myself attractive
get some abs, muscles
okay yes but the real question is
do you have a reddit account?
because if so, good luck finding a gf
because it's a well known fact to all major scientists that redditors are in capable of forming relationships ||/s||
nice
i tried once and i got rejected
damn
dayum dayum dayum
i mean, idk how
its very embarrassing im ngl
y lol
oh lol
hope dat works
the girl i used to like kinda hanged me
i had to like use an alt account to talk to her and understand why lol
Cringe
In the end decided on mint.
I'll move on further once I am confident how to get my way around the OS.
If I never see another wasp in my life it'll be too soon
bro why is you pushing this 14 year old to get a gf
yk at 14 there are way more important things
if i were you friend, i would have gone with opensuse
For a docker compose file, do i still need a Dockerfile? Or every directive from the Dockerfile, can it be written in the docker compose file as well?
you still need a Dockerfile. docker compose is more like a declarative way of specifying options for docker commands
docker compose more like instead of docker run command?
From what I remember they're not extremely familiar with Linux, so Ubuntu based is a far better choice
The second best next to not using Linux
lol ubuntu is awesome dude
but linux compared with windows is always gonna be a downer
Even compared to MacOS
for example, specifying a port, binding a volume, etc. would require those options to be specified to the docker run command
with docker compose, you can specify those in a file and just run docker compose run which would read the options from that file
thanks. i need to practice more with Dockerfile and docker compose, to differentiate in what should i write in a Dockerfile and what I should write in a docker compose file.
have you made dockerfiles before where you have them 2 levels above the src code directory?
but files such as config.toml were in the same dir as Dockerfile?
yeah. we use a git submodule, which has a common docker compose file (which started common DBs and stuff) and other stuff for it, which uses IIRC
...
build:
context: ..
dockerfile: Dockerfile
2 levels above should work the same just with ../..
though we're slooowly migrating to not use docker compose
I am completely new to using Docker outside of what other people have already written
when I tried I was able to get a build but the entrypoint to uvicorn wasn't running properly or I got a 503 or... smth. can't rmbr exactly rn
why? is docker compose bad? ๐
it's not bad, but for us, getting the submodule to update in every service's repo is a PITA
and letting service owners define their own is not an option
maybe a problem with ports not being exposed properly? ยฏ_(ใ)_/ยฏ
@jaunty wraith While i have you here ๐ If i make a modification in a container, should i write the said modification in the Dockerfile as well? ๐
most probably not. what kind of modification?
a symlink for an nginx confing, pointing to a file in a docker volume ( ln -s /mnt/wgvpn /etc/nginx/sites-enabled/wgvpn )
those changes should be tracked in git
I have almost 1 TB of free space but only 5 GB can be be shrinked. Any suggestions?
Unless I can run linux on that (or flash) for long enough to erase everything else.
hey
i know that different languages do different things
in applications and whatnot
but putting those aside (i.e. only language features like generics & whatnot)
what does kotlin have that java doesn't?
i've seen a couple of memes about it being a better version of java
well, I wouldn't exclude language features for a comparison like this
differing language features are part of what makes two languages different (and perhaps one objectively better)
apart from that though, kotlin has access to the Java ecosystem, so your good in that regard
It's less verbose, many people say the Syntax is nicer then Java
Is there any action to be taken in the current state of geo-political affairs my advisors?
any up for writing a chat platform project? dm if interested
Wowwwwwwww
A single, lonely little occupied room
I don't think I've ever seen that before
There we go @vale raven - First of a few. Now I'm thinking of how to automation translating the setup.cfg to pyproject.toml. 
"day off" 
My "day off" contained my boss texting me about how he needs an answer immediately so he can "decide if he wants to implement the vendors plan or not"
Vendor just flew a team of people out to our facility. They're already here, they landed today.
The vendor is looking for a solution for a problem that they have with their system that they can implement with all the companies they do business with.
They don't have a plan. They have a couple of ideas, and they're wanting to test and see what works well so they can work on a plan
I mean... whether he wants to implement their plan? I'm not sure he even understands what's going on.... Vendor is trying to fix their systems - has nothing to do with him - probably won't actually require any change at all to our systems
Welcome to the new age!
Enjoy your stay!
That's not a glorious situation. Not sure there's more to say about it.
I hope most your day was enjoyable.
Nice!
!rule 5
5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.
ok
I wouldn't care if the building was on fire, I don't take work calls on my days off :/
Work from Home
https://github.com/HRLO77/CLImail - so, i spent a solid 2 hours fixing a splice
[0-(size+1):-1:1]
:/
then maybe it isnโt the job for you
sounds like the perfect super-villian beginning
I mean I agree with the sentiment
I have my off days for a reason
Many times my jobs try to call me in
And many times I say good luck
"but we have no driver for open!"
Well I guess you're not taking deliveries today, mate.
i wish i could say the same
It's especially funny since the entire month I'm working 6 day weeks
And both jobs know I'm doing this
My one "off day"is entirely spent running errands and cleaning
So I don't get a real off day until next month
portugal supposedly has laws fining companies that attempt to bother employees after hours
And I still get a message "hey can you come in on Monday"
Hmm, let me ask my laundry
Sorry guys
Laundry said no
i live shit and sleep in the middle of nowhere, every day for me is a working day
This is why I got the fuck out of the south
not even in my own country, my time off consists of trying to talk to locals in a foreign language and cleaning rifles
although the Portuguese locals seem to love playing card games so i can invite them to a game of poker and win lots of money
I totally get this, lol. Been there
Why do people find the need to put a ^ when they agree with something, I mean its just redundant
is agreeing with something redundant
Theres not really a point to send a message (not react) because it literally adds nothing to the conversation or anything sentiment wise, but putting a reaction like this is fine
You forget that many people disable reactions
And it's perfectly reasonable to use that as a statement of agreement or whatnot
you can disable reactions?
idts
User Settings -> Text & Images -> Show emoji reactions on messages
Never knew
damn it @Fisher not again
๐คจ
@eternal wing what did u do ๐
but i need rabbit
for the 69
Wtf, comments don't load for any Persian channel on Youtube, isn't that weird? Tried on both firefox and chrome
probably a result of censoring? have you tried it with a proxy/vpn ?
I can't enter youtube without a VPN anyway, lol
then the censorship is thick indeed...what country are you in?
you said 'Persia' ๐ Persia encompasses more than Iran's boundaries...well it did wayyyyy back....
I said "Persian" , being the current language of Iran
well, I guess you could say I might watch Persian vids and I could be from some other country
but anyway
from 2 hours ago
Oh, I didn't know Persian was the official Iranian language. Forgive me
it just stopped loading comments
it's okay dw about it lol
but the weird thing is
it's just for Persian youtubers
For others it works
That's almost like......is something fixing to go down in Iran?
you mean like a change in network?
can you see Twitter right now?
With the VPN I have on right now, sure
no I mean like preparation for something civil/military...disabling unauthorized communication
maybe YouTube is just experiencing issues right now
just for Persian youtubers? I doubt cause you can't even choose "Iran" in the country in your account settings
yeah it's not that then. Twitter would be down for yall too...
It seems to be selective
interesting....
It is, I'm just using it with a VPN
comments on YouTube will probably come back
let me see if they are working on my end. Have link to a Persian youtube video that you can't view the comments for?
ok
oh wow
it just appeared for a second
and disappeared when i reloaded
that's like... it's intentional
oh nvm
it's also occuring in other vids
like non-persian
it probably is a youtube-only problem
let me see...
yea
oh wow, comments aren't loading for me too
yep
that's a youtube problem then
thanks, just wanted to make sure it's not some stupid sanction
indeed. I've never seen this happen lol
same
Hi, anyone LGBT here? Particularly T - I need help please. I'm scared
Me
The more I'm using firefox, the better it seems lol
How can I get the total amount per "Card Holder" per "month" in excel using pandas/numpy?
@wraith hound Defining another instance after an instance chain would be considered overlapping
ah wait actually no, it allows it, but I haven't really encountered anything of the sort yet
I have no idea what that means ><
Ok so for an example of an overlapping instance, consider:
instance Klass a where
..
instance Klass Int where
..
```which do you think makes sense to choose here?
Hey, I'm trans. What's up?
^^ MTF
Sure, but both are perfectly valid instances for Int. It's a matter of selecting which one is more appropriate. In most cases though, you don't want to override the more general instance, since it'll end up introducing subtle bugs especially if the general instance is defined in another module
Isn't the overriding exactly the goal?
For example, I want my custom Show [mytype] to override the stdlib's Show [a] where Show a (pseusocode)
Yes, but you end up breaking inference along the way unless you also override priorities somehow. Overlapping instances become a real problem with multiple type class parameters, because then, you end up with a plethora of complications, like solving something along the lines of
instance WhichOne a Int a
instance WhichOne Int a Int
```Quick question, are you learning Haskell by any chance or implementing type classes?
Implementing them. Although I'm definitely going to end up completely rewriting them at some point.
The idea is that instance declarations are like patterns in pattern matching, except there's no definitive order unless:
- You enforce them manually, by always choosing concrete types
- Defining an abstraction like an instance chain, such that order is resolved
Orphan instances also present a problem with selection because then you'll have to choose between which "pattern" is more correct between two modules or packages
After I'm done with my lexer I'll probably get into implementing type classes
In a few years time I'll have a working PureScript frontend lol
Hi
Hah yeah
Brave is even better
Its gui is an exact copy of chrome
why does this syntax reminded me of julia
@mild abyss I have nothing to do with someone so obsessed with anime like you
whats with anime and browsers? for someone trying to make a counter argument, you go to ad hominem. boring and lame
what does that have to do with me telling you brave isnt any better? and how is anime any different than any kind of TV show? youre weird
Hello guys
was my main browser before firefox. until i saw what it did
lmaooooo that doesnt mean anything
its like saying "bro, i dont care what you say because you like rap music"
also yor lookin good
people hate for the most nonsensical or useless of reasons
at this point im not surprised people like them end up being racists
ikr. its just opinions man.
indeed
well racists are nonsensical anyway
lol yea
u can actually download the pic btw
each ep, their website release some pics
i see
damn
o wow
yeah i need wholesome series
but i have a feeling it will go dark then to wholesome at some point
What did u see?
What else am i supposed to reply to anyone who straight up denies my statement without showing any reason
opinions are like assholes, everybody's got one
we all love eslint don't we
oh my. are u talking about yourself? ๐
i said brave browser has crypto and nft crap, implying it is not any better :P
But its open source
Isnt it?
it does not mean it isnt bad :P
also dont attack my preferences just because you dont understand what im saying
Why do u even need to work with cryptos and nfts
Just use it like a normal user bruh
bro sounds like "To tHe mOoN ๐๐๐๐๐๐๐๐ช๐ช" ๐ค
yeah sure. replacing ads with brave ads and the weird reward system with binance. what theyre saying contradicts what theyre doing. and it is not like they are not caught collecting user data.
Ok ok fine brave is sh*t now forget what i said and stop eating what is left of my head
Well, a ton of stuff. For example, they used to put affiliate links without any permission from the user in a certain update. for binance.us I believe they put an affiliate link, so like when you entered binance.us, it would redirect you to binance.us/?ref=something and they were getting money from that, there are more controversies than that. Brave rewards' donations going to brave instead of the content creators they donated to, etc.
for the affiliate links, as soon as people realized they just gave an update and removed it
like, that's so messed up
privacy browser? more like selling your data to brave without even knowing it
try firefox if you don't wanna use Chrome/Chromium Edge (which are chromium based, not really private)
no reason? He mentioned one
If you don't care about privacy that much, at least use Chrome with uBlock and you'll be good to go
If you've used chrome and didn't like it, Edge is also a good choice
if you also don't trust microsoft/google, then try Firefox
I personally like the Firefox UI more anyway
That's totally messed up, agreed. Good thing I don't donate BAT to anyone anyways. And well, tbh about the affiliate links, I don't care much (I know I should but, uhhh)
I mean
RaderH20 vs Me
Rader - explains everything
Me - Half assed it because lazy
Rader +1
Me -100
I don't care much about privacy. But the things brave did were just so bad
The reason I don't use chrome is because of the ram usage
Edge is more for microsoft environments, didn't like it
lmaooo
There was a controversy about firefox too that made people go to librewolf but yeah i think that was about free speech or something
for me it was a misunderstanding when people read the blog. it was about censorship and how it should be practiced or something but yeah.
tired to explain.
yea
but honestly
as people have said here too, there are literally 2 browsers only. Chromium (chromium based are just chromium with the company's name and some little features added), and Firefox (using the gecko engine)
If firefox doesn't survive, it's not good news
https://blog.mozilla.org/en/mozilla/we-need-more-than-deplatforming/ it was this blog
i think the point of the blog is to stop or limit the spread of dis/misinformation
I see
because such information can become so harmful to society, it causes social unrest
e.g. antivaxxers, flat-earthers
they've got a point, sometimes freedom can bring harm
but
idk
they should've let the users decide
i think people think freedom as something like "free to do anything because its for me and not for you".
i think real freedom is doing what you want to do and not the expense of others lives, wives, husbands, etc
yes, that's right
If I can join the conversation, it's so weird that some people that advocate for freedom of speech seem to forget that defamation laws exist
freedom of speech is to protect against government tyranny, not against you saying shit about another citizen
so many people dont understand that
Yeah, though to be fair, it's not aided by the fact that "freedom of speech" is vague whether it's about governmental or interpersonal
very clear imo
Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances.
Yeah, but it gets brought up when someone gets banned in social media (and social media isn't really governmental (as preventing only the governmental aspect is the current way it is))
social media sucks tho so yea, fuck em
twitter goes through some incredible hoops to get around all this shit
What do you mean? /gen
courts decide that twitter is some sort of public square and that trump cant block people on it, but also acts as a private company and bans whoever they want