« first day (4016 days earlier)      last day (924 days later) » 

wim
12:13 AM
It's not the meta effect, because I'm using sam liew's DiscussedOnMeta.user.js script so I know when Q&A I'm visiting have been tainted by a meta discussion and this one does not have any
@roganjosh sometimes randomly, but not always targeting on the same question like that
 
 
4 hours later…
3:53 AM
@roganjosh I missed this; I would have tried to attend.
I've been rather busy lately, trying to work, homeschool x2, look after bub x1, and keep the house.
 
4:37 AM
I got this notice "New review queue workflows are live"
what does it mean
oh I get it now, sorry!
 
 
2 hours later…
6:23 AM
Hi Everyone, I am trying to find
False positive rate.
I have false positive and true negative value and I am trying this line of code

fpr = fp/(fp+tn)

But its not working giving me unspupported operand type error. I guess values from
tf.keras.metrics.TrueNagatives() are not int right
So how Do I calculate false postive rate then
 
@roganjosh thanks for organizing it, it was very nice to see some faces =)
 
cbg
guys just a quick one if automatedly starting aws ec2 instances and running a python script within said instances. how could one check when said script finishes completely to terminate said instances once done? Trying to write it in a scalable way that would automate it all
 
6:39 AM
do you have logs for that machine? if yes, write a message once the script is done. If no, get access to the logs.
 
that could work...
 
@MalikHamza Here are the room rules, please take a look: sopython.com/chatroom
 
Oh my bad. I didn't know about that.
 
7:15 AM
welcome @CodyGray
 
Hello
Still haven't mastered the delicate art of handling a flag by clicking into the transcript rather than the whole room. Maybe someday.
 
Thank you for handling said flag
 
I saw somewhere it's what moderators do
I thought we just deleted stuff
 
huh, mild shock
I thought moderation was all about swag and the line on your resume, who knew there was actual work involved
 
I did get a hat!
I was elected back when they still gave out hats.
Unfortunately, I don't wear hats, and unlike ChrisF, I don't have a dog to wear it.
 
7:23 AM
Bhargav did get an entire box of swag when he was elected
 
An entire box!
Well, Bhargav's pretty awesome.
 
I think they've restarted the 250k swag thing too, I'm still waiting on mine though
the backlog must be pretty bad
 
Wasn't the 250k swag a signed painting of a unicorn?
 
only for Jon Skeet :-(
for us lesser mortals, it's basically the 100k swag, but a bit better
 
Haha, I see
I don't even know what the 100k swag is
 
7:24 AM
you'll find out in another 25k
 
I think I got some stickers when I earned repz
Anyone want some stickers? :-)
I never know what to do with stickers.
 
I think with 250k you also get a pair of socks
and I think you get to choose between a mug or thermos, but don't quote me on that
 
Wouldn't you already have a pair of socks in order to get to 250k rep?
Maybe more than one pair
 
Stonks
 
Hmm?
 
7:40 AM
Nah I was jus referring that getting free pair of socks is a profit :P
 
I thought maybe you had misspelled "stinks". I think I still missed the joke.
 
A failed joke indeed...
 
ahahahahahahaha
 
7:55 AM
 
ahahahahahaha nice one
 
Gah, the emojis are awful.
 
@CodyGray are you referring to a pair of sock(puppets)? :D
 
Indeed.
 
8:11 AM
who told you?!
 
I am a moderator. I know all things.
 
That makes no sense, shouldn't a moderator only know a moderate number of things?
 
9:03 AM
Since nobody has said it yet: people posting their fresh questions here is not spam, although it's against our rules. Please don't flag these.
we can handle them just fine as regular users and room owners (as it was handled this time too)
 
I want to object to that, but I cannot do so without violating the confidentiality of the flagger(s).
 
Yay for content-free communication!
 
since there are no objections, I'm right
 
That is precisely what I could not allow to happen.
 
9:07 AM
no backsies
 
Is there a way that I can file a standing objection to what you say?
In case I'm sleeping or something in the future.
 
You can sleep standing up? Whoah!
 
9:20 AM
Will try to remember to confirm once I have time to sleep
 
9:32 AM
definitely we will also try then :P
 
 
2 hours later…
11:16 AM
@roganjosh Ahhh, this explains why, when somebody serially downvoted me one time (for some unknown reason), they only downvoted my questions (of which there are three), rather than my answers (of which there are many more). People really do care too much about internet points if they're not even willing to spend them to satisfy an unspecified vendetta...
 
@AlexWaygood Yes. :-) By the way, those 3 serial downvotes were automatically invalidated by the system.
 
@CodyGray Hmm, was it automatic? I remember my rep score going down by 6 for a few days before my flag was resolved. (Not that it matters, it's all resolved now anyway!)
 
Oooh, I lied. I assumed it was automatic. It was actually manual, yes, as you said, after you reported it.
To be honest, I assumed no one would bother reporting 3 downvotes. :-)
The invalidations show up the same way in the mod view whether they're automatic or done manually.
 
It was more that it was <every question I had ever asked> rather than <-6 reputation>
@CodyGray Fair!
 
When I saw you mentioned it, I went to double-check. Didn't realize you'd already gone through the whole dog-and-pony show.
 
11:24 AM
Yeah -- just annoyed me that somebody would take the trouble, and it was clearly serial downvoting given that all 3 were downvoted simultaneously. So I flagged. ¯\_(ツ)_/¯
 
It is quite irritating, I'll give you that.
I'm a huge fan of downvotes as a quality-ranking system, and I encourage their liberal use. But serially downvoting someone out of spite? That's not only mean-spirited, but subverts and misunderstands the whole purpose of the voting system. We aren't voting on people, but on posts.
4
 
hey guys bit of a silly one here.
 
Hi, silly one!
 
I got the error TypeError: can only concatenate str (not "NoneType") to str
`"Authorization": "Token token=" + os.getenv("CRM_TOKEN"),`
and my token in env looks like this CRM_TOKEN=dfsdfsdfsdf
 
If the error is indeed on that line, then you don't have the token in the environment.
 
11:37 AM
when i tried to do the conversion to a string like this, my senior manager didn't like it
"Authorization": "Token token=" + str (os.getenv("CRM_TOKEN")),
Any ideas what else I could do?
 
Check where the token is added to the environment.
 
Your Python script is probably running in a new process, where that token has not been defined.
 
you guys are totally right, thanks a lot haha
 
I assume that str() is bad because it would just result in an empty string (or some other error?) if the environment variable doesn't exist?
 
the pipeline fails so I am guessing i need to add in those build codes wherever the env for that is haha thanks guys
 
11:39 AM
Might help if I knew some Python.
 
@CodyGray the error without str() tells you that getenv returns None. So with str you get 'token=None'.
 
It returns "NoneType"... which string-izes to "None", I guess?
 
It returns None of type NoneType
 
Ah. Isn't that cute! You've reinvented and renamed "null". :-)
 
str is a type too in the error message
@CodyGray probably just renamed, and it wasn't me
 
11:52 AM
That's what they all say
 
And you probably mean JS null, not cpp null :P
Unless you can do thing == null with any kind of variable in cpp
 
No
Because that's nonsense
 
My vague hunch is that null is a pointer
Or, no. Is it the null byte?
 
"null" as such doesn't exist in C++. Rather, you have "nullptr", which is a pointer literal of type "nullptr_t". So it is actually somewhat similar to the whole "None" and "NoneType" situation.
 
11:55 AM
There is the "NULL" macro inherited from C, but that's literally just "0".
 
OK, I'm using C+
 
Invalid syntax.
 
12:20 PM
cbg guys anybody here have experience using boto3 to run ec2 instances and send commands to said instance? with boto3 ssm client?
 
12:31 PM
negative. I've only used terraform for that sort of stuff. I've pretty much only used Boto3 to do s3 stuff
 
damn lol I have an entire process working except the sending commands which oddly is reporting success but doesnt seem to be doing anything inside the machines
 
if you're able to expose an endpoint on your EC2 instance, that should get you across the finish line
 
hmm that may be an issue as dont think will be able to do that
 
12:46 PM
is SSH open on the EC2 instance?
 
1:03 PM
@inspectorG4dget not sure need to look into how to check that
 
@Kwsswart no doubt, boto3 is probably "the correct solution", but having never used it for this purpose myself, the best I can offer off the top of my head is "write a script that SSH's into the machine and runs <whatever> on it"
 
Thanks for the advice mate gno look into both ways and play some more
 
1:56 PM
ahoy holdenweb!
 
2:42 PM
Is there any way to tell if a particular unicode character is one half of a pair? For example, "[", "{", "<" are all intended to be used with their mirrored counterparts
 
unicodedata.name(char).startswith(('LEFT ', 'RIGHT ')) should be a decent heuristic
 
Hmm, I like it. Fortunately I have much wiggle room for false positives and negatives
 
ooh bummer, I wish I'd known this yesterday - DuetDisplay allows only one external tablet for right now. They're "considering" adding support fore more devices, but I might need to multiplex with multiple such apps to get to use multiple tablets for this
 
Not 100% sure what this function does, but mirrored(char) can potentially help filter out false positives
 
I haven't yet decided whether I want "d" and "b" to be considered a pair
 
2:48 PM
 
And whether symmetrical characters like "I" should be a pair with itself
 
any chance you'd be able to "project" it down to the ascii set and filter out anything in string.ascii_letters?
 
@MisterMiyagi Indeed relevant. As I suspected, the consortium made an effort to categorize open/close characters, but they can't capture all the gray areas.
 
Keeping my fingers crossed that KevinCode will fix that.
Or was that unikevin? 🤔
 
My universal character set project will remain in private beta until I can perform a political takeover on every existing universal character set consortium simultaneously.
It's the only ethical way to resolve the "now there are 17 competing standards" dilemma
 
3:12 PM
Living and having to regularly discuss with an anti vaxxer is exhausting. I could finally negotiate an armistice. I care so little about the whole topic and just wish to be left to my devices :'D
@inspectorG4dget I heard there invented a nice new thing called monitors :D
 
@Hakaishin Lol! I have more monitors than my desk can support. So I had to start cramming smaller screens
 
I keep intending to look into remote desktop applications so I can monitor my home laptop with my phone. I occasionally leave home while I have some long-running process going, and it would be nice if I could check its progress on the go.
I've tried doing some rudimentary homebrew stuff over HTTP, but I think the router that Comcast installed for me has foot-shooting mode disabled
 
months ago, I would have recommended TeamViewer. But they changed their pricing model after (what I remember to be) the Oracle acquisition. Now, AnyDesk seems to be a good alternative based on the conversations I've had with people about my options
 
xD Which is how many? I have 2 at home 3-4 at work, but unfortunately some software I use starts running at 1-2Hz when attaching the 4th monitor, so I got 3
@inspectorG4dget sounds about right, give it 6months and anydesk will be the favorite
 
3:54 PM
I wonder how hard it would be to securely open a TCP port on my router and home computer to the Internet, which my phone could then connect to. I'm guessing it's not super incredibly easy, or else there'd be a rich ecosystem of free open source remote monitoring projects on github
 
sure, but VPN + Win RDP?
 
Haha. I didn't think of a VPN. "if only there were some way to... Create a sort of virtual network, which is private"
I guess it's because the only practical use case for VPNs I'm familiar with is "Kevin's computer A privately connects to proxy server B, which makes public HTTP requests to skeezy websites C D and E, without FBI surveillance van F knowing which proxy user is responsible"
 
4:19 PM
Whichever approach I end up using, I think I need to disable training wheels mode on my router. Time to play "guess what password I set five years ago"
I'm tempted to do a factory reset but that might de-authenticate it from Comcast's whitelist, and require me to make two hours worth of tech support calls (not counting hold time) to fix it
 
5:02 PM
@Arne no problem, it was nice to finally meet you, even if only virtually :)
@toonarmycaptain no problem, understood. How's the dev job going?
 
5:16 PM
@roganjosh Good! A little nutty as I'm really < half-time, and a good half of those hours are outside 9-5, but I'm learning...yet to actually really use any python, but I'm becoming vaguely competent with kubernetes, salt, AWS/GCP/DO, and so on, and getting paid more to do it than I was earning working fulltime before to learn while doing, so :)
"working when I can/during naptime" is a huge blessing for my family atm.
 
Sounds like a win-win! Kubernetes is all my company thinks about so it seems popular. "I've got a function for fibonacci numbers" --> "great, we can dockerise that and put it on kubernetes so you just have to spin up a new container and it'll auto-scale to demand... with a only 30 sec lag while it launches extra services. It's much easier"
 
5:32 PM
@roganjosh "much easier" LOL.
 
5:46 PM
Bane of my life on some of our stuff; for some things it makes sense, but they've built it so that everything works in a container. The one time I managed to get an EC2 instance, I solved a multi-week problem in 2 hours
 
how did you guys learn to architect large systems? I've architected frameworks before, but I just realized this system is larger than my previous definition of "large". There's a bunch of exceptional cases that don't quite fit into a mathematically elegant model
I'm starting to wonder if what I lack is experience or education. If it's the latter, is there a resource someone could recommend, to help me improve?
 
I also want to know these things
Too many programming tutorials teach you how to pour cement and bolt girders together, and then say you're ready to build a skyscraper
12
 
and too many people who know how to build skyscrapers (probably because they've fallen off wobbly ladders too many times) build phenomenal things like Airflow, Kafka, Docker, Kubernetes, and terraform; and leave mere mortals like me in the dust
 
6:05 PM
Relatable
 
Kubernetes is taken care of by our engineers (note, plural). I don't think a lot of this stuff can really be learned in isolation from an actual problem; as the company grows, a lot of bats gets thrown into the ring, lots of problems with the existing system are collated, and a new iteration of an architecture is born
 
there was a time that I had a longish-term plan to master a bunch of technologies including kubernetes, terraform, kafka, and airflow. I've since realized that such lofty goals were likely borne out of a naivety of likening tech to pre-Gutenberg era books. Not unlike how there was once a time when a person could have "read all the books", there was likely a time when a person could have "mastered all the technology", but even my example subset may be past the possibility-horizon these days
 
Mostly what I've been doing is taking sortof done helm charts...and making them actually work, rather than making architectural decisions.
 
6:24 PM
 
6:36 PM
Does anyone know whether micropython is a pure interpreter, or is it also a compiler?
 
Wikipedia says "MicroPython is a full Python compiler and runtime that runs on the microcontroller's hardware", but I have no firsthand experience
 
Likewise docs.micropython.org/en/latest/develop/compiler.html discusses the features of the compiler
Ooh, it can emit native machine code docs.micropython.org/en/latest/develop/…
 
Oh, nice! Good find.
 
7:09 PM
for anyone who remembers the time my mom had a stroke (some seven years ago), here's what she's up to today (shameless self promotion - use YT's closed captions for English-ifying the Tamil bits): youtu.be/91MHMMelBz0
 
Hey long shot and sorry if this isn't allowed, but is anyone able to help me with a python project for school by any chance?
 
@Aeroangel hello. You can find our rules here.
Within those bounds it's all good. Being related to homework doesn't matter unless you expect someone to write it for you or something like that.
 
I made a post on stack overflow that got locked they said I posted too much? I'm getting an error but I'm not sure what part of the code is actually causing the syntax error, I've been trying to read about how to trade where the error is located
 
Questions getting closed and you asking too much are independent things
 
Should I post the whole code here or just the part I have the error showing from?
 
7:24 PM
Just pasting your code into Stack Overflow's editor can help. Your last question's syntax highlighting is all over the place
 
@inspectorG4dget interesting takeaway and outstandingly inspiring
 
Let's see. stackoverflow.com/questions/69563948/… was closed because it was caused by a typo. You don't need to feel bad about that or anything, that's just how typo-related problems get handled.
 
@Aeroangel don't post just yet
 
I wish I knew how the debugger worked I'm using pycharm and I don't get it
 
Why don't you use a Python IDE that warns you about errors like those? You can even tell that something's wrong by looking at Stack Overflow's syntax colouring. — Selcuk 18 hours ago
^ that's key
 
7:25 PM
@Aeroangel note that several comments point out typo errors on that question
 
@Aeroangel debugger comes when there are no syntax errors left
 
oh no
 
Ideally typo posts only get closed after commenters explain where all the typos are. If you applied their advice and still got a SyntaxError, I guess they didn't find them all.
 
Look at your code's syntax highlighting in pycharm. Find the red squiggly lines.
 
@PIngu many thanks (I'll be sure to pass it along). More than anything, there's a huge load fo gratitude that goes out to r6 here for helping out during that time
 
7:27 PM
The number of typo issues I face per day may be pushing 50? That's part of programming; it's up to you to fix those
 
Pro-tip: syntax errors often arise from the line right before the line that python complains about.
 
well in pycharm it's not showing squiggly line, I think I got all typos out of library hmm
dictionary*
 
Then post your code in a code paste service like pastebin or github gists and link here
 
You might already know this, but if you're getting SyntaxError, that's almost always caused by a typo. If you're getting any other kind of error, for example ValueError, that's almost never caused by a typo.
 
Is the error you get a syntax error?
 
7:31 PM
Just want to make sure we're on the same page because I've seen people ask things like "why does print(seq[10]) give me an index out of range syntax error?". Only SyntaxErrors are syntax errors.
 
Elitism!
 
syntax error, and sorry for delayed responses on the phone at work, will try the pastebin or github
 
@Aeroangel there's no rush
There's too many of us here anyway, I'll go bake some muffins
 
I don't mind delayed responses :-) it gives the author plenty of time to mentally revise
 
7:48 PM
Thanks so much everyone, here is the pastebin pastebin.com/LtkFsDXQ
 
Ok. When I run your code, I get:
  File "C:\Users\Kevin\Desktop\test.py", line 25
    while current_room != 'Exit':
    ^
SyntaxError: invalid syntax
 
26 mins ago, by Andras Deak
Pro-tip: syntax errors often arise from the line right before the line that python complains about.
 
Is that the error you're getting?
I notice that the rooms = { assignment statement has nine "{" characters, and eight "}" characters. A mismatch of brackets/parentheses/etc is a common cause of syntax errors.
 
at least a syntax highlighter can show that there's an even number of single quotes there
the earlier version had a quote mismatch which messed up the colours in subsequent lines
Once you have the syntax errors ironed out, @Aeroangel, you'll have to face this problem too:
'Master Bedroom': {
    'item': 'Candles',
    'West': 'Foyer',
    'North': 'Master Bathroom',
    'item': 'Ghost',
},
(breaking out these inner dicts into separate lines helps spot issues)
 
9:00 PM
oh wow you can put them on separate lines like that and it will still run??
okay I'm going to have to try this when I come back from lunch thank you so much for the help so far!!
 
It shouldn't be too surprising because you already had a dictionary with items on separate lines. The one starting with rooms = {.
 
9:51 PM
Okay I am really sucking at this dictionary stuff, maybe I can read more about it somewhere, I tried updating it to this: pastebin.com/LtkFsDXQ Master Bathroom doesn't show indented extra on pycharm, I have no idea how the brackets and commas and colons are supposed to be positioned for it to run
 
you're missing the final }
@Aeroangel Hi
 
10:31 PM
AW surprise dog I could kiss you that has something kind of working new error but progress!! lol
Okay here is updated: https://pastebin.com/LtkFsDXQ new syntax error says ''' continue
^
SyntaxError: 'continue' not properly in loop ''' I'll be honest I'm not even sure how continue works or if it is necessary I just found that online
 
continue continues a loop without executing the rest of it
the first continue makes no sense and the second isn't even in a loop
 
11:02 PM
Well I took out both the continues and now I'm not getting any error it just says ''' Process finished with exit code 0 ''' which I don't understand why it's not printing out the game instructions and it's not asking for my input??
I'm looking through the error warning thing it says dictionary has duplicate keys 'items' but I have a different item in every room..
So it won't print the first line I said to print for some reason? When I indent it prints the other 3
this stuff crazy how does anyone know how to indent on this stuff
 
11:39 PM
Okay so I've updated to this: pastebin.com/LtkFsDXQ It's kind of working, it prints the instructions and let's me type an input but it just keeps saying You are in the Foyer
 

« first day (4016 days earlier)      last day (924 days later) »