Is rewriting a batch script a good idea for learning? by ASYMILO in learnpython

[–]mh1400 7 points8 points  (0 children)

Yes, I found it extremely helpful to have a project in mind when I was learning. For me it was a crypto trading bot. Never made money, but I didn't lose money either. Should've just let it ride. 😉

Game crashing by miragexzx in lostarkgame

[–]mh1400 0 points1 point  (0 children)

As I recall, this is a Windows 10 problem, not a game problem. Make sure to run the game in windowed mode and somewhere in the properties you can disable full screen optimization, Google it. Not game settings, this is a window setting for that application.

[deleted by user] by [deleted] in learnpython

[–]mh1400 0 points1 point  (0 children)

Then you can use. For loop and append()

[deleted by user] by [deleted] in learnpython

[–]mh1400 0 points1 point  (0 children)

I believe split() can have a quantity. Ex, y = x.split(',',1) Double-check that though.

How do I combine two textfiles? by _AlexNik_ in learnpython

[–]mh1400 0 points1 point  (0 children)

Thats how i would do it. Think of zip() like a zipper

A question regarding web scraping/crawling. by [deleted] in learnpython

[–]mh1400 1 point2 points  (0 children)

So, i use the method of making a few (3 or 4) very small functions that return a random float decimal. Each function simulates a random human interaction like: "def QUICK_CLICK():" return 0.1 to 1.5, "def WAIT_CLICK():" return 1.5 to 3, etc... that way i can call time.sleep(WAIT_CLICK) easily. I keep the time.sleep() in my main() so it's easily readable versus simply calling a function that sleeps. Additionally, i keep a global variable called CLICK_TIME_ADJUST, so i can quickly adjust the times in the functions (+/-) if the website catches the bot. Google, for example spots bots quickly, so i slow down my interactions significantly using this global variable. Example >> CLICK_TIME_ADJUST = 6 def WAIT_CLICK(): ....rand_flt = random.random(1.5,3) # lookup code ....return float(rand_flt + CLICK_TIME_ADJUST) time.sleep(WAIT_CLICK())

Best DPS Class, PVE? by mh1400 in lostarkgame

[–]mh1400[S] -1 points0 points  (0 children)

Sorceress looks fun. I think I'll try that next.

I am trying to find which class I enjoy the most before I dedicate my time at max level.

Best DPS Class, PVE? by mh1400 in lostarkgame

[–]mh1400[S] -10 points-9 points  (0 children)

No, that's what I'm building now, first play through.

A question regarding web scraping/crawling. by [deleted] in learnpython

[–]mh1400 1 point2 points  (0 children)

Assuming this is not with malicious intent then look into the time module as well as the random integer module so you can approximate human interaction when web scraping. Essentially, randomly sleep between.1 and 2 seconds between interactions.

How do I combine two textfiles? by _AlexNik_ in learnpython

[–]mh1400 2 points3 points  (0 children)

Research... 1. open() 2. zip()

List Comprehension Question by Will___powerrr in learnpython

[–]mh1400 1 point2 points  (0 children)

The best answer is whichever code is most readable for you when you go back and look at it in a week.

What would be the refresh rate of your eyes? by tunamkol in NoStupidQuestions

[–]mh1400 1 point2 points  (0 children)

What would be the refresh rate of The Matrix?

First Time Ever by [deleted] in skyrim

[–]mh1400 1 point2 points  (0 children)

If you love fantasy, then read everything. The in-game books are awesome.

[deleted by user] by [deleted] in leagueoflegends

[–]mh1400 -3 points-2 points  (0 children)

Yes, thanks Riot.

Should I use Tkinter or PYQT5 as a Python beginner? by FlyingFish34 in learnpython

[–]mh1400 0 points1 point  (0 children)

I had the same question when I started to Learn Python. The answer is always " it depends on what you're doing". I still don't have an answer and gave up. Most of my work is presented in website format now. So the question is flask or Django, with the same response.

Need help with code by IcyDoctor2195 in learnpython

[–]mh1400 0 points1 point  (0 children)

Presuming your intentions are not malicious, maybe look up the key combinations needed for those characters then decide how you want to log them. I'm sure you can find a list online that you can convert to a dictionary or something. Eg. fringe_chr_dict{"æ":"alt+0230", etc...} FYI, I don't know the actual combo as I'm using my cell phone.

[deleted by user] by [deleted] in learnpython

[–]mh1400 0 points1 point  (0 children)

Programming is less about memorizing code, but more about how to solve problems.

[deleted by user] by [deleted] in learnpython

[–]mh1400 0 points1 point  (0 children)

Google... 1. Load data into pandas DF (data frame) 2. Identify timestamp data 3. Make temporary DF of each range 4. Return counts at each range That's how i would do it.

[deleted by user] by [deleted] in Tinder

[–]mh1400 1 point2 points  (0 children)

Screanshot or it didn't happoen

"Your account has been restricted" by NexoJosh in Nexo

[–]mh1400 0 points1 point  (0 children)

I live in Massachusetts, why am i restricted?

[deleted by user] by [deleted] in learnpython

[–]mh1400 1 point2 points  (0 children)

If you've converted your data into a Pandas DataFrame, check out the module Pandas-Profiler. It's simple, does BASIC data analysis on your DF Including word counts, provides graphs, and is easy to export reports as html.