#Programming & Computers
1 messages · Page 3 of 1
or just use eap versions forever
frfr
i don't feel like any real programmer uses real debugging tools
unless you're trying to figure out why something segfaults in C
I used to code in an environment where debugging tools didn't exist
so
it was just prints
for days
sometimes reading MC's code just makes me go 
what are these names, x, s, aa , w s and z
it's like they didn't even try to come up with good names for them
ffs mojang
unless something has changed since i last used mcp, thats not mojangs naming convention
its decompiled code that the devs behind the tool to do so (used to be mcp back in the day) havent named
or else every class would be like il.b and every var would be string1 int2 etc
hmm, but i used Mojang's official mappings
so that's the part that's just confusing
maybe they don't provide mappings for these specific variables but if they dont then that's just weird and dumb imo
ah didnt know there was official mappings now
maybe they use the same kind of system idk, but to me aa stands out as a decompiled var name
yeah that's nto too bad but when your for loop is like
for (int l=j, l<k, l++)
it's just like
????
what
yeah that's acceptable
this causes me to die on the inside
i mean if you're doing coords or something it's okay
usually i just do like for plane in cube { for row in plane { for item in row
if im gonna go like that route
well i havent done cube... yet
bu i have done the inner 2
is this not the norm?
I don't believe that this is the norm, at least
using single letters in restraint is like, okay, though I'm not a fan of it
i only use single letters for like one liner lambdas/closures/maps, or as the loop index
[lambda x: x.name for x in list] is pretty obvious i think
like desktop environment
only window manager and whole bunch of bash scripts i wrote
that is certainly a way
custom fork of dwm to be exact
tbh, i didnt' even know what a window manager was until i was looking at a DE on the arch wiki and it said you weren't able to change the wm for it
makes sense
at least i know the difference between distro and DE
which google sometimes doesn't 
yeahh
googling good DEs to give a spin and it says "did you mean best linux distro"
tho if you dont have a desktop environment, does that mean you don't have a task bar and stuff?
I like not having any de because I know exactly what happens at all times because I wrote everything myself
ig thats fairly reasonable
I have like a status bar that show battery and clock and other stuff
i use same setup on desktop too
i guess it helps
though for my 7 year old laptop that i have that im not using rn, it probably wouldn't help that much anymore
that things battery lasts for ... 1h20m on windows
... idling
💀
the only good looking DEs i wanna try (after i switch from cinnamon in a week or so) is like budgie, or cosmic 2
and cosmic 2 isn't really in prod yet so 
this is somewhat up to date
im a yay user personally
I used yay before it's not bad
what makes it bad tho
ohh
you meant those as different sentences
i thought you meant it became bad
do you also experience the thing with flameshot where sometimes the window you're focusing disappears when you go to take a screenie?
nope
maybe this is just an nvidia thing tbh
i feel like i run into a lot of issues cause of nvidia
could be
that's why i'm gonna swap it with an amd one when the thing i ordered arrives
last part i'm upgrading
what you getting
amd RX 6700 XT
noice
it'll probably save you a lot of headache
yeah
after i installed proprietary drivers and bricked my os, my decision was already made in my head
de just works™️ if you don't feel like making everything from scratch
yee
the other thing i'd be interested in is making my own DE, but that's a massive time sink i assume
like there's not much point doing what I'm doing I just find it enjoyable
that's reasonable
well that's basically what I've done
isn't it just a bit more spread out?
DE is just a bundle of software and scripts made to work well with eachother

writing bash one liners to do stuff because you wont have clipboard access when you start reinstalling everything on your pc is fun
i have linux to look like windows 10
I wish I used Linux but my parents are paranoid and I can't do anything while I have an active warranty

missing kde plasma
proton was a bit of a pain tho so I'd have to dualboot
based
thinking of using fedora gnome this time tho
as apparently fedora kde isn't the best
kde is definitely better than gnome
yeah I know that
but like apparently the kde experience isn't the best on fedora
or so I've heard
@obtuse coral from left to right: workspace selector, current tiling mode, window title, bluetooth, wifi, ram, cpu, volume, brightness, battery, kb layout, date and time. Every block is a bash script much like the one i have open (for battery) ran in a loop
didn't use Linux in forever
leroy you use linux?
huh
TIL
ahhh that explains a lot
Linux is wizardry for old hardware honestly
my dad had an old af acer that I installed Linux mint on bc windows barely opened anything and it was like new
yeah when the warranty for my computer ends I'll dualboot as well
windows for games and Linux for general use
or well, at least I think I'll do that
I'm very lazy
yeah the only issue is games working worse on Linux in some cases
like valve games aren't an issue but stuff like say idk Destiny just plain doesn't work because Bungie is dumb
or games that rely on dosbox like the steam copy of tomb raider 1996
anything with anticheat or drm usually doesnt work
lmao
isn't anticheat just an EAC issue
apparently battleye works great
mhm
yea
like I remember tim sweeney admitting to just not trusting Linux users with EAC lmao
like outright admitting his product does not work

the hacker font
its actually jetbrains mono
actually🤓🤓
to be honest i think that we should never make general artificial intelligence
Honestly, safer that way. Altho taking all biased humans out of the mix kinda also sounds like a good idea...
i just think making anything smarter than us will innevitbly just lead to the destruction of the entire human race
sure
I for one welcome our new robot overlords
I setup the entire neovim experience from nothing to LSP!
REPO: https://github.com/ThePrimeagen/init.lua
chapters
00:00 Introduction
00:35 Init.lua - Your First Files
02:23 The First Remap
03:43 Plugin Manager and Fuzzy Finder
07:07 Colorscheme
09:08 Treesitter
13:30 3 Must Have Plugins
18:06 LSP Setup
21:33 Editor Settings
24:24 THE BEST ...
very important question
1️⃣ compsci
2️⃣ comsci
comsci sounds wrong
at my school they say it like cmsc, bu they're weird
3️⃣ cs
Ahh but now the real question:
1️⃣ [comp-ski]
2️⃣ [comp-sigh]
Or 3️⃣ CS

who does 1️⃣
I do 🙃
competitive skiing
ez fix, just be a mathematician too and have the greek keyboard enabled 😎
HEARTBREAKING: Software engineer has to turn around, take out one earbud, and say "huh?" when someone asks them a question even though they finally got in the coding groove
8264
648
ive never related to a tweet more in my life
Literally every day when I'm at home 🥲
"These are noise cancelling so you're gonna have to repeat your question" 🙄
mood


hello programmer here
programmer where
programmer over there
Look at the mirror
all i see is a clown 

why does setting up backups have to be so painful
wdym
i just used backblaze and made a shell script use b2 sync on my config files etc
ive got the backblaze personal client thing going
but to backup my wsl stuff ive got a script inside wsl to rsync my stuff over to windows, which runs once a day via the windows scheduler
no idea where all this stuff is coming from tbh
no i mean
i dont know why i have 400gb of stuff
i excluded all my local music files, shadowplay recordings lol
wait you guys have backups
figured i may as well start doing so now i have good internet
i have a little sync server going to sync files between my laptop pc and phone but it doesnt really work as a backup since deleting something deletes it off every device
that's how i set up my b2 syncing as well
tbh it might just be due to program files LOL
if you include web browsers like discord etc it can already go into the tens of gigsbytes
was expecting to just choose what folders to backup
i like to use the command line b2 tool due to that
b2 ends up more expensive than their personal backup service so i figured id just go with this
or am i dumb
i just wrote my shell file like
b2 sync --delete ~/media b2://backup/media```
i swear i saw something like $15 for 10gb
I don't believe it's that expensive at all
per TB??

the only downside of b2 as far as i can see compared to s3 from what I've been told by others is that the server is a bit slower when it's under stress
so you'll wanna backup at like... not midnight gmt0
my 75gb volume is costing me 3e/month and the sync vps is another 3e
but the beauty of my syncthing solution is that the syncing is nearly realtime
I can take a pic on my phone and look at it on my pc few seconds later
yeah
for the fab stuff on mega i just use megacmd to sync
its pretty cool
i should probably copy that into this backup stuff at some point
normally syncthing is just peer to peer syncing, but having one of the peers be always online linux vps makes it almost like a cloud storage
And i can access the server's dashboard through my own domain
sharing is per-folder so for example I dont share my code to my phone because that would be useless
now If i wanted a real backup I could have nightly backups from this central sync server to backblaze though
which is probably something i should do

i have to do 25 or so programming exercises in the next 26 or so hours
you massively overestimate my skill
i also have to record a 5-10 min video about pointers because apparently i have to do this in a programming class
youre in a programming class and cant do fizzbuzz?
i-i don't know what fizzbuzz is
its a dumb little gotcha exercise that companies do
im in my first year of uni
Fizz buzz is a group word game for children to teach them about division. Players take turns to count incrementally, replacing any number divisible by three with the word "fizz", and any number divisible by five with the word "buzz".
i am ready to consume the wrong amount of caffeine in my four year adventure
fizzbuzz is like next level from hello world
Don't forget pop!
24h 52m before deadline
pointers seem like arcane magic
funny thing: my professor does not allow us to yoink code from the internet
which, and correct me if i am wrong, is exactly what actual programmers do?
yes
aha
we literally wouldn't survive without stack overflow
it's such a stupid limitation
yeah that but its abit jank
me when i write the jankiest code possible so i wont be suspected of copying from the internets
if it works it works i wont touch the code
its what you do when you want to get things done, but it's not a great way to learn
fair enough
plus you have to actually know what the code you're copying does lol
this is what I get for promoting arch linux to my coworkers 
Mood
i love c (no i don't)
i love c (rustc)
We are all so good at lying to ourselves 🤠
rewriting the specifications for my code 700 times till I find something I actually like:
Lol
4 days later, it's almost done
backup once a day????
may as well if its only gonna take a minute while my pc is on all night anyway
i was gonna setup b2 and make my own scripts for it but figured i was already half way through this upload
try this out for a bit and if its meh then ill do b2
already dont like how it absolutely kills framerates when its transmitting while ingame
its the backblaze personal backup app
how do you have 500gb of stuff to back up
i genuinely have no idea where its all coming from
i excluded all my shadowplay, local music and assorted video folders
are you backing up system files and such aswell
yea it forces you to
did you exclude steamapps lol
i think this personal backup thing is meant to be like one click solution so they dont have much configuration you can do
yeah seems so
I dont see much point in backing up system files personally I just backed up pictures/videos/documents/source code
which totals up to around 60gb
it's fun trying to figure out how to fix my code when i don't even know what the problem is to begin with
apparently i have a segmentation fault somewhere but i cant find it
if/when you get a programming job you'll soon find its not fun at all
yeah i should rephrase that
i am not having fun, this exercise is due some nine hours from now and i cannot find where the segfault is coming from
if in doubt, put console logging everywhere and youll see which ones dont trigger
if you dont have a debugger that can do breakpoints that is
...what's console logging
what language are you using
just a function that logs to the console/stdout
console.log(), system.out.println(), print() and so on
c
printf("logging to console")
so are you telling me to just put that in every other line of code
thats what i do when i cant be bothered setting up breakpoints
just like printf(1), printf(2) and so on, then once it crashes you'll see where it got up to
it's like
this online compiler im using runs the code fine but the online judge where i have to submit the code to says RTE (segmentation fault)
im not a c guy but maybe check the compiler versions
yeah that would make sense
should probably be using an ide configured for the right version too
that would pick it up before you even run anything
update: i did it
turns out the problem was that i didn't assign a value to a variable so the literal fix was
int x to int x = 0
the fact that code compiled tells u the quality of C as a programming language 
and that there's 0 real error handling it's just segfault
c moment
if i have to use c next sem i will cry
i wonder if it's a valid strategy to write ur code in rust, compile it, and then decompile it into C
its 5:38pm and i havent done a single minute of work today
i feel like i don't put enough effort at work (wfh has made me lazy), and i see my friends coasting at thier jobs too, and idk that's just normal now
yup, wfh does that
my first two positions were remote for about 3 years and had motivation issues
then moved into the office for 18 months, was pretty motivated
then back to remote for the last 18 months and never been lazier
im still in school, but have been interning at the same place for 6 months and now i start full time tomorrow and idk if they think im slacking or not
if no one has pulled you up on anything then you're probably fine
idk what kind of company you're at but at mine it's more about the quality of output than quantity
like if i get a solid, productive 2 hours in, that's much preferred to a "typical" 8 hour day
that's almost like the same for me too, but i have a few seniors in my team that do insane amount of work and it makes me think im cheating
since you're coming off an internship, you could always just ask a higher up for input on how you're doing
even at my most productive, i've never done a full balls to the wall 8 hour day
i think i should
i wouldn't worry too much. a few years in the industry and you'll very quickly realize that a full 8 hour day is simply unsustainable
otherwise you burn out way too quickly
and impostor syndrome is incredibly common
Go to https://ExpressVPN.com/REEVES to get an extra 3 months free on a one-year package! Brought to you by ExpressVPN
boxing
also did you guys see they have Mr. Beast in fortnite now
other places:
https://twitter.com/michaelreeves
https://www.instagram.com/michaelreeves808/
music:
computer talk - austenyo
the king is back
easily one of his best videos
yeah
for sure
when he suddenly cut to the entire contraption i was like what the fuck is this madness
yo
?
It does make things very nice and readable which we like
thats supposed to be the purpose of a high-level language
Tell that to something like js
Yeah so what you read isn't what it does smh
well, ts usually reads fine
This is truer
just dont get yourself into type def hell
I like it there
not a low-level language
low-level language would be something like LDA181
Assembly language
01011001 01100101 01100001 01101000 00100000 01110011 01101111 00100000 01100010 01100001 01110011 01101001 01100011 01100001 01101100 01101100 01111001 00100000 01101110 01101111 01110100 00100000 01100001 01101100 01101100 00100000 00100111 01101000 01101001 01100111 01101000 00100000 01101100 01100101 01110110 01100101 01101100 00100111 00100000 01101100 01100001 01101110 01100111 01110101 01100001 01100111 01100101 01110011 00100000 01100001 01110010 01100101 00100000 01100011 01110010 01100101 01100001 01110100 01100101 01100100 00100000 01100101 01110001 01110101 01100001 01101100
(it's just text - it was funnier in my head)
nah it definitely takes some getting used to
the fact you're not allowed to have unhandled errors can be inconvenient at times, but that feature is extra handy when you're doing something like making a Minecraft mod so you know you're never gonna crash the game unless you do cursed shit which people definitely do
dw there is always a way 
definitely
16 seconds · Clipped by Joinemm · Original video "🔴 LIVE 🔴 TAILWIND DRAMA" by ThePrimeagen
arch users called out
bruh
Ubuntu is for 👴
I'm sure Ubuntu users are having fun having to compile new Python versions everytime one releases
LMAO
nice
im supposed to add logging to the user flow of an angular project but i've never touched angular in my life and this is extremely confusing
metrics
angular is just a reactive ui lib
if you want to add a metrics logger then you can but its not required
we need user retention metrics
in house
you'd probably want to be hooking into the router so you can log page views
i havent done anything to do with angular but i believe vue has a way of hooking into the tab/page browsing away or closing, so you could hook into something like that to get an exit event
god this looks horrific, no wonder ng is falling out of favor
looks like you'd want to use something like that to get info about the route and send it off to your service
sometimes i think about how my professor copied the questions of our exam from geeksforgeeks
just getting you ready for the real world where you copy your work from stack overflow
its funny because some guy confronted our teacher about it, got the exam canceled and rescheduled, and then the prof just gave up and gave us full marks afterwards
wtf
Incredible - are all CS departments the same?
They had to send a threatening department-wide email within 2 hours of our online exam starting last year because they'd already found some ppl posting the questions online. 🤭
just realised I wasted the last 2-3 months on an idea that fundamentally was over complicated for what I actually needed to do
brainspark moment curse & blessing
anyway my code is half the size
just killed off half the "dead" code
and... it works the same
getting over sunk-cost fallacy actually huge 👏
sunk-cost fallacy is the worst in programming because its so real
like you could easily spend 6 months on an idea and then you realise that there was something easier all along
its like the most extreme sunk-cost fallacy time wise
I took a 1-2 week break due to exams
turns out thats what i needed
maybe also going to the gym has cleared my mind
i spent 2 weeks writing some middleware and then got rid of it and started from scratch again. my pr went from 4k+ loc (still failing tests) to 1.5k loc (this was my only huge pr ever) . Sometimes you have to let go, the sooner the better
its some pretty complex math stuff so its hard to know you're wrong until... you're wrong
Guys I need to buy I new laptop cause my currently one is about to die. But first a need an opinion about this one:
https://www.pccomponentes.pt/hp-250-g8-intel-core-i5-1135g7-16gb-1tb-ssd-156
depends on what you want to do with it but looks decent, won't game or graphic much but more than enough for everything else. I've had bad experience with build quality of HP's non-business series laptops, their hinges die out, but otherwise they do pretty good
Fuck I also have bad experiences with broke hinges but not in HP laptops
I don't play games so that's not a problem for me. I only use for office work and watch content
see if you can find a refurbished thinkpad somewhere
Are you talking about Lenovo?
yeah
I've never seen one. And If I buy a refurbished one I want to see it irl to look how good/bad it is
there are stores that sell used office supplies, usually laptops too
but if you want a new laptop i would go with a lenovo yoga or something
new thinkpads are too expensive
Lenovo yoga are too expensive here in my country I can't afford one
highly recommend looking up companies that handle liquidations for offices
was offered a herman miller for like $400 but i already had all my stuff freighted
yeah then i would recommend office surplus/refurbished
Noted. I am going to looking for a store outside my town
something I have been working on
fraser back so programming chat is now active
how many years did yall take to master your respective language?
um
does anyone know how immediate value encoding in assembly works
they trying to encode a 32 bit number in 12 bits
which is impossible
so instead they use 4 bits to rotate? the remaining 8 bits
and thats all i understand,,,
for some reason hex 102 is an invalid number
idk why
ask chatgpt
i'm not gonna lie it took me like 5/6 years to start to feel confident in what I write being good quality code (where I am now)
also chatgpt has gone so downhills since it released
i physically cringe when i look back at old projects
it honestly couldn't be as bad as what I wrote when I was learning how to program and refused to use data structures
javascript: what are data structures
like 400 variables and 2000 if statements oops
i definitely have improved 2 billion times over
i should be less lazy and fix the code i slap together in 5 minutes though
have to refactor so much because my code is so messy the first time
lmao me right now working on a project in prod
build mvp -> dont have time to do things properly -> features get added to mvp -> mvp starts to fall apart -> refactor entire project while it's running in prod

does it tho
i only cringe when i see old code from myself
dont you feel a sense of achievement
or accomplishment
most of the old code i read has been really bad, but maybe someday i will
yeah that's the point it's so bad and now you realise it's bad because your knowledge has increased
see, sense of improvement and achievement
are u still in college rina?
for a few more months yes
didn't find any other appropriate channel to post this so uhhh
I present to you
chair thing
took me only 2 all nighters to figure out
ayy nice. i remember during college when I did an ff8 Gun blade model using Solid Edge
woah
me making the ugliest code imaginable:
(it works tho)
commits to github
posts github link
"will add readme soon"
never adds readme
how I added an email address to my website without getting bot spam from crawlers: just encode it in base64
const Email = ({ encoded }) => {
const [realEmail, setRealEmail] = useState<string | null>(null);
useEffect(() => {
setRealEmail(Buffer.from(encoded, 'base64').toString());
}, [encoded]);
return realEmail ? <a href={`mailto:${realEmail}`}>{realEmail}</a> : <a>{encoded}</a>;
};
god react code looks like ass
im so used to it already that i kinda like it
at least i like it more than angular or vue
i hate jsx so much
lol why
mixing html and js together
awful
the industry will take my vue sfcs from my cold dead hands
i like the fluidity of it I can just return some html fragment and not worry about it
does react not have computed properties?
i think useEffect is akin to vue's watch(), so to me watching a var to update something else like that is really weird
<template>
<span v-if="encoded">{{ encoded }}</span>
<a :href="`mailto:${email}`" v-else>{{ email }}</a>
</template>
<script setup lang="ts">
import { computed } from 'vue'
const props = defineProps<{ encoded: string | undefined }>()
const email = computed(() => Buffer.from(props.encoded, 'base64').toString())
</script>
i think thats more or less the vue equiv
no there's no computed properties the same way as vue
see to me that template with v-if and v-else html properties seems really messy so it's just preference ig
yeah i guess
i think there's plugins you can get to use other templating engines
but im not sure if there's anything like svelte's {#if} blocks
i could just compute the value as a const but then it would run on every render, useeffect makes it only run once
and more importantly, it runs on client side (because im using nextjs ssr)
yeah thats the one thing i do know about react is that useEffect makes it real easy to shoot yourself in the foot
i will say they could have definitely made it clearer lmao
coming from vue, having it explained as basically the same as watch() really helped
that hook has so many different behaviours depending what you pass/return from it
yeah it's basically watch()
im in the middle of migrating our nuxt 2 project over to pure vue 3 and its been so nice to use vite
instead of the bloated mess that is webpack
as sick as svelte kit looks, can't justify jumping into the ecosystem with how small it is
downside is that vite doesn't seem to support graphql documents with imports
so i gotta move all of them into ts files with gql template literals
i love promises
legendary code
how can cloudflare offer free serverless workers with 100k requests/day.. for free
this seems too good to be true
well it's true afaik
most overengineered email reveal ever
thats sick tho
do you watch hyperplexed?
https://www.youtube.com/watch?v=W5oawMJaXbU
Watch as I show you how to recreate the ultimate hacker text effect from https://kprverse.com.
Support the channel: https://ko-fi.com/hyperplexed (accepts PayPal, card, etc).
Tools used: HTML, CSS, JavaScript
CodePen: https://cdpn.io/rNrJgrd
Music licensed by Audio Socket:
- Dominique Tey - Let It Out
- Dominique Tey - Let It Out - Instrum...
excellent videos
I was reminded straight away of the video when i saw your effect lol
Very nice collection channel of neat js and css tricks
his implementation is so much simpler than mine lmao
asynchronous programming is honestly such a hard concept to program aroudn
my 2nd monitor has started flickering green for first minute or 2 after start up or when waking up pc from sleep.
tried rolling back drivers and updating it. checked cables, but idk what else it can be
problem doesn't re occur for the duration monitor is active.
i fixed this issue by literally swapping the monitor positions and the cable each monitor goes into
if u mean switching which one is considerd main monitor tried that but didn't work
idk about switching cables
eg if displayport was left and hdmi was right, keep it that order but switching them around
sometimes your computer assigns them in a certain way
so plug them into a certain order in the gpu
like switch the order on the gpu
so monitor 1 goes into the port that monitor 2 is in and monitor 2 goes into the port monitor 1 goes in
okay tried it, but didn't work sadly.
did somehow notice the green goes away alot faster this time.
not hard to be better than literally nothing
Making all the wrong moves
this is going to sound dumb but does ublock work on Twitter ads and promoted tweets?
yes it does
well, guess I'll browse every now and again. glad ublock works on mobile Firefox
yea mobile firefox is awesome
it's not
that is the 30 day search feature for enterprise customers which has always been paid and expensive
they haven't announced the new api pricing yet
insane would be an understatement.
Istg if twitter api ends up with some fucking idiotic pricing for basic tier im gonna be even more pissed than i am rn
Who the fk releases an announcement that their product is gonna stop being free to use WITHOUT the price tiers included in the announcement
And what logic is behind releasing the god damn pricing NEXT WEEK when the API is gonna stop being free to use, it's like pressuring the developers to make a decision on the spot
yeah this doesnt make sense
they have to tell us the pricing before the access is revoked right??
With the way their announcement is worded it sounds like we won't be getting the pricing until 1 to 2 days before
Which is an absurdly short amount of time to decide whether we want to opt in to their pricing
Plus we don't even know the API coverage that the basic tier will have
yeah lmao
imagine bigger companies
having to get this expense approved within 1 day
Yeah exactly
I hope to god it's not more than 5 usd a month
Any more and I'm gonna be fuming
$10 is doable but more than that is pain
it's gonna be catastrophic if they force oauth users to pay
oh yeah
not a chance every platform with sign in with twitter buttons can turn around this quickly
and not a chance they will pay
Yeah
just remove the button
That'll incur a huge cost on the DB end
They'll practically be forced to pay
Otherwise their database would be in shambles
there'll be a lot of people who never implemented the ability for social login users to transition to password login users
Yea, experienced that first hand
i would imagine most places dont have this issue?
Haven't recovered my account in months
depends on how the implementation is done
but yeah i try to avoid social logins for this exact reason
Cuz the verification process to recover the account is so convoluted
i've used a social login package that was purely social login and didnt keep a user email/password record
just logging in w/ social gave you a session
bruh
in theory its good for a small hobby projects but nothing serious
luckily i never got around to implementing social auth at work
ye true
And a lot of solo run projects which become bigger never think to implement password logins cuz they don't even know that this situation could occur
Just hope it ain't too bad in the end, only time will tell
twitter/fb/etc could go offline any moment or your account on that site could get banned
and now you're locked out
if you have more than 10 users that's something you should be thinking about already
it is extremely trivial to just store the email address that the twitter oauth hands you, as a recovery method
samsung SSDs are so expensive for no reason 
bc what warrants it costing a leg and an arm here
wd black m.2s are good
i saw a WD nvme one that wasn't a black but still
and it wasnt like
very expensive
so
well im not gonna spend an arm for extra storage
yea
oh oops
i misread
i thought u meant its not worth buying ssds at a normal price
I am so tired
i've used it technically on replit.com because that website uses it
I'm finding the configuration really hard lmao
it's so different from your standard linux config I have to google how to change basic things
non-planar quadrilateral along a bezier curve
its a lot of triangles
🔺
me
this why i am a big believer in git with GUI usage honestly - then you can actually diff files easily and write meaningful commits 😭
Even if it's a little slower to get things done and you have to like move your mouse 🥲
i mean you can diff from the terminal too
but i must say being able to add blocks from the same file to different commits in vscode is very useful
(which you can also do with git add --patch .. but it's harder to use)
git commit -m "AHHHHHHHHHHHHHHH"
"tests don't work"
Gotta optimize for maximal green squares in gh
I set up my system to wipe the root partition on every reboot (and regenerate if from nix config) but forgot to exclude /etc/shadow so now it deletes my root password on boot and im effectively locked out..

it's ok I managed to recover it. through a live usb and careful mount binding of system folders I was able to chroot into the broken system and change my password and disable the root wiping for a while
Impressive work
for a sec i thought i was done for and would have to reinstall
but i always find a way
i've bricked my linux too many times
trial by fire eh....
Scandalous
@raven mist I started doing C
do all of u guys have a CS degree? is it required to work as a programmer?
im still a student
C is fun
doesn't seem too hard
we have had 4 classes so far and the guy has only taught two meaningful things
prinft() and scanf
nope i dropped out after first year and no one cares
because i know what im doing
its more like easy to learn hard to master, its pretty easy to make simple programs with C but if you want to get into the advanced stuff its a higher curve
at least thats how its been for me
im more intermediate level atm
really the hardest part is getting that first job but if you have a lot of hobby projects to show off, a degree isnt gonna matter
and then when you have 1-2 years of experience no one is even going to ask
unless it's 1. a conservative company or 2. government job
but who's gonna want to work in those anyway lmao
Sounds like a CS degree
glhf
yeah honestly the biggest complain you hear is, you go to school for 3-5 years but they don't actually teach you anything useful
what hobby projects would you recommend?
i guess i could start with something simple like a calculator with buttons
yeah maybe
but that sounds really boring
and you're likely to not be that excited about working on it
the best project is something that fixes a need/problem you personally have
but yeah it's pretty hard to just think of something to start doing on the spot lmao
I'm so glad I'm also doing Maths alongside it - makes my studying much more interesting
But yeah an ideal project is smth that actually solves a problem you have and that you can and want to use and talk through passionately (to an interviewer etc.). Could be a discord bot, website, an app, an ML model, anything
I'm sure it does (if you like maths (i dont))
I love maths~ 
i did like math in high school but uni level math has a big difficulty spike and it goes right over my head
yeah it was quite the jump...
or if you wanna do anything with strings it's a pain in the ass
not a fan of C 
i love segfaulting 🙃
typescript gang
java gang 
i might need to ask my employer for a better workstation...
this thinkpad isnt gonna cut it
my hard drive is 238 gb and it says i need 250 gb but I'm gonna leave it downloading overnight and hope they overestimated the size 👍

Maybe one's megabytes and the others' megabits but they messed up the capitalisation? 
i havent heard anything
@PepitoTheCat @BillyM2k @ericnakagawa Responding to feedback, Twitter will enable a light, write-only API for bots providing good content that is free
5293
999
but i'm thinking it'll require some kind of verification
like you have to submit an application and they approve it
write only
most people use twitter api for reading not posting
my use case is write only so its all i need to care about
oh do you have a twitter bot
yeah got some stuff at work that hooks into our platform
and some sentiment analysis stuff that hasnt been deployed in forever
We have been busy with some updates to the Twitter API so you can continue to build and innovate with us.
We’re excited to announce an extension of the current free Twitter API access through February 13. Here’s what we’re shipping then 🧵
2058
3849
tldr free api still available until feb 13, then 1500 tweets p/m for free access, paid tier after that
it's kinda bad but not the worst it could be
i expected a lot worse
however, idk what this is going to do to bots that listen to twitter's api waiting for a post, so who knows
somehow i feel like "reading a post" and "waiting for a post" are going to be in very different payment plans
yeah i guess it means we have to wait and see what exactly is locked behind paid tiers
anyone know assembly that can help me with some hw problems? its basic but theres 1-2 lines that im not sure about
ik the format of
OPERAND, destination, arg1, (optional operand2?) ,arg2
but for the 64bit numbers (subproblems C and D) im having confusion about
hey so like this feels like an obvious answer since this is a channel with programmers but I wanted to buy a new keyboard and I wanna know
mechanical or membrane
mech
Depends if there are any ppl you live with you need/want to be considerate for 🤭
i have a mechanical keyboard with lubed silent healio switches and it's 2x more quiet than my laptop keyboard
lubed zilent tho
linear > tactile
wrong
how dare you have different personal preference than i do 😠
my preference > your preference obviously 
alright then it aint too bad i suppose
i use less than that per month so
still curious about the paid tiers

that wasted ad space must have cost them

Honestly a disad if you ask me - like I wouldn't want to work at a company that blindly pastes a link like that
yeah lol
docker file permissions are such a pita to deal with
you mean you dont just run all containers as root
yea but trying to do that and keep it as simple as docker compose up
tried to make a user inside the container that matches the host doesnt seem to work
Here's the script: https://github.com/lukesmithxyz/emailwiz
Download it like this:
curl -LO larbs.xyz/emailwiz.sh
It installs postfix, dovecot, opendkim, spamassassin, certbot and fail2ban and configures them all to work together to make an email server, duh. In the video, I deploy an email server in less than 3 minutes.
Get a Vultr server fo...
Twitch
Everything is built live on twitch
Twitch : https://bit.ly/3xhFO3E
Discord: discord.gg/ThePrimeagen
Spotify DevHour: https://open.spotify.com/show/4MLaDrQcQ5mi3rsnvWkwPt
Editor
All my videos are edited by Flip. Give him a follow! https://twitter.com/flipmediaprod He is also open to do more editing, so slide deeeeeeeeep into his...
not fooling me into learning rust
still using enums in typescript
tbh i dont get this complaint about the union type thing
like yeah you made a union type with strings numbers and an object, of course its going to allow strings and numbers
ill get you one day
i already had to pick up typescript against my will
and almost had to pick up crystal
wtf is crystal
basically ruby but compiled to C instead of interpreted
you can import a lot of ruby gems and they just work, pretty cool but i hate the ruby syntax
i see
documenting code
whats elm
copilot goated
i've never really had to think about drivers on linux
everything is built into the kernel
if you use an up to date kernel that is
but i've pretty much replicated my arch setup on nixos now, aside from few niche programs that arent available on the nixpkgs repos
might end up packaging those myself and make a pull request
it's all here btw https://github.com/joinemm/nixos
(i did make it more complicated than it needs to be)

off by one error strikes again
huh?
elm is weird
you can't change variables
once you assign a value you can't change it
so that will be Fun to Deal With
immutable (screaming)
🤷
ill come back to you once i get to the second lecture
its a pure language
i don't know what that means
but it's what it's
wtf
it works joine
but why would you ever want to do that
rina brain
uhhh so very basic problem
import time t = int(input("Enter countdown time: ")) while t>0: print('\033[?25l', end="") print(t,end="\r") time.sleep(1) t-=1
the counting goes from 10 to 90 rather than 09 or 9
why is that happening
oh well, I just got to know it doesn't happen after I remove end="\r"
but I don't need it to print every number but erase the previous number and print new one
because you never overwrite the 0 from the 10
you're just printing the rest of the numbers over the 1
🤔
print(t,end="\r") = print t and move cursor to beginning of the line
oh so I was thinking right, it just brings it back to the ones place and ignores the zero
thanks
yea you need to print some whitespace or something to cover the 0
ok, I'll work on it
i was curious
totally random and most people would never see this but access to archiveteam's full image of VLIVE's data has been implemented into yt-dlp as of the latest version today, and you can basically download them but very slowly as it needs to grab chunks from WARC files 
vlive has shut down: https://web.archive.org/web/20221031171019/https://www.vlive.tv/notice/4749
Authored by: seproDev
wrote a python script that gets me a random wallpaper from https://wallhaven.cc/ and I run it on boot so i have a new wallpaper every day
i love my changing wallpaper every day; and cause im an icky windows user the theme colours change too to match
i get tired of it very fast
yea i have same problem thats why i wrote this script so i dont have to do it manually lol
I use the windows spotlight images so it's just like nice landscapes and stuff
does your pc have to spend an hour rebuilding all your programs everyday joine
i tried the nix installer in a vm and it took forever

oh that's awesome then
building all my software still kinda mid
i wanted to try nix on my chromebook but the thing has 2 cores LMAO
not gonna wait 10h for the first install
💀
or have half the drive space taken up by binaries or leftover build files
if it's some niche hardware then yeah you might have to actually build most things from source
because the nix store has cached prebuilt binaries
but only if the hardware matches
it was prob more like 15 mins
but i also limited it to 4 gb of ram
because i wanted to simulate my chromebook
i also had bunch of other problems thanks to the vm mouse/keyboard virtual drivers
i'd just do it the actual hardware
much easier
i just dont have a lot of pcs tbh
got like two with ok hardware and theyre for use at 2 diff places, so I don't wanna make one unusable 
yea i get that
I installed nix on my work laptop but it was over the weekend and i was confident i could get it in working shape before monday lmao
(tbf it helps that my work is nix related so even if it broke i would be fine)

the main reason to learn nix would be work, tbh
could be like 'pls let me use linux instead of windows it'll take like 10 mins to setup'
lmaoo
im basically getting paid to learn nix atm
because we're making a nix based linux distro
i think someone said 99% of the employees here use linux so they just asked what I'm gonna install on it and let me get to it
which initially was my arch setup
it's super low level, basically running everything in it's own isolated vm for ultra security. vm for networking, vm for graphics, etc
it will be an open source platform you can build upon to make os for desktop, phones, drones or any embedded ARM platform
I hath returneth
with more knowledge
I can now do if(a==1)
{ printf("robic sucks");
C seems very easy
are you gonna close those curly braces
}
doing no work while waiting for others to merge branches 
elm, the religious experience
pipelines my beloved but also im going to melt if i have to write more code
at least the fira code font looks good
LOL wtf

tbh the code font makes me more unable to parse what this syntax means
like what the heck is a right facing triangle
does it run stuff
yeah itll be what join said
basically the font/ide combines symbols into new ones
so |> is common for pipe operators
some do things like turning !== into a proper =/=
yea
i know what piping is in a terminal but like... in an actual programming language ??

its big in functional programming
oh i think i get what's going on
but the more i understand
the worse it gets
truly a bizarre syntax
basically instead of doing something like
var = func1(func2(func3(someApiCall()))))
you do
var = someApiCall()
|> func3
|> func2
|> func1
yee
or something along the lines of that
my work project is riddled with a bastardized version of it
instead of using promises we use a lib called fp-ts
so any awaited function has to return a Right (correct value) or a Left (error value)
and its all chainable using pipes
i hate it
ah
sounds like the CompletableFuture java lib
well... what Mojang was doing with it anyway
they had return types like CompletableFuture<Either<ChunkAccess, Error>> lol
and it's funny cause in most places in the code they do like
return either.left(chunk)
thankfully i mostly just have to write basic gql resolvers so i can just use promises
and because i didn't realize left meant ACTUAL left, i thought it was like "the only thing left"
lucky
well, basic until we have to start fighting the lib cause the dev refuses to fix fundamental flaws
thanks type-graphql

i am big fan of function chaining for example in rust
let var = someApiCall()
.func3()
.func2()
.func1()
just that pipe syntax looked weird but i get it now
yeah collections in particular i really like chaining for
laravel collections spoiled me so much that if im doing lots of array work i just pull in lodash and use that
fira code font
best font
idk why we're learning elm for an introduction to programming course












