« first day (4009 days earlier)      last day (1164 days later) » 

01:55
I got a time from an API its looks like "1633484820000" how I convert this to a human-readable date.
its a unix epoch time I guess, no I dont think it is
I also think so
but when I pass it in date time.
datetime.datetime.fromtimestamp(1633484820000).strftime('%Y-%m-%d %H:%M:%S')
I got error
like
OSError: [Errno 22] Invalid argument
huh? I get year 53733 is out of range
if that timestamp is in milliseconds then according to an SO answer you have to divide the value by 1000 then pass it in, which case I get 2021-10-06 07:17:00
using the code you gave
@py
@python_user thanks man its work
16 hours ago, by Aran-Fey
Is it working? Then you're doing it right
this ^ :D
what did you change?
02:12
divide the value by 1000 then pass it
 
3 hours later…
04:44
Hi, I try to understand what is happening when I do df=df[:5]. Does it work more like view (memory usage the same) or more like copy (making new smaller object). Please notice that I'm using the same variable name. Do you have any hints? Is it good idea to open SO question about it? It seems like something very easy but I can't find answer. I only found that when variable name is different then it don't copy object, but only work as view, but in this case it can't work like this I think.
04:59
Depends on what you are trying to do, Pandas leverages the slice notations to do its own thing.
05:17
This is my code: dpaste.com/FVSFE2ZAF
(you can ignore async keyword, it doesn't matter, it is here because I use aiomultiprocessing instead of multiprocessing)
05:31
@KarolZlot don't open a question stackoverflow.com/questions/23296282/…
someone with full edit privileges please add python to stackoverflow.com/questions/28975488/…
06:18
Thanks, Paritosh
yep, np!
The nuance i see is that they take a slice, but then assign it to the same variable name, essentially dereferencing the original df. How does it behave when the view is created but the original df is dereferenced?
Views are references
I.e. a view will keep the base from being destroyed
ah
makes sense, thanks
Sep 15 at 13:52, by Andras Deak
import weakref
import numpy as np
x = np.arange(10)
y = x[3:5]
xref = weakref.ref(x)
print(xref())  # [0 1 2 3 4 5 6 7 8 9]
del x
print(xref())  # [0 1 2 3 4 5 6 7 8 9]
del y
print(xref())  # None
On the other hand df_cache = df_cache.append(df) will almost certainly make a copy
yep, df appends make a copy (and have terrible performance characteristics)
(also, didnt know about weakref, reading up on it now, looks like it's super handy)
06:37
Well, one rarely needs it. But when one does, it's critical.
07:17
cbg
 
2 hours later…
09:12
Hello :)
I'm on a Windows computer, and I was trying to learn about something. I've never installed python, but I opened up a command prompt and typed in "python".. just to see if it came with Windows.
It then went and wanted to launch a AppInstallerPythonRedirector.exe
I tried to find out about what that is and there's a bit of mixed stuff, but not a lot.
So far I blocked the program. I want to learn more about it before I let it lose. Does anyone about it?
What are the arguments for or against open source collectives, specifically python/numpy/pandas?
has this been discussed on meta?
Why not just install Python yourself @Scratte? I don't know that specific .exe but it could be any number of things that Windows decided to bundle to try make things "easier"
I have no reason to think it's suspicious btw
@roganjosh Sure. I am just curious about what this is. I figured perhaps python people would know about it :)
The links I found were more about how to remove the program and they seem mostly like they want people to download and install virus protection software.
My computer came with SuperFish, so I'm not a very trusting person when it comes to an unexpected start of anything on this particular device.
What version of Windows? I can fire up my old laptop and see if I have it, and then provide anecdotal evidence of whether or not it caused issues :P
09:29
The original version was an 8.1, but it's now a Windows 10 Home, Build 19042.1237.
@Scratte i recall that recently microsoft started bundling a prompt to install python from the windows store (absolutely do not go this route, the python install separately is a lot better) when you type python. I presume this is what it fires
note that it's only a prompt, not the actual python installed till you go via the microsoft app store. as i said earlier, do not use this route to install python
@ParitoshSingh I wont :) I guess I'll just need to remove it, so the system doesn't go there every time I type in python. My other software is blocking it, so I expect nothing python is going to work until it's gone. When I type in "python -version" (I don't know if that's a valid comment) it just gives me "Access is denied." at present :)
Once upon a time I used to love Windows, but it's just redirected me to Bing when I wanted to do a file search. Opening Bing is never ok
That's a little funny. I used to want to scream at Windows, but I've come to like it now.
"so I expect nothing python is going to work until it's gone" this seems wrong. remember, typing python on the cmd is just one of many ways to interact with an installed python version. theres also other aliases like py and so on.
09:34
@ParitoshSingh Oh, right. Not sure what I was thinking. It may just go to the next option.
you can leave it perfectly alone, and most likely you'll be fine with a py prefix for your python needs. if that doesnt do it, you could also always just edit the environment variable for python manually as well
@ParitoshSingh Yes, that's probably a good idea to just put the python installation directly at the top of the path.
typing in where python tells me there a C:\Users\Scratte\AppData\Local\Microsoft\WindowsApps\python.exe
So I guess that's the culprit :)
Thank you :)
09:52
In case someone else asks the same question, there's also a python3.exe in the same directory. And they have been created on "02 β€ŽOctober β€Ž2021", so perhaps this came with the most recent Windows update.
10:06
Doesn't look close enough to mark as duplicate IMO
They are related but ask different questions
I need 3 more necromancer badges to hit 100... anybody spot some old pandas questions in need of an update? ; )
10:40
@AlexWaygood Would be interested to know whether this works with a TypeGuard.
@MisterMiyagi I was too hasty in closing β€” it does work, but is a little more complex. Am writing an answer
@MisterMiyagi answer posted stackoverflow.com/a/69479900/13990016
10:57
Interesting. Didn't expect this to work – it would plain be wrong with threading.
Yeah it's very LBYL
But that's kind of a general problem with a lot of Python-typing constructs at the moment imo
Would be interesting to know whether one can assign None inside the guarded block.
heads to the playground
Interesting. Assigning f1.bar = None in the first Block makes mypy treat it as int | None again; so MyPy has some notion that the narrowing can be reverted again.
No fooling mypy with these TypeGuard shenanigans
@Scratte If your user account has administrator privileges, sometimes you can get around "Access Denied" by opening the cmd window in administrator mode. Consult superuser.com/questions/968214/… for ways to do this. I prefer right-clicking my pinned task bar icon.
Don't normally see you around these waters @Scratte :p
11:09
@Kevin The reason I'm getting the access denied is that I blocked the AppInstallerPythonRedirector.exe program. I'm a paranoid sort of person :)
@JonClements That's because I eat the treats myself.. and I'm scared you'll chase me around and trip and I'll die from laughter ;P
Oh, ok. I thought you were getting it even before blocking. That's what I get for reading up through the transcript backwards :-)
But.. I did not know about this trick, so thank you for the link :)
it's like Tenet: room 6 edition.
But.. I just ate a whole bag of peanuts, so I can spare a few strips of bacon for a cute puppy today @Jon :)
\o/
I'll chop up and fry some onion... it's bacon baguette o'clock! :p
ugh... I do actually really fancy a bacon sandwich now...
11:22
Being paranoid I think I'm going to sit up high in a tree and watch you.. Being slightly redish I'm afraid of being mistaken for the bacon now.
are you saying because I've only got 3 legs I can't climb trees? :p
I saw a short animated on youtube recently and it made me think of you :D
because if you are - you'd be absolutely correct :p
@Scratte I'm either flattered or concerned... without more context I'm not sure which... but err, thanks? :p
The Present | A Short Film by Jacob Frey ..this little puppy is just always happy :)
@Scratte oh wow... that's actually quite moving... at first I wanted to give that kid a good clip around the ear... but it works out nicely in the end... thanks for sharing that
11:35
Yes, it's quite nice :) When I saw it, every time it tripped over itself I thought "I wonder if that's Jon" :P
obviously it's not... I'm far cuter :p
12:18
Hi everyone, hope you're having a great time.
I have a question. I've answered several questions but I didn't get any feedbacks, such as upvotes, downvotes, comments, ...
Is the community ignoring me? :)
Looking at a sample of your answer, it seems you are mostly answering questions that most people would not care about.
@BehdadAbdollahiMoghadam No. It just means that people chose not to vote on your answers
So what is the best action to do?
leave those questions unanswered?
Depends why you post Answers :)
Vote to close as a dupe if you can find it, or just leave them alone. SO isn't really here for internet points; you seem to expect you'll get some from answering
12:26
Even the OS doesn't care about his/her question :))
Not everyone can remember their passwords, I suppose ;)
If you think a Question is good and you feel that it would be a shame to leave it unanswered, then post an Answer. But ..don't expect anything :) You could think of it as posting for other users, not for the Question author, then there's a chance that more people will find them useful.
You seem to explain your solutions, so that's good :)
I think no question should leave without feedbacks, and I normally answer questions which I think, they've been asked correctly and are not duplicate.
Back when I put regular effort into gaining reputation, I found that the important factors for earning upvotes were:
- the newer the question, the better.
- the more general the question, the better. In other words, questions that anybody can understand as long as they know basic Python. Third party libraries and hard math are bad for view counts.
- post an answer before anyone else.
- post a correct answer.
12:37
Yes. I generally do the opposite of that :D
@Kevin Yeah, these are pretty good advices for gaining reps.
Another pointer is the badge count. If the Question author is new with no "Informed" badge, they didn't read the tour. That's not a good sign, if you want someone that's responsive.
The thing is I'm not expert at any Third party libraries and most of the times when I want to answer those type of question, spend some time to search and learn, so it's kind of a pretty good way for learning ,too.
True. Those kinds of questions can be a rewarding learning experience.
12:51
@BehdadAbdollahiMoghadam This is how I learned python/programming. Whether that's a good or bad outcome is up for debate
There's a lot to learn from 3rd party code
@roganjosh I agree, there are so many useful libraries for python, it's hard to choose among them.
I prefer to come up with a project idea, and then determine which libraries I need, rather than choose a useful-looking library and try to think of a project that fits it
Then instead of saying "requests and matplotlib are both interesting, how can I pick one or the other?" you say "my project needs to display graphs. matplotlib displays graphs and requests doesn't. Easy pick, then"
13:06
Hi people
Sorry, we really just focus on Python questions in here
No problem, I would ask in dedicated chat, but I believe it doesn't exist
TBH I don't even think it's on-topic for SO. You would probably have more luck on SuperUser or ServerFault.
Perhaps there's one on Sever Fault or SuperUser... Oops beaten
is there a minimum score to join chat rooms on those forums?
13:10
Same as on Stack Overflow, I reckon
Also, forgive my ignorance, but what SO stands for?
@HenriqueMilli Ouroborous is for Room Owners of this room
ah lol so obvious
SO stands for Stack Overflow
Who is flagging Ouro?
13:21
@HenriqueMilli Hey - I think you're struggling a bit. It seems like you've asked this in several rooms over the last 20 minutes, including asking for upvotes - while I recognize that it can be complicated to get an answer to your question at times, these chat rooms generally have rules and a specific subject - e.g. this room is called "Python".
Did someone ping me earlier? I heard a ping and then my computer crashed for no discernible reason...
It was an access request for Ouroborous plus 4 flags
@Catija oh hey - don't generally see you in this neck of the woods - welcome.
Asking for people to upvote your content is not really OK in chat - we discourage it as we prefer votes coming from standard engagements, not personal favors. Looks like the users in a couple of rooms have offered some guidance about your question and its suitability for Stack Overflow.
@JonClements Was in the Blue Room and saw some flags :) Figured I'd poke at it.
@roganjosh ahh... thanks...
13:47
Weird thing, I am calling python setup.py for around 20 python packages in a shell file -- inside a for loop. When I ran it the
first time, there was this error for one of the packages:

changing mode of build/bdist.linux-x86_64/wheel/mypackage-0.0.1.data/scripts/mypackage to 777
"[Errno 16] Device or resource busy: 'build/bdist.linux-x86_64/wheel/mypackage-0.0.1.dist-info'")

When I ran it again, the same error showed up in 2, then 6, and now 8 packages.

the setup.py also cythonizes each module. How do I approach this solving this problem? I believe there's nothing wrong with my shell scr
How are you calling setup.py?
If you're using something asynchronous, then it might be firing off 20 setup scripts before the first one finishes
I'm not good enough in shell to do something async -- I may have done inadvertently. I'm anyway going to add `sleep 20s` for each call and test again. It's just a sequential for loop, shell navigates to each given directory, and then runs

python setupc.py build_ext
python setupc.py build_py
python setupc.py bdist_wheel
I see. Well, if you provide an MCVE I'll be happy to investigate further
Looking at the problem on a higher level, I bet Python already has a ready-made tool or library that can manage multiple setup scripts without you having to call them yourself. It depends on what you're trying to do, I suppose.
14:04
@Catija hey Catija, yes you're right. I couldn't find any suitable room, so I tried asking for help in random ones. I hope I have not caused you any displeasure
If you've ever installed anything using pip, you may notice that pip may install several other libraries that your target depends on. The target library isn't managing that itself, it just lists its dependencies in a setup file and pip handles the rest
Oh right... the "no discernible reason" I've worked out... the CSV file I was trying to load into a pandas.DataFrame is 1.2tb and not the 1.2gb that I thought it was... bit confused why the kernel didn't just end up killing the Python process instead of just freezing but oh well...
Stay tuned to the puppy files folks for what idiotic thing I do tomorrow!
Joking aside... this certainly seems (and it's not even over yet) the week where I've spent so so so much time and getting yam all actually done. I need a holiday :p
14:20
@pyeR_biz This error usually means that something is eating up your user share of system resources. Check whether there are any programs that have lots of open file, threads or processes.
Hmm, is there a nicer one-liner for "[none]" if len(x) == 0 else ("[multiple]" if len(x) > 1 else str(x[0]))? Or am I going to have to refactor this beast into proper conditional blocks
lsof or fuser are good first tries to find the offending programs.
@Kevin Dispatch on a dict?
Ooooh, how about match case? πŸ‘€
So I've got some data in postgresql:
from sqlalchemy import create_engine
from faker import Faker
import json, random

# make some fake data
fake = Faker()
products = []
for i in range(1, 11, 1):
  products.append({
    'name': 'Product {}'.format(i),
    'description': fake.paragraph(),
    'price': random.randint(1,10),
  })

# prepare data to be inserted into db
rows = ["('{}', '{}', '{}')".format(i['name'], i['description'], i['price']) for i in products]
values = ','.join(rows)

# insert data into the db
db = create_engine("postgresql:///postscript")
I can update the message attribute on a product like so:
db.execute("""
UPDATE products
SET message = 'YEET'
WHERE id = 1;
""")
But how can I "parameterize" this to prevent little johnny tables from crushing my db?
@Kevin list indexing hack if you don't mind lack of short circuit :P
Proper if is most readable
@duhaime that's a lot of code; please see our room rules and post off-site in future
In any case, you want a fast execution helper for inserts. But you're doing an upsert?
14:32
so message is going to be provided by a user--a variable posted into Flask. I'll inline that message into the sql command then execute it. But I want to sanitize the data before it goes to the db to prevent injection
Is it no longer possible to edit/delete posts in the chat?
So where does UPDATE products come from?
It's just a sql command
that example sets the message attribute of product with id 1 to "YEET"
@duhaime You get 2 minutes to do so. I'd have moved it if I'd wanted but I've just asked you to abide by the rules in future
Sure thing--thought it'd be better to post 30 reproducible lines than 1 that isolates the question
I understand the SQL but it suggests an upsert vs. an insert
14:35
I've been googling on main and the responses have not been helpful
upset/upsert. Story of my life :P
I mean the INSERT seeds the db with the products list and then the UPDATE just updates one of those products
So it is an upsert
@AndrasDeak Yeah, I better go with proper blocks. Thanks.
@duhaime you need ON CONFLICT DO and you'll want a primary/compound key for that check
Once you've fixed the keys, we can parameterise it
14:39
But why would there be a conflict if I'm querying by primary key and I'm guaranteed that the primary key exists?
id is the primary key
Because this suggests something already exists in the table:
db.execute("""
UPDATE products
SET message = 'YEET'
WHERE id = 1;
""")
Yes exactly, and we want to update it
If you don't need an UPDATE then we're talking about different things
I do want to update it. I want to set the message attribute of product with id attribute == 1 to "YEET"
Give me a few mins to review the posts. I think I've got confused because you have code to drop/create the table too
14:44
The 30 lines of code I pasted just create a table called products then update the message of product 1, that's all
On a scale from 0 to cddddddr, how bad is using zip(f, range(n)) instead of itertools.islice(f, n) for readability?
They don't just do that; it's an upsert. I can give you an answer @duhaime for the update but I bet it's broken by tomorrow
I'm not trying to be awkward
I don't understand what you mean. Here's the table before and after the update: gist.github.com/duhaime/e836ad964f302d0090846906e73d296c
The only datum that changes is product with id 1, which now has message == "YEET"
"INSERT INTO products (name, description, price) VALUES %(name)s, %(description)s, %(price)s", {'name:'something', 'description': 'something', 'price': 'something}; will do it
If you want to UPDATE, you haven't given any parameters so I don't know what you're asking with that query
Hmm, I'm looking to query for a product by id and set its message attr. Both id and message are provided by client
14:54
If you want a bulk insertion then you can use execute_values and give a nested list
@duhaime are you starting to see my confusion, though? I can tell you the best way to do an insertion, but you also have an UPDATE query so it's not clear-cut what you're asking
I'm just asking this: if a client posts a product id and new message to a service, how can that service use a sql command to update the message attribute of the specified product safely (i.e. without fear of sql injection)
I just need to update that UPDATE statement so as to sanitize the id and message
db.execute("""
UPDATE products
SET message = 'YEET'
WHERE id = %s
""", (product_something,))
UPSERT is a pretty cool name, methinks.
If the question is "assuming that I have to use db.execute without supplying any parameters other than the query, how do I safely construct the query string?", I too am interested in an answer.
Ah spectacular!
db.execute("""
UPDATE products
SET message = '{}'
WHERE id = {}
""".format('YAMS', 1))
15:01
@Kevin Shoot the hostage? Sounds like that kind of movie…
Thank you!
@duhaime Good example of an easily sql-injectable approach
@duhaime That's… not what roganjosh suggested.
@duhaime I hope that's the old approach!
oh whoops no it's not. How can I provide the message as well with the () approach?
15:02
Solutions that utilize percent style encoding, or format, or f strings (somehow?), or manual string concatenation, are all vulnerable to sql injection.
db.execute("""
UPDATE products
SET message = %(the_message)s
WHERE id = %(the_something)s
""", {'the_message': 'hello', 'the_something': 2})`
If you're asking "How can I pass more than one parameter to str.format? I know that this is a huge vulnerability and I promise not to use it in my database-facing code, but I'm still curious", you don't have to do anything special to have multiple parameters
You're definitely coming back to ask about upserts btw :P I feel it in my bones
Okay I'm confused, is this safe?
db.execute("""
UPDATE products
SET message = %s
WHERE id = %s
""", ('HAM', 2,))
>>> "I have {} dozen {}s".format(5, "coconut")
'I have 5 dozen coconuts'
15:04
@duhaime yes
done!
Can you help me understand why it's safe?
@duhaime Check the DB API specification for a start. The first thing to note is that you're giving a second argument to execute
To clarify my previous message, "percent style encoding" is a string formatted using the expression "string goes here" % expression_goes_here. your db.execute never uses the percent operator, so it's not using percent-style encoding.
The fact that it allows %s in the query string, which clashes with the old-style string formatting, is unfortunate
But given that you provide a second argument, the second params are unpacked into the query and escaped. Or you use the dict syntax that I also showed
Fantastic, this is helpful!
15:09
db.execute knows how to make the query string and its parameters work together, without potentially tainting the query string if the parameters are untrustworthy. Python's built-in string formatting methods don't know anything about trustworthiness.
Out of curiosity how would I upsert?
Hahaha, am I vindicated? :P
You just need ON CONFLICT DO, and set some primary keys
haha, yes sir
I'm not sure about how that works if there isn't at least a primary key, let alone a compound index
I suspect that the typical db driver can easily avoid tainting the query string, just by never even attempting to insert the parameters into it. Instead, the query executor parses the query string with the "%s"es still present, and pulls values from the parameter collection when it needs one. Those values go straight into the table memory without passing through any mechanism capable of executing code, so there's no opportunity for sql injection.
Confidence that this guess is roughly how consumer-grade dbs work: 75%
15:18
It's bytes all the way down.
@Kevin I'm pretty sure it just escapes the string
The fact that it's a second argument vs. just "my string %s" % "bad thing" type formatting allows you to do a lot
That's my backup guess. If purity tracking is too much of a pain in the butt, then maybe the db will try to purify untrusted inputs.
Is there a good high level postgresql cheatsheet?
I can never find high level anything online these days
Gotta climb a mountain and talk to the 200 year old hermit to get any kind of perspective
@duhaime not that I know of. Once you learn CTEs, just unleash :)
15:55
Anybody here ever tried compiling Python from source on Windows...?
Nope, too scary. I look but don't touch.
Every once in a while I see someone frustrated with some quirk of Python's syntax or standard libraries, and they say "I've got half a mind to fork CPython and make my changes at the source of the problem". But I think when these words are spoken in anger, there's not enough fuel to actually carry out the threat
@AlexWaygood Windows? That's still a thing is it? :p
@JonClements Sadly :(
Regular anger burns out too fast, you need a mindset of spite or revenge-served-cold
Umm... poorly attempted humour aside - I think as long as you have Visual Studio (even the free one) - it should compile okay
16:04
Anyway if anyone has any suggestions about what on earth this means and/or how to fix it, I'll be very happy. Googling/searching through the Python documentation has yielded no results:

Build FAILED.

LINK : fatal error LNK1104: cannot open file 'libffi-7.lib' [C:\Users\A
lex\Desktop\Code dump\cpython\PCbuild\_ctypes.vcxproj]
@JonClements I have Visual Studio 2019!
Have followed the instructions on this page for building from the command line, to the letter: cpython-core-tutorial.readthedocs.io/en/latest/…
what version are you trying to build?
Main branch I believe, so 3.11
(going to guess 3.10 as there's already installers for everything previous)
Should be 3.11 alpha 0 unless something very strange is going on
Do you have a file named libffi-7.lib anywhere?
16:09
Not sure if it matters, but the instructions say Visual Studio 2017, not 2019
@Aran-Fey True, but I assumed that wouldn't matter? Can try installing Visual Studio 2017 I guess, that's a good point
@Kevin Doesn't look like it.
github.com/python/cpython/blob/… appears to generate libffi-*.lib and copy it to `%ARTIFACTS%\.libs`.
So if you have a directory named .libs, that's where the file would be
Ahhh. Looks like I have a file called libffi-8.lib
I'm curious what happened to libs one through six. Maybe it makes a new one every time you try to build?
@Kevin But my libffi-8.lib is in cpython\externals\libffi\amd64 rather than a .libs directory
@Kevin Hmm I don't think so? I've only tried to build twice, and got the same error both times.
16:17
I think I misread the source. It's not copying to %ARTIFACTS%\.libs, it's copying it from there to %_LIBFFI_OUT%. Perhaps that's the libffi\amd64 directory you're looking at.
I also have libffi-8.lib files in cpython\externals\libffi\arm32, cpython\externals\libffi\arm64, and cpython\externals\libffi\win32
Apparently
Perhaps .libs is a temporary directory that gets cleaned up before the build finishes, so it's not alarming if you can't find it right now
I think it's good news that you found the lib file. It's better than not finding it. But this by itself doesn't solve the problem... I will ponder this
@Kevin Really appreciate it!
Circling back to whether 2017 vs 2019 matters. discuss.python.org/t/toolchain-upgrade-on-windows/6377 talks about the various design decisions behind supported/recommended versions for VS and related build tools. A lot of it goes over my head, but I think 2019 is largely backwards compatible with 2017. Despite their "distinct runtime files"
16:32
Ew it sounds like it is definitely not advised to attempt to install Visual Studio 2017 if you have Visual Studio 2019 already installed. So I'd need to uninstall Visual Studio 2019 first in order to try using Visual Studio 2017.
Reckon it's worth the hassle?
17:24
My gut says no
Too late
Have uninstalled 2019 version, am 2/3 of the way through installing 2017
We shall see if it makes a difference
My gut doesn't know much anyway. I'm certain it wasn't paying attention during my pre-lunch classes in college
umm... whoever came up with that graphic should have a talking to - it's just nasty... the snake no longer looks cutey and workable with - it looks like it's there to out right kill youi
Maybe it's animated, and if you wait long enough, a big cartoon foot drops down and squashes it, with accompanying fart noise
I suppose it does have a "party hat" on...
 
1 hour later…
18:59
All the features look like they have strikethrough too
@Kevin Nah your gut was right.
Fails with exactly the same error with Visual Studio 2017...
Also tried deleting the libffi folder so that it would have to download the necessary dependencies again; had no effect
^As in, it did have to download the lbffi dependency again, but proceeded to fail with exactly the same error following that
Hi friends, I recently got downvote on one of my answers. this is the link to the answer https://stackoverflow.com/a/69486448/14159253
I don't know why, any help is appreciated :)
@roganjosh now i can't unsee it, i hope that wasn't intentional.
Sorry, no backsies!
@BehdadAbdollahiMoghadam You effectively answered a typo. These questions should be closed (typoes are a close reason) so your answer is unlikely to help future people and someone apparently didn't like that you answered it anyway
@roganjosh I edited the code of the OS, too. why should someone dislike it :(
19:13
@BehdadAbdollahiMoghadam Note that you can further simplify this. Instead of len(username) >= 5 and len(username) <= 10, use 5 <= len(username) <= 10. Instead of the correct flag, use a while True loop and just break out of it when done.
To be fair, you did consolidate the code and it's not clear why the other answer doesn't have a downvote. Welcome to SO
@MisterMiyagi OH! Thank you for this note <3
@roganjosh wiping away my tears
It would be better if you viewed SO that way, without the reputation game. At least that's what my therapist tells me for my failure to meet 20k
Umm... changing computer soon... and this one was dirt cheap and a stop gap... but trying to decipher:
@roganjosh πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚
19:19
CPU: Topology: Quad Core model: AMD A10-9700 RADEON R7 10 COMPUTE CORES 4C+6G bits: 64
type: MCP arch: Excavator rev: 1 L2 cache: 1024 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 27946
Speed: 3707 MHz min/max: 1400/3500 MHz Core speeds (MHz): 1: 3715 2: 3732 3: 1538
4: 1603
@roganjosh meh... get to 20k before I'm eligible to be retired mate :p
Can you ask some sensible questions for me and give me a head's up? :P
What's your favourite colour and what's the laden weight of a swallow or something? :p
I have started going on the main feed a bit more and the questions are a little better but man it's a tough game to find something where I'd want to be associated with the answer
@JonClements I don't know the laden weight, but I can help try to calculate the effect on its air speed velocity
1: 3715 2: 3732 3: 1538 4: 1603 - this I don't really get... confused
19:25
@roganjosh where is the main feed?
The feed
@roganjosh oh that feed
@JonClements It looks like two cores were underclocked, maybe for heat reasons? Otherwise I have no idea
don't know... it seems odd that cores 1/2 are relatively similar and cores 3/4 are also similar but half of the other two.... scratches head
k10temp-pci-00c3
Adapter: PCI adapter
temp1:        +33.5°C  (high = +70.0°C)
                       (crit = +100.0°C, hyst = +99.0°C)

amdgpu-pci-0008
Adapter: PCI adapter
vddgfx:      875.00 mV
vddnb:       850.00 mV
edge:         +33.0°C  (crit =  +5.0°C, hyst = -273.1°C)

fam15h_power-pci-00c4
Adapter: PCI adapter
power1:       31.99 mW (avg =  10.21 mW, interval =   0.01 s)
                       (crit =  65.00 W)
Sure, but it's not frobnicating bizbaz... (I actually don't know whether cores can even be considered physically different locations these days. The chip is probably heavily integrated around the cache)
19:32
so it's probably not that... gotta love that -273.1C metric though....
I could build you a mean Pentium II setup, though (probably) :P
Would you need me to build you a TARDIS so you can actually do that first? :p
I have collected boxes of tech that I can't bring myself to throw out. I wouldn't bet I don't have a Pentium II in a Tesco bag in one of those boxes :P
also what's weird - is that if I ask it from the command line about "fan status" - there's 4 in this machine... it says there aren't any
but if I issue a command line instruction to turn 'em off - they do... and then issue a command to turn 'em back on - they do.
shrugs - not going to worry about it - I think a new episode of Taskmaster is on shortly
20:35
14
Q: Version labels for answers

Lisa ParkWe’d like to introduce version labels (official name and verbiage pending) for answers, a new product feature idea as part of the larger Outdated Answers project. We hope that this feature will help users more easily identify relevant answers that resolve their problems, as well as highlight oppo...


« first day (4009 days earlier)      last day (1164 days later) »