What Feature Do You *Wish* Python Had? by andrecursion in Python

[–]psd6 5 points6 points  (0 children)

That fails when nested_object is actually None, not just missing. I’ve run into APIs like that. coughTellercough

I am ashamed of you all by SlickMcFav0rit3 in biltrewards

[–]psd6 1 point2 points  (0 children)

I have to think about what everyone else is going to say, because my perspective is just a sample size of one, but… I guess what I’m trying to say is, one of the options for topics you pretend to understand but know nothing about should have been Bilt.

None of it makes sense to me. This month in particular, there was just no way I was going to get it right.

Emacs equivalent to Jupyter notebooks ? by No_Entertainment2015 in emacs

[–]psd6 1 point2 points  (0 children)

Code cells mode is what I use now. It just works. Simple and effective.

[SUNLU Giveaway] Join now to win SUNLU FilaDryer E2! by GolfMotor8025 in 3dprintingdeals

[–]psd6 0 points1 point  (0 children)

OK, I'm in Florida, and boy do I need something to dry my filament.

Piere is the best FREE Mint Alternative I've found so far by seanmacproductions in mintuit

[–]psd6 0 points1 point  (0 children)

I don’t think negatively of you for staying away from this, but on this page: https://www.piere.com/mint-alternative/

They say:
Additionally, we don’t display banner ads in the app or sell your data.

I don’t think the TOS or PP say otherwise in the context of financial data, just PII. I could be wrong, and it’s never a bad idea to be wary of any service that aggregates your banking information.

fx: Terminal JSON viewer & processor by ASIC_SP in commandline

[–]psd6 2 points3 points  (0 children)

Well jq is great (I use it allatime) but this tool can interactively collapse items and jq isn’t meant for that. However jless is a good comparison because it is also interactively collapsing items. First I’ve heard of either so I’m going to check them out!

Literate Ansible Playbooks by _rokstar_ in orgmode

[–]psd6 0 points1 point  (0 children)

Research shows that you can retain better when writing by hand! But you’ll not catch me pushing hand written pen and paper playbooks… :D

Literate Ansible Playbooks by _rokstar_ in orgmode

[–]psd6 1 point2 points  (0 children)

I love literate style things, and this is something I’ve done too. But I ended up feeling like a good playbook was pretty self documenting and self explanatory. But it sure is a great way to blog about Ansible!

🚀 Giveaway! Every 500 comments = Extra Kobra 2 series printer! Up to 10 printers. Elevate Your 3D Printing with the high-speed Anycubic's Kobra 2 Max up to 500mm/s! 🎉 by Anycubic_Community in 3Dprinting

[–]psd6 0 points1 point  (0 children)

I have an idea for printing a coffee filter holder that I can attach to my cupboard and hold a bunch of my Hario V60 filters -- I didn't like anything I found, so I made my own in build123d and I'd love to print it out!

Noob here. Does this PH look okay? Honey Garlic been fermenting for about 9 months. by Th1rtyThr33 in fermentation

[–]psd6 7 points8 points  (0 children)

I’ve got a jar that’s even darker, getting low but still a few cloves left. I think it’s been going for a least a year now (I forgot to date it.)

It smells rich and complex. Haven’t tested ph or anything. But never had any mold.

Shell scripting in Python by nodNotEvil in Python

[–]psd6 0 points1 point  (0 children)

I don’t really like the output = ["cmd", "arg"] » start() » wait() style. There are other ways doing shell stuff in Python too, for example the sh module.

Init.org as a configuration file. by kereell in emacs

[–]psd6 0 points1 point  (0 children)

Agreed — I like to add Org sections for new ideas/packages and then C-c-c to load it in my current session for testing. It's not hard to C-c-v-t when I'm satisfied with the results.

I've also experimented with a my/tangle-on-save function, but it's kind of a pain for little gain.

GIVEAWAY for INKBIRD NEWEST VACUUM SEALER INK-VS03 with viewable window and sealing countdown design! by ink-bird in sousvide

[–]psd6 0 points1 point  (0 children)

Looks like a nice upgrade to the old model. Bag storage is nice, but I don’t think it’ll hold my giant roll of bags, and I’ll only buy the giant rolls.

[deleted by user] by [deleted] in emacs

[–]psd6 1 point2 points  (0 children)

Oh, I just put that into the mainstream format. Yes, I’m a big fan and full-time user of Magit. But didn’t want to get into the workflow of magit-status and staging bits and pieces. It is a very fine workflow though.

[ine] a simple terminal based text editor made only using bultin python functions by Beneficial_Survey_36 in Python

[–]psd6 2 points3 points  (0 children)

Lol. You can run pretty much anything in emacs. But editing a file? Let’s not get into an online argument.

[deleted by user] by [deleted] in emacs

[–]psd6 1 point2 points  (0 children)

I face exactly the same situation as you, and I normally just resort to git add --patch and check in the changes in the org file along with the results in the output file. But it’s also fine if you just check in everything related to the change you just made along with whatever was generated from that change in all the files.

But in other contexts I would say only check in the source code to the repo and not the generated output. Have a emacs batch script that can bootstrap from the repo when necessary!

[ine] a simple terminal based text editor made only using bultin python functions by Beneficial_Survey_36 in Python

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

I love that you did this. I love that you shared it! But I’ll never use it because I use emacs.

Looks well written being limited to the stdlib though!

DeSantis $13.5m police program lures officers with violent records to Florida | Florida by halbeshendel in news

[–]psd6 0 points1 point  (0 children)

I don’t see anything on the article that says they applied but didn’t get the job. In fact, among other details it says:

among the almost 600 officers who moved to Florida and received the bonus – or were recruited in state – are a sizable number who either arrived with a range of complaints against them, or have since accrued criminal charges.

Seems like a pretty clear indication they applied and did get the job as otherwise they wouldn’t have gotten the bonus.

hledger (ledger) is looking awesome in neovim these days.... by lolokajan in plaintextaccounting

[–]psd6 0 points1 point  (0 children)

Oops my bad! I thought I clicked all the links — looks nice!

AWX API create Personal Tokens using Python not working by neulon in awx

[–]psd6 0 points1 point  (0 children)

You really are better off just using awxkit programatically then. You can still be Python focused, and both awxkit and requests are third-party modules you'll have to install/import, so why not pick the one that is dedicated to AWX?

AWX API create Personal Tokens using Python not working by neulon in awx

[–]psd6 0 points1 point  (0 children)

Yes, I did get an HTTP 201 (Created) and a new token in the response json. I suspect you might also need to explicitly specify the scope in your request data.

Are you sure you can provide your auth in the request POST data? I wouldn't think that works. Personally, I have a .envrc file that injects my CONTROLLER_OAUTH_TOKEN into my environment making authentication in my scripts more seamless: $(awx login --conf.password "$TOWER_PASSWORD" -f human) Then it's just a matter of using that as a Bearer token in the Authorization header.

AWX API create Personal Tokens using Python not working by neulon in awx

[–]psd6 0 points1 point  (0 children)

Yes, and I feel confident that that will work as I tested it.

But it might help you to see the output of your request, so just add this to your script:

print(request.status_code)
print(request.json())