Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Computationally efficient recording + searching?
Post: RE: Computationally efficient recording + searchin...

Since there have been no suggestions, is it already efficient?
IAMK General Coding Help 1 2,356 Apr-30-2018, 01:23 AM
    Thread: Bubble sort quiz: why the result is not the same?
Post: RE: Bubble sort quiz: why the result is not the sa...

Are you sure you're doing it properly? This sounds like a theoretical question, as opposed to a brute force question. Refer to: Link Also, I'm no python expert, but some things I believe can be impro...
IAMK General Coding Help 11 5,925 Apr-24-2018, 05:43 PM
    Thread: Computationally efficient recording + searching?
Post: Computationally efficient recording + searching?

I have not yet programmed this, so it will be in pseudo code, but I would like to know if my idea is good or there is a better way to do it. I need the most computationally efficient way to do this. ...
IAMK General Coding Help 1 2,356 Apr-24-2018, 03:18 AM
    Thread: need help in passing url as variable in payload
Post: RE: need help in passing url as variable in payloa...

I don't understand exactly what you are doing, so I cannot help you. This is all I could think of: https://stackoverflow.com/questions/4542...le_rich_qa
IAMK General Coding Help 6 5,982 Apr-20-2018, 01:50 AM
    Thread: need help in passing url as variable in payload
Post: RE: need help in passing url as variable in payloa...

http://www.pythonforbeginners.com/concat...-in-python https://softwareengineering.stackexchang...le_rich_qa You need to concatenate the parts into one string.
IAMK General Coding Help 6 5,982 Apr-20-2018, 01:30 AM
    Thread: AttributeError: 'Calculator' object has no attribute 'buttons'
Post: RE: AttributeError: 'Calculator' object has no att...

(Apr-18-2018, 01:26 AM)Gomez2021 Wrote: Still kinda lost here. What exactly do I have to do to call these in?The start of your program.
IAMK General Coding Help 5 6,302 Apr-18-2018, 01:34 AM
    Thread: How much multi-threading should be done?
Post: RE: How much multi-threading should be done?

(Apr-17-2018, 09:30 PM)wavic Wrote: For io operations, threads are a better choice.I am doing many checks on 25billion combinations and then writing them to files. Also, I cannot get the thread to ...
IAMK Data Science 7 5,912 Apr-17-2018, 10:00 PM
    Thread: How much multi-threading should be done?
Post: RE: How much multi-threading should be done?

(Apr-17-2018, 04:13 PM)nilamo Wrote: 100 is a tiny number.100^5 is a tiny number? (Apr-17-2018, 04:59 PM)woooee Wrote: have a running process and also be able to enter a key to kill itCould you p...
IAMK Data Science 7 5,912 Apr-17-2018, 08:57 PM
    Thread: How much multi-threading should be done?
Post: How much multi-threading should be done?

Question 1: Without using trial and error, is there a general rule to how deep multi-threading should be done? Let's say I have 5 nested for loops, all of which loop 100 times. Do I multi-thread the...
IAMK Data Science 7 5,912 Apr-17-2018, 12:00 PM
    Thread: Why doesn't this work?
Post: RE: Why doesn't this work?

Hence, going off woooee's comment, you need to split the readline to remove the newline. Try something like: TrueUsername = file.readline(1).split('\n')[0] If ^ doesn't work, then do: TrueUsername = f...
IAMK General Coding Help 5 3,748 Apr-17-2018, 11:43 AM
    Thread: New user/beginner needing help
Post: RE: New user/beginner needing help

To explain Larz's comment: 1- function def parameters need to be variables, that way they can be used inside the function. 2- The syntax of print is: https://docs.python.org/3/tutorial/inputoutput.htm...
IAMK General Coding Help 3 3,234 Apr-17-2018, 11:30 AM
    Thread: Does == check the address or value?
Post: RE: Does == check the address or value?

(Apr-17-2018, 04:29 AM)Mekire Wrote: I think you might have more luck using an implementation involving dictionaries.I've essentially made my own dictionary, haven't I? (Apr-17-2018, 04:53 AM)scid...
IAMK General Coding Help 3 3,010 Apr-17-2018, 11:22 AM
    Thread: How can I make this as computationally efficient as possible?
Post: RE: How can I make this as computationally efficie...

Uhh... so after some optimisation, I took my 27-hour runtime down to 5 minutes... for 25 billion cycles... I still haven't used dictionaries or multithreading... And to think that c++ could be 10x or ...
IAMK Web Scraping & Web Development 8 4,843 Apr-17-2018, 11:15 AM
    Thread: Does == check the address or value?
Post: Does == check the address or value?

I watched Ned's video and now have a question. (Refer to the picture at 3:30) I had originally planned to implement a translator/simplifier, which iterates through a list of which there are many dupl...
IAMK General Coding Help 3 3,010 Apr-16-2018, 10:20 PM
    Thread: 2D Array/List OR using variables in other variable names?
Post: RE: 2D Array/List OR using variables in other vari...

(Apr-16-2018, 03:31 PM)nilamo Wrote: Then you're doing something else wrong.No, I've left [0] empty. It's fine :)
IAMK General Coding Help 4 3,866 Apr-16-2018, 09:09 PM
    Thread: How can I make this as computationally efficient as possible?
Post: RE: How can I make this as computationally efficie...

(Apr-15-2018, 10:05 AM)Gribouillis Wrote: I think this sequence of records is fast to generate and it should be a better starting point than the raw sa_data arrayYes, I watched Ned's video today, an...
IAMK Web Scraping & Web Development 8 4,843 Apr-16-2018, 12:10 PM
    Thread: How can I make this as computationally efficient as possible?
Post: RE: How can I make this as computationally efficie...

(Apr-15-2018, 07:27 AM)wavic Wrote: You can pass sa_data and ia_lines as parameters to get_num and checkWin. Python checks first the local variables and if the variable is no there checks the global...
IAMK Web Scraping & Web Development 8 4,843 Apr-15-2018, 07:36 AM
    Thread: How can I make this as computationally efficient as possible?
Post: How can I make this as computationally efficient a...

For work, I am cycling through ~24 billion combinations, and checking 3 things on each combination. Hence, I need my currently working code to be made as computationally efficient as possible so that ...
IAMK Web Scraping & Web Development 8 4,843 Apr-15-2018, 02:04 AM
    Thread: for x in len()?
Post: RE: for x in len()?

(Apr-15-2018, 01:03 AM)buran Wrote: Actually, no - the first is not better. Please, read https://python-forum.io/Thread-Basic-Nev...n-sequenceI find it funny how that's a common mistake for people c...
IAMK General Coding Help 5 3,851 Apr-15-2018, 01:50 AM
    Thread: for x in len()?
Post: RE: for x in len()?

(Apr-14-2018, 11:26 PM)Larz60+ Wrote: for a in range(len(sa_data[1])):Thanks. I realise how stupid the question was. I had already written than into a variable... As for the second solution, I'm us...
IAMK General Coding Help 5 3,851 Apr-15-2018, 12:17 AM

User Panel Messages

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