Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: a collection of pdf-files (copy of a book) in disorder: solfing wiht pikepdf
Post: RE: a collection of pdf-files (copy of a book) in ...

Without knowing how the pages are ordered improperly, there's no way I could say whether or not a particular utility will solve your particular issue. That said, I've used PyPDF2 before, and it seems...
nilamo Bar 3 294 Jun-02-2021, 08:39 PM
    Thread: How to web scrape this?
Post: RE: How to web scrape this?

(May-28-2021, 07:07 AM)Pedroski55 Wrote: I thought all web documents had .html or .php as a basis. File extensions on the web are mostly all imaginary. Web servers send Content-Type headers along w...
nilamo General Coding Help 7 379 May-28-2021, 07:18 PM
    Thread: Using re to find only uppercase letters
Post: RE: Using re to find only uppercase letters

Something still seems off, as that regex won't match the string.>>> import re >>> test = 'ChrX 74226540 T t 50 .' >>> test 'ChrX\t74226540\tT\...
nilamo Homework 6 318 May-28-2021, 06:58 PM
    Thread: Using re to find only uppercase letters
Post: RE: Using re to find only uppercase letters

Is there something that isn't shown? This shouldn't have matched: ChrX (your regex only looks for lowercase "chr") I'm assuming that's the same reason the lowercase "t" was matched.
nilamo Homework 6 318 May-27-2021, 09:21 PM
    Thread: how can i attach interact to a subject
Post: RE: how can i attach interact to a subject

Are you using pygame, or something else? What's an interact? What's a subject? What do you expect to happen once they're attached? Do you have any code we can look at? In general, it's very hard to...
nilamo Game Development 3 233 May-27-2021, 09:06 PM
    Thread: Using Keyboard Arrow Keys
Post: RE: Using Keyboard Arrow Keys

What about the code doesn't work? Are there errors?
nilamo Game Development 3 237 May-27-2021, 09:04 PM
    Thread: Unable to access the user input value given to daterangepicker
Post: RE: Unable to access the user input value given to...

The easy answer is probably just adding a submit button to the form. onchange() fires repeatedly because that's how the datepicker sets a value. So something as simple as <button type="submit">...
nilamo General Coding Help 1 370 May-26-2021, 09:16 PM
    Thread: Using Keyboard Arrow Keys
Post: RE: Using Keyboard Arrow Keys

Here's something that hopefully helps. It shows the arrow keys, continuous movement by holding a key down, and smooth movement using an fps clock/delta time, as well as clamping the values so you don...
nilamo Game Development 3 237 May-25-2021, 04:40 PM
    Thread: Finding how many times substring is in a string using re module
Post: RE: Finding how many times substring is in a strin...

Instead of str.lower(), you can also use the IGNORECASE regex flag, which would likely be faster for larger strings. >>> import re >>> regex = re.compile("i", re.IGNORECASE) >>...
nilamo Homework 4 293 May-21-2021, 06:14 PM
    Thread: truffe
Post: RE: truffe

I'm not sure why you're asking on a python forum, but if the docs don't help, I would suggest asking them for more guidance, so they can update their docs: https://www.trufflesuite.com/tutorial
nilamo General Coding Help 1 332 May-10-2021, 08:42 PM
    Thread: using re.search()
Post: RE: using re.search()

.* is greedy, and will consume as much as it can. If there's multiple newlines after GPGGA, then only the last would match the regex, and all the intermediates would show in your results (as you're s...
nilamo General Coding Help 5 477 May-10-2021, 08:37 PM
    Thread: A 3D game engine
Post: RE: A 3D game engine

What do you mean by "no code"? Unreal has blueprints which don't involve any typing, but the nodes are basically still code. From what I see in the screenshots, gdevelop is also still programming, i...
nilamo Game Development 5 1,143 May-10-2021, 08:24 PM
    Thread: Upgrade to python 3 opinion
Post: RE: Upgrade to python 3 opinion

Maybe? If you're not relying on whatever "python" resolves to, and are using direct references (ie: calling python2.7 my_app.py instead of python my_app.py), then it doesn't matter. You could install...
nilamo News and Discussions 5 386 May-07-2021, 08:21 PM
    Thread: Removing all strings in a list that are of x length
Post: RE: Removing all strings in a list that are of x l...

How do you guys feel about a single-pass version? As we look for the longest item, we can yield items that we already know aren't that long. The performance can be dramatically improved if the order...
nilamo Homework 4 358 May-07-2021, 06:59 PM
    Thread: how would you feel if ...
Post: RE: how would you feel if ...

(Apr-24-2021, 09:13 AM)DeaD_EyE Wrote: I won't feel any change, because of some relativistic effects during time travel. Are you saying you wouldn't notice, because an altered past would create an a...
nilamo Bar 13 824 May-07-2021, 06:23 PM
    Thread: Killer features/libraries of various languages
Post: RE: Killer features/libraries of various languages

I've been looking into Erlang recently, and one really cool thing it has built into the language itself, is distributed processing. As a language construct, you can pass messages not only between pro...
nilamo Bar 8 591 Apr-30-2021, 06:46 PM
    Thread: creating simplex tableau pivot program easy or difficult for a beginner in Python?
Post: RE: creating simplex tableau pivot program easy or...

Can it be done? Sure, anything is possible. Is it too difficult for a beginner? I can't answer that, I don't even know what a simplex tableau is. A pandas dataframe can be rotated, which might help...
nilamo General Coding Help 2 460 Mar-30-2021, 09:51 PM
    Thread: Python C++ wrapper problem
Post: RE: Python C++ wrapper problem

I'd suggest trying it with a debugger attached, so you can inspect what key is, maybe check the return value of PyObject_GetItem() (it might be null?)
nilamo General Coding Help 1 402 Mar-30-2021, 04:37 PM
    Thread: Variable declaration
Post: RE: Variable declaration

(Mar-05-2021, 04:10 PM)Asraful_Islam Wrote: Suppose, I have a set A={'a','b','c'}. I want to declare variables look like N_a, N_b, N_c for every 'a','b','c' in A. Thanks in advance. After you define...
nilamo General Coding Help 5 576 Mar-25-2021, 05:31 PM
    Thread: temporarily buffer output, and output it later
Post: RE: temporarily buffer output, and output it later

https://www.cyberciti.biz/faq/how-to-red...r-in-bash/ What about just redirecting the errors so they're not displayed? python myfile.py 2> /dev/null
nilamo General Coding Help 5 621 Mar-24-2021, 04:41 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020