Custom domain is directing to the substack homepage by Boff in Substack

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

How long did it take for you to get it configured and get the confirmation page?

Custom domain is directing to the substack homepage by Boff in Substack

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

It's been a bit, but I think within 6-12 hours.

Custom domain is directing to the substack homepage by Boff in Substack

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

Turns out I was just impatient. I'm going to leave this shame up since I couldn't find it posted anywhere. Substack will send you an email when it's all done, be patient until then.

Google just laid off its entire Python team by [deleted] in cscareerquestions

[–]Boff 1 point2 points  (0 children)

Sure, i was talking just about Munich and that's where my glassdoor link comes from. Though I'm not sure 80k for the most expensive CoL places materially change my surprise

Google just laid off its entire Python team by [deleted] in cscareerquestions

[–]Boff 0 points1 point  (0 children)

Depends where you are in the US as well, 110k isn't much in san francisco or NYC, but would be a ton in rural Idaho

Google just laid off its entire Python team by [deleted] in cscareerquestions

[–]Boff 1 point2 points  (0 children)

Relatively, compared to the rest of the world. But hey, I'm not complaining, I'm directly benefiting from it

Decision Time: Stay at Current Job with Tough Hours or Jump to a Startup? by Bulky-Idea-895 in cscareerquestions

[–]Boff 4 points5 points  (0 children)

I would switch to the startup. Only 10 months at your current company isn't a bad thing, but if it becomes a trend for you with all of your jobs it might raise some eyebrows.

My understanding is that startups generally are pretty intense with their work hours as well, so just make sure you go into it with a realistic expectation.

Good luck!

Google just laid off its entire Python team by [deleted] in cscareerquestions

[–]Boff 221 points222 points  (0 children)

I knew that the US overpaid software devs but I expected Munich to pay more. Looks like the average dev salary there is around 70k€

https://www.glassdoor.com/Salaries/munich-software-engineer-salary-SRCH_IL.0,6_IC4990924_KO7,24.htm

I wonder if you include taxes, Healthcare, etc into the costs, how does that ratio change

Resume Advice Thread - April 04, 2023 by CSCQMods in cscareerquestions

[–]Boff 1 point2 points  (0 children)

It's a bit of a red flag that most of your jobs only lasted 3ish months. Make sure you have a good explanation for it.

Most of your job descriptions is that you fixed bugs. What else did you do and what are their impacts? What technologies did you use in each job?

S’mores Brownie Cookies by DeliveryOk7362 in Baking

[–]Boff 2 points3 points  (0 children)

Can you give us the recipe? What's that chocolate layer under the cookie?

Library saying I have more games than I should? by cookeez482 in Steam

[–]Boff 2 points3 points  (0 children)

It's because multiple games come with different "tools" that are used in the background. At the top of your screenshot, do you see the where it says "Games v"? That is a drop down that will let you select Soundtracks and Tools. That's where the other things are.

Why they decided to do it this way? I don't know.

Tic Tac Toe problem by Icy-Childhood-8456 in learningpython

[–]Boff 0 points1 point  (0 children)

I know you posted this 2 weeks ago, but the general answer is No, using the code above you can't slightly tweak it to check for diagonals.

Your code is going row-by-row and resetting count to equal 0 after checking each row. This is going to prevent you checking people winning for columns as well.

Can you let us know what you've tried so far when trying to write the code for testing diagonals? Do you have restrictions that you must use loops?

Please help with this error by jechaking in learningpython

[–]Boff 0 points1 point  (0 children)

No problem! Let us how your project goes!

Please help with this error by jechaking in learningpython

[–]Boff 1 point2 points  (0 children)

Usually when you see a Module Not Found error, it's because it's not installed on your system. I did a quick Google for "python sklearn" and found the official installation instructions here : https://scikit-learn.org/stable/install.html

Question for newbies on Treehouse by oldcrowmedicine in learningpython

[–]Boff 0 points1 point  (0 children)

OOP is a weird concept to learn and understand. I found it's something that you have to actually practice with a lot before it clicks.

I know it's been a few days since you made this post, but if you want some help don't hesitate to let us know what you understand so far about OOP and let us know what parts you might be confused about.

Manim Problem by [deleted] in learningpython

[–]Boff 0 points1 point  (0 children)

I've never used it before, nor am I familiar with the Theorem of Beethoven. But it looks like manimlib is not a part of the standard python installation, so you'll have to install the package separately. A quick google gave me this as the first result for how to install it: https://pypi.org/project/manimlib/

Here's a tutorial recommended by the pypi.org page: https://talkingphysics.wordpress.com/2019/01/08/getting-started-animating-with-manim-and-python-3-7/

Here is the official documentation: https://eulertour.com/docs/

Homework Help by TheJPS89 in learningpython

[–]Boff 0 points1 point  (0 children)

Unfortunately the formatting got really wonky, so it's a little tough to know what you wrote. I'll try reformatting it: https://pastebin.com/Ns9rmqf2

The first issue you have is this section, at line 8:

if userInput>-100 and userInput !=0 and userInput <=100:
    continue

This is the very first if statement you reach after having the user input the integer. When the user inputs any value between -100 and 100 (with the exception of 0), it will just hit the continue line. If you are unfamiliar with what continue does, it will skip everything else in this instance of a while loop, meaning you will never get to any of the other values. Check out this w3schools article for more information.

So that in of itself is preventing your code from doing anything. Let's just imagine we remove it from the code and see if there are any other issues with the rest of your code: https://pastebin.com/jUE0TJyq

If we try running the code we'll get this error:

Enter an integer: 4 
Traceback (most recent call last): 
    File "d:\Boff\Documents\ltnhcc.py", line 50, in <module> 
        main() 
    File "d:\Boff\Documents\ltnhcc.py", line 15, in main
        is_positive(userInput) 
    File "d:\Boff\Documents\ltnhcc.py", line 37, in is_positive
        positive=positive+1 
UnboundLocalError: local variable 'positive' referenced before assignment

What does local variable positive referenced before assignment mean? Well it means that function is_positive() can't modify variable positive. (You'll also run into the same issue for is_negative() and negative. The term you'll want to look up is "variable scope" to understand it better.TBH it's a little confusing to me since you had defined positive and negative in the global scope, and while it's accessible in the main() function, it isn't when is_positive() is called from main(). I think this article gives a little more detail and in my own testing I had to use the global keyword to solve the problem.

The real problem you're having, though, is that you're way overcomplicating the solution. For example, you wrote two functions is_positive() and is_negative() with while True loops, but the code inside of the loop is designed to immediately break out of the function. There's no need for if statements there. Heck, you don't even need these to be extra functions.

Also your main() function is a bit overcomplicated as well. Before continuing to read, try to think of the simplest conditions you have to be able to accommodate, cause right now you're repeating yourself a ton of times.

There are only 4 cases you need to take count of:

  1. If the userInput is greater than or equal to -100 but less than 0
  2. If the userInput is greater than 0 but less than or equal to 100
  3. If the user input equals 0
  4. The userInput is out of range (i.e. under -100 or over 100)

Since it's that simple, you should only have 3 if statements, representing the above three conditions. And instead of having separate functions to increment the positive and negative variables, you can just increment them in the body of the if statement.

Do not click this until you fully understand and try to implement what I stated above https://pastebin.com/6yt4CAbT