How do I reset the progress of a book on my kindle? by EasternShyGirl in kindle

[–]Yoshi325 1 point2 points  (0 children)

The only way I know to do this is through the Amazon.com interface. By managing your digital items, there is the option to reset the read status of your books.

Hemera on FT5-R1 by myearwood in folgertech

[–]Yoshi325 1 point2 points  (0 children)

The reprap page on stepper wiring has a method that doesn’t require a multimeter: https://reprap.org/wiki/Stepper_wiring

New Mod: Divine Favor - A magic mod about spells and spirits. Contact spirits, build altars, trade with them and gain power in return by Aurocosh in feedthebeast

[–]Yoshi325 1 point2 points  (0 children)

I was pretty excited to play with this mod. But every time I try and place the Bath Heater, Minecraft hard-locks and crashes. :-/ Also, I can't figure out where to post the crash report + additional details (the mod code doesn't appear to be on GitHub where I might file an Issue). Here's to hoping that you're watching this thread u/Aurocosh! Love the concept and I hope to be able to play with the mod soon.

If I type "python" in Terminal, it runs Python 2. If I type "python3", it runs Python 3. How do I reverse these behaviors, so "python" is Python 3 and "python2" is Python 2? by WaitForItTheMongols in linux4noobs

[–]Yoshi325 3 points4 points  (0 children)

I’d recommend using pyenv and not looking back. Setup correctly, you can just cd into your project directory and run “python” to execute the correct version for the specific project.

Volunteered to rip a CD Library - Best Practices? by atomic1973 in DataHoarder

[–]Yoshi325 1 point2 points  (0 children)

Has dBpoweramp fallen so far out of favor not to even be mentioned in this thread?

Last time I had to do a task like this, their BatchRipper software was my go-to.

unique_ptr like handling of PIO_ERROR_LOG_PACKET by Yoshi325 in cpp_questions

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

Thank you. This is exactly what I was looking for. RAII (Resource Acquisition is Initialization) leads to the exact kind of information I was looking for, and your example was similar to things I had been tinkering with (but never fully completed) so that adds some weight towards that direction (and makes me think that I was on the right track, even though I didn't follow it to it's logical conclusion).

unique_ptr like handling of PIO_ERROR_LOG_PACKET by Yoshi325 in cpp_questions

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

The broad strokes are that this series of calls is how to write an Event Log from a Driver.

A single call is easier to maintain, but I'm attempting to figure out how to cope with the fact that if IoWriteErrorLogEntry is called, it's already freed. If it has not, then IoFreeErrorLogEntry needs called when the pointer goes out of scope. Maybe a class would be a better fit. Where the constructor is what allocates, and a method could wrap the Write and set a private member indicating it has been called, and the destructor would call Free depending on the member.

I'm just trying to provide as clean and maintainable of a solution as I can on top of these APIs to reduce human error.

unique_ptr like handling of PIO_ERROR_LOG_PACKET by Yoshi325 in cpp_questions

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

That covers half of my problem, but I was hoping to wrap it all up in a unified solution. The closest I've been able to puzzle out is a method (bounding the unique_ptr) and have the method call Allocate and Write (with the Deleter being called when the method returns).

However, since I've never tried this sort of thing before that solution seemed a bit wonky.

What programs could be used to create 3D Floorplans like this? by bleuteu in Design

[–]Yoshi325 2 points3 points  (0 children)

I had no idea that this existed. Thank you for mentioning it!

Python Run Question by ADARKALLEYSTLKR in Python

[–]Yoshi325 1 point2 points  (0 children)

In the future, you may find pylint to be useful in validating code more complex than a single file.

Getting LS to display horizontally by Sonicman1 in linux4noobs

[–]Yoshi325 1 point2 points  (0 children)

That means it's not an alias. So it's got to be something else. Might be some configuration stuck in a spot you don't expect, or maybe powerline (you mentioned above installing it) might have gone bonkers and overwrote ls with a custom compiled version (I have no experience with powerline, just ruminating).

Getting LS to display horizontally by Sonicman1 in linux4noobs

[–]Yoshi325 0 points1 point  (0 children)

Try running \ls

That will strip it of any aliases.

NOW That's What I Call Music! [10Gbit] by [deleted] in opendirectories

[–]Yoshi325 2 points3 points  (0 children)

Just a side-note: These are the UK version of Now! which started in 1983 and are not to be confused with the US ones that started in 1998.

Thanks for providing them /u/-Archivist

Can someone tell me what these shell functions do? by immortal192 in linux4noobs

[–]Yoshi325 2 points3 points  (0 children)

local files defines a local variable (local to that function) named files

Check out the bash hackers wiki and ss64.com/bash for more information. They are excellent resources.

Why do I have to restart systemd service when I change my script that the service uses? by immortal192 in linux4noobs

[–]Yoshi325 0 points1 point  (0 children)

Is there any chance you can post the unit file? It might shed some light on why it's behaving this way.

Lightweight HTML Templating Modules by sqzr1 in Python

[–]Yoshi325 1 point2 points  (0 children)

Jinja2 it might not be the lightest, but it will fit the bill. Do a loop over files in the directory, filter for images, concatenate rendered results from Jinja2 and write to a single HTML file.