Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Prompt of Access ( Authentication Http ) ?
Post: RE: Prompt of Access ( Authentication Http ) ?
Quote: ("WWW-Authenticate:", "Basic realm=Access to the internal site")
Try it without a colon in the header name :) |
|
nilamo |
General Coding Help |
1 |
783 |
Dec-09-2022, 01:45 AM |
|
|
Thread: fetching exit status hangs in paramiko
Post: RE: fetching exit status hangs in paramiko
Does it still hang, once each command is a separate item, and after you remove that empty leading task? |
|
nilamo |
General Coding Help |
3 |
1,186 |
Dec-04-2022, 12:21 AM |
|
|
Thread: fetching exit status hangs in paramiko
Post: RE: fetching exit status hangs in paramiko
Quote: task = [command for command in commands.split('/n')]
What do you see if you add print(task) right after that?
What if you replace '/n' with '\n'? |
|
nilamo |
General Coding Help |
3 |
1,186 |
Dec-02-2022, 02:11 AM |
|
|
Thread: Hello again, all :)
Post: Hello again, all :)
I've been spending a lot of time with c# over the past couple years, and I'm looking to get back into python for a personal project. But since it's been a few years since I've done anything serious w... |
|
nilamo |
News and Discussions |
3 |
1,335 |
Nov-27-2022, 07:07 PM |
|
|
Thread: I get attachment paperclip on email without any attachments
Post: RE: I get attachment paperclip on email without an...
It's a multipart message. If you could look at the raw (or "original", depending on your email client), you could see if maybe there was more than one part sent, which the email client is maybe misun... |
|
nilamo |
General Coding Help |
5 |
1,994 |
Mar-17-2022, 09:50 PM |
|
|
Thread: numpy masking/filtering
Post: RE: numpy masking/filtering
I've got it working :)
The mask maintains all data, and you need to specifically filter out the masked values when altering the view. It means I'll need to rewrite the rest of my code to work with ma... |
|
nilamo |
Data Science |
3 |
3,517 |
Dec-04-2021, 10:28 PM |
|
|
Thread: Regex problem
Post: RE: Regex problem
Quote:As per my understanding I expected words such as ORE, FRETED and REDED to pass but not words such as RENDED, DOPED or REPRO.
Why would ORE pass? There's no D in it.
Aside from that one, all yo... |
|
nilamo |
Data Science |
3 |
1,697 |
Dec-04-2021, 09:22 PM |
|
|
Thread: numpy masking/filtering
Post: RE: numpy masking/filtering
That sounds great, but I'm not sure it's actually working? That modification to the view was applied to the entire array, not just the masked portion. But the MaskedArray module is new to me, so I'l... |
|
nilamo |
Data Science |
3 |
3,517 |
Dec-04-2021, 06:04 PM |
|
|
Thread: numpy masking/filtering
Post: numpy masking/filtering
I'm working on a project where I'm using numpy for generative art, and I've got a question with how to filter an array without copying the data (so the original array will still be edited by a change ... |
|
nilamo |
Data Science |
3 |
3,517 |
Dec-03-2021, 04:32 AM |
|
|
Thread: Regex format issue?
Post: RE: Regex format issue?
(Dec-01-2021, 08:27 PM)bontwoody Wrote: #This works
cursor.execute('SELECT Word FROM Tbwords WHERE word REGEXP ?',['^.?.?P.?.?.?RE.?.?C.?.?.'])
That's how cursors work. You pass the query, with par... |
|
nilamo |
Data Science |
3 |
2,064 |
Dec-03-2021, 01:30 AM |
|
|
Thread: My game's code works but Python still freezes at random intervals.
Post: RE: My game's code works but Python still freezes ...
Quote: while True:
gf.check_events(player, pp_settings)
clock.tick(60)
if pp_settings.game_active:
enemy.update()
player.update()
ball.up... |
|
nilamo |
Game Development |
13 |
7,655 |
Nov-25-2021, 03:33 AM |
|
|
Thread: Trying to make a white circle appear and disappear
Post: RE: Trying to make a white circle appear and disap...
You have two different while loops. The color switching is in the first loop, and is completely done when the second loop starts... and the second loop is when the window is updated. |
|
nilamo |
Game Development |
2 |
2,240 |
Nov-25-2021, 03:18 AM |
|
|
Thread: My game's code works but Python still freezes at random intervals.
Post: RE: My game's code works but Python still freezes ...
It sounds like you're running it within PyCharm... does this also happen if you run it from the terminal?
Do you have any while loops? Not responding is different from crashes. If it's not respondi... |
|
nilamo |
Game Development |
13 |
7,655 |
Nov-25-2021, 03:11 AM |
|
|
Thread: LoRaWAN anybody experimenting with this?
Post: RE: LoRaWAN anybody experimenting with this?
That does sound interesting. What are you going to try to use it for? |
|
nilamo |
Bar |
2 |
2,134 |
Sep-19-2021, 06:58 PM |
|
|
Thread: Generate a list
Post: RE: Generate a list
What have you tried?
This is a place for helping people to learn Python, not for people to solve your problems for you. If you're not going to write code, we have nothing to help with. |
|
nilamo |
General Coding Help |
5 |
2,375 |
Sep-19-2021, 06:47 PM |
|
|
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 |
2,762 |
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 |
3,162 |
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 |
3,287 |
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 |
3,287 |
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 |
4 |
3,439 |
May-27-2021, 09:06 PM |