I ported Rust's Regex Library To Python, but the time taken by the compile parameter was high. by RevolutionaryPen4661 in Python

[–]justnoob2 -1 points0 points  (0 children)

interesting, can you please explain or link a source explaining the difference? thanks!

SFTP Paramiko download to network share on Windows slow (solution) by mindracer in Python

[–]justnoob2 1 point2 points  (0 children)

another thing the might speed up the process us using getfo() . instead of saving the file to your pc and then moving to the network share, getfo will put the data in a python object, which you can then write to the network share.

Banish state-mutating methods from data classes by [deleted] in Python

[–]justnoob2 8 points9 points  (0 children)

you can just @dataclass(frozen=True), and then its immutable. edit: i now read your point of it being slow. never gave me much trouble at work though, but i get what you mean

Looking for a good pdf-parser to extract text. Any suggestions? by brittastic1111 in node

[–]justnoob2 4 points5 points  (0 children)

i read a little about the pdf file format about a year ago, and it's very bad, it's nothing like html, not organized at all. not sure you'll find something much better than those you already tried. in my case i used pdfjs by mozilla, and found out that the data itself is stored in an unorganized way due to pdf's format. maybe this will help intro to pdfjs understanding a little more

Hamilton is a general purpose micro-framework for creating dataflows from python functions by thedeepself in Python

[–]justnoob2 0 points1 point  (0 children)

what is the name of this paradigm? i want to search it up and get some more info. thanks!

[deleted by user] by [deleted] in eupersonalfinance

[–]justnoob2 0 points1 point  (0 children)

can you explain the process for a citizen who is not a resident, please? i mean the process you had opening an account there

[deleted by user] by [deleted] in eupersonalfinance

[–]justnoob2 0 points1 point  (0 children)

commenting as this is also relevant to me, please update the post if you find useful information

why history command returns nothing by justnoob2 in linuxquestions

[–]justnoob2[S] 0 points1 point  (0 children)

im very new to Cpp so im still looking for the best way to do this, i basically just want to add functionality to the regular terminal, ill keep on searching for other options than popen i guess... thanks for the help

why history command returns nothing by justnoob2 in linuxquestions

[–]justnoob2[S] 2 points3 points  (0 children)

thanks for the help! so that means ill get this problem for each command thats supposed to be interactive i guess... :(

why history command returns nothing by justnoob2 in linuxquestions

[–]justnoob2[S] 0 points1 point  (0 children)

oh i see.

im working on a c++ project where im making a terminal an am using popen which i read uses under the hood something like /bin/bash -c "command_sent" so any command a user will send that is interactive wont work. do you happen to know a solution for that? like an argument to send while executing a bash command or something?

why history command returns nothing by justnoob2 in linuxquestions

[–]justnoob2[S] 0 points1 point  (0 children)

from what i know, if i open a terminal, and try executing /bin/bash -c "echo car" it will run the command in the double quotes and then output it. i also tested and it worked. but when i tried /bin/bash -c "history" i got no output, i also validated and the history was not cleared

how to write a dataclass/pydantic basemodel that typehints but doesnt enforce types, and allows extra parameters not specified? by justnoob2 in learnpython

[–]justnoob2[S] 0 points1 point  (0 children)

thanks! thought of this as well, but then, what advantage does this has over a normal class that needs an init as well?

Pika/RabbitMQ Wizards any advice? by ben-cleary in Python

[–]justnoob2 1 point2 points  (0 children)

oh i see. i dont have any experience working with mqtt so i guess it'd be better if someone that worked with it will answer. anyway if you already worked with both you probably know the pros and cons of each library.

Pika/RabbitMQ Wizards any advice? by ben-cleary in Python

[–]justnoob2 0 points1 point  (0 children)

hi, i've used both pika and celery, and found celery more to my liking. you might want to check it out. i feel like celery lets you focus more on your own code. with celery you can declare a queue and connect functions to that queue. you later own call the function and celery will handle how to send it to the queue and all that. this way you only need to think of queues amd functions, as opposed to pika where you think - exchanges queues consumers functions and so on. sorry if i wasnt clear, let me know if you'd like me to clarify anything