#ot1-perplexing-regexing
1 messages Β· Page 641 of 1
I'm prolly looking to intern/get a part time job next year, prolly dev. Any advice?
apply to any company. friend of mine applied, he got the job :) it is more about engagement and a good portfolio. also not being an asshole
alr
Is it, though? 99.9% of people who need to use spreadsheets probably have Excel installed, so why use anything else? And since Excel is all they know, they will continue to favour it in other places, even if they had a choice.
I'm not saying it's not the best, but it being used over others is no big surprise and probably nothing to do with how good or bad it is π
I guess Apple's Numbers, Libre Office stuff too.
For spreadsheets? I know LibreOffice has a spreadsheet program. There's also Apache OpenOffice but that's been eclipsed LibreOffice
Who even uses Apache OpenOffice
The OpenOffice devs and people who have never heard of Libre? π
Is Lotus still about? π
good luck convincing lay people not to use excel tho
Yeah, it's too ingrained
even tho its shit and its core language not maintained by msft
Excel is perfectly fine for how I use it. On the rare occasion I actually do.
Wikipedia says IBM sold Lotus to an Indian company
I have almost completely ditched Word. MarkDown all the things!
Never heard of HCL until now
yeah why?
You need to commit the changes
It tells you right there there's things to be committed
Theres 4 steps to basic git
- You make your changes
- You stage them
- You commit them
- You push them to the remote
Alright so now my file is staged?
Yes
Now you commit the staged changes
Yes
git commit
It'll bring up an editor so you can leave a message
Or git commit -m <message here>
oehh always love these big errors
fatal: Unable to create 'D:/Python/Github/demo-repo2/.git/index.lock': File exists.
Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.
You have something running git in the background somewhere
Let me restart my pc, I think I ruined something
Yeah I tried that a couple times
Mhm even after the reload it gives the error
I'm just going to make a new repo
Ayoww you're the best!
@rough sapphire
idle has line numbers D:?!
how?
what did you do?
restart shell after
i just found the IDLE dark theme
VBA editor: You guys have optional line numbers?
... but is wookie always watching?
kinda/sorta... gave up on word for troff... gave up on 1-2-3 and excel for sc... you can still buy wordperfect though, just as old as lotus amipro
i unironically wish i had more vba knowledge these days. any good resources, and do i have to use the built-in editor? no way i can use vs code?
#shorts #coding #programming #computerscience #faang
i am currently deciding between React, Vue, Angular, or Svelte
someone suggest plz
Theres a plugin for the vba editor called rubberducky but i found it made everything so much slower
Other than that yea youre kinda locked into using the editor and it sucks
The language isnt that bad, its the tooling that's terrible
Svelte anyday
wordpad.exe
svelte everyday every meal
ngl, my cs elective in highschool let us write in word doc lol
prof knows about editors but yeah he assumes we dk
lol
doesn't word just write in weird proprietary text file format?
yeah .docx
But you can export it as text
But then the cool syntax highlighting disappears :(
.docx is just many xml files in a zip file
yus
i dont like using react but oh well
all my college-mates know only react
π
TS is nice ig
although using JS libs with TS even with the TS types extension is not very fun
yes lemme try to give an example
i've been debating whether i should type up openpyxl myself
or just give up and accept Any lmao
i cant, got a 13k LOC tkinter app on my hands
lmao it is a big boy
yea
i have most of the code typed up, all of it really
except the openpyxl bits
its annoying me seeing white text in my editor
wtf they actually chose tkinter in production?
well its not really prod, its an internal tool for operations
it was in Perl originally
ah
Perl5
but our excel people didnt like it so my boss rewrote it in the worst way imaginable lmao
rip
π§
||c||||o||||c||||a||||c||||o||||l||||a||
thank you all
hey i need to speak to ay one there to get the permision to talk in the rooms
can any one there rspnd to my messages
https://www.youtube.com/watch?v=F81LPqjSlhM
how's this for a tf2 hitsound
hey someone know here Assembly in emu8086 and can help me pls?
@flint basin
high level syntax with low level performance
could you explain what you mean by this? syntax has absolutely nothing to do with high or low levelness(?)
I just said that based on the general idea that higher level languages are generally easier to read and write for a human, whilst lower level languages can be harder to interpret
and Rust is generally easier to read than something like C++
that is a very strange explanation and not a definition I've heard before, interesting

I do understand though that the more common definition for high level languages is that they are languages which abstract away the aspects closer to the hardware, sometimes at the cost of performance or efficiency of which is often overexaggerated
for me "high level" syntax are those languages that can be read like a sentence. but that's just me. as for others, high-level syntax can mean "expressive" syntax e.g. julia, haskell, python
lol wut
yeah that sounds more like the definition I know
π
anyone else have absolute shit peripheral vision?
Guys what is this bar up in the photo refrecre to
How about this for tge loading screen of my app?
Its Nice
Wut?
Why would u read a language like a story?
i am having my lunch
bad idea to open discord
So?
You also read code
You still need to read code while writing it
Yeah but...
Whatever...
C++20 is pretty good
U have got import statements, modules and much more features
No more #include<...>
That's some scary search engine optimization
im not sure what im seeing π
oh w3 schools
where do regex questions go
inb4 #esoteric-python
nvm im going to abandon my regex solution because fuck regex
yes fuck regex
I never ever said anything about a new version of C++ being bad. Read what I said again please
fuck expression matching altogether
πΏ
Sorry to offend you, but i am not talking to you, nor am i expressing my opinion about ur previous comments
Joe, mind sharing your Wednesday conspiracy theory?
It's not hard to understand reading isn't exclusive to stories
Nor do the following statements really matter to the act of reading
ποΈ
thicc ink
More sexy
Does someone know what music does fireship use for his videos
i must admit that's pretty nice
ig they provide that in description
They dont, thats why I am asking
Ohk, maybe just ask them on their discord server π
They dont have one
Perhaps I would have considered all of that before asking in a server not related to them
And maybe don't guess if you dont have any context?
Because there is no point in replying
They have slack, Instagram, Twitter, maybe use that
I have used slack to no avail
Tweet at them?
ill try that
Yes I saw that link from a reddit post but this music was used once in a very old video
which video did you hear the music in then
any of his latest videos
Perhaps we have no way of telling that if you don't provide context when you ask a random question π€·ββοΈ
Maybe don't ask the question if you can't provide relevant information for someone to help answer.
Because there is no point in asking.
We'ree making the mothere of all mesages here Jack, can't fret over every tyop!
how do i get that pc upgrade!
install anaconda 
that's neither a python nor an anaconda
itsa me

this is really cool project
Minecraft in 900 lines of code
bro recreated minecraft
a mariooo
Does anyone know how to setup app folder sync with Dropbox? I donβt want to login with my Dropbox account and use third party app credentials instead (I want to sync with only this application folder)
?
look at the message its replying to lol
π aight bro
@azure beacon heya sorry for the ping, just wanted to know what do you do as a devops..engineer? i've been quite interested in devops but after an interview for a devops engineer role, i'm quite confused
Keep servers alive for the most part.
Its just the current word for system administrator. Sometimes also meant with a splash of UX for the developers.
i see, do you have a starting point in mind that you could recommend so i could explore it a little?
Linux is a great starting point. As most servers run it.
yeah i kinda run linux on a daily basis and did a little rhel course as well and now i'm not sure where to go from here π
Selfhosting is a very approachable method to play with the server side of things.
Running things like minecraft servers, playing with systemd, automation systems like Ansible are also great too.
One of the best things i can reccomend is running weekly or monthly sprints with a challenge. Like setting up a simple minecraft server that you only set up trough ansible.
Or setting up nginx to host funny cat videos in such a sprint too.
Make it harder/simpler depending on the challenge you'd like.
.bm sysadmin challenges list above
Your input was invalid: You must either provide a valid message to bookmark, or reply to one.
The lookup strategy for a message is as follows (in order):
- Lookup by '{channel ID}-{message ID}' (retrieved by shift-clicking on 'Copy ID')
- Lookup by message ID (the message must be in the context channel)
- Lookup by message URL
Usage:```
.bookmark [target_message] [title=Bookmark]
.bm πΏ
aye thank you so much, will look into it
@lusty rune have you played with Arch before?
i have not and i do not plan to lol
I know it has a lot of toxicity around that community, but the wiki's they have together with building your linux setup from the bottom up i can highly recommend if you want to be serious about sys-adminy things.
that sounds like a neat exercise, build it once and never look back π never thought of it that way lol
I'd still reccomend to look back.
Better to think of it as self documented servers.
hehe i understand, will give it a whirl, is arch available on ec2?
EC2 sounds expensive. I'd usually reccomend it trough either a VM or on a old laptop of yours.
As the point is to go step by step and not use a pre packaged solution.
oh no i'm on a free trial so i want to make sure its worthwhile
that's also where i learnt rhel heh
As it is the quirks you hit that teach you a lot.
As any person can follow a blog post and not understand it.
But still end up with a finished product.
so sorta like the trial and error method yields the best results?
But figuring out how to solve issues using linux and how to learn how to debug an issue is almost priceless once you get that right.
Yeah.
isn't AWS cheapest tho?
Its also why the weekly sprints are great.
No, its one of the most expensive solutions out there.
neato, is there some sort of a.. collection of these sprints?
is that so
Not directly. There are places like https://github.com/awesome-selfhosted/awesome-selfhosted that has lists of cool software you can play with.
so which provider is cheapest?
There is only two things id reccomend against trying until you feel ready mentally, and that is email and matrix. Both of those are extremely difficult to maintain by yourself.
both matrix and email provide convenient docker compose scripts
There are a lot of comparison websites online. I have found this one decent https://www.experte.de/server for german providers.
this is the one that i kinda overlooked because i thought they'd all be the same stuff but boy was i wrong, thank you so much, this helps a ton
But most online would say Hetzner for induvidual use. Personally id say Netcup if you want bigger servers and can commit to a 1-6 month contract period.
Hetzner is pay per minute. With servers starting around 3.50β¬~/month
i believe i'm paying 5β¬/ month for my Hetzner VM
No worries. Always fun to share cool things with people.
Sounds about right for one of their cheaper offers.
appreciate it :3 have a good one
Feel free to poke me in DMs if theres anything more π
aye tysm for the insight
is vagrant relevant?
sounds like a great concept but i don't see it anywhere
like, no major software that'd provide vagrant scripts
I have used it in the past. Its a bit older and kinda went out of the spotlight after containers became popular.
It is mostly used as a "Dockerfiles for virtual machines" and you usually write them yourself.
They are usually better for when you are dealing with services rather than just dealing with programs.
As they support systemd natively and dont require a lot of funny trickery like containers do.
vast majority of docker usage is services though
Yeah, im not a big fan of it sadly.
Shipping your service with an entire operating system attached is quite the maintenance role.
I have a strong feeling you may only have been shown docker.
I know there are other niche solutions
but everywhere i ask, it's always docker
and most services on github provide docker-compose scripts
or at least dockerfile
That is a very developer focused view of this.
And no, they are not niche at all. You may not have heard of the tooling. But it literally is what is running oci containers underneath.
so which other tool are you thinking of
You may not have heard of cgroups or cni, so they may be niche to you. But they are the foundation blocks that all OCI containers run on top of under linux.
Primarily systemd in the "running of services" answer.
I mean, I know about systemd, but i also know that such solution is not at all a clean one
Define, "clean".
you would rely on some dodgy script, and essentially hope that the .so s in your distros are the ones you want
What do you think CMD is in Docker files?
change from debian to ubuntu, and your build might just break
yes, but what do you think FROM in Dockerfile does?
it uses the same image (unless you don't lock it)
Usually pull in an operating system.
Yeah, but here's the killer. Nobody runs the exact same image, and you cannot easily manage the images yourself.
in docker you do use same image though
So you essentially pull in 5 different distros, all at a different version of each other, even under the minor release.
No? That is entirely dependent on how the docker file of the program you pull in has written it.
okay, so tell me, if Dockerfile uses
FROM ubuntu:22.04
how will the image differ from what i run, and what you run
what will be different
If you pull it in one day before me. A package is updated, and i build it the day after.
which package?
Outside of pulling the completed images off dockerhub/github, you cannot really ensure that repoducability.
Outside of writing your own Dockerfiles for every program to unify them, you cannot realistically keep up on the maintenance side outside of just trusting the developers doing it for you.
you don't write your own Dockerfile, you usually reuse one
when deploying
ofc, when you have finalized your product, you write the Dockerfile once, make it work
and when you have to deploy your software, whoever uses your exact same Dockerfile, should at no point expect issues
well, ideally you make docker-compose to make sure correct volumes/ports/env vars
but those are slighly less problematic in terms of reproducability
You speak of this as a subject matter expert. Have you ever deployed any software using your recommendations at scale before?
I don't handle deployment in company i work at, my coworker handles deployment, usually with ansible scripts
but I do make Dockerfiles/docker compose scripts
Yeah. Do realize you are speaking from a developers point of you on this. And not from a deployment point of view.
there shouldn't be that much more to it
Docker may be great for development, but it does not work well at scale.
what does work well at scale?
large corps use docker too you know
There are many hip companies that try to tell you otherwise, usually because they have some software solution at the end of their articles that they try to sell you to make containers easier.
there are open source solutions for it too, such as kubernetes
kubernetes scales, yeah?
kubernetes manages containers, yes
Im still working on fully solving this. But usually ansible/nix are good candidates.
Ansible is for automating deployment workflows, right (I'm probably wrong)? What is Nix for? Reproducible builds?
I'm not sure about Nix being battle tested
also, I don't know how Nix of all things could help at scale
Yeah its a orchestration suite that uses OCI containers. Its both good and bad. Where most of its bad come simply from the sheer amount of complexity it brings.
scale is complex, kubernetes tries to ease it as much as possible
Its used by several companies and spawned from academic papers. Its pretty serious.
Reproducability is its strong suit. You can also put nix inside of containers to help with that "i pulled at the wrong date and now everything is broken" issue.
this is absolutely terrible criteria for literally anything, besides a project having corporate support to ensure its survival
But most of this is a complex answer without a single tool at the heart.
it's not criteria, it's a question
Essentially. I enjoy ansible for more the documentation side of things. Which is one of the few strong points i can give to dockerfiles. As they describe dependencies and installation in a way thats testable.
Nix is for reproducability yeah. As every package is pinned to a "git" hash.
And with projects like NixOS, you can do quite insane things like move a system backwards and forwards in time without snapshots. And have automated rollbacks without complex utilities.
you can do that with BTRFS too
You just set the final system version hash to point to your last deployment, and the system will figure out the rest for you.
on any distro
BTRFS uses snapshotting.
Its like taking a picture of a house of cards, then breaking it, then looking back at your picture to remember how it was before.
Nix will know how it built that house of cards. And if you break it, nix can build you that house of cards again out of nothing.
uhhh, i believe that grossly oversimplifies it
BTRFS is readonly asterisk, and you simply delete nodes to get to arbitrary snapshot
Yeah im trying to give the essence of what the difference between btrfs snapshotting is and nix.
as name suggests, it's B tree
Yeah, you look back at what you had before, instead of being able to build what you had before.
also, not readonly
Thats the big important difference between the two.
Also btrfs has issues like mad with its features breaking drives and corrupting.
had *
Im interested to see where bcachefs goes instead.
has, it still destroys any drives you set as RAID 5 or 6.
Which might i add is nuts.
Like a oven that will catch fire if you put the wrong settings on.
which issues does it currently have
Really describes the stance the authors of btrfs has on its stability and usage.
I just said, RAID 5 and 6 are perfect examples.
I mean sure, it's a lacking feature, but it's explicitly instructed not to use it
Its not a lacking feature, it blows up SSDs and corrupts like mad.
that's why you don't use it
And you are proving my point of how the authors stance on btrfs stability is.
i think it's great that they are objective?
i don't see a problem with transparency
Its like saying dont use 5 and 6 on the stove as it will catch fire.
A file system should not regularly corrupt with its shipped features for a decade straight and be expected to be taken seriously.
Yeah ZFS is decent, if a bit complex. But has proven itself to not break and thats worthy of praise.
LVM + Ext4/XFS is the usual go tos.
... for linux that is.
The BSDs have it much nicer with using ZFS.
I don't know about popularity of XFS
I know Ext4 is the standard
can you have / inside filename of XFS? π€
I know you can't have / in EXT4
Its one of the most popular filesystems in the server world.
Built by Silicon Graphics in the 90s as a enterprise and performance oriented file system
Performance. Its very good at that.
But currently does not have the same flexibility as Ext4, which is why its not usually a default for many distros.
how good?
Best performance of essentially every metric you can measure.
Its quirk is that its very static after formatted. You cannot do online resizes (yet) is one example.
And its tooling is more sys-admin focused (read, meant for people who know whats wrong) than ext4's almost fully automatic recovery.
I know its a very common strategy to have boot drives be ext4 and storage drives be xfs.
There are also a good chunk that use ZFS for the storage drives, which is a valid option too.
recovery from what though
Power outages, system crashes, etc.
what exactly does EXT4 recover from "better" in case of power outage?
does it magically recover files that are stored in ram?
I'm struggling to understand
Mostly being more automatic. You will rarely need to drop into a recovery mode to fix ext4. It usually can self heal fully.
XFS can too, but can have slightly more issues that would require learning the command line tools.
Not an issue for those who run servers, but is an issue for those who just run linux to browse the web and play games.
No, ext4 is a journalling file system. It writes itself a journal "im writing block 4 with this data" before it writes block 4 with that data.
XFS is journaling FS too
Then clears that journal once it knows its complete.
Yeah.
When a power outage happens, it first reads its journal. And it can see that it still was writing to its own journal and it was never cleared.
I dont know the spessifics of how it clears it. But it uses the data in the journal to get back to a known state for all the files so nothing is corrupt from ext4 writing those files.
Like writing yourself a todo list, but then not completing the todo list until the next day.
Again, not 100% sure about how it stores the data in the journal exactly. So dont take my word for that part.
who is sofi
who is abdul
Who is who
youtube links without embeds on a channel where embeds are allowed are kinda sus
you know in your heart what video this is. trust yourself, for your instincts are never gonna let you down and hurt you
nice sentence ima golf that for you
"don't"
TIL VBA's InStr method which searches a string for a substring is not 0-based
instead of returning -1 or something sane for no match, it returns 0 lol
Some collections start with 0 some dont
Usually you use LBound because technically you could have an array like
Dim myArray(2 To 10) as <Type here>
This one doesnt start at 0 or 1, it starts at 2
Absolutely wild this language
man, old languages love their range types
you've been sending this messages across multiple channels, it's cross posting and can be considered spam. if you need help check #βο½how-to-get-help
sir i gone the help but they are saying we can't help in web development project
does D have a range type too?
hm
.topic
as a professional introvert, foosball
How can i link a url to my express app?
does anyone know?
Link how
i mean like
instead of it being localhost:3000
its a url?
like www.domain.com
Deploying an app is a whole thing, you might wanna ask in #web-development
you need to deploy it, repl or heroku can handle that for you for free real quick
You also need to buy a domain
oh alr ill yry thwm out
yeah i got a cheap one last year lol
Ok, you can throw it on vercel, netlify, etc
Most of these hosts have settings to let you add a custom domain
And you make them point to the one you bought
Anyone know how i can send/recive smtp requests? im tryna do something with emails and ngl google isnt helping at all π
generally, the best way to do emails is to buy gmail for your custom domain. Using smtp selfhosted tends to work poorly unless it is entirely internal.
ah
tryna make a temp mail thingy... it isnt going great π
i mean it does send emails using smtp.mailtrap.io but . yeah.....
ah, yeah, in that case, you probably do want selfhosted email
which is really annoying to do well
or at all tbh
I researched into it for a while and decided to just... not
i just need to be able to receive emails on randomly gened domains. after 3 days ive lost all will to continue
yeah, thats not a "just" kind of thing
wel lnot domains but like gibnmwiaf@domain.com
I believe mailgun is the closest thing to a simple way to selfhost email
i managed to find one on github called Ad-Hoc but it uses outdated node modules and doesnt work for me sadly
might check that out. it looked annoying at a first glace
true
why can it just be easy π
ig thats how everything is tho ngl
I choose to blame unix for this
though another part is just the simple fact that email predates malicious actors on the internet
blame em for everything
tru
Good night guys
@eager cliff
Skills:
-facilitating the expedient realization of priority actions within cyclical patterns
;)
I clock in, I work fast, I clock out, I'll work weekends.
At the bottom of the resume, in personal traits:
- Word smith
It got me a few interviews. Never got me a job worth having so all-in-all, not worth being clever.
branchless programming would like to have a word with you
Finally got access to Co-Pilot
Gotta show us your first generated code snippet
This is the code I've worked thus far, not sure what I'm missing here
Make sure to use proper quotes in password and security, looks like youβre missing one in both cases.
Pets pics go here? 
Look at my GitHub
Do you not see that the glasses in my PFP are the same?
Don't have one
im hitting on u
Why don't we all hit on each other
im not loyal.
Change your target to me uwu π₯Ί

Wtf
Cute glasses
Cute kitty. Doubt heβd get along with my birds
u put some catnips?
He would eat dem
No he just sleeps anywhere
cat moment

Nice
I rmr signing up for it ages ago
Then suddenly I saw it installed on my vscode
What does copilot do?
I didn't even know when I got accepted
Well it's a code completion AI
Thing is, it's built on people's open source repo's
Interesting. So you feed it some parameters and it outputs code?
I didn't even know such a thing was allowed. I mean they're for the pubic domain ig it's somewhere in the license but making an AI from ppl's repo's with no credit π
Maybe I'm wrong
You can legit just type a sentence of what you want and it generates code for it
On a smaller scale of course
Maybe they can opt in their repos? 
I wish
like i put some code and it autocompletes that
the difference with normal autocompletion is that it's whole blocks of code being autocompleted
That would be actually a good thing to do. Ask for consent. It would build trust in Microsoft
But they really could care less
Ethics aside, sounds like a pretty cool idea for small time code
It's neat. Although was super underwhelming initially π . I think people were actually expecting it to create massive scale stuff in an instant
Maybe once super AI exists
Iβd say once we get to that stage itβs gonna have the answer to life itself
Probably itβll have the ability to create immortality and maybe bring back the dead too
he's a boy cat. he's even the father of a non-zero number of other cats out there somewhere.
So it's his hands π
This is why I don't support small linux projects:
https://distrowatch.com/dwres.php?resource=showheadline&story=14624
why would anyone want Linux with activation required?
That's my question.
people bought thisβ½
I think so
the analysis approach is nice though
You mean the kernal eu link? true
yeah. thanks for that link! reading through their other posts now
np
<@&831776746206265384> ad?
Hello World 
Yes
That reminds me
Of Alphacode
Deepmind's Alphacode
U heard of it?
It can solve extremely complex problems
U input a paragraph of text explaining what to do
Wait whut?
So as i was saying
β€οΈ Check out Lambda here and sign up for their GPU Cloud: https://lambdalabs.com/papers
π The paper "Competition-Level Code Generation with AlphaCode" is available here:
https://alphacode.deepmind.com/
β€οΈ Watch these videos in early access on our Patreon page or join us here on YouTube:
Hey guys, I'm new here. In finding phone number location using python ( in that without using opencage geocoder for india what website we can use to show the map when they give any number its showing me that only the same state to everyone nd even the ip address is also same when the number changes what i can do) can anyone please hlp me.
Can u share ur code here?
yes wait
import phonenumbers
import opencage
import geopy
import folium
from myphone import number
from phonenumbers import geocoder
pepnumber = phonenumbers.parse(number)
location = geocoder.description_for_number(pepnumber, "en")
print(location)
from phonenumbers import carrier
service_pro = phonenumbers.parse(number)
print(carrier.name_for_number(service_pro, "en"))
from opencage.geocoder import OpenCageGeocode
key = 'c9476735f5a84051afe07940c60780eb'
geocoder = OpenCageGeocode(key)
query = str(location)
results = geocoder.geocode(query)
#print(results)
lat = results[0]['geometry']['lat']
lng = results[0]['geometry']['lng']
print(lat,lng)
from geopy.geocoders import Nominatim
initialize Nominatim API
geolocator = Nominatim(user_agent="geoapiExercises")
Latitude & Longitude input
Latitude = input("Enter latitude")
Longitude = input("Enter longitude")
location = geolocator.reverse(Latitude + "," + Longitude)
address = location.raw['address']
traverse the data
state = address.get('state', '')
country = address.get('country', '')
code = address.get('country_code')
zipcode = address.get('postcode')
print('State : ', state)
print('Country : ', country)
print('Zip Code : ', zipcode)
myMap = folium.Map(location=[lat, lng])
folium.Marker([lat, lng], popup=location).add_to(myMap)
myMap.save("mylocation.html")
!cod smh
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
I will check ur code later and let u know
okay thank you
i mean distrowatch isnt to be trusted either
theyre also crap
freecodecamp fire quotes π―π₯
Have u checked whether the phone number u input is valid by phonenumbers.is_valid_number(number)
then we wouldn't have to remember almost anything in the google era
imagine having to look up how brushing your teeth works, walking, eating,...
When deploying a page/website to GitHub pages, which branch (master or gh-pages) should I commit the source code to (in order to make the page updated)? Currently, I've deployed the page, but I'm getting trouble updating it.
Oh, I just actually need to redeploy it, no need to commit anything, alright.
look at my open source project: https://github.com/swfarnsworth/dynamicdict
it's like defaultdict, but less bad.
fancy
no self promotions stelercus
better than static method promotions
no
Download festival has this ad that plays Skindred - Nobody in the background and its triggering mad 2000s need for speed nostalgia
https://www.youtube.com/watch?v=wPW5b2rPn3M
I feel bad for kids nowadays that have not experienced games like this one
Skindred - Nobody (Need For Speed Underground 2 Soundtrack) [HQ]
Check the full setlist of this game:
FREELAND - "Mind Killer (Jagz Kooner Remix)"
Capone - "I Need Speed"
Chingy - "I Do"
Christopher Lawrence - "Rush Hour"
Cirrus - "Back on a Mission"
Felix Da Housecat - "Rocket Ride (Soulwax Remix)"
Fluke - "Switch/Twitch"
Helmet - "Crash...
I dont think I've gone far in that game
Last thing I remembered 7ish year old me do in that game was drive around a Mitsubishi Lancer Evo
good times
for real
@viral parrot what is MMo game?
What we have to do in that game?
so the full genre is MMORPG
you play a character that trough combat and skills upgrades himself to become strong and fight harder monsters and challanges
i dont know wht coc is
nvm
Ohh i see.
yeah, but about time π
@tardy rainhello
hello
ok
dragonflight content should have come before mists of pandaria, right after cataclysm
seems the most appropriate
storywise
yeah, but you know.. the wow story is a mess
i as well, i have read around half of the written novels
they are pretty good
from a fantasy perspective
i can speak from experience
what? I like regex
give me regex problems
right now
okay okay mister pandas
oh wait this is my self-promotion channel. let me find some regexes I've made
look at my fuckin regex
ent_pattern = re.compile(r'(T\d+)\t([^\t]+) ((?:\d+ \d+;)*\d+ \d+)\t(.+)')
event_pattern = re.compile(r'(E\d+)\t([^\t:]+):(T\d+)(\s+(([^\t:]+):(T\d+))+)?')
rel_pattern = re.compile(r'R\d+\t(\S+) Arg1:(T\d+) Arg2:(T\d+)')
equiv_pattern = re.compile(r'\*\tEquiv ((?:T\d+[\s])+)')
attrib_pattern = re.compile(r'A\d+\t(\S+) ((?:[TE]\d+[\s])+)')
norm_pattern = re.compile(r'N\d+\tReference (T\d+) ((?:[^:])+):((?:[^\t])+)\t.+')
i don't wanna see regex porn
too late!
Help <@&267628507062992896> stelercus has gone mad!
ping?
it does though
yes it did
it does ping π
although it's quite empty
^\D*(\d+)\D+(\d+)\D+(\d+)\D*$
```this is what duckduckduckgo uses to parse answers, and I think it's about as aesthetic as you can make regex
Can confirm, it pinged
you know you are a regex god when you look at a pattern sequence and can come up with a string that matches it
traitor
that's a pretty good ratio
but you should try to catch this ratio ποΈ
#roadto50k
@jovial sierra I don't know if you've ever seen these before, but some editors can actually provide really helpful type hints inline
I don't know if there's a VSCode extension like this for Python, though
sth like that?
all those things with darker background are entirely generated by the editor
I did not write those
The : String, TOKENS, Option<&&str>, etc
this is always my example of type inference being presented nicely
Option<&&str> π³
I just wrote random code until the compiler stopped being pissed Β―_(γ)_/Β―
random code 
rust moment
well thx for the help, unfortunately gotta dip now
why do you have an Option<&&str> lol
idk I wrote the code some months ago and tried random shit till stuff worked
TOKENS is some lazy_static'd hashmap
why can't you use child.name.as_str() as the key lol
ohh, you put static strings in the hashmap
yeah
wow
what are you people even talking about
read my paper: https://pubmed.ncbi.nlm.nih.gov/34920128/
Systematic reviews are labor-intensive processes to combine all knowledge about a given topic into a coherent summary. Despite the high labor investment, they are necessary to create an exhaustive overview of current evidence relevant to a research question. In this work, we evaluate three state-of- β¦
how do you read the whole paper
I don't really know why you would want to, tbh
because I have nothing better to do
paste the doi in scihub
Steler, thank you. I am going to print this off and use it as wall paper. I will be pondering on it for years to come.
in general, algorithms that use embedded representations of the sequences out-perform statistical algorithms, but that even these algorithms struggle with lexically diverse entities.
just let that sink in
:ok_hand: Added stelercusβs-lexically-diverse-entities to the names list.
what a great day of high-effort shitposting that will be
lol
@jovial patrol phonenumbers doesnt give u the exact location. It just gives an overall location of the country. Use a united kingdom phone number (beginning with +44) u will see a different location. I see that u input a Latitude and Longitude. Why aren't u using them to make ur folium map?
yoo
!pypi dontimport
rex try not to use :kekHands: challenge (impossible)
count me in
.wa Bertand's
Hello, good morning. I'm seeking ideas for input to my py program to see how it handles it. My py program can accept .png, .jpg images, as well as .gif, .webp, and .mp4 videos. The output is the image or video, displayed via terminal. It works really smooth with (classic) video game pictures like items, npcs etc, or any other picture/photograph as long as the resolution is fairly low or detail is fairly low. for videos, the should be fairly short. ~1 min (so I can record the output). images are easier but if you have a video in mind, ping with link to either and i'll post result
I have tested it extensively on some sample images but could use more variety, and some feedback to make improvements
https://www.youtube.com/watch?v=9lNZ_Rnr7Jc
well, there's a classic video for such uses π₯΄
I did a montage of the video "Bad Apple!!" to go with the full version. The song is sang by Nomico and made by Alstroemeria Records.
At some places, it's not lag. It's just the video that is slow down.
==How to see the subtitles (updated on July 3rd, 2020)==
Those who are not familiar with the YouTube Captions, you just have to press the setti...
if you want an easier download, there is https://archive.org/details/bad-apple
interesting, so is this a well known sample set for media processing
there's probably like a gazillion ascii/led display/whatever versions of it already, too, so you can see how yours compares
I'd say it's more of a meme to show this on everything π
cool, one second
e.g. I've seen it done in factorio: https://www.youtube.com/watch?v=tihwC6FLB3E
so around 2x realtime speed?
what takes the time? resizing each frame to a size fit for terminal? or is there fancy color stuff going all?
Do you use 256 colours or rgb?
support for 8bit (256) colors, as well as truecolor (16million rgb) and 4bit color (16 colors <-- WIP)
so for the videos, the loading time is for each frame being converted from pixels to ANSI characters. for single images it's instant with truecolor and with 256color it takes less than a second or two depending on the size of the output. resizing doesn't take long, the longest aspect would be the RGB to 256 color conversion which can be used for images or videos. if I were to enable that on a gif it would take pretty long depending on the length of the gif
uploading output now btw
Hmm, interesting
upload keeps failing to discord, i'll put it on a site
didnt record whole thing, just so i could upload
so a few thing sto mention regarding the video
thats 50 characters tall and 50 + ~30% wide (optimization for width)
i could actually zoom out
and make it higher resolution
but that defeats the purpose
and the lines that keep appearing don't occur as often if i'm not recording my screen
basically what takes time is each rgb value has to be compared to a list of 256 rgb values to calculate a distance between the target and each of those 256 values, when that is finished, the color with the smallest distance is the closest color to use for that pixel
Ah, I see. Are you doing that via numpy?
no i'm currently making use of the euclidean technique for determining color distance, so this function is decorated with jit/numba to speed it up by more than 50% the rest is done with dicts and min()
Hmm, feels to me like numpy would be faster simply due to vectorization. But an even faster way is probably Pillow's Image.quantize, which can use one of several backends including fast oct-trees and some libimgquant library.
https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.Image.quantize
quantize eh, i have not saw this method. I am using PIL so taking a look. definitely would like to make more improvements around processing time
LOL WHAT!!!
Convert the image to βPβ mode with the specified number of colors.
Parameters
colors β The desired number of colors, <= 256```
i can't beleive it
i searched and searched for this, never came across it, even in PILs own docs..
so i ended up writing it the long way
at least something learned along the way xD
well i originally wrote it for 16 color, then converted to 256 color, so kind of makes sense
this only does >= 256 color
Is there a reason .quantize can't do more than 256?
well, when you get down to 16 colors
most of them turn out grey
because out of the full rgb range, when its narrowed down to 16, mostly everything is grey unless an algo is used to determine color of surrounding pixels
ah, right, yeah, quantize only works for <=256
because it uses a single byte per pixel in the output
but maybe it's a pillow-only limitation and libimgquant that it uses under the hood can do any?
haha lmao
when I google names on libimgquant functions, google, instead of the docs of the actual library, gives me docs of the Rust bindings to it π₯΄
Nope, it looks like libimgquant only supports one-byte-per-pixel too.
@rigid ibex
I think another way is to use any k-means clustering library, like scikit-learn or whatever.
oh my mistake, i thought quantize was >=256 not <=256
cool
messing around with it now
ah, now i remember.. I did deal with this before. so converting to 'P' mode or using quantize works well, and Image.show() produces really accurate results. converting it to ANSI seems to throw every single color off to something random. it almost seems like they're using a non standard color look up table. again, Image.show() works as expected but direct conversion of the 8 bit pixel colors to ANSI 8bit just produces an image WAY off
and analyzing the 8bit colors themselves via text, they represent the colors shows in terminal being way off, according to xterm256 or other standard color loop up tables.
it almost seems like they're using a non standard color look up table
The returned image should have them in an attrribute.
.palette
if you need a specific palette rather than an autodetermined one, then you need to pass it to quantize
and I think you do (you have 256 very specific colors)
yea, so the ImagePalette class just accepts and stores integers. the palette parameter to quantize accepts an image rather than a palette and using a palette from the image. what I don't understand is if I either build a palette image with 256 colors, but what does this have to do with associating the colors to the right integer..? or if I try to use Image.palette, how can I make use of this data, its a list of bytes or ints, doesn't tell me what color is associated to which value. sorry to keep at you about this, but now that i'm here i may as well try to implement it correctly to measure its effect on processing time.
π΅βπ« can not figure out how to associate a mode "P" palette with RGB values. there is no helpful info
ye wah
def isValid(s):
stack = []
for char in s:
print(stack)
if char == '(' or char or '[' or char == '{':
stack.append(char)
else:
removed = stack.pop()
if char == ')' :
if removed != '(':
return False
if char == ']' :
if removed != '[':
return False
if char == '}':
if removed != '{':
return False
if len(stack) != 0:
return False
return True
isValid("({})")
why is it that stack will be ['(', '{', '}']
why would } be added to the list?
Iβm newbie but Becuase you append char
but i thought i checked if char == '(' or char or '[' or char == '{'
so shdnt it only be appended if it's these 3
Hm ur right give me a sec
!close
@sick stream the simplified code ```py
principal = float(input("Starting balance (in $): "))
print("Compounding Intervals")
print("[H] Hourly")
print("[D] Daily")
print("[W] Weekly")
print("[M] Monthly")
print("[Y] Yearly")
long_name, comp_fn = {'H': ("Hours", 8760), 'D': ("Days", 365), 'W': ("Weeks", 56),
'M': ("Months", 12), 'Y': ("Years", 1)}.get(input("Enter compounding intervals: "), ("Invalid input!", 0))
if not comp_fn:
raise ValueError(long_name)
else:
n = comp_fn / float(input(f"Compound every X {long_name}: "))
t = float(input("Duration of interest earning in YEARS: "))
apr = float(input("Enter annaual interest rate (%): "))
final = principal * (1 + float(apr / 100) / float(n)) ** (n * t)
print(final)
Ask your questions @tulip patrol
ok ok
first of all, I'll ask you your name and please just bring up a fake name because I really hate to lie personally to my teacher
ready?
okay
acutally nvm I'll just lie
ok
so
What educational route did you take to arrive at this career?
My name is Preocts.
My education was High School graduate, a few years of general studies in a community college. Writing, remedial math, and history. The basics.
Interesting. So you believe this level of education was sufficient enough for pursuing your job as a software engineer?
As a former Senior Business Support Specialist turned Application Engineer turned Software Engineer... yes.
These are quite the transitions. How hard was it to make these transitions?
It took ownership and leadership of my own goals. I didn't "stay in my lane". I constantly sought out new challenges, worked with teams across the company, and made a brand of myself always being involved with the solution to business problems.
I think it's summarized by: Motivation and passion.
Wow, I really like the way you think
So it seems you were strongly motivated to get these jobs
What is the most fulfilling aspect of your job?
How did you begin with actually getting the job?
I've been applying but haven't gotten any luck so far
Did you do remote or in-person jobs?
Two fold answer. The most fulfilling aspect of my job is impacting the outcome for my clients. My clients are any affected by the technology I own, support, or interact with. I rarely, if ever, meet them these days but I know they are there.
Second, lesser, motivation is my love a challenge. I am never without something to solve and it's fantastic.
I got an internship at a "local" (4 hour round-trip drive lol) tech company. The opportunity came from the local community college where I was chatting with the Director of technology. He invited me to this tour, they took my resume while I was down there, and the rest somehow worked out.
Today I work full-time remote.
I'm being motivated just listening to you wow. If I was a job interviewer I would hire you on the spot haha
Do you think that the demand for software engineers is increasing or decreasing, or relatively constant over the years?
I have 25 years of retail experience so my words have a long time to fill up with my passion for customer service. Even though I'm behind a desk today, hidden away from the clients, I know they are there and know my actions directly impact their experience. Makes me smile, reading the client success stories published each week from the business.
Increasing. Faster than companies can support, from my point of view.
No doubt. I really like your mindset. It seems that your job is like a mission and its success is what you seek.
That's very good to hear, especially coming from somebody who is in the industry.
Thank you very much for your time Preocts, I really appreciate it and I no doubt learned a lot from here.
Seriously though, not even for my school homework, this was quite inspiring.
Thank you!
β€οΈ β€οΈ β€οΈ β€οΈ β€οΈ
Agreed
this is good advice but we recently had an intern where i work that tried to do this and failed every step of the way
guys do u like cactus?
To say of what is that it is not, or of what is not that it is, is false, while to say of what is that it is, and of what is not that it is not, is true.
the second part of this sentence is true but the first part is false
if i am lying but i tell you the truth am i lying?
What language is this? Greek? Harappan?
If Hemlock reacts to this message with
I'll change my name to HRLO77isnotwack, but since he won't, I don't have to worry.
; )
darn
guess i am no longer wack
Ironic
Does the Python bot DM users when they get banned, kicked, muted, or warned?
yes, unless they have DMs off
Thank you.
hiding member list seems lonely like a group dm lol
It's not easy and I openly admit that my past experience helped me excel where someone without experience might have to figure it all out. In leadership it gets called "building your brand". There are good brands and bad brands. Luckily, you aren't stuck with the brand you have. Unlike first impressions, they can (and do) change.
Just finished solving my maths worksheet π
Why do some people use Firefox instead of Brave?
because they like it more?
yea but for what reason
brave's creator also has history of being a shitty person iirc (I think that was brave)
many
the person who also created JS?
yeah I think so
hmm
I mean some people say it's bloat and stuff
but you can literally disable everything
if you want to
you're asking for too much reasoning
I use firefox because I have no reason to switch to anything else
so I don't get why people dont use it. Privacy? Both have it. Performance? Brave's faster. Extensions? Brave has more
right
so you just started with firefox, and kept using it?
yes
Yea that's alright
honestly, braves scandal with redirects and binance.us is enough to sour any interest in using it for a lot of people
because I don't really care what the fuck my browser does as long as it takes me to the sites I need and renders them correctly
indeed
But
firefox gets so much love from the linux community
and I still dont get that lol
that wasn't it, brave just simply redirected all binance.us accesses to their referral link for about 12 hours before the inevitable backlash
it also is the default and preinstalled on most
Yes, but if I don't install it I never have to disable it. :) Any Opera GX fans?
because it is only thing that makes the web a standard, rather than a google product
an open source google product, sure, but a google product nontheless
represent
I mean, like, I don't mind if google is getting my data and stuff
and honestly, I consider brave rewards unethical.
It's used for better search results
this isn't about data
this is about chrome and firefox being the only 2 browsers
no one else (except apple) can implement a web browser at this point
I mean
it is quite literally impossible
Firefox had some problems with rendering websites
and it uses somewhat more ram than brave
so does chrome, for some reason
yes, welcome to google doing nonstandard garbage
Yea I've heard that
some websites used to not even LOAD with firefox
because of some shitty stuff google did
but google is also supporting firefox
so I don't get what they are planning
wdym by this? do you mean implement a web browser that people will actually use?
(financially)
no, the web standards innovate faster than any programmer team can keep up
right
not taking over all web standards, thankfully
yea
ah right
and also, firefox is just better when it comes to profiles
I've tried using firefox, might try it another time too, but generally it's... idk... for example on android I can't use native dark mode
sure, brave has more features
subjective though
no, fairly objective, unless brave somehow managed to have profiles not bound to windows like every other chromium browser
I mean, I do like mozilla generally
first of all, js wiki
and
rust
and trustable as hell
but uh... google's actions on trying to bring firefox down, has been kinda effective
might be able to endure it though
the simple reality of the matter is, every single major browser is good enough for just about anyone
there aren't really any killer features you can have
yea I can agree with that
but some small problems
would be annoying if repeated
ok trying firefox take 2
a similar question is "why are people using chrome over edge"
microsoft has always been sketchy I guess lol
no way I can trust Microsoft, even though I trust google for reasons
Spoiler, if you're using windows you are trusting Mircrosoft.
yeah, that seems like a moot point considering windows
I do use linux mostly. windows only for gaming
and animation/music prod
(i've tried all the alternatives, not as good as windows' ones)
I mean, the reason there is fairly obvious, MS has a history of pushing shitty browsers
yep
still a shame old edge died tbh
it was one of the first (the first even?) browsers, but didn't catch up with the industry
it was the closest thing to a third browser engine the world got
yeah
edge was very standard compliant, but it wasn't chromium
so it just didn't work a lot of time
yea that's understandable
since well, web standards are obtuse and bloated, so the only way to actually write websites is trial and error
you can't write standard-compliant websites, because the standards are incomprehensible
more or less
independent, funnily enough
ye, based on the same thing, but different
nice
apple is keeping up, since they are literally apple
but they aren't really relevant, since you are either forced to use safari, or can't use safari
macbooks do
every browser on iOS is just a layer over safari, isn't it?
but really, safari is just better on mac
I see
Firefox is actually decent...
Last time Twitch didn't work
now it's working
youtube had bugs
not the same bugs now
i like firefox on android





