nous

joined 2 years ago
[–] nous@programming.dev 3 points 6 hours ago

Uhg. This is probably one of the biggest reasons I hate python programs. It is very hard to keep things up to date and patched when the core language and tool just keep breaking thing. Tools based in python are the most annoying to have to maintain and upgrade from a sysadmin perspective.

Every few months I have to spend a few hours trying to figure out why one of our python based containers will no longer build or remember what commands are needed to upgrade it's deps when each one seems to use a different dep manager and tooling. Don't have anywhere near as many problems with tools written in any other popular language.

[–] nous@programming.dev 3 points 1 day ago (2 children)

But there are more numbers between 0 and 1 then there are whole numbers. So are the countable many angles or uncountably many?

[–] nous@programming.dev 19 points 2 days ago

'I never thought leopards would eat MY face,' sobs woman who voted for the Leopards Eating People's Faces Party. - Adrian Bott

[–] nous@programming.dev 9 points 1 week ago

I don’t have a second internal drive, so I’ll probably use an external hard drive or cloud storage.

Best to get both. Two copies of the data is better then one. Ideally have three. One being remote is also a plus as that will protect you in case your house burns down or something else drastic.

1.What’s the best way to back up and restore my data safely while preserving all metadata?

There is no real best way. Loads of things can be used to achieve the same purpose. But there are two main end goals: either copy/sync the data with a tool that can preserve timestamps or use a tool that can archive the data into a single file (that can optionally be compressed - like zip). Or for cloud providers they typically have their own tools that can do the syncing for you and will typically preserve timestamps by default. Just find one with a sync tool that also works on Linux.

There are loads of backup tools for windows that can do these things - though you should use one that does not use its own propriety format but instead something more open that can be read from the Linux side. I don't use windows these days so cannot advice on what the best tools here are.

Otherwise you can do this from a Linux Live USB using Linux based tools. If you are fine with the CLI then a simple way is to just mount the drives and use the rsync cli utility to sync the data you want across. rsync also lets you cancel and resume the sync which can be handy for larger directories. Or use the archiving tool tar to create a archive of the data on the other drive (this can be optionally compress). You should be able to use the filemanager to create archives as well which might make things a bit easier and should preserve timestamps - but just copying the data in a filemanager I don't think tends to preserve timestamps though so best to use the CLI for that or a dedicated tool.

What ever you decide to do test it on a small folder first and see if it does what you expect/want it to before committing to copying large amounts of data.

3.How can I access or use files that are only supported by Windows once I’ve switched to Linux? Are there workarounds or compatibility layers?

This depends on the file formats you care about. Some things are already supported by native Linux programs, others are not. Some windows only programs can work in compatibility tools like WINE - but I would only do that as a last resort. Personally I would figure this out before you reinstall your system. Start by finding Linux friendly programs for the files you need to use and see if they work with the files you want - if not try converting them before switching. Most Linux programs can also run on Windows so it is best to find these alternative and test them out before wiping your windows install. You can also boot up a Live USB and check things that way before committing to a install and wiping your system.


You can also (in addition to backing things up properly) buy a new SSD for your laptop and swap them around - keeping the original install in place in case there is something you forgot or need to switch back to access some old program you didn't think about.

[–] nous@programming.dev 15 points 1 week ago* (last edited 1 week ago) (1 children)

That is a rate limit. That user was probably abusing something and trying to scrape github and got hit by a rate limit. Or someone in their house/flat/building did. There is just not enough in that post to tell what the hell is going on and it is far too early to jump to the concluding that github has done something wrong here.

They might have lowered the rate limits, they might not have. I doubt the lowered it to 3. Something else is very likely going on. We have to stop jumping to the worst conclusion anytime anything happens and imminently knee jerk reacting to that idea. We can wait for more information to come through and see what the actual issue is before assuming the worst.

[–] nous@programming.dev 5 points 1 week ago

Look at all this stuff we need to do to track one one specific type of memory leak on one platform with a specific compiler! Yeah so much better then having things mostly work out the box so you don't have to worry that much about it. Besides, rust does not actually guarantee no memory leaks. Leaking memory is not considered unsafe at all as it is very hard to systematically prevent. But it does make accidentally doing a memory leak harder when not doing weird things. But really memory leaking is not the major concern rust developers have with C++ - it is all the other actually unsafe memory stuff you need to worry about which this video does not even start to touch on.

And that is the big problem I and so many have with C/C++. Technically every problem that rust tries to solve and be solved in C/C++ without the borrow checker or other help the compiler gives you. But it is up to you to know all these tricks to finding the problems. It is up to you to actively look for them. It is up to you to know about them all and all the possibly foot guns you need to avoid. It is just nicer if the compiler actually helps you and works with you rather then letting you stumble around trying not to set off any landmines of manually managing memory.

On its own this is an interesting trick to find leaking memory in C++ (on windows with the windows compiler). It did not need to drag rust into the video and seemingly trys to claim that all the help the rust compiler gives you is pointless as you can manually and with a lot more effort find solutions to the same problems in C++...

[–] nous@programming.dev 41 points 1 week ago (1 children)

That is just double speak for it will adversely affect our bottom line so we don't want to do it.

[–] nous@programming.dev 12 points 1 week ago

Just? This is a link to the last page of the benchmarks. The other pages have other workloads on them - quite a lot of DB benchmarks though.

[–] nous@programming.dev 11 points 2 weeks ago (2 children)

Probably also forgot to pay the bribe.

[–] nous@programming.dev 2 points 2 weeks ago (1 children)

Battery self discharge is measured in days at worst, more typically weeks or months. It should not be dropping 5% over the course of an hour or so even if the device is a bit warm. Plus having it plugged in should start charging again once the battery starts dropping too low.

[–] nous@programming.dev 2 points 2 weeks ago (3 children)

You shouldn't see the battery drop if it is not using the battery, which is what pass through would suggest.

[–] nous@programming.dev 10 points 2 weeks ago

But, what happened to all that extra money for the NHS due to Brexit?!?!? /s

view more: next ›