« first day (3655 days earlier)      last day (1276 days later) » 

1:53 AM
@roganjosh you did. It was to me. But Andras linked your anyways
 
2:31 AM
is it possible to pass a file descriptor to write() in python?
 
 
2 hours later…
4:40 AM
is there a chat room for git?
 
 
3 hours later…
7:26 AM
Anyone have an idea what this is? I try to run a .ipynb file in a new environment where I installed jupyter notebook through Anaconda Navigator then it's giving me this error
Although I can open some other jupyter notebook with the same environment
I used to have it on my base conda environment which still works when I open it from there
 
7:50 AM
@Pherdindy This might be helpful stackoverflow.com/questions/57254007/… probably have to copy the shown dlls in the error to the respective library
 
@shad0w_wa1k3r thanks a lot. I just realized my environments are in a total mess lol. Haven't updated packages in a while and my pandas it at 0.24
 
oh, that is probably why the issue arises. Maybe try upgrading entire environment or python setup, if you can
 
Tried updating my base environment but then most packages were constraints by the anaconda version. But doing conda update anaconda does not work
Had to do conda uninstall anaconda then conda update --all then conda install anaconda to get it working real odd. Last time I updated was last year for the base environment
Yeah but this one is in the more updated environment but I always ran jupyter notebook from the base so I got to organize things better I guess but i'm still trying to fix this so i'll check the dll errors
 
 
1 hour later…
9:16 AM
@Janith there's no built-in called write so no. What are you trying to solve? It's probably an XY problem.
 
@AndrasDeak use write() syscall like write(1, "Hello, world!\n", 14) in python... 1 -stdout
 
9:31 AM
@Janith what "write syscall"?
print can do all that I think. And there's sys.stdout.write.
 
yeah
 
user14046193
hi
 
but,I like to use it directly .....
 
@Janith so what are you asking?
@Janith use print. This is python.
 
I know
 
9:34 AM
@LOL1234 please don't ask for help with fresh questions as per our rules sopython.com/chatroom
 
user14046193
what do you mean by fresh questions?
 
@LOL1234 recently asked. See the rules.
 
they make many syscalls (print)......I think it works as user script -> library -> kernel -> hardware... is there a way to use it as script -> kernel -> hardware?
I compared same function(write to sysout).... and tracked syscalls using strace ... it indicates assembly<C++<python (syscalls)
that is assembly output,it is very short....but,python one is very long...
execve("./helloworld", ["./helloworld"], 0x7ffc1213d130 /* 21 vars */) = 0
write(1, "Hello, world!\n", 14Hello, world!
) = 14
exit(0) = ?
+++ exited with 0 +++
really,I want to call syscalls directly in python ,is it possible?
 
user14046193
hi
 
hello
 
9:40 AM
@LOL1234 hello. Want to start over?
 
user14046193
Why did you ban me :(
 
user14046193
@AndrasDeak Yes
 
@LOL1234 We prefer constructive discussion here. Yours wasn't at you know it. You are welcome to stay and chat if you'd like.
 
user14046193
ok
 
user14046193
I am new to this
 
user14046193
9:41 AM
IDK anything about chat and stuff
 
user14046193
I only wanted to clarify my doubt
 
It's alright, we all start somewhere. Just assume that the world has purposes other than what fits your momentary needs :P
 
user14046193
@AndrasDeak Is that meant to be a joke? It is funny actually
 
yes
 
user14046193
:D
 
user14046193
9:43 AM
😃😃😃
 
@LOL1234 no, the first one was better
 
user14046193
LOL
 
user14046193
Is this chat for ever?
 
more or less
 
user14046193
Can I come whenever I want?
 
9:44 AM
yes
 
user14046193
oh. 24/7 ig
 
user14046193
ok ima head out
 
bye
 
user14046193
see you soon
 
@LOL1234 although I'd also like to ask that you type out most of your words (traditional internet abbreviations such as LOL are fine, but things like "ur" and "ima" which people also tend to use are very hard to read)
Also one emoji at a time should be enough to convey emotional state :)
 
 
1 hour later…
11:01 AM
@Janith You can invoke a syscall by accessing the corresponding C function (e.g. via ctypes) but that will still have a layer of Python around it – simply because, well, you are using Python. If you don't want to have Python in your program, your best bet is not to use Python.
 
 
2 hours later…
1:15 PM
I'm trying to find whether a row in a dataframe is present in another dataframe (all columns of the df1 row must be exactly the same as the df2 row). I've been stuck for a while and the closest I can come up with is something like df1.isin(df2) but it is not the correct solution for my case.
 
 
2 hours later…
3:33 PM
@Pherdindy why is that not the correct approach in your case?
I suspect from your wording that you are interested in the ordering but it's way too vague a description to be able to help you
 
3:58 PM
Not a fan of TikTok at all, but it seems the Trolley Problem has been solved. Onwards with self-driving cars research!
 
4:24 PM
@roganjosh no need for tiktok imgur.com/gallery/yYyN8 (actual source on youtube)
 
In the back of my mind I think I've seen it before but it did give me a chuckle
"Wipe them out. All of them". Problem --> solved
 
4:56 PM
Left sensor: Human detected. Right sensor: Another human detected. AI: Deploy machinegun, take one of them out, drive into the other one and hit a wall. Socialist: All lives are equal. Problem solved.
 
I don't think any of us can argue with "the innocence of a child". The intro music for Thomas the Tank-Engine is suddenly very ominous :P
 
Certainly. We should create a new government body made up of children for brainstorming, creativity and innovation without constraints of a brainwashed member of society.
 
I thought we did that years ago </political swiping off>
 
5:12 PM
Yes, but those children grew up thinking the world is theirs and there are no consequences. They prevented the cycle of fresh new minds into the newly formed body and set themselves up for power hungry positions. </wanting to continue but having no idea what to say>
 
Oh well, it is what it is. How long have you been working with Python, @BožoStojković? Unless I'm mistaken, you're quite a recent - but active - member of the room
 
I've been on-and-off messing with python for quite a few years now. Not sure about actual concrete number. Around 5 or so, I guess?
> Unless I'm mistaken, you're quite a recent - but active - member of the room
Yes, you're right.
I've had many difficulties, including life problems that prevented me from becoming much better at programming in general.
 
Is it your primary language now or is it just dabbling? :)
 
It's my primary language now, yes. I still wouldn't say I'm a real coder. I am coding an application currently, but it's far from being functional enough to show it off.
And my code is really messy.
 
I'm still waiting for those feelings to go away :P
 
5:20 PM
Not sure what you mean
 
"I'm not a real coder" and "my code is really messy"
 
But aren't you kind of an expert? And you have real applications that you can show to others, don't you?
 
I have applications, sure. Doesn't mean that they don't have warts that I'd really rather rebuild from scratch. And there's more experienced people in the room than me, without doubt
 
For sure. But I think you're being modest. :P
But I guess those feelings don't go away that easily anyways.
How long have you been coding in python?
 
I started pretty much around the time of my account creation, so that puts it at 5yrs 6 months
Give or take a couple of weeks :P
 
5:27 PM
Nice. I reckon you have much more experience in programming in general.
Or you are not slow in learning like I am.
I don't know how long it takes other people to gain experience. I know that I have serious problems which I'm trying to overcome.
Curious that we created SO account 2 months apart.
 
@BožoStojković no, I have no experience before that other than some MATLAB in my degree. But I've had to build tech stacks myself so I can span from databases to front-end in general conversation. I'll still get blown out of the water on specific things
 
Ahh I see. I am thinking about building a web application to expand my knowledge and experience. That's why I'm interested in flask and other frameworks.
 
Well I did just that, so you'll already know my position - I think it's a good idea to do :P
 
Awesome then. I can't wait to pass my exam and start my journey. :)
 
6:06 PM
@roganjosh Did you take that face-exam-thing from couple of days ago? I'm curious how you fared. I don't know my score, but I got a result saying that I was better than 30-ish% of other people. You don't have to answer if you don't want to :)
 
I haven't taken any exams recently (as in, the last couple of years)
 
Ahh, ok
It isn't really an exam. A test of sorts
 
I think you linked it in relation to problems I have in other areas. I don't know whether I'm just afraid of the results heh
 
Someone else linked it though. Not sure who
I have similar problems. That's why I was curious. :P
 
I think my own introspection is enough to tell me I'm wonky, and I try to use some of that wonkiness for solving weird problems. I'm not so sure I want a website to tell me I'm wonky
 
6:15 PM
I know what you mean. I respect that.
 
7:00 PM
stackoverflow.com/q/64417136 recommendation / opinion
 
^closed
 
 
3 hours later…
10:11 PM
I have a project where I need to train a neural network based on tree-data. In this tree, each node has a value and a class. The class of each node is dependent upon its value or the values of its children (it has either children or a value; not both). I would like to provide a series of labeled trees, with values and classes, as training data. I would then like the neural network to classify a tree without any classes available, classifying each node based on either its value or its children.
 

« first day (3655 days earlier)      last day (1276 days later) »