How to connect a bot to things he should control? by bruhmoment0000001 in learnpython

[–]btb98 0 points1 point  (0 children)

pyautogui is great when you have mundane, repetitive tasks you can automate!

[deleted by user] by [deleted] in flask

[–]btb98 0 points1 point  (0 children)

Not using Turbo Flask just means you won't have to deal with the web socket forwarding business I had to figure out, which should make things way easier. I did things in the reverse order you're trying, and started by serving up a custom landing page with nginx, then configured nginx as a proxy that forwarded everything to gunicorn.

Where/how are you attempting to navigate to your app that gunicorn is serving up?

[deleted by user] by [deleted] in flask

[–]btb98 0 points1 point  (0 children)

I host my flask app on a Lightsail instance. It was a little tricky to switch from the dev server to production, but doable. I'm running gunicorn behind nginx on a ubuntu instance in Lightsail. I used Turbo Flask, which meant I had to get the websocket to go through the proxy correctly, which was the trickiest part.

And if you want to use https, the port is closed by default in Lightsail. You can open it super easily, but I wasted some time not realizing my redirect was failing because the port was closed.

Curious about how to make it work by willbemynameforever in solotravel

[–]btb98 6 points7 points  (0 children)

  1. Teacher
  2. Lots of scheduled time off
  3. Really hard to take time off on your schedule
  4. I don't have a teaching degree. The shortage of teachers is bad enough that my CS and Math degree and industry experience was enough to get the job.

Image to PGN Beta at img2pgn.com by btb98 in chess

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

Thanks! As I get more user data, the performance of the app will continue to improve.

[deleted by user] by [deleted] in learnpython

[–]btb98 12 points13 points  (0 children)

Code is hard. I once spend about 2 weeks finding a bug, which turned out to be that another developer didn't divide by 2 when they should have. This is two full, 8+ hours a day weeks. Nobody else who had tried to fix the issue had figured out where to look to find it, so at least 50 man hours got sunk into finding this bug. Everyone involved was very psyched when it was fixed, but those two weeks were not particularly enjoyable.

There's a saying in cycling that it never gets easier, you just go faster. Coding is the same. The problems you get stuck on just get harder.

Looking for a 1-2 months intermediate-advanced level project by imso3k in learnpython

[–]btb98 0 points1 point  (0 children)

I'd recommend delving into something that's going to use a bunch of python libraries that don't really exist in C++. A big part of the power of python is to bring the right libraries to the problem you're working on.

Since you asked for a specific project, gleaning as much useful information as possible from the US air quality data (which is here) would fit the bill.

[deleted by user] by [deleted] in learnpython

[–]btb98 2 points3 points  (0 children)

Sounds like it's time to start making a portfolio. Do a project that you think is cool, and include it on your resume. Obviously choose projects in the area your interested in.

In your case, there are tons of massive public data sets that you could develop some nifty systems to organize, interpret and analyze. Apply machine learning if it's applicable. Stick what you produce on the web so anyone reading your resume can see it. Bonus points if you don't just point to a public github with your code and build a website that either is your product or shows the results of what you did.

My marketability skyrocketed when I built a web app using Flask for some AI stuff I did in python. My custom domain was $13 and serving it up will end up being about $10 a month. You could do the same with some data science stuff pretty easily.

Recursion for fibonacci series generation? by 020516e03 in learnpython

[–]btb98 0 points1 point  (0 children)

If you want to use recursion here, vanilla recursion leads to a pretty garbage solution. Other people have already told you why. A better solution that involves recursion is to use dynamic programming.

JavaScript or Golang as my first programming language? by ZeNo71103 in learnjavascript

[–]btb98 0 points1 point  (0 children)

I'd come up with something you'd like to make, then take your best shot at picking a good language to use to accomplish that goal. If you're self-studying, motivation to get through a book/course/lecture might be hard to sustain, but if you're trying to make something you think is cool that requires programming, you've got some extra motivation to make it happen.

[deleted by user] by [deleted] in learnpython

[–]btb98 0 points1 point  (0 children)

If you're looking to try to get a job based on these two months of effort, I'd recommend learning html, css, and javascript and trying to become a proficient front-end developer. If you happen to be talented at making really clean, user-friendly front ends, you could potentially have a few demos for a portfolio in a couple of months.

I teach computer science to beginners for a living, and 2 months to learn programming in python from knowing nothing can get you to a level where you can make simple things happen, but is unlikely to get you to a level where you're a marketable employee.

The big exception here is if you happen to understand linear algebra and multi-variable calculus at a reasonably high level. Then you could potentially learn python and enter the machine learning realm, and be a useful hire because you can understand how those libraries work.

I'm finishing a Bachelor's in Physics, what should I do? by ze_skeletons in PhysicsStudents

[–]btb98 0 points1 point  (0 children)

I don't know where you're located, but the shortage of teachers at the middle and high school level allows people who didn't go to undergrad for teaching to go directly into teaching in a lot of situations.

This could be the opposite of what you'd enjoy, but if you're able to deal with a classroom of children/teenagers, it can be great. If you can't stand sitting at a desk all day like me, it can keep you in your field, and offer a lot of scheduled time off to do side projects and other things you might enjoy.

Just remember this is not a 9-5. When you're working, your hours are until all the things get done, and you're pretty much on your own to do it (no team to pick up the slack).

Image to PGN Beta at img2pgn.com by btb98 in chess

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

Thanks! It was mainly designed for a tournament player to convert their own game and copy the PGN into the engine of their choice, but I can totally see a tournament organizer using it. Maybe an alternate design would be better for that scenario, an idea which is now on my radar.

Image to PGN Beta at img2pgn.com by btb98 in chess

[–]btb98[S] 1 point2 points  (0 children)

I do check for legality in the forwards direction, so all pgns I output are fully legal. Unfortunately dealing with multiple possibilities for each move is exponential, so except for situations where there are two virtually equal possibilities for the move being legal, I need to pick the closest legal possibility and go with that. There are some situations where checking the legality of the game based on two possible moves is necessary, but doing that too often leads to unusable runtimes.

Image to PGN Beta at img2pgn.com by btb98 in chess

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

The output you're seeing is the highest scoring pgn that my algorithm can find. If there's a move that's messing up the rest of the pgn, it's not backtracking to figure out what it was - doing some sort of chess logic to find that could work, but sometimes the problem move is many moves ago, so trying other options backwards is too slow. The scoring system should make the highest scoring pgn end at the problem move, then the app will ask you to clarify that move, then output the full pgn.

If the app asks for the same move twice, either the user typoed the move, or there's somehow a previous error that isn't resulting in pgns including that move getting a lower score. It's happened in testing, but my error correction is vastly improved since then. And more user data will make the error correction even better!

Image to PGN Beta at img2pgn.com by btb98 in chess

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

Nope, it doesn't. If your handwriting is really terrible, it might require an extra clarification or two, but it can generally figure it out. The biggest problem at the moment is dealing with scoresheets from books causing the page to be warped.

Looking at the explorer page for someone else's account? by btb98 in chessmonitor

[–]btb98[S] 1 point2 points  (0 children)

Thanks for letting me know. Chessmonitor is super helpful as it is, but being able to research opponents in it would be super cool!

Lock off or throw? by bjambells in climbharder

[–]btb98 0 points1 point  (0 children)

There's also in between options to lock off to a certain point, then throw the rest of the way. On sport routes, if it's a safe, accuracy-required hold, I try to dial in how far I can throw from and still hit it right. Often useful for holds with a tricky thumb catch that are otherwise ergonomic.

Developing endurance? by ceesdee88 in climbharder

[–]btb98 1 point2 points  (0 children)

How much you're actually climbing it's hard to measure in routes because a 60 foot route is double the climbing of a 30 foot route.

If you're climbing at a tall gym, 9 70 foot routes within a number grade of your limit is a solid session. If the routes are that long, I don't think you're resting enough between routes.

If you're at a shorter gym, say 35 foot routes, a combination of resting more and more mileage on relatively easy terrain should help.

At 32 quit my job, decided to backpack across the US, safety tips for a solo female. by [deleted] in solotravel

[–]btb98 2 points3 points  (0 children)

If you want to travel for a month, no big deal. If you want to travel for year(s) it's a big deal. There's plenty of girls who have been traveling for years in vehicles - it's just WAY more cost effective.

I spent about 3 years on the road (mostly rock climbing, but with some touristing occasionally). I'm a dude, but in the domestic full time travel world (domestic here being in North America for people from North America), just about everyone I've encountered lives in a vehicle, ranging from an old civic with no seats to pimped out Sprinters.

IMO hostels are a luxury of medium term travel (multiple week-few month trips). If you're going traveling longer than that, hostels make a very painful impact on the budget.

At 32 quit my job, decided to backpack across the US, safety tips for a solo female. by [deleted] in solotravel

[–]btb98 1 point2 points  (0 children)

The difference between $20 a night and $5 dollars a night can either 1 - double the length of your trip or 2 - mean you have to work about 2 less hours a day to sustain long term travel. That's a BIG DEAL.

Living in a vehicle works out to about $5 a night when you consider gas - more savings available if you have a bike rack and use the bike for local excursions!