He/him | 🏳️🌈💻🕹 | Free Software ❤️
Just a random nerd, mostly computers and games.
Spanish/English bilingual.
It’ll be fun when you get to funny errors because you used free
d memory.
When I was learning about linked lists and decided to use them in a project, I “removed” items by making the previous item’s next
point to this item’s next
, except I misplaced a call to free
before using the fields, and it somehow still worked most of the time on debug builds, but on optimized builds it would cause a segmentation fault 100% of the time.
Get a job playing Fortnite, got it
(Insert image of Kronk here)
Wasn’t there recently some guy that encoded images into a bird singing?
I don’t trust them they’ve stolen money from me before
Same. They stole a small amount (~10 USD), but at that time that was 2-3 days worth of groceries where I live (which would have helped a lot)
I started with Puppy Linux because I wanted to try Linux, and my 350MHz Celeron with 160MB of RAM and 4GB of disk space (of which I had around 1GB free) wasn’t enough to run neither any flavor of the major distros, nor any remotely recent version of Windows that wasn’t XP stripped down to the bare minimum, and even that ran like shit. This was around 2008.
After being able to afford a more recent machine (3GHz Intel something Dual Core, with 4GB of RAM and 500GB HDD), I switched to vanilla Ubuntu, with its Unity DE, then Xfce4.
I’ve been using the LUbuntu flavor (LXDE) since it is more lightweight than the alternatives. Don’t really care about bells and whistles now, just a functional and fast desktop.
My most recent laptop is dead now, tho, and I don’t see myself getting anything soon :(
I use febr a rch btw
I’ve said it before, but Ctrl+Insert, Shift+Delete, and Shift+Insert for Copy, Cut, and Paste respectively, are underrated keyboard combinations
To be fair, 0.2 + 0.1 = 0.30000000000000004
My feed rn:
Same, except WhatsApp instead of FB Messenger. I had no results trying to convince my family and friends to use other stuff
Supposotory*
Derp, I misread.
Kinda.
Lua defines it implicitly only when you use the
function foo:bar(a, b, c) -- note the colon
syntactic sugar, which gets translated to
function foo.bar(self, a, b, c) -- note the period
In all cases, self
is a regular variable name. You can even redeclare a new local with that name even when the old one is in scope.
Edit: some typos
if debug.getinfo(1).what == "main" then
-- ...
end
Not that you’ll ever use it. No, seriously.
Edit: actually, they are not quite equivalent. This code just checks whether we are outside any function, not necessarily in the main file (i.e. not in a module). I don’t think there’s an equivalent to Python’s __name__
in stock Lua.
One common trick that I occasionally do for friends and pages I follow, and that seems to work, is to unfollow and re-follow.
Others suggest not using “bad” reactions like Angry and Sad on posts from accounts you want to keep seeing, and use Wow instead (that doesn’t help given I follow some LGBTQIA+/feminist/leftist pages reporting the clusterfuck that is most of the world)
Nobody does 😔
…panish Inquisition
Plus it could perfectly be real code to handle org files