#ot1-perplexing-regexing
1 messages · Page 380 of 1
@plucky ridge I'm not xD
Would be a weird hostage situation. "HELP ME INSTALL ARCH! YOUR LIFE DEPENDS ON IT!"
ikr
relevant xkcd
And yet it's still ungodly common
tar is great
Actually I kind of feel like that's how a lot of Unix/Linux things are
Like they're crazy commonly used but still need to be looked up all the time
they try to make the command options memorable
but just fail
iunno
tar xf is pretty memorable
yeah but
doesn't get more memorable than extract file
you have to remember that it's x and not e, and "extract", not "unzip" or whatever
and that it requires the "f" parameter
why would tar archives be related to "unzip" in any way
zip is a windows thing
I know
but that's how the memory works
you basically have to know it's extract
not guess
what other action would you perform on an archive
okay. I guess that comic is then wrong.
since we have a counter-example.
yeah idk why he chose tar as tar is really easy to remember
should've selected something like
create a symbolic link without messing up the target and the source
gets me every time
well now that's actually easy
you only have to do it 200 times
then you know.
i've just memorized it as "behaves exactly like cp"
heh. good one.
and yet i still doubt myself every time
I memorized it "the new name I want to use will be last"
I think the moral of the story is that even something as simple as some ncurses text ascii graphics popup on top of the ln box when trying to fill in the arguments would help
with arrows or somethign
now that would make more people adopt the command line and linux...
actually...
zsh + oh-my-zsh has that...
dev@ursa-minor ~ ln --relative
--backup -b -- create a backup of each existing destination file
--directory -F -d -- allow the superuser to attempt to hard link directories
--force -f -- remove existing destination files
--help -- display usage information and exit
--interactive -i -- prompt before removing destination files
--logical -L -- create hard links to symbolic link references
--no-dereference -n -- treat destination symbolic link to a directory as if it were a normal file
--no-target-directory -T -- treat destination as a normal file
--physical -P -- create hard links directly to symbolic links
--relative -r -- create symbolic links relative to link location
--suffix -S -- override default backup suffix
--symbolic -s -- create symbolic links instead of hard links
--target-directory -t -- specify directory in which to create the links
--verbose -v -- print name of each linked file
--version -- display version information and exit
``` and you can tab through those
yeah i was gonna say
zsh already tells me what i'm completing
those autocompletions come in super handy when working for instance with docker
not having to remember the names of the images\containers is a blessing
aye
also git branchnames
yep, also have that https://arse.ee/CGH8fTvT.png
zsh is great
I've got it so it also tells me the status
! is uncommitted changes, + is added files, etc
who cares about such trivial details? just git commit -am "LEEEROYYY"
I guess those features come naturally through pycharm so they kinda get ingrained into the brain without ever having to think about them as "uncommitted changes" because that's just the "blue icon"
blue icon means : click git commit, red icon means : click git add
yeah, I don't really use graphical git integrations
PyCharm's one isn't too bad
the pycharm git thing definitely doesn't get in your way
but it's there when needed
They also improved it in the most recent update
Although it can be a bit fussy
"Hey uh.... did you want to add this new file? Hmm? Hmm? Didya?"
that... sounds familiar
I was trying to be a master of the .idea directory at some point but just decided to add it completely into .gitignore because it never transferred nicely over a clone\commit\push
there were always changed files
I'm more confident in knowing what it's going to do rather than me have to piece together what I should do
That's the one that pregens a big ol' ignore list, right?
except it doesn't work
And like parts it out into sections?
I mean the premade IDEA .gitignore list
Weird
it does do that
but it can also ignore only the stuff in .idea which is unsafe to push
actually it does that by default if you have it generate the ignore file
Is it a matter of it not being safe or not being useful to push?
Because I thought most of it was like config data for your session
Some of it is
but some of it you do want in the repo
like style settings, run configs
stuff like that
oh wow.. this is horrible
playing with discord settings and decided to enable light mode again for the first time in a couple years
still sucks. dark mode, here i come
light mode should be removed
wut, of course it shouldn't
@wheat lynx i bet you're not a real wookie
I bet I am
that's what a wookie wannabe would say
he's a REAL wookie
or she..?
i'm actually surprised that a wookie managed to even fit into a power rangers suit
yuss
the new mtg set will have 🦦
this is a brandnew world for us magic players. playing our favorite tribal deck, the otter.
the otter will climb walls, the otter will swim rivers and scale mountains, it will steal all of the hearts and minds.
blue is evil though 
but so are otters.
i miss mtg, i jumped ship from arena after they made their battle pass
Seems like a pretty dumb card
im also currently re-installing it lol
Otterly pointless
🦦 Okay, looking at the angle that the otter is at, it looks like someone is just shooting him out of a cannon
Or is that just me
I can't see what you mean. No matter if I look at it this way or the otter
You otter be ashamed of yourself
(that's a lie I totally see the cannonotter)
He needs a little dare devil helmet
man, the puns need to stop - this is getting out of hand otterwise
Water you talking about? I think you're just being shellfish, wanting to hog all the puns for yourself.
dahek is a you'll type card?
jesus how many lands is that
@quaint rivet do you have any idea if there's some price dataset available for cards
price history
BBBBBBBBBBBBBBB is the cost
i would look at scryfalls api
some exodia shit going on
Random not even interesting fact about Scryfall - one of the people who helped make it (CubeApril) is a security engineer or some shit at Mozilla
I'm currently considering dropping a bunch of money on Arena
@quaint rivet make friends, play brawl!
there are two ways to play Historic Brawl (well, three if you have real life friends too) but one is arenabrawl.net and then the second is to join a brawling discord
is this that dragons of dungeons game i keep hearing so much about
historic brawl 💌
You want full art lands - I got a draw full of 200eur worth
i feel like arena's one of those games where if you dont pump some money into it semi-weekly youre gonna fall behind, its a fun game, i just wish i had more control over what i got if im gonna spend that money
@quaint rivet for standard it's true
I think the trick is to be able to drop ~50usd every set drop
but arena is still pretty "tame" compared to cardboard. you can keep up realistically with 400-500 dollars per year and play anything
or your gonna have to grind for some stuff
like i dont mind throwing money at mtg, i just wish i was able to buy cards directly instead of relying on rng or wildcards
You can do that with MTGO - but its more expensive, less nice to use, and the players are more competitive
yeah mtgo isnt cute enough for me
MTGA is nice to use, but you can't play cube or modern on it
but I honestly like putting the 100 to 150 dollars per new set because it feels like I'm getting something worthwhile and I'm not being ripped off
All I want is a decent way to play EDH online
and decent people to play EDH online with
whats edh
commander
never played commander
EDH = elder dragon highlander. the original name for commander.
before it was an official format
i should look into tabletop simulator mtg, though that sounds kind of awful
yeah, I just type EDH because its shorter than commander and I'm used to all the rarted MTG slang
Playing MTG in any client that doesn't enforce the rules seems miserable
Stuff like having to manually draw every turn would get irritating
Oh hey, that drawer has like three new steam games worth of cards in it
just positioning all the cards sounds abysmal lol, you can script actions in tabletop sim though, so maybe it wouldnt be that bad
checking if MCM's API would provide the data for prices
it does, yeah
I'm only seeing access to your profile\stuff management basically
https://api.cardmarket.com/ws/documentation/API_2.0:Market_Place_Information
Their docs are miserable, but I'm pretty sure I've found price info somewhere in here before
they have something that they call a price guide
ok so that's the latest snapshot
I wonder how much you would have to pay them to get their data...
https://api.cardmarket.com/ws/documentation/API_2.0:Articles
You can get listings for a specific card I think
oh maybe not
i don't think they let you access history
that stuff is not on the website so why would the api give it to you
you'd have to start collecting it yourself
so there are sites that have historical price info. And I don't think they're maintaining it themselves https://www.mtggoldfish.com/price/Zendikar/Oracle+of+Mul+Daya#paper
So i'm pretty sure you can get USD price history
and I think you probably can for EUR price history as well
I doubt you could do particularly effective quant trading though
well I'm not looking for trading
Well, by quant trading I mean algorithmic buying/selling
as in the stock market meaning of quant trading
i'm looking to predict maybe things like "what card should theoretically have a lot of potential to break in the future"
i have some ideas on how that might be doable
There's a lot of dumb people doing "MTG finance" and making money off it - probably also a few smart ones. I imagine there is some room for that kinda stuff
or "what card shows a lot of missing synergies but looks like a strong card otherwise"
"what card shows a lot of synergies already but can still get more valuable"
"what card is overvalued currently"
There's tonnes of strategies for that kind of speculation. Just google MTG finance and there's probably stuff you can read if you want to look at what people already try
Here's one interesting example. A guy on the site I linked does weekly "Budget magic decks" where he makes playable decks that are affordable - almost every single week as soon as the article releases, those cards spike on MTGO
seth?
yeah
heh. he was good
spbaso
or is
there was also the ben bleiweiss or what his name was
that used to do it back in the day
the column was called "Building on a budget" i think
I just like the Seth example because its such a noticable trend - and I imagine if anyone could figure out his decklists ahead of time, they could make regular money
but probably less than a decent full time job
if you're looking at $/h
checking out for if this bleiweiss guy did anything really funny worth mentioning.
20 votes and 10 comments so far on Reddit
Alright; do I drop ~100eur on random cards on MKM, or do I drop ~100gbp on MTGA?
or do I buy a keyboard
MTGA easy
none?
You don't seem to understand my determination to waste money
Fair 'nuff haha
im considering jumping back in to arena
though im not looking forward to remaking my decks at all
I palyed mtg some times ago, I wanted to get a deck, but I looked some prices online
NOPE
I think standard at the moment is meant to be bad - historic is what I want to check out
and yeah, MTG is expensive if you want to play any format besides kitchen table or EDH
@undone berry i'm not sure competitive historic is worth much either but
i've personally fallen in love with smashing brawl because it's just so... creative?
plus the investment isn't huge
The kind of magic I enjoy is the semi-competitive stuff - playing decks that aren't the best, but can reasonably go toe to toe with the best
i like off meta shit, mill decks for example
though i had some gnarly angel decks too
The decks I like are the stuff thats at the shit end of meta
oh - IKO releases in a few weeks
I guess I may as well wait for that
doesn't really matter if you're aiming for wild cards
Yeah, but I'll probably get a standard deck, and I don't want to burn wildcards on shit
I blame you @rough sapphire
yuss
that's a good purchase in these covid times, friend.
now you're safe and sound.
christ
i think im just gonna grab the battle pass in 5 days when the current one is up
this sdk is the most fun ive had with python so far haha
Should i learn JavaScript ?
Well there is no JavaScript discord . If anyone have one feel free to dm me the invite 😃
Ah - thanks
from charlie
didn't realise it was banned
was about to offer to DM it
I've only asked for help there once - so I can't speak too much for the quality - but it seems like its probably ok
You didn't need to delete the message @quaint rivet I was about to ask where they source their data from
i didnt blur out one of the many times it displayed my name haha
The ultimate Magic: The Gathering developer resource. The MTG API allows developers to easily consume MTG card and set data in JSON format.
oh sure
If you have your face on your Discord, why are you worried about your name?
Thanks
or is that someone else's face?
Or is it a face ?
no, thats my real face. though i dont see a reason to give a big server like this more personal info than i need to
if people want to find me they probably can either way 
most likely just being parinoid
Thats fair - I'm one of the people who's given up trying to keep real life and online separate
I'm about as doxxable as it gets
What is your profile then hhDude, is it a famous person?
not sure what you mean
o
I'm bad at reading
Ignore me being dumb
That booster generation thing is dope - I assume you can make custom sets and then use that for cubing or whatever
id imagine so, though im still just jumping from feature to feature
i think my next project is gonna be a deckbuilder that pulls from cards in my library
scraping my log files looks like a pain in the ass and im for sure not entering it all by hand
Black + Blue / Blue decks are 😙👌
But then again I'm the type of person that plays Pikachu on Smash Bros. and hops around thundering everything.
Smash bros is such an enigma to me - I'm unbelievably bad, but I'm also drawn to it
I'm not remotely close to a competitive level. I initially started with Fox on the original 64 version, and moved to Pikachu shortly after
I haven't played in like 5~ years now
im trying to convince myself its not worth the money i know ill spend on it again
It's very much sunk cost
"I've spent so much money, I'm bound to blah blah blah"
Also known as the gambler's fallacy
i cant even make that argument, all my decks are illegal now. i dont really have any misguided commitments to the game anymore. i just think its a good passtime
but you pretty much get dunked on without some kind of monetary investment
unless youre playing like every day for 2-3 hours for the coins and free boosters which is pretty unreasonable for most people
I despise those manipulation tactics- but they're so prevalent now its just depressing
yeah i was pretty bummed out when i saw they were adding their version of the battle pass
@quaint rivet that deck is perfectly legal in historic
yeah, fair enough
and yeah that deck looks suh-weet
i feel like theres gonna be some busted ass shit in historic though
as that pool gets bigger anyways
I don't think historic is too busted - but you'd probably want to make changes
ive only looked at my decks since reinstalling, no idea
well you have just "play" which I guess is technically "casual historic" but you can get whatever there
the play lets you play anything
yeah im probably just being cynical for no reason, its not like they’re deleting my cards
well try making a historic brawl deck or something. that's fun. we can play tomorrow?
sure ill give it a shot, ill ping you with my username next time i see it
sure. there's a trick to making the deck since brawl is technically only standard. the only way to do the historic part is playing against friends\challenging people so you have to specifically choose "friendly brawl" from the deck type list
@rough sapphire remind me at some point in the future and I'll also play brawl
@rough sapphire @undone berry my username is devise#24038 if you wanna add me
I have no idea what's going on.
Trying to upload a Discord bot and get it running.
@orchid gale probably a question for a help channel, they are just under us on the left side (currently #help-broccoli and #help-popcorn)
dunno if i just found a workaround for the rate limit or just made a 280MB file with 6.6 million lines for no reason lol..
in hindsight i definitely dont need all the whitespace i thought was gonna make it more readable
Which video editing software would you recommend on Linux?
Since premiere is, well, unavailable
Hiya! I got an ergonomic mouse (the vertical one) and an ergonomic pad
Should I use just one?
that's really a matter of personal preference :p
Cause it's kinda not comfy 😦
Preference unlocked
But I like both!
you could put them in a glass tank and treat them like pets?
😮
Jokes aside, are they made to be used together?
Cause maybe it's just a matter of habit
not sure, i guess? i think its just your first-ish time using them and you aren’t used to it yet, like breaking in a new pair of shoes or whatever.
i hate almost every new mouse i get for like a week cause its not the exact same shape as my last one then im good
Also doesn't help that the ergonomic pad is shaped like a cat paw
mmm, maybe lol
@quaint rivet sent a friend request on MTGA.
ok, im heading to bed soon (7am lol) but ill accept it when i can
[master 3e80e26] Update `README.md`, `CONTRIBUTING.md`
2 files changed, 89 insertions(+), 20 deletions(-)
Finally wrote out a proper readme. git merge issues/hopes_dreams
Hm. Looks like GitHub Actions is getting wonky. Having some failures out of nowhere, that seem to have started a couple hours ago. GitHub status says degraded service. Hopefully it's them, and not me lol
Not a pc expert so looking for a bit of help diagnosing my problem - hoping for one of you to be a bit more knowledgable - my pc keeps on turning off randomly or completely freezes but stays on. I'd put this to overheating before as one of the fans stopped spinning but I've since fixed that and also realised if it gets a small kick etc it also turns off suggesting something might be loose? It all started when I moved my pc from uni so could be that. I've had a few different errors, some with no text, some with broken text but the most recent blue screen was kernel security error which I've already troubleshooted but freezing still persists. Any ideas?
sounds like a mechanical problem of some kind yeah. it might be overheating in the sense that the heatsink gets detached a bit from the CPU core? or maybe one of the cards or PSU cables gets detached from the mobo?
tysm 🙂 would you say its risky or not? as i can either try now and risk f'ing the pc up - or living with it and visiting the PC shop after quarantine @rough sapphire
You might just need to jiggle things inside.
use hwmonitor or something to keep an eye on temps
Taking the appropriate precautions for such an operation. Antistatic, personal electrical safety, not screwing up the cpu/heatsink paste or bending pins.
Like our desktop can be a bit vulnerable to physical shock. Sometimes I think the cards get a bit...not loose, but...off.
Things got a bit better when I moved it out of accidental kicking/kneeing range. I'd knee it and it'd freeze or restart.
But then also I think newer linux setups weren't managing the cpu clock scaling properly, either, so stability there was an issue until I locked that down in software...as distinct from the cmos...which the os kept overriding.
@dry idol I'm gonna throw in another possibility -- dirty power
charlie, are trackers still a thing for mtga? if so can you reccomend one? i forget which one i even used to use
Do you have your PC running off a UPS?
alright thanks - ive moved my pc a good distance away - and so youre suggesting to check and tighten all the screws?
I never really looked into trackers
im not sure what ups is? i may have accidentally switched onto an old cable though?
@dry idol "Uninterruptible power supply" - I have all my electronics on one of these now. Battery back-up, plus power filtering
I used to live in a house with REALLY bad wiring, and I bought one of those because the power would flicker constantly. I found out later that even outside of such conditions, the power that comes out of the wall outlets is often "noisy", and that can contribute to the degradation of electronics
There should be powerboards which level that out.
They're not cheap but I recommend them unreservedly to anyone with a desktop PC
yes, but this also helps when the power drops altogether!
(and that happens here with dismaying regularity)
It's just something else I thought I'd throw in
alright ill look into it 🙂
@dry idol Motion seconded in re avatar :D
❤️ beats my old jacob sartorius one lmao
test
_ ❗ _
append & to the end of it
👍
@rough sapphire by data you mean message logs?
They're stored in our database, yeah
I'm tempted to write to the ICO about this, since Discord does not provide us with reliable information about deletions
not to accuse them, but more to ask how should we handle this
They should definitely have a protocol in place
and it sounds like a great idea since your Dad can help
I do get what you mean with the 6 months though, for logs I can see that they aren't going to be perpetually useful like the infraction system, and I am tempted to implement a system for that
What's the context for that?
Ah, I see
That's right, yeah, Discord expects you to poll to check for user deletions
instead of just telling you
I remember being annoyed about that way back when they added the data stuff to the ToS RE bots
though that isn't what the ICO says is protocol
we should not have to get it from them, nor do we have to
That's right, yeah
The GDPR specifies two circumstances where you should tell other organisations about the erasure of personal data:
- the personal data has been disclosed to others; or
- the personal data has been made public in an online environment (for example on social networks, forums or websites).
If you have disclosed the personal data to others, you must contact each recipient and inform them of the erasure, unless this proves impossible or involves disproportionate effort. If asked to, you must also inform the individuals about these recipients.
this paragraph makes more sense in context
consider this:
you are a marketing firm specialising in data
so you take info from the national register or something
then someone phones up because they received spam mail
you're supposed to inform the companies you sold the data to that they want their info removed
because it's unrealistic to go down that rabbit hole
The problem is that Discord requires bots that store data on users to delete/anonymise that data when an account is deleted
but they're unwilling to actually make that easy for the developers
which means that you're going to have quite a lot of bad implementations
define "anonymise" because that's an issue joe and i are talking about kinda
I usually use the GDPR definition of PII
speaking to my dad about it now
he says that the real solution is for us as an organisation to review the information regularly and see if we are happy with what we hold
‘pseudonymisation’ means the processing of personal data in such a manner that the personal data can no longer be attributed to a specific data subject without the use of additional information, provided that such additional information is kept separately and is subject to technical and organisational measures to ensure that the personal data are not attributed to an identified or identifiable natural person;
because we have the ability to delete the data easily upon request we are good
and we don't have to if we feel that it's required
so we may do a partial erasure
in his words "everyone would be calling the police to delete their criminal record and the police would tell them to fuck off"
so we don't have to delete message logs if we feel they are useful
we can retain the right to keep message logs on hand if we feel the user is deleting the content to evade punishment, even if it has PII in
so at the end of this, what I am understanding from my father is that, even though we get personal data from Discord, we should be the ones making the call on whether to delete that data, in most situations that may be valid and we can erase some data, but it will almost always be a partial erasure because infraction data, and in some cases message logs, are important to the smooth running of the community
the key is the response, the issue is when people request deletion and no action is taken and no one has a clue how to delete the data or what information we have on a person
luckily since every user has an identifier it's very easy for us to find that quickly
and delete it
but my fathers suggestion of a semi-regular review of what data we hold does sound like a good idea, and one that I'd like to perform for the data we hold
and that probably would remove the majority of anti-spam message logs
what does your Dad say about if someone has a linked github account in their comment with their linked contact info? that seems like an issue
that's public anyway
yeah so I asked about what if there was PII in the message logs
that's irrelevant
because if we deem the message log useful for future operation, we keep it
and if we feel it's acceptable to delete it, we can delete that
so my dad was saying if we had a "serial spammer" and had delete logs for that, we can keep that because we have justification there that they may offend again and it could be useful to have that information on hand
We currently don't have a lot of messages stored and we could probably purge it automatically every so often; there's need for us to store it for the short term, but not much more
Other than the antispam, we don't keep message logs
yeah, but where is the justification for not just replacing the message with <Message deleted>?
it doesn't even have to be automatic, just a regular review as an organisation is sufficient
How many deleted messages are in the database right now, just out of curiosity?
We currently have a little over 200 anti-spam events, but it includes deletion events in private channels
it doesn't even have to be automatic, just a regular review as an organisation is sufficient
@bleak lintel
No, but that would make it much easier
I don't really see a reason to keep old messages around
that count looks a bit high, though
We only have a little over 200 events, and most of them have 3 or 4 messages
Not 30-35
hm
No, it certainly does not store all deleted messages
Only antispam and clean commands
Maybe there's a huge clean command in there of a test channel
Can you find the max context with your SQL fu?
ah wait
It's a deletion of @royal lake error messages trying to mute a million users
yeah
or, er, deletion
i guess
... is this supposed to be publicly accessible?
someone just nuked everything 🤔
No it was not
We nuked it for that very reason
it was supposed to be behind an auth
yes
yep
We review them immediately after the filter triggered to judge if we need to yell at someone or maybe pardon their mute
if you make it publicly available, it might be useful for NLP research and anti spam bots
if you can that is..
I don't think we're interested in providing message datasets right now
the content of the logs is super useless in most cases
it's either python code or just random letters from a spam bot
What does it do differently to Chrome?
the main ones from what ive seen so far: it's much faster and memory efficient, less cluttered ui, better privacy controls, and the integration with microsoft account might be seen as a plus for some
iirc microsoft just went in and cut out a lot of the unnecessary excess
If my win10 is mostly updated, will I have the Chromium version of edge?
wasnt the case for me
had to download it manually
not sure if that's how it is across the board
the old edge functions really well as an ebook reader
so am still keeping it around for that
What format is old-edge good for? Just epub?
hm - its pretty rare that I read epubs on desktop, but I do remember being it a pain in the ass. I'll try edge next time I guess
if you wanna insall chromium edge and keep legacy edge around there's some stuff you gotta do beforehand though
For now I'll just leave Chromium edge - too much effort to switch away from Chrome at this point - I don't really have any problems with it
chromium edge sounds weird ... like a daily build of chromium, the newest test version, for those who wanna live on the edge
@sand goblet @rough sapphire @rough sapphire following the earlier discussion, I've made some amendments to the privacy policy at https://pythondiscord.com/pages/privacy/ and also written up the first of our monthly data reviews https://pythondiscord.com/pages/data-reviews/12-04-2020/
We're a large, friendly community focused around the Python programming language. Our community is open to those who wish to learn the language, as well as those looking to help others.
Yep yep
👌
Anonymous statistics is pretty vague, if youre looking for feedback
right, that's true
hard to resolve though, the code for the statistics is fully open source
maybe link to that in the what its used for column? that whole row doesnt explain much
not trying to be a pest, just give feedback. i do think its cool you guys are actually telling people what you do collect though.
yeah no worries, it's good feedback
I think I'll just create a new page for what stats we collect
@quaint rivet https://pythondiscord.com/pages/privacy/statistics/
We're a large, friendly community focused around the Python programming language. Our community is open to those who wish to learn the language, as well as those looking to help others.
also added link to privacy page
Hey im not sure where to ask this but i got a raspberry pi and i would like to make it so my discord bot wont crash or when it does so it gets relaunched and also starts the bot on startup im using a raspberry pi 4 model b btw
no clue what that is
Linode has an article on it
ty
does pycharm has support for json files?
Yup
@sand goblet what is the plugin?
No idea, but mine does
huh?
Hm. Only played about 3 hours back in 2017. But think I'm gonna pick up Horizon Zero Dawn again. See if I can't get into it this time
is that still an exclusive?
I believe so. Haven't checked into that part yet. Nearly all my gaming, minus a couple small things is console
Good to know it's available in other systems as well now 👌
Hypothetically, would a list implementation using hashmaps be effective?
@whole roost compared to..?
python already has hashmaps, it's called a dictionary
a regular list
Yes
would you think it would be possible to create a O(1) list implementation?
would it be possible? sure
but why go through all the effort when you already have it built-in?
d = {0: "Item 1", 1: "Item 2", 2: "Item 3"}
d[2] # O(1)
or i'm not really sure what you're trying to achieve
I do useless projects for a hobby
I just did it for the operator overloading
lst = xlist @ [1, 2, 3]
lst << 4
# [1, 2, 3, 4]
Just for the fun of it
What's the @ at the front of the list? I haven't seen that.
Only ever in function decorators.
It's a matrix multiplication operator
I overloaded it to convert any iterator to my own implementation
Isn't this just obfuscation for lst = xlist([1, 2, 3])?
That's the "normal" API for creating some iterable object from another iterable object
Just have a function that constructs it or have the __init__ of your custom type take an iterable
Yes, it's just an obfuscation
It's just an overload for the __init__
A minor question, let's say i have class
class Dummy:
def __init__(self, *args):
# Do some stuff
Is it possible to overload the Class itself?
What do you mean by overload the class?
Handle stuff like
foo = Dummy[..]
Handle indexing and slicing?
@global Dummy?
Make it a class method then
No, let's say that:
x = Dummy + #another class
I'm just wondering if it's possible
to overload an operator on the class itself, and not an instance
Overwrite the relevant dunder method and refer to the class itself?
You can make a classmethod dunder
https://www.youtube.com/watch?v=kRKnCWz0WUo here a vid for who wants to see how to make a login system with tkinter
Here's my first video, comment below what you'd like in the next video. For now leave a like and subscribe to support this channel!
Here the link for the script:
http://www.mediafire.com/folder/mwvg7wt90hxqj/tkinter_login
tags(ignore):
python, tkinter, programmat...
@copper hatch it's much easier to read code with foo, bar, foobar etc rather than x, y, z
any sort of code more complex than three lines would get harder to read
I tried a little of tkinter. Ended up on kivy.
foo is also an universally accepted "placeholder" name
as opposed to x etc which are used in production code
I'm pretty sure I can find foo in a production code
I accept that foo and bar are things and that they're the convention. I just find them confusing for whatever reason, is all.
sure you can
Anything can be on production code
you can find just about anything in production code
trust me, i know
but it's not socially acceptable
Haha I trust you on that one
*ptsd flashbacks to that one time I found a 1290-line if, if-else chain with tonnes of gotos sprinkled in there*
fuck production code
Ew.
Outch.
it's honestly like someone took the IDA decompiler's pseudocode output and used it as actual C code
That's disgusting
Struggling to properly wake up today
I know that feel
Do you think yo enjoy it because of nostalgia, or do you think it would be worth checking out if I have 0 experience with any jrpg ever?
The latter, honestly. 7 wasn't ever really one of my big faves. The combat is really good, the characters are full of personality and you feel for them, and the game is just gorgeous. You can tell they put a lot of love into it
I'll keep that in mind. I'm looking at getting a PS4 soonish for like 2 games, but I'll probably check out ff7 as well
I have a PS4, and while we do enjoy the games we have
it's a small selection of games
like 60% of the reason I want it is Ratched and Clank
I will say, there are moments where it's nice to have a minor knowledge of the previous game, however it's not required. There are lots of changes to the game, and while a lot of the major plot points remain the same, the connecting pieces are different enough that you still don't know what to expect
Wait, what?
"Small selection"?
yaeh - but I'm a sucker
Are we talking about the same console?
well, yes, hemlock
Define small selection
I mean, think about it
Playstation as a platform is known for stuff like
the fifa games, NBA, driving games, shooters
Is it?
some of those are definitely exclusives
you have a few solid series
uncharted, ratchet and clank, now the last of us is technically a series
those are exclusive
Because to my mind, it's known for things like The Last of Us, God of War, Horizon: Zero Dawn, Uncharted, I can go on
you have some absolutely fantastic fucking games, like horizon: zero dawn
So I find it weird to say that it's defined by the sports games
which are no longer exclusives
Also the selection of games is not at all small
and then you have a slew of great indies and none of those are exclusives
Compared to PC? Sure
Well then qualify it
Are you saying just based on exclusives?
Or are you saying total
Well, exclusives are what sells a console, largely
FFXV, Horizon: Zero Dawn, are two fucking amazing PS4 games, and I played them on PS4
monster hunter: world
Yeah, tbf, I would only be buying it for the exclusives
Persona
So?
so, if you already have a decent gaming PC, you're not going to buy a console to play them
MHW wasn't an exclusivity
But I don't
you're just going to buy them on steam and maybe buy a controller
And I don't want to pay to upgrade my rig when I have a console (and for most it would be cheaper to get a console) to play it on
yes, but I do, and I think Charlie does as well
Then good for you
But I feel like it's unfair to be that as your reasoning for saying PS4 has a small library
You didn't, but I can see where the previous statement could make it be that
well, that's what I meant
PS+ is kind of nice
I'll grant you that
I played Hitman through that for example
My major point is that I don't want to have to do upkeep on a computer anymore. It's too much effort, too much money, and I can just buy a console and be set for the next 6 or 7 years
..although Hitman is currently 84% off on Steam, but
I mean yeah, but you can buy a good PC and be set for most of the next decade too
And I'll say my reasoning again, I work on a computer all day
The last thing I want to do is to go home and sit in front of one for another half dozen hours
It does look fantastic and I'm glad they kept combat similar to 15
It's only vaguely similar. You have a lot more control over it
There is a Classic combat style that's closer to that, but it's closer to Kingdom Hearts in terms of combat control in Easy and Normal
Oh, then I'm totally into that
15 was more auto attack and then use abilities from time to time
7 remake is more press button to hit dude
Sure, but I'm saying that you still have to hit the button to swing your weapon rather than target a dude and auto attack
how can i bring background .sh script to foreground? how can i put a sh file to background so that i can put it in background and bring in foreground whenever i need? if both question answer is "NO U CANT" then how can i monitor what is the file doing currently (like monitoring network status, file writing and other status of process)? https://stackoverflow.com/questions/61189098/is-there-any-command-in-terminal-or-method-to-bring-background-process-to-foregr
@low shadow screen can do that. If you want to start something in background, do screen -d -m [your command]. You can then reattach to it (bring it to foreground) with screen -r
if you're in screen and want to detach again (put into background), you do Ctrl+a+d
btw, screen sessions are interactive, which means you can start a shell session inside it screen zsh and detach from it
which is really useful if you're working with limited screen real estate
good
i was thoroughly and consistently drunk throughout it as well
oh god
even when i m not drunk CTF drives me mad
i cant complete most and basically i end up with headache and insomnia
is there command line command for Ctrl+a+d in screen
@rough sapphire
if you're in
screenand want to detach again (put into background), you doCtrl+a+d
you can do screen -d from inside (or outside) the screen session if you don't want to use the Ctrl-A shortcut @low shadow
!rule 5
5. Do not provide or request help on projects that may break laws, breach terms of services, be considered malicious/inappropriate or be for graded coursework/exams.
hmm
noticed something interesting about chromium edge today
other chromium based programs (chrome, discord by virtue of electron) freeze for a solid minute after resuming from sleep
not chromium edge
👏 for microsoft
I'm happier with it than I was the other Edge
But that's really REALLY not saying much
The other Edge consistently had issues printing
Which makes no damn sense
me paying 0.065 usd to aws because there is not option to merge 2 payments -____-
Probably not in their automated system, but you could probably contact their support and get them merged
@vapid bluff And I've had to deal with it on more than one occasion. Mainly because Windows 10 makes Edge the default PDF viewer, and THAT'S where most of the issue lies
But I have had it crap out on site printing as well
wouldnt be an ms product otherwise
Fair point
whats this , i can post message in active help but cant post message in dormant help
yes, dormant channels are locked until they are cycled back into use
hmm
they should move to active as soon as question finishes. there shouldnt be dormant
they are moved into "available" as needed
hmm
the available channel count is always kept at 2
why cant i use port forwarding on ipv4? i can on ipv6
Is one of those supposed to be "can't"?
Are you going through your router? I think I've only ever port forwarded via ipv4
For some stuff I've even had to disable v6
do nc 27.34.51.250 4444 you wont get connected do nc 2400:1a00:bd10:9ed2:78d5:1ded:b0cc:6705 4444 you will get
connected
Hard to know what to suggest without more info. I know how to do it for a couple routers, but beyond that, I don't know
I'm guessing it's going to be either in Network or Application
I hate to say it, but easiest thing would be for you to look up your model router on google or something and find a guide or something
i did i got one
i followed
still
nothing
wait i will show you
i got this i followed exactly still fails
for reverse shell
i already told do
nc 27.34.51.250 4444
you wont get connected do
nc 2400:1a00:bd10:9ed2:78d5:1ded:b0cc:6705 4444
Yeah, that's something I'm not really comfortable helping with on this server.
It has a high potential to be malicious, and it's not really something I want to deal with
you're asking someone to create a random tunnel to a random IP address. yes, can be malicious. 😉
see this proof
I'm not doubting, but it's still not something I'm comfortable giving assistance on in this server
ok
That's honestly the long and the short of it
First time I've seen an ipv6 address in the wild.
I would love to see them used more often but there's so much legacy stuff (and even modern stuff) that relies on v4
It's what?
My ISP assign me an ipv4 and an ipv6, surely that's not how we are going to solve the IP problem >_>
better to move to ipv6 now
Ipv4 over DNS snooping, obvs.
Actually I'm glad I had an ipv4, there was a problem to make my rpi to work otherwise
You make a dns query to your ISP, your ISP does all the routing and returns an arbitrarily determined ip address for that request.
No need for ipv6, who cares if there are multiples of an ipv4, because now each isp has its own walled city of users
ipv4 lives forever
I suppose like all such things, change will only happen when it is forced to by necessity and/or demand.
when run out of ip i guess?
ipv4 lives forever
@soft violet
I suppose like all such things, change will only happen when it is forced to by necessity and/or demand.
@soft violet
Yes. I suppose you're right.
Well, as a species, we're already low on tp, so it makes sense that we'd run out of ip not long after.
if every person on this earth would consume a single ip (not a single public router ip and more private ip) ipv4 will end
thats why ipv6 was created the main reason is running out of ipv4
I think I heard something about that.
if i say exactly then 255 * 255 * 255 * 255 = 4228250625 with some ip block being exception while other are experimental
I was once surprised when encountering an internet-facing address in the 127 block. The only other time I'd come across that was localhost. I didn't believe it was a real address, at first.
its loopback
Not this address.
which
a lot of ISP switched to not giving you a public IP over here
hey xenu
hey
so i now have to pay +2 € a month to have a public one
not to my knowledge :D
i'm from europe
ok
@low shadow It was a number of years ago and I don't believe I've retained a record of the specific address.
ok
It was a Minecraft server.
if that was me then i would definetly record that
Makes sense that they'd use up what ip space there is.
hmmmmmm
and not cut out everything for one single loopback address in that entire block
and not cut out everything for one single loopback address in that entire block
@soft violet i didnt understand this line
???
127.0.0.1 One address. 127.x.x.x How many minus one?
255255255
Why waste?
This is news to me.
...?
as far as i know all ip adresses with 127. are reserved
Well someone didn't get the memo.
that's not how the internet works
wow. I thought the only loopback ip was 127.0.0.1
127.x.x.x from anything other than loopback would be ignored
there are some cases, imagine you want two services on localhost running on port 80
you could assign one to 127.0.0.1 and one too 127.0.0.2
at least thats how i understand it
for me i understand 127.0.0.1 = 127.0.0.2 = 127.0.0.3 = ...
I can have MULTIPLE loopback ips??
Hey. Maybe I'm remembering wrong. Maybe it was 128.x.x.x.
yes
brain explodes
you cant listen two times though
well yeah there's the internal ports
yeah you can have them both on but you can only listen to them at different ports then
for worldwake
they have to be internally listened to at 80 and 81 or something
or I'm not sure what the correct terminology is
Sorcery.
i need someones help
IPv4 network standards reserve the entire address block 127.0.0.0/8 (more than 16 million addresses) for loopback purposes.[2] That means any packet sent to any of those addresses is looped back. The address 127.0.0.1 is the standard address for IPv4 loopback traffic; the rest are not supported by all operating systems. However they can be used to set up multiple server applications on the host, all listening on the same port number.
What wiki says
@rough sapphire Regarding?
some python stuff
no but that's useful - now I don't have to change the damn configuration file - i can just list a bunch of different ips as alternatives
oh
PYTHON HELP:AVAILABLE @rough sapphire read topic
"try listening to all of these"
or something
but that might not solve anything, will have to give it a try. think.
::1
what I'm thinking here is: I have an app running at port x on the loopback. I want to keep it running on port on x but just go to loopback+1 when i start the app a 2nd time
it's a huge amount of zeros cut out
@rough sapphire that's how i understand it too
@deep saffron some apps seem to have default behavior written in them that they just jump up the port but keep the same ip. that's not always so useful since then you have to change the :port part
🤷🏽
the only thing i need it for is my plex server
don't think i have any other service running on my pc (too which i want to connect to from my pc)
oh ... fish-shell config opens a website, so two
the most awesome mind blowing thing i ever saw
How-To-Exit-Vim
Lies. They claim the impossible! Hss!
who
Exactly.
its possible
ESC, :q exited!
and by this
never tried emacs
is it good to learn now
i use mostly vim, sometmes atom
or learning is time wasted
i hate wasting time
as i wasted on ipv4 port forwarding
if you are referring to the loopback addresses, those cant replace port forwarding
nono
What would be the antonym of forwarding? Retaining? Returning?
also if you are happy with whatever editor you use. why learn another one
i want editor that saves me most time
like vim now saves me most time
i dont knw if emacs does
i m happy with vim
but if i get antother good editor i will forget vim
how can a router not support portforwarding ...
it supports bu doesnt work
isp crippleware because they don't want people able to host their own servers?
ipv6 works tho
mh, sounds weird ...
i know
byr everyone got solid hypersomnia thats why i m typing incorrect
need to sleeppp
i had a look at his linked reddit account ... yeah .... well .... nvm
Script kiddie?
well yes - but that wasn't what I found surprising
I'm curious but not so much as to go look
there's lots of not-very-upvoted posts to /r/drugs
Fits with the conversations earlier today
how to smoke a drug, i want to smole what is best way, can tell me ? like take all tabacco out cigarette and put drug in empty cigarette tell me or bong what is best way
:D
Jesus
Proof that drugs are bad for your brain
This is the guy with that reddit post from before
The totally incoherant pro cannabis one?
Yarp
don't smoke drugs they're bad for you mmkay
TBH, that just reads like young kid trying to be edgy.
Yeah, you can tell by the use of memey language.
It's how dumb kids identify each other as other dumb kids who only communicate through memeing.
oh no don't say that, according to his twitter he is a paid bug bounty hunter
|_33Ŧ |-|4¢k€r
while i dont usually agree with what the guy has to say or his lifestyle choices i feel this is bordering on hazing the dude
sorry, you're probably right, tbf i was probably the same way his age ... æons ago
yeah, I was definitely a dumb kid at one time. The culture of what dumb kids did was just different back then.

