TonyLozano's recent activity

  1. Comment on What have you been eating, drinking, and cooking? in ~food

    TonyLozano
    (edited )
    Link Parent
    Try swapping the BBQ sauce and bun for salsa and tortillas! Then you're making carnitas for tacos. Add some shredded cabbage for fiber and crunch.

    Try swapping the BBQ sauce and bun for salsa and tortillas! Then you're making carnitas for tacos. Add some shredded cabbage for fiber and crunch.

    2 votes
  2. Comment on What are your thoughts on the second season of Vinland Saga? in ~anime

    TonyLozano
    Link
    At first the pacing will bother you, but eventually you see its quite intentional. I really liked it honestly, but it might not be for everyone.

    At first the pacing will bother you, but eventually you see its quite intentional. I really liked it honestly, but it might not be for everyone.

    1 vote
  3. Comment on Bags and backpacks! What do you look for, what do you use? in ~life.style

    TonyLozano
    Link
    Check out Go Ruck's options. They have great small daily packs. Ignore all the tacticool branding if its not your thing, the packs are solid and will last a lifetime.

    Check out Go Ruck's options. They have great small daily packs. Ignore all the tacticool branding if its not your thing, the packs are solid and will last a lifetime.

    1 vote
  4. Comment on What is the most recent game to really impress you? in ~games

    TonyLozano
    Link Parent
    It is also an incredible value, a lot of replay-ability, decent co-op (the lag is a bit annoying though). Small price.

    It is also an incredible value, a lot of replay-ability, decent co-op (the lag is a bit annoying though). Small price.

  5. Comment on Team of Swedish engineers has finally developed the first crash test dummy designed on the body of the average woman in ~engineering

  6. Comment on Harden your Linux server using SSH keys (and turn off password auth) in ~comp

    TonyLozano
    Link Parent
    Same, though usually I add in Fail2ban. Using ed25519 for your keys is also easy and better. For serious business, you need to fiddle with the ciphers and stuff too, that's where...

    Same, though usually I add in Fail2ban.

    Using ed25519 for your keys is also easy and better.

    For serious business, you need to fiddle with the ciphers and stuff too, that's where https://github.com/jtesta/ssh-audit/ comes in. https://www.sshaudit.com/hardening_guides.html

    4 votes
  7. Comment on I need career advice in ~life

    TonyLozano
    Link
    Make sure to check your years experience vs salary at something like levels.fyi. The right answer might be looking for an entirely different opportunity that would give you benefits, quality of...

    Make sure to check your years experience vs salary at something like levels.fyi. The right answer might be looking for an entirely different opportunity that would give you benefits, quality of life, and pay. Development is a hot market, you can have your cake and get paid too.

    2 votes
  8. Comment on What games have you been playing, and what's your opinion on them? in ~games

    TonyLozano
    Link
    Satisfactory I broke my normal rule of not buying early access games with this one, and so far its been a blast. There are still some bugs, especially visual ones and stuff with vehicles, but...

    Satisfactory

    I broke my normal rule of not buying early access games with this one, and so far its been a blast. There are still some bugs, especially visual ones and stuff with vehicles, but overall its been immensely enjoyable. Nothing like hard crashes or corrupted saves. The factory building aspect is great, very similar to factorio but without the jank of inserters to think of. Resources don't deplete, which is nice, but to expand you have to explore. I think the game needs better / faster travel options though, too much time is spent running / driving / tubing around and while "hypercube cannons" are fast they are arguably a bug and dangerous.

    Shing!

    Got this game from a Humble Bundle. It was ok, but using both joysticks on an xbox controller AND using buttons was annoying. I would avoid this game.

    Yoku's Island express

    Boy was this a great little 8-10 hour game! Its a fusion of platformers and pinball, with cute artwork and decent music. You play as a dung beetle postman trying to save the island. The mechanics are solid and the pinball action 'feels' good. Some of the puzzles to get the special ending are annoying but the core game is just a good time.

    3 votes
  9. Comment on Python Loops for JSON in ~comp

    TonyLozano
    Link Parent
    also fun tip, the requests library will handle the json parsing for you when the HTTP response's content type is application/json, like this: import requests response =...

    also fun tip, the requests library will handle the json parsing for you when the HTTP response's content type is application/json, like this:

    import requests
    
    response = requests.get("https://ergast.com/api/f1/2022/driverStandings.json")
    driver_standings = response.json()["MRData"]["StandingsTable"]["StandingsLists"][0]["DriverStandings"]
    
    6 votes
  10. Comment on Python Loops for JSON in ~comp

    TonyLozano
    Link
    So I think the problem is on the line data = json.loads(data.content)["MRData"]["StandingsTable"]["StandingsLists"][0]["DriverStandings"][0] You only grab a single driver at the end when you wrote...

    So I think the problem is on the line

    data = json.loads(data.content)["MRData"]["StandingsTable"]["StandingsLists"][0]["DriverStandings"][0]
    

    You only grab a single driver at the end when you wrote [0].

    Here is a version that loops over the standings.

    import json
    
    import requests as requests
    
    data = requests.get("https://ergast.com/api/f1/2022/driverStandings.json")
    driver_standings = json.loads(data.content)["MRData"]["StandingsTable"]["StandingsLists"][0]["DriverStandings"]
    string_segments = []
    for driver in driver_standings:
        name = driver["Driver"]["code"]
        position = driver["positionText"].zfill(2)
        points = driver["points"]
        string_segments.append(f'\x0306\x02{name}\x0303[{position}, {points}]')
    print(", ".join(string_segments))
    

    Output:

    ?06?VER?03[01, 125], ?06?LEC?03[02, 116], ?06?PER?03[03, 110], ?06?RUS?03[04, 84], ?06?SAI?03[05, 83], ?06?HAM?03[06, 50], ?06?NOR?03[07, 48], ?06?BOT?03[08, 40], ?06?OCO?03[09, 30], ?06?MAG?03[10, 15], ?06?RIC?03[11, 11], ?06?TSU?03[12, 11], ?06?ALO?03[13, 10], ?06?GAS?03[14, 6], ?06?VET?03[15, 5], ?06?ALB?03[16, 3], ?06?STR?03[17, 2], ?06?ZHO?03[18, 1], ?06?MSC?03[19, 0], ?06?HUL?03[20, 0], ?06?LAT?03[21, 0]
    

    Not sure what you are doing with the \x0306 stuff, but I left it in. Output without that:

    VER [01, 125], LEC [02, 116], PER [03, 110], RUS [04, 84], SAI [05, 83], HAM [06, 50], NOR [07, 48], BOT [08, 40], OCO [09, 30], MAG [10, 15], RIC [11, 11], TSU [12, 11], ALO [13, 10], GAS [14, 6], VET [15, 5], ALB [16, 3], STR [17, 2], ZHO [18, 1], MSC [19, 0], HUL [20, 0], LAT [21, 0]
    
    5 votes
  11. Comment on <deleted topic> in ~health

    TonyLozano
    Link
    I knew everything in this article before I read it. I am still extremely over weight. This article gave no advice on how to actually lose weight other than "eat less". The deck is completely...

    I knew everything in this article before I read it. I am still extremely over weight. This article gave no advice on how to actually lose weight other than "eat less". The deck is completely stacked against us. Every restaurant, every grocery store, every fast food, and every source of stress, is constantly pushing us and tricking us to eat more. I know what the problems are, but feel powerless in the face of it to actually do anything.

    This article is the equivalent of a politician talking about all the problems while failing to provide any tangible plan for a solution. Its good information, I give it that, but how does society take this information and put it into action to increase health? That's the hard part. That's the risky part.

    6 votes
  12. Comment on Vega Strike (an open source space trading and combat game) releases 0.8.0 in ~games

    TonyLozano
    Link
    Whoa, blast from the past here. I had no idea Vega Strike was still under development.

    Whoa, blast from the past here. I had no idea Vega Strike was still under development.

    2 votes
  13. Comment on Stop saying print journalism is dead. Sixty magazines launched during this crazy year in ~news

    TonyLozano
    Link
    How many print magazines subsist entirely off of people who can't be bothered to attempt the arcane and Kafkaesque process of canceling their subscription?

    How many print magazines subsist entirely off of people who can't be bothered to attempt the arcane and Kafkaesque process of canceling their subscription?

    2 votes
  14. Comment on What have you been eating, drinking, and cooking? in ~food

    TonyLozano
    Link
    My wife and I keep buying a whole head of cabbage to make some fish tacos, and throwing away 3/4 of it because we never figure out how to eat the rest. So this time I made "southern" fried cabbage...

    My wife and I keep buying a whole head of cabbage to make some fish tacos, and throwing away 3/4 of it because we never figure out how to eat the rest. So this time I made "southern" fried cabbage with the leftovers. Recipe's abound online, but its kind of a leftover "whatever you got" meal, like fried rice.

    I ended up using chicken apple sausage, red pepper, shallot, onion, garlic, and of course cabbage as the base. I spiced it up with chili powder, cumin, and plenty of salt, fried it in 1/4 stick of butter and some olive oil. It came out pretty good for a healthish way to finish off the cabbage.

    2 votes
  15. Comment on Organisations that do important/meaningful work? in ~life

    TonyLozano
    Link
    I currently work at Flatiron and I think our overall mission is pretty amazing. It feels good that our software isn't about "engagement" - we want medical professionals to spend as little time in...

    I currently work at Flatiron and I think our overall mission is pretty amazing. It feels good that our software isn't about "engagement" - we want medical professionals to spend as little time in the software as possible while still having the software provide value. A lot of the tech is mundane (though a small amount of it is very cutting edge too), but the mission is what keeps me going.

    1 vote
  16. Comment on Looking for recommendations for half-hour shows in ~tv

    TonyLozano
    Link Parent
    I wouldn't call The Good Place light hearted. Its an extremely dark comedy if you think about it.

    I wouldn't call The Good Place light hearted. Its an extremely dark comedy if you think about it.

    1 vote
  17. Comment on Fry’s Electronics is shutting its doors for good in ~tech

    TonyLozano
    Link Parent
    There is also no Microcenter in the Phoenix metro area. Its kind of sad that there is no where to buy PC parts in person anymore in the valley.

    There is also no Microcenter in the Phoenix metro area. Its kind of sad that there is no where to buy PC parts in person anymore in the valley.

    3 votes
  18. Comment on Microsoft killed the Zune, but Zune-Heads are still here in ~tech

    TonyLozano
    Link
    Zune was so good. I had a Zune before I had a proper smart phone, and I loved it.

    Zune was so good. I had a Zune before I had a proper smart phone, and I loved it.

    5 votes
  19. Comment on Cloud storage recommendations? in ~tech

    TonyLozano
    (edited )
    Link
    I know the upfront cost is pretty big, but consider the freedom of owning your own NAS. It feels amazing. I bought and built out a Synology 4 drive NAS and couldn't be happier. The software is...

    I know the upfront cost is pretty big, but consider the freedom of owning your own NAS. It feels amazing. I bought and built out a Synology 4 drive NAS and couldn't be happier. The software is easy to use and I have so much space for backups, media, and software.

    4 votes
  20. Comment on What's the current state-of-the-art in Python package creation/distribution? in ~comp

    TonyLozano
    Link
    Poetry is my new go-to tool for package setup but I tell users to use pipx to install the package https://poetry.eustace.io/ https://pypi.org/project/pipx/ Pipx installs the entry points user-wide...

    Poetry is my new go-to tool for package setup but I tell users to use pipx to install the package

    https://poetry.eustace.io/
    https://pypi.org/project/pipx/

    Pipx installs the entry points user-wide on the command line, but isolates each tool and its dependencies into a virtual environment automatically.

    2 votes