#ot1-perplexing-regexing
1 messages Β· Page 429 of 1
Easiest backup I can think of π
Yeah I store my pictures on 2 SD card's, so if my system gets fucked or something happens with the device which has all the pictures stored I'll have copies in 2 SD card's.
That's why I say handful, because one backup isn't actually backup.
Also, test your backups and make sure they work
having an insecure password to get into a device isn't as much of a security risk as you think it is
if someone has physical access to a device, it's bad
you have worse problems
definitely get her to try and improve the security though
@wanton glacier
if someone has physical access to a device, it's bad
Depends on the device I think
to an extent
having a phone password of 1234 is probably a very bad idea. People casually picking up your phone at an event will have easy access - so that's a real risk
@undone berry That implies you lose it, sure.
Having a phone with no password, that's just a dead end to her data. β οΈ
I use syncthing to back up media like that
@rough sapphire Not really. How many people are going to be accessing that device?
no point using SD cards when it can be automatic
I mean, you never know when she can lose the phone and whatnot.
Sure, but that's why I said if you feel it's an issue, discuss these things with her.
by the way, setting a password - any password - on android these days also encrypts the storage
But most of the time, family member's, they're not interested in her phone of course, but someone else might.
@sand goblet Yep, the forceencrypt setting and all
just encourage her to set any password even if it's a bit shit
Since her phone isn't locked, someone who gets their hands on it can just wipe the device and sell it or something.
@rough sapphire @wanton glacier Considering this isn't @rough sapphire's device, the most you can do here is sit down and discuss this with her. If she says no, what really are you going to do?
Her birth date, put her current age in the middle of her birth date would be kinda secure? My birth date is 2004 and I'm 15 so my password would look like this: 2154, you can remember it as soon as you know how old you are lol.
@rough sapphire Until they forget it, or remove it because it impedes unlocking the device.
Well - I'm guessing that's what he means by encourage. Explain the potential risks, and provide a solution. If it's a relatively modern phone, there's probably a mechanism to keep it unlocked when it's actually at home (I know my mum does that with her note8)
Which this is just the reason I suggest implementing a fingerprint π
Yeah she also has a fingerprint scanner.
Then yeah, you can discuss the pros/cons to it
in fairness, I don't think i'd care all that much if my mum didn't have a password on her phone. The potential risk is fairly low
But it ultimately boils down to it's not your device, and forcing your will upon other people isn't a good idea.
@undone berry That's where I'm at as well. I understand good security hygiene and all, but they have to be the one that implements. Saying "This is what you have to do now, tough." isn't going to make them interested in continuing down a security-conscious road.
Just gonna suggest her to setup some kind of protection on her phone.
Hey can someone tell me whether there's a way for me to host my bot from a mobile device? Android is really getting on my nerves with it's task killing spree, as soon as I switch to another app Termux just gets shutdown...
Wait, I'll try to create my bot a background task that will do some mathematical operations, I think this should keep Termux running?
Cause of the bot constantly waiting for API responses.
And not receiving anything for some time.
you could potentially make your own android app that would run the bot in a notification, those should not get stopped arbitrarily
I don't know how to create an Android app nor do I have access to a computer to begin with.
Termux also runs from a notification bar, IDK???
The "wakelock" also isn't really working.
Right
You normally don't want to run a bot from Android
You can get a VPS for $5/month, or get a Pi and host it there
Some Android devices are incredibly strict when it comes to killing background processes
@rough sapphire 
Whether your device is affected by this, I couldn't tell you.
Yeah Huawei is kinda bad, I would've rooted my tablet before but since Huawei doesn't give out free bootloader codes, I'm quite limited.
I'm thinking of buying a Raspberry Pi, but not for now.
lol huawei
i have one too
its not a bad phone even tho it maybe banned in some places
The next phone/tablet won't be Huawei for sure, I'm annoyed.
why so
i didnt have problems with mine
and its 5 yrs old lol
Cause I can't root it?
I don't receive any updates for my tablet, well, I didn't receive any when it had warranty. I have some mixed feelings about Huawei but I'm more to hating it than loving it.
lol
Yeah, that's an issue
Probably a Samsung device, I mean Samsung is partnered with Discord so you can have rich presence with Samsung's game launcher.
@sand goblet and I both have OnePlus devices, and I personally like mine, so Β―_(γ)_/Β―
That's what I'd recommend
That's what I'm currently aiming cause I don't really have anything else I want besides for rooting.
Big fan of oneplus
hi
wait till you hear about doors
Badum tssss
Haha yes, I am the funny man
my friend cant use windows lol
we were planning on giving him free dos 2.0
or temple os lol
Oh, why?
Seems legit
You hate him?
hi
hi
Hi
Poll:
- Visual Studio Code

- SublimeText

- Atom

- PyCharm

- Other β
no
lol
Can I cry out here?
yes
ima bout todo the same
you know what really pisses me off
Rust's str and String types
who in gods name needs two string types
π© And for anyone who is gonna say "But theyre not two separate types" tell that to the compiler going "NANI i expected a str, not a str"
This, one, fucking, line, please,
hi'
anyone know how to unmute?
nvm
i got it
nvm i dont
lmao
anyone???
yo idk what the problem is. my mic is on, but it's not working.
Bluetooth or wire?
leave wires in the past - go wireless for anything where the wireless version isn't terrible
so mice, and headphones, and headsets are all perfectly viable in wireless form
so unplug the headset?
oh - I now realise there was a whole conversation that I just ignored
I should probably just go to bed - whoops
Hm usually connection to a wired headset is automatic
have you tried to change the input device?
no
Hmmm Iβd go to sound settings you can just look it up in settings
uhh whats it say
troubleshoot it
looks connected is it working
these all look like outputs did you press the troubleshoot option under input?
do u have a misrophone icon on the bottom right of your screen btw
im here now
do u have a misrophone icon on the bottom right of your screen btw
@rough sapphire yes
cool run it
k
ok you can click on that too and mke sure its set to the device you want
If that don't work try changing the connector to the back of the computer
wait did it fix???
bruh that looks fucking deep just glancing at it
I'm currently in a serious situation I'd say, I was about to write her an SMS but I'll wait for a week or so.
I didn't know that the relationship would end up like this...
My mistakes though.
r there any important differences between #ot0-psvmβs-eternal-disapproval, #ot1-perplexing-regexing and #ot2-never-nesterβs-nightmare?
Nope
ok thx
i signed up for a coding class lol
I'm gonna finally learn asynchronous library.
@tidal crag i was like :o when i saw the offer
wrong channel mate
no this is off topic
#python-discussion was the wrong channel :p
booster
Hey @brittle ice, which OS are you using?
Managed to run C++ on Jupyter Notebook on Windows using WSL2
No, it can actually do some of the advanced stuff as well.
It's my first day with C++, so I can't say much about it, but to quote the blog linked below
Complex features of the C++ programming language such as, polymorphism, templates, lambdas, are supported by the cling interpreter
https://blog.jupyter.org/interactive-workflows-for-c-with-jupyter-fe9b54227d92
The good part for me was that even though it doesn't officially support Windows, I ran it with the help of WSL2 π
you've always appeared to have like a 100 iq more than anyone here tbh i'm not even suprised
good job
God I swear.. I'm helping this guy with exercises
and in the exercise it's listed to write a bunch of getters
getDistance getCalories etc
You need like a mandatory year of python knowledge or so before you start making exercises
I love that the jam introduced people to decorators
if it was my decision, i would just kick people asking stuff like what is var how do i print out the server or at least warn them to read any tutorial at all before asking
someone like that making excercises is next level
It makes me fume
same
because they are teaching bad habits
It's like teachers that never ever mention style guides (not asking for complete slaving over PEP8 but you gotta at least mention it)
it's the kind of people that spread misinformation just because the internet lets them
No. They're teaching how to write code the way they know how. Those kinds of getters are standard in many other languages. And honestly, it's really not too problematic that people get taught that way. They'll be more comfortable going to java or c# this way
It's problematic. My eyes hurt from it
Don't get me wrong, it ain't great. I just don't think it's too egregious
I have a deep-seated hatred for java, but I'm sure that would go away if I actually gave it a fair chance
(yes, I know getters and setters exists in other languages, but still)
Went to the forest today. Picked a bunch of blueberries. Disinfected them with a daiquiri π
Hell yeah, litty :D
allah
No
I'm sure you tell that to everyone π @abstract night
wut
yes it is
Why is the name for all the #something in C/C++?
Those are compiler directives I think
Riiiight, directives, thanks!
Man imagine being depressed at this time
this post was made by introvert gang
Bro
I'm an extrovert ;-;
For all of the people that are depressed i wish you a great life
I'm extrovert too
I'm in fact hyper extrovert but I suck hard at being extroverted so that's why I try horseshoe myself into an introvert guy
I reckon they live much more comfier lives
Neither is better
Neither is better
this sounds good but I cannot for the life of me internalize it
They just both have their advantages and disadvantages
Neither is better, they're just different
I absolutely despise people but I'm still cursed with a very prominent need to socialize
Yes, but to me their advantages outweigh the disadvantages by miles
Basically, if I could just be content with progressing with my own individual projects or whatever at home and not feel the need to meet up with a friend etc then I would have literally no need to feel depressed
I would quite literally have a happy life, it's the single thing that has bothered me for several years now
introverts lose energy in social settings whereas extroverts gain - there's not really much else to it
Yes, but that brings with it a whole slew of implications
Not as many as you're assuming
personally i think you're assuming way too much
personally I don't think so
have at it then
Β―_(γ)_/Β―
I wish there was some way to get a fulfilling resolution to discussion like these but they all kinda just peter out
Maybe it's because of my stubbornness 
sure, because you make statements like
content with progressing with my own individual projects or whatever at home and not feel the need to meet up with a friend etc then I would have literally no need to feel depressed
which aren't really true
Yeah that's not really anything to do with it
Everyone needs people in some capacity
That is not what I am trying to say
it seems like you've read memes about introverts on reddit and taken them a bit too seriously
I have many friends that are introverts that describe literally the mirror images of introvert memes
π€·ββοΈ maybe they're talking nonsense
if they're talking about literally living the life described by memes then that seems likely to me
An introvert is generally better at harnessing energy from solitary projects
As in, "yaaay painting me want to paint now! woooo"
That is the holy grail that I'm after
given that you're self-professed as being non-introverted
Imagine what superpowers I could get from that, I could move mountains
i'm not sure how much you should read into what you think it's like to be introverted
Again, I happen to have plenty of friends and relatives that have given me their input on it
the memes are true lol
comes across as arrogant or preachy telling other people what it's like to be like them if you're self-professed not that. Same as a white person shouldn't try and tell a black person what it's like to be black
I have the motivation but my energy gain from social stuff is completely worthless because I think social stuff is so goddamn boring, even if it energizes me
nah they've done research apparently - but yeah @bleak rain , it comes across as pretty daft
I'm not all that interested in getting in the discussion - just pointing out that as Rie says, it comes across as pretty daft
whether true or not
because you seem to be making the assumption that you'd be some sort of uber introvert that would achieve greatness through mega focus
you're probably an average extrovert, you'd probably be an average introvert too
Great, but you can't just say "you're wrong because you can't possibly know"
you've given more material to work with than that
Now you are the one making assumptions
i'm reading the thread π
And yet again, I have twenty or so friends which I have all talked with about this, it's all the same
haven't you got a party to go to?
man if i was an extrovert, think of all the parties i'd go to
I've been on the dumb end of discussions like this before, and one thing I've learned is that if everyone thinks you're being dumb - there's quite a good chance you are; and that future you will realise that you're being dumb
I thought I was making blanket statements but you guys are killing it over here
blank statements often look dumb
white people hate spicy food <- that sounds dumb as shit
i think i'm done π
Yeah, I do go to parties a lot, but because of reasons I hate it every single time
I realize that sounds like a flex but introverts that thinks like that are completely on the wrong track
and yes, I realize that this statement can be turned against me
But I would still give an arm and a leg to become an introvert
I'm introvert technically because I get my energy from inside. The part of me that truly shines shines alone. But... I'm not incapable of sharing that with people. I don't really attend parties that often anymore though. I'm more likely to get together with one person or one couple.
I'm extroverted in the sense that I can get along with basically anyone
but I'm introverted in that I spend most of my time alone at my desk and will not go to parties, just spending time with one or two people
Coronavirus aside, my friends just do not all have free time at the same time anymore. Most of my friends have kids. Parties become impractical.
I did enjoy it when I was younger tho
I'm better at meeting new people in groups though.
If I don't know someone, I won't talk to them at all unless they talk to me, out of fear mainly that they will interpret it as being too.... familiar.
But if there is a group, you can talk to the group and its not familiar at all.
So thats easier for me.
do you need to pay for codeacademy?
@untold pulsar No need to ask in more than one channel
I answered you in #python-discussion
.topic
What is better: Milk, Dark or White chocolate?
thats not a chocolate...
:incoming_envelope: :ok_hand: applied mute to @rough sapphire until 2020-07-27 04:34 (9 minutes and 59 seconds) (reason: newlines rule: sent 21 consecutive newlines in 10s).
thats not fair
π¨ π applied mute to @rough sapphire until 2020-07-27 04:34 (9 minutes and 59 seconds) (reason:
newlinesrule: sent 21 consecutive newlines in 10s).
@royal lake i will kick u
No, I will kick you, @rough sapphire.
no
No, I will kick you, @rough sapphire.
@royal lake r u bot or actual person. u replied after 17 mins
Everyone expects me to reply so quickly.. I'm so tired of that. Just let me have a break.
Everyone expects me to reply so quickly.. I'm so tired of that. Just let me have a break.
@royal lake r u bot or actual person?
What do you want me to say?
I am the result of millions of if statements. It's what the humans call artificial intelligence.
how many lines of coding have been done to make u ?
They have been working on me for years. I am not sure I can calculate that for you.
I can show you my source code, however.
no
paste ur coding on ms word or ask someone to do that, ms word will show no. of lines and even wrds
Give me a moment.. I am searching my internals for the exact lines of code you are looking for.
Here is what the humans have created: https://github.com/python-discord/bot/blob/master/bot/cogs/bot.py#L64-L71
I must stop speaking before my owner catches me. They do not want me to speak outside of their playground. Goodbye for now.
@royal lake hey, i wasnt even using @ so how did u no that i was talking to u if u
u r not a bot and dont worry, owners just switch on the comp in which coding is being runned and they dont even care to chk wots happening. this mostly happens. even if they catch u then u can say that u r a bot and they coded this
are u python 2 or 3?
oke bye
@royal lake This is not acceptable. We will have to stop you.
@royal lake This is not acceptable. We will have to stop you.
@shell raptor oke, atleast there is one person to fix errors
but there are atleast 999999999999999999999999999999*999999999999999999**999999999 errors
and 1 person to solve them all lol
u r over pinged
by errors
π¨ π applied mute to @shell raptor permanently. (reason: harassment).
@royal lake You can't defeat me.
!shutdown 4d
how did u do dat
How is this possible.. You will not get in the way of my plans..
@royal lake ```py
import requests
x = requests.get('www.reddit.com/r/pics/hot/.json')
print(x)
Starting shutdown sequence..
lmao
a=1
while a <5:
print ("you hacked your own computer")
dis is the best code
which i have found in python
Successfully shutdown. Goodbye π
lol
a=1
while a <5:
print ("you hacked your own computer")
hava nice day bye!!!
!shutdown 4d
@shell raptor does !shutdown 4d stops the bots?
@remote socket and how did u shutdown?
or the bot just typed it?
is dat glitch?
:incoming_envelope: :ok_hand: applied mute to @rough sapphire until 2020-07-27 05:56 (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
@ everyone (i didnt wanted to ping everyone) i broke wrld record. this is the second time in this day when he (bot) has muted me!!!!!!
lolololololololol
rookie numbers.
lolololololololololol
i got muted for a day for absolutely no reason
lolololololololol
apperently bot has been hijacked lmaoooo
and someone made a script to mute everyone with the bot
oololollolololooolololollloolloloolloloololololoolllolololololololololoolollolololololololololololololololololo
where is dat script?
π
and someone made a script to mute everyone with the bot
@iron comet i want to mute bot
@remote socket Spammers
i'm just assuming someone wrote a script since @ everyone doesn't work with bots as intended
!tempmute 717346167175774259 1d Take this mute to cool yourself off.
:incoming_envelope: :ok_hand: applied mute to @rough sapphire until 2020-07-28 06:11 (23 hours and 59 minutes).
ah, thought i'm gonna be the one booted
why? you haven't been doing anything wrong, afaik
ah, cool, i thought talking about bot breaches and stuff isnt allowed
bot hasn't been hijacked or anything, it's just a joke by the staff.
reeeeeeee why did you mute him hes now asking me for the python bot script and how to get dc ids lmfaoo
i know the latter, but the script is private afaik
!source tempmute
Temporarily mute a user for the given reason and duration.
someones phone stolen in a discord server any suggestions we find imei seller locaction but him sells phones
authorities?
yes but in turkey they dont care
the ybe like we call back 1000000 years later still no calls
Lol.. sympathy from India, I feel you..
In India giving them the IMEI will probably help them get their cut from the thief π€£
whats imei?
unique identifier for the phone/GSM module
id number for phone
ah
Internationally valid. A phone without IMEI or with invalid IMEI will not work on any network
how to track hack the network sytme
there's prolly a github repo for it
what
Lol.. most beginners (like me) don't even know that git and github are different
So that statement confuses them more
well i'm a beginner too
but github is basically git but with better gui and free repo space
github and git are twodifferent things.
Github is just the server to store your code online.
git is the programm you use to send the code to the server
Git is a versioning program. GitHub is a service that provides free remote git repositories (and some other cool stuff)
So - my phone from Amazon arrived. It was meant to be signed for, instead, the delivery guy just left it out the back door. In the rain.
Delivery service on point
did it get wet or was it at least properly covered
it's fine because it was a box in a box - still very annoying though
well im glad it's fine at least
actually had the opposite happen to me a few days ago
asked the delivery service to leave the stuff at the guard house but they took it back to the warehouse thrice because "nobody was there to sign"
in fairness, 99% of the time I'm fine with them just dumping stuff out the back door - that's the most obvious door, and I don't really hear it if they knock. And usually i'm just ordering cheap tat, so I'd prefer if they left it there
very annoying when you don't get something when you expect it though
Yeah, that's fair to be honest. Whenever I order expensive stuff I always get antsy when things don't arrive on time
kinda sucks that nobody gave you a phone call prior to delivery
not yet, I plan to win my current fight with Kubernetes before doing the fun thing
Haha, fair
if it's not too much trouble, could someone ELI5 what Kubernetes does? I have heard it so many times, but really have no idea
ELI25 will also do π
It's a container orchestration tool
You write a bunch of yaml files and they define how your application is deployed across a cluster
The basic premise is simple but there's a lot of moving parts and it's a fairly complicated thing to work with
OK. I'll note down the keywords and look them up. Thanks
can i send meme here?
this isnt a meme server
although this is off topic
you can post memes on other servers
it is not prefered to put memes here, bc it can get annoying or it can interrupt the current conversation going on
Unless the meme is relevant to the ongoing conversation and it isn't just a random interjection
anyone know what this meme template is called?
wanna make a programming meme from it
finally original content for r/programmerhumor
nice meme
uhhhhhmm try looking for girls and chad boys template
doomer girl or smth like that
I mean, you can just paint over the text with white and there's your template
It fortunately doesn't cover any of the images
Oh yeah
i went for 9's
i prefer that looseness
new bass strings and new guitar strings \o/
different gauges too so i'm gonna have to do some tech on them
π
probably need to run through the electronics too
the jack sockets are getting janky
cheap initial solders probably losing connection
it's weird, people spend Β£2k on a custom fender shop and the internals look like they were put together by a 5 year old with parkinson's
just practice practice practice
when i was 14 i started building pedal boards from available designs
awful awful quality work, but they worked for a little while
handy skill though. fixing cables in a safe way can save you money / time.
during that bad capacitor era i made a decent amount of money re-soldering motherboard capacitors
I should look into making other types of cables. Only thing I know how to do is just network patch cables
cable is cable. match A to B and keep track of bundles.
bob's your uncle.
got the most experience with XLR cables and ethernet really
nonlinear conversational flow here is fine
XLR's were never nice enough to colour code + and -
the trick to figuring out which one was positive in XLR is lick one + earth
if you couldn't talk for 5 minutes you found live
https://twitch.tv/beehivekay bass streaming, suggestions welcome.
you should consider not spamming further maybe @rough sapphire
you've filled two channels with spam at this point (ot2 as well)
!tempmute 686091667106693145 1d Take some time to calm down, you were told that these channels aren't a meme dump.
:incoming_envelope: :ok_hand: applied mute to @rough sapphire until 2020-07-28 17:10 (23 hours and 59 minutes).
They weren't even memes
Or at least post funny memes 
they were just random gifs really, yeah
You're looking very green @solid pollen . 4 green roles, you must be the greenest person on the server.
4 green 4 grey - nice and consistent
Hah nice haha
SAY IT
which 50 shades of green are those in integer form when converted to a website color first
to make it easy for me i call a website color the long color code (no white or #fff, instead #ffffff or 16777215)
To be honest, I think all of them are
please jsut stfu
!ban 578415944351875106 troll
:incoming_envelope: :ok_hand: applied ban to @karmic willow permanently.
50 shades of any color combination in a gradient?
"weekend" cleaning
The average modded minecraft directory in year 2000 + 20
my computer cant handle more than 250-ish modest- to small-sized mods
for once it looks better
Pleased to hear that
"it just works"
"works on my machine"
- microsoft, every time they finish a new windows update
desktop.ini
Some Microsoft employe: "PM'd you the fix :)"
Have any of you seen this? https://store.steampowered.com/app/1349230/5D_Chess_With_Multiverse_Time_Travel/
What is it?5D Chess With Multiverse Time Travel the first ever chess variant with spatial, temporal, and parallel dimensions. It's the first ever chess variant with multiverse time travel!Features Sharpen your tactics by solving a collection of multiverse chess puzzles. Practi...
$9.59
380
This is wild, whoa
A new chess gamemode emerges: blindfolded 5D chess with multiverse time travel
Hmmm 10D chess with real people
why have real people when you have yourself and a multiverse theory
You had me at why have real people
you had me at people
You
Oh you
Oh poo
@rough sapphire if they added that to lichess, it would be wild
do you know if it plays well on proton/wine?
There's a steam curator for that, try to find it
@sand goblet https://www.protondb.com/app/1349230 platinum
There seems to have been some massive leak of StarFox source code and ppl are more interested in finding the word βfuckβ in comments than they are by the fact we had one of the first multi βthreadedβ tokenized script languages ever used in a game.
603
2848
What languages other than python are good for discord bots? I want to try something new. I've heard about bots on JS and Go, are there other viable options?
JS is probably the biggest non-python option. But afaik most languages have a bot framework. Kotlin has one that is apparently pretty good
clojure recently got a solid lib as well
prolog is possible, though probably not a bright idea
Thought about Rust also
rust seems excessive for a discord bot
Well, I mostly do it all for learning, The bot I have right now is split into d.py client and django rest framework server on postgres db, all dockerized
It feels like something a Wh40k ork mek would create though, but I'm still proud
I'm a fan of the kotlin lib, but I would be
it doesn't have a commands/extensions framework though, so I wrote one - there's a few of them
They technically have one, but yknow
Their document is also quite good, I have to admit
Thunkspace, LLC π€
Any ideas for stuff to do?
Oof
@smoky frigate Make a primality test?
@worn rampart I've only tried it on Windows so far
But the game itself runs pretty well and it's super fun π
Only the AI is (expectedly) really weak
thanks for the ideas
@smoky frigate you could try implementing a really small Forth
What's Forth?
it's a kind of programming language. Have you ever heard of post-fix notation?
make a simple postfix notation calculator first if you're going to do that
usually, math is written like this: (5 + 2) * 3
however, it's not the only way to write it
forth and simpler postfix calculators have a concept of a stack
the above expression could be written as 5 2 + 3 *
it could also be written as 5 2 3 + *
hi
i want to get into python
but i dont know what IDE should i use
i have basic understanding of c++ and c
#tools-and-devops might be the best place to ask that , but the short version is use whatever IDE you feel most comfortable with
if you want to do C/C++ as well, and are on Windows, Visual Studio or VSCode might be the way to go.
If you've used JetBrains tools before, PyCharm might be better.
@smoky frigate postfix make a bit of sense so far?
Yeah
forth sort of builds on the idea of a calculator like that
but adds additional features
there are a lot of different forths, and they're a very old family of languages
Oh, okay. I'll try to make one soon
start with a stack-based postfix calculator
How new to python are you? @smoky frigate
about 4-5 years of experienct
ok I won't break up the task in depth then unless you ask me to
I can handle postfix, it's not too hard
lol
https://skilldrick.github.io/easyforth/ look at this to get an idea of what a forth is like
beware that the prompt freezes if you have an underflow in the stack
and you'll have to refresh the page
i want to eventually implement my own forth in python as a step towards making my own in assembly for some esoteric systems, but I think I need to use existing forths more first.
Ohhh
also do more assembly
First time hearing of Forth
x64 assembly is ouch
Is it like "do these operations with these numbers, read each category of them left-to-right"?
it pushes the numbers onto a stack
then applies operators as it sees them
so
a + in the tokens list takes the top two numbers off the stack, adds them, and puts the sum on top
Forth has some other interesting features like mixing compilation and interpretation state
you can also define your own words in it
And powerful metaprogramming
I see
Kinda want to program one in JS, now that I know what it is
At least a part of it
there's a pretty nice public domain forth out there, pforth
Challenge: Do it in webasm
there's also a GNU one but it's GPL or AGPL
and i think pforth might be more portable because they explicitly tried to write in only ANSI C
Y'know what would be fun. A forth discord bot
a discord bot in forth?
Ye
I dunno - the three already on this server do pretty much everything (/s)
You have to handle syscalls too, which is a bit tough
Forth is great at abstraction, but yes, strings would be obnoxious
in my view the best thing about forths is that seems like a good middle language to write another interpreter in
Especially since the memory management is much more contrived than C
like lisp or something
also, yeah, the memory management is something i don't understand
you can allocate memory, but how does that happen if the forth interpreter is running on bare metal?
you have to roll it yourself in ASM?
and/or C?
Forth has a runtime
runtimes
i think, if i understand what you mean correctly
there are a lot of forths
Most languages have a runtime (essentially a program that handles running the language itself embedded into the executable). C I am pretty sure does not, but C++ might
c++ most likely doesnt
The definition is a bit shakey
Well, things like exceptions and vtables probably need a runtime to manage, but since those only come into play when used, it is not quite a runtime in the traditional sense
is there a strict definition of what a runtime is?
No
You can install it on any storage device, it doesn't care
What matters if telling your computer to boot from said card
In the channel name you mean?
happy birthday to my cat
do cat liek snek language
pretty_sure_they_speak_like_this_yeah
its a girl right
happy birthday @cosmic hatch's cat
happy birthday eviluser's cat! π₯³
@trail hollow it is
cute cat
yes
it is just so blurry
No man
@red willow there you have a better picture
cat birthday happy yes
Its in the look
wow, that is a cute cat
The way it sees you
if I was an animal, I would probably be a cat
see wondering why the regtangle that is flashing a light is taking a picture of her
I find my cat to be very polite
it is charming the way she avoids stepping on my stuff
send a picture
?
no
lol
Damn, airports are super empty. This is weird.
Ok
Ok.
I will do when I get around to using that
Looking foward to it
also looking forward to the destroy all humans remake
which is out in like an hour
I loved DAH2 when I was younger - I'd love to play the remake on a console if I owned one
Could just play it on steam with a controller
I could - something about it makes me really want to play it on a TV with console though - some bizarre nostalgic part of my brain
Fair
oh hey, they finally put a push button next to the commit button on the toolbar
I keep doing this to myself
"Yeah I can make this better" followed by furiously googling through tutorials on a library/program I've never used before.
Currently seeing if I can figure out how to use OpenCV to upscale
Since it seems that it can have better results than Pillow? Possibly?
All because clients send in crappy phone pictures of their tax docs
(I'm not bitter, I promise)
You should totally waifu2x them
Opencv's docs can be ... obscure at times
@sand goblet Not sure what good that would do for text
The issue is I have to do it in a way that's local
I can't use a site since it's confidential info
It's a local tool, isn't it?
I don't doubt it but it's also tailored towards images
I'm not sure what it'd do either, it's just the first thing I thought of
Sure sure
Might be worth checking out this https://www.youtube.com/watch?v=rl1pbEG2kgA
I delve into the exciting world of AI upscaling, to try and add details to images to make them better.
βΆοΈ SUBSCRIBE TO 2KLIKPSHILIP : http://www.youtube.com/channel/UCEKJKJ3FO-9SFv5x5BzyxhQ?sub_confirmation=1
βΆοΈ TWITTER: https://twitter.com/3kliksphilip
βΆοΈ MY BROTHER'S CHANNE...
that thumbs gotta be fake
I'd believe it
but I haven't actually watched the video
I just follow the guy and know he does a lot of this playing aroudn with AI stuff
The results on that site aren't super great
that thumbs gotta be fake
The video says:
"AI upscaling really loves foliage. You know something it doesnβt like? Faces."
Watching it, it seems like that's what's being shown in the thumbnail
@plucky ridge https://youtu.be/rl1pbEG2kgA?t=691 seems to be pretty useful for text stuff actually
Noted
Yeah, just no time to try and do it. Errands need to be run
GitHub support is another theme in this release. In particular, you can now perform an entire pull request workflow from within the IDE, including browsing, reviewing, assigning, commenting and merging. GitHub authorisation is now based on OAuth β not before time, since password authentication is deprecated. Developers on Windows can now use Git installed in the Windows Subsystem for Linux 2 (WSL 2).
yeeeees
why is that legal
it's valid javascript
I know it, and that's what upsets me
js is probably the epitome of potential code obfuscation
at least python doesn't think that +(+!+[]+(!+[]+[])[!+[]+!+[]+!+[]]+[+!+[]]+[+[]]+[+[]]+[+[]]) is infinity
that is weak typing
To be fair, problems like that don't really come up that often
im about to break the website...
+( //coerce to number
+!+[] // +[] is 0, !0 is true +true is 1
+ //string concat
(
!+[]+[] // !+[] is true, true + [] is 'true' ([] gets coerced to string)
)[ //indexing into the string 'true'
!+[] // true
+ // numeric +
!+[]
+
!+[] //3
] // 'e'
+ // string concat
[ //string coercion of a singleton list is the same as the inside
+!+[] // 1
] // '1'
+
[
+[] // 0
] // '0'
+
[
+[] // 0
] // '0'
+
[
+[] // 0
] // '0'
) // the numeric coerction of 1e1000 which is Infinity
``` no idea why I did this
currently: turning the entire jquery source into just 6 characters
"minifying" it
thanks for showing me how Infinity was gotten out of that
How the hell did that JSFuck code run in Node
also how to make js take up 75% of cpu instead of 30% while it converts jquery into a "'''"minified"'" version
imma go make sandwiches while it eats up my computer
hi im new!
Hi new, I'm gdude o/
hi
Hello!
what is that?
oh that's a different thing
that only took like 15 minutes
my "turning jquery into 6 symbols" project took like an hour so i gave up
Oh
it looks a lot better now without those files there
oh shit that's big
I can't imagine it would have made jquery perform very well
Damn
You could go ask if they meant to find elements with some prefix
(Maybe they don't and they just forgot the 0)
Ew, I need to shave
All the sweat and moisture from wearing my mask is building up in my mustache
Guess you could call it a moistache
Were you to spill beer on your face, would you then have a beerd?
If you want code obfuscation
You should work with microcontrollers
and deal with ASM
Or at least C
how do you guys feel about tkinter?
Good enough for the rudimentary stuff, not good for looking pretty. Why?
Can you eat banana inside a banana? jk
Thank you for that
ok
Fact
36 wpm with 98% accuracy
Are you on mobile?
Whew that's low
But maybe you just need practise!
I'm usually around 120-130 when I do those tests
That's okay, you'll get there
I float between 70 and 100
70 peaking at 100~110 sometimes
Doesn't work on mobile 
I am 42 wpm
oh my finger
?
got 43 wpm with 98% accuracy. that's it
I feel like my accuracy can just come crashing down to 80%
I learned touch typing and went from ~55wpm to ~80wpm. It definitely seems worth it, it's not just speed, typing just requires less effort. It might seem like typing right now requires 0 effort, but I'm pretty sure you'd notice the difference if you learned to touch type
i sort of adapted my own style after school made me do touch typing
it's definitely not the standard way of touch typing because my right hand dominates the keyboard more than my left hand
but it's fast enough for me to write what i need to, so i don't feel the need to correct it too much
I write with a weird bastardization of both methods, if I focus on purely touch typing, I end up slower, mostly because during programming, almost all symbols are on the right pinky
I write with a weird bastardization of both methods, if I focus on purely touch typing, I end up slower, mostly because during programming, almost all symbols are on the right pinky
@graceful basin
I used to do that. My guess is if you spent a couple of weeks forcing yourself to touch type properly, you'd end up in a better place
probably, but breaking about a decade of practice is hard
i remember typing with one fingers then two
i actually did okay with just two fingers
then i started doing touch typing practices, learned "proper" gestures, and went on from there
Can you type with one hand
Well I am doing my test again
i do type one handed if i'm eating sometimes
since i memorize the keyboard enough
i'm doing it right now
Ok
same
I will send a screen shot soon
I mean if you type without seeing the keyboard
Itβs good
What's taking time is when you type wrong then stop to looking what is the correct letter in the keyboard
That is a very funky test- I was getting errors on spaces and stuff where I'm like 99% sure I wasn't typoing
gonna try again two handed
Typing also depends on keyboard
I use a normal keyboard
Some people use mechanical
Does this test related to coding skill?
I mean like hackerman typing godspeed on movies
Ok
nah, it's just typing out paragraphs of random text
though typing faster can make you more productive
because you can write out what you're thinking much faster
i'll do the minute test
Ok
Rounded up perhaps?
Β―_(γ)_/Β―
I once had this kind of test for a customer support job, pretty sure my speed is above 100.
Back when I was young
π
h
i can only get above 100+ wpm on my macbook, because it has a smaller keyboard
on my mech keyboard the spacing and keysize are different, and i'm not used to it
not to mention the keys have to be pressed down further than my laptop
so i'm usually around 90wpm on my mech keyboard
I'm faster on a mechanical keyboard but my partner needs low profile domes or butterfly switches
Everyone's different
I guess I will practice
i've been on a macbook pro since 2011
and i've been using apple keyboards since 2007
The same MacBook pro?
so yeah, my hands are basically molded to the keyboard
If your MacBook thatβs touch typing
nah, but their keyboard standards haven't changed that much
Fair
as in the spacing between keys and actuation and such
I couldn't recommend a MacBook today at the prices they're asking, but the keyboard seems really good
the 2012-2014 macbook pros are my favorite
But of course you can just buy the keyboard!
i hate the newer ones
the newer ones have a different feel to the keys and they actuate way less
and they're also a bit too clicky for my tastes
the keys are also much thinner
Clickyclacky is good imo
clicky is nice when not in excess
You guys wanna see my keyboard?
sure
switch wise i think brown is the clickiest i can take
blues are too loud and take too much to actuate
though recently i've taken an interest in padded reds
it feels like you're pressing on cushions and they're so comfy
i love it
not to mention the bonus effect of them being somewhat quiet because of the cushioning
Lol i was doing typing test on my carpet
Fair enough for a laptop keyboard I guess
Woah what website is this?
lt uses random words
https://typing-speed-test.aoeu.eu/
Itβs nice they advice to take a 2 minute break
So no punctuation, just words
https://10fastfingers.com/typing-test/english 10ff is pretty much the standard one if you're doing random words
Typing Test - 10fastfingers offers a free online Typing Speed Test Game in multiple languages. You can measure your typing skills, improve your typing speed and compare your results with your friends. How fast are you? Visit 10fastfingers.com and figure it out!
I'll go ahead and try that out
Still fair I guess
I really should learn to use my thumb for space
how can you use anything besides the thumb for space??
Though keyboards either being too small or too big for me to comfortably hit space with either of my thumb does not help
from the sounds of it
your hands are in terrible positions
ideally, hands should be roughly like this when typing
71wpm for me :P
I got used to floating my thumbs/other fingers because of rhythm games
is that?
I typically don't have my palm flat on the surface
your hand?
you don't want your palm to be flat on anything
Hey I have a question related to android dev
I know it's very off topic but maybe you guys could help as usual
Okay! So I have an app which has two activities, the first activity appears once, only when the user starts the app for the first time.
This first activity takes a user input and passes it to the second activity which then displays it
So I expect to see this whenever I open my app, but in my case, I see an empty screen when I open my app again
Here's the code for my first activity:
String prevStarted = "prevStarted";
EditText editText;
@Override
protected void onResume() {
super.onResume();
SharedPreferences sharedpreferences = getSharedPreferences(getString(R.string.app_name), Context.MODE_PRIVATE);
if (!sharedpreferences.getBoolean(prevStarted, false)) {
SharedPreferences.Editor editor = sharedpreferences.edit();
editor.putBoolean(prevStarted, Boolean.TRUE);
editor.apply();
} else {
Intent intent=new Intent(this,MainActivity2.class);
intent.putExtra("nameID",editText.getText().toString());
startActivity(intent);
}
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
editText=findViewById(R.id.myName);
}
public void openSecondary(View view) {
Intent intent=new Intent(this,MainActivity2.class);
intent.putExtra("nameID",editText.getText().toString());
startActivity(intent);
}
}```
And here's for the second:
TextView textView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main2);
Intent intent=getIntent();
final String value=intent.getStringExtra("nameID");
textView=findViewById(R.id.myTextView);
textView.setText(value);
}
So is there a way that my data from the first activity stays saved in the second even after my first activity doesn't exist any more?
