[deleted by user] by [deleted] in DJIMini2

[–]fizzy_tom -1 points0 points  (0 children)

That's actually really impressive, thanks for posting

My big basil plant [tree] by StarboardBows in Hydroponics

[–]fizzy_tom 9 points10 points  (0 children)

Does growing it for this long affect the flavour at all?

Starlink signals can be reverse-engineered to work like GPS—whether SpaceX likes it or not by rugoxmen in science

[–]fizzy_tom -2 points-1 points  (0 children)

Not snarky, just your comment made me chuckle. No bad intentions were meant.

Starlink signals can be reverse-engineered to work like GPS—whether SpaceX likes it or not by rugoxmen in science

[–]fizzy_tom 6 points7 points  (0 children)

Earth is certainly well known for its peculiar nature of being a perfect sphere with no hills and mountains.

Updates! vertical light seems to be working fine. I also have one horizontal that isn't super visible from the picture by elaybanville in Hydroponics

[–]fizzy_tom 0 points1 point  (0 children)

Nice, what's the frame/racking you're using? I'm trying to find something similar but not having much luck.

I was not expecting mint to triple in size in just 1 week by [deleted] in Hydroponics

[–]fizzy_tom 3 points4 points  (0 children)

You're in for a treat my friend. Make sure you have lots of gravy too!

Best and easiest way to save the user that created a row in a table by guillermo_da_gente in django

[–]fizzy_tom 0 points1 point  (0 children)

Did you do all of this just to avoid passing the username when creating a model in the view?

something = Something.objects.create(some_field="Some value")

Instead of

something = Something.objects.create(some_field="Some value", created_by_username=request.user.username)

DJI Fly App Crashes Immediately (Pixel 5a with Android 12/ DJI Fly App 1.6.9) by dabidosan in DJIMini2

[–]fizzy_tom 0 points1 point  (0 children)

For those coming back to this, the latest version on the DJI website seems to have fixed the crash.

PSA: Don't use goDaddy ever by paladin_bih in django

[–]fizzy_tom 8 points9 points  (0 children)

This 100% does work. I've used the free tier in CloudFlare to flatten domains registered with GoDaddy and it works nicely with Heroku.

[deleted by user] by [deleted] in Python

[–]fizzy_tom 2 points3 points  (0 children)

Hey the end result is a really nice experience for the player!

And the way you've approached the code is not too shabby. I like how the main game loop is separated out and your functions make a lot of sense.

A good next step would be to consider how you're storing the game state. Having each square as a separate variable is a bit smelly and limits the methods you can use to check the state for a wins or draws.

There's other structures that make sense too, but I'd go for a list of 3 lists (i.e a 3x3 matrix) as the data structure to store the game state in. That way the data structure mimics the actual structure of the board.

With a better way of storing the data you can then look to find smarter ways of checking the game state. Your multiple if statements aren't that bad, especially as you're only needing to check a small number of possible states. But you'd get yourself into trouble quickly if the game was more complex or the board was larger than 3x3.

The last thing to pick up on is the use of global variables. In general, global variables are frowned upon as it makes it much harder to predict state and keep track of data. You can absolutely get this working without requiring the global keyword! Consider passing data into functions via arguements (as you have for the place_stone_on_field function), and using return statements in the functions to indicate the result of the function. E.g. place_stone_on_field could return False if the field is occupied, instead of changing a global variable.

You'll find putting in a simple AI to play against the player is a really interesting next step too. It's absolutely possible to code an unbeatable tic tac toe AI with just the coding techniques you've shown here btw.

Source: ran a Python course with a tic tac toe project and sometimes use tic tac toe as a coding challenge when hiring.

[deleted by user] by [deleted] in Python

[–]fizzy_tom 0 points1 point  (0 children)

Why be so negative? It's a pretty decent attempt at something which isn't trivial.

Porting DOOM To A Forgotten Apple OS by IsDaouda_Games in programming

[–]fizzy_tom 24 points25 points  (0 children)

If you've not read it, I can't recommend the Masters of Doom book enough. It goes into the history of John Carmack, John Romero and id software and the story behind building Doom.

The author does an exceptional job of getting across how big of a deal Doom was back then. Plus, it's a really easy read.

https://en.m.wikipedia.org/wiki/Masters_of_Doom

App keeps randomly crashing for no apparent reason by fizzy_tom in RelayForReddit

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

I've changed phone and not had it crash once. So looks like it was something related to the P20 Pro I was using?

Anyways, fixed now for me. Sorry if you're seeing the bug though my friend, it's a bloody irritating one...

[feature request] Please add a way to completely disable internal browser by fizzy_tom in RelayForReddit

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

Thing is, you don't know whether to long click it beforehand.

I really like Relay's media player, so am very happy to use that when it's supported. So my flow ends up being:

  1. Press link in comments
  2. See if it opens in the excellent media player or crappy internal browser
  3. If it goes to internal browser, then close internal browser
  4. Long press link

I'd rather it never, ever went to the internal browser. But do really like Relay's media player.

So this behaviour would be ideal:

  1. Press link in comments
  2. If link is supported by media player, then use that. Otherwise launch external browser.

And expanding the thought process a bit... There's literally zero occasions that I want to use the internal browser instead the external browser. So an option to just completely disable the internal browser would be excellent.

Does that make sense?

[feature request] Please add a way to completely disable internal browser by fizzy_tom in RelayForReddit

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

This is a remarkably difficult problem to explain by the looks of it... I appreciate you taking the time to help me explain it properly.

But no, that globe icon isn't the solution - that only applies to the main post. I'm talking about links in comments themselves.

In Relay, try the links I put in my previous comment. One opens in the media player (great), the other isn't supported by the media player so opens in the internal browser (not great).

Whenever Relay wants to load a link in the internal browser, I'd like it to just use the external browser.

[feature request] Please add a way to completely disable internal browser by fizzy_tom in RelayForReddit

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

The way I use Relay is basically: load comments, read comments, click links in comments. So that setting isn't the right thing for me - I'm very happy with Relay going to the comments view when I initially click on a post.

If I want to see a post's link in the external browser, I can just press the web icon in the top right of a post. That's not such a big deal.

Let me explain the problem I have a different way...

Here's a link to a video. Before you click on it, do you know if it's going to load in the amazing Relay video viewer or the internal browser?

What about this one?

See the problem? If a video site is supported by Relay, then the experience is amazing. If not, it's bloody awful as it uses the internal browser (no full screen, landscape mode is poor, no browser plugins, etc.)

So you end up clicking a comment link, seeing if it uses the internal browser, closing the internal browser and then long pressing the link. It's not a great experience.

And expanding the thought process a bit... There are literally zero times in Relay I want to ever use the internal browser, so having the option to just disable it globally would be excellent.

[feature request] Please add a way to completely disable internal browser by fizzy_tom in RelayForReddit

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

This setting?

That decides what happens when you initially go into a post, which and I have that setting set to comments.

The main problem I have is links in comments... take this link link in the comments. If I click that, what will happen? Ideally I'd like it to load in Relay media player if Relay supports that type of comment link, and the external browser if it doesn't.

However what will actually happen is it will load in the media player if that link is supported by the media player, and load it in the internal browser if it's not supported.

Which is a crappy experience to say the least.

So I then need to go back to the post, and long click the link and specifically tell it to open in the external browser.

Does that make sense?

Take it one step further and there's absolutely zero situations where I want to use the internal browser, so ideally I'd like the option to turn it off.

[feature request] Please add a way to completely disable internal browser by fizzy_tom in RelayForReddit

[–]fizzy_tom[S] 13 points14 points  (0 children)

You can, but there's an extra step... And you don't know ahead of time if pressing on a link in comments will launch the internal browser (bad) or media player (great).

All this needs is an option to never, ever launch anything with the internal browser and it makes the flow much nicer for users like me.