theit8514

joined 1 year ago
[–] theit8514@lemmy.world 7 points 2 months ago* (last edited 2 months ago)

Pretty sure there's not a per-domain setting for that. If you have HTTPS-Only Mode turned on in the settings it will always try to use HTTPS first and present a warning before switching to HTTP.

If you want to continue using HTTPS you can setup your own CA certificate to sign certificates for your .LAN domain names. All you need to do then is add the CA certificate to your trusted certificates in Firefox and the signed certificate to the device hosting the HTTPS service.

EDIT: TIL there an exclusion feature. Neat. I didn't see this on Firefox for Android though. https://support.mozilla.org/en-US/kb/https-only-prefs

[–] theit8514@lemmy.world 3 points 2 months ago (1 children)

Not sure if this is new in 14, but you used to have to select an app first, then select the contact in that app. Now apps can present the contacts to the share menu directly so no double tap. Funnily enough, Google Chat was the last app on my phone to support this feature.

[–] theit8514@lemmy.world 3 points 2 months ago (1 children)

You mentioned ping. If you're using Termux you may need to manually update its DNS settings (different from the system DNS). The file is /data/data/com.termux/files/usr/etc/resolv.conf

To make it roam you probably want your home dns first then some internet resolvers after that.

[–] theit8514@lemmy.world 15 points 3 months ago (2 children)

In the US they are usually governed as real estate legally. You can resell it, but most people aren't interested in paying the maintenance fees. You'll find all sorts of timeshares out there being resold for 1$ because they just don't want to pay the maintenance fee anymore.

[–] theit8514@lemmy.world 48 points 3 months ago (1 children)

The -k argument on my openssl accepts a passphrase, not a file. You likely encrypted with the filename as the secret, not it's contents. Perhaps you should use -kfile instead.

$ openssl aes-256-cbc -help
Usage: aes-256-cbc [options]

General options:
 -help               Display this summary
 -list               List ciphers
 -ciphers            Alias for -list
 -e                  Encrypt
 -d                  Decrypt
 -p                  Print the iv/key
 -P                  Print the iv/key and exit
 -engine val         Use engine, possibly a hardware device

Input options:
 -in infile          Input file
** -k val              Passphrase**
 -kfile infile       Read passphrase from file
[–] theit8514@lemmy.world 2 points 3 months ago

IANAEE. For an on-board application you can create a simple switch with a transistor. https://www.electronics-tutorials.ws/transistor/tran_4.html

To make something wireless you'll probably want to go with a microcontroller or Raspberry Pi and hook up GPIO pins to the motor controls. A transistor wouldn't be needed in that case as the microcontroller can hold the pin high or low depending on what state you want.

[–] theit8514@lemmy.world 2 points 4 months ago

Surprised it took this long to make a WinPE boot disk with a script to unlock the drive and delete the file. We had to do a similar process when a script went haywire and corrupted the user profile service on hundreds of devices. WinPE supports PowerShell which is extremely convenient for making the process completely automated. The hardest part is getting users to boot to a USB device (or getting into BIOS to change boot device).

[–] theit8514@lemmy.world 1 points 4 months ago

In days past some drive vendors had different sector layouts for drives and would cause issues with raid. Pretty sure most nowadays are all the same layout and you won't run into any issues. I still look to get the same drive model anyways just to be perfectly sure that there are no issues.

Even then you may run into weird issues like one of my 1.2 TB enterprise ssd drives was reporting 1.12 TiB rather than 1.09 TiB the other 7 drives had. TrueNas refused to build a vdev with that drive and I had to return it to get a new one.

[–] theit8514@lemmy.world 1 points 4 months ago* (last edited 4 months ago)

Yes, I agree that this is a bit of an anti-pattern, as you lose quite a few benefits from the Generics compile-time safety and instead open yourself to runtime exceptions. Not sure what your use case is, but if you want to maintain type safety it might be better to have multiple overloads for each type you want to process rather than a Generic. Typically you use Generics when the actual type doesn't matter to the method being called (e.g. LINQ uses Generics for IEnumerable<T>.Where because T can be anything and it just calls a Func<T, bool> on each element).

[–] theit8514@lemmy.world 2 points 4 months ago* (last edited 4 months ago) (2 children)

If you don't want to go the pattern matching route you can also use reflection with MakeGenericMethod to specify the generic type and then invoke it.

Untested example:

var type = field.GetType();
var methodInfo = typeof(GenericClass).GetMethod("GenericMethod").MakeGenericMethod(type);
methodInfo.Invoke(null, field);

Edit: wrong documentation link https://learn.microsoft.com/en-us/dotnet/api/system.reflection.methodinfo.makegenericmethod?view=net-8.0 ~~https://learn.microsoft.com/en-us/dotnet/api/system.reflection.emit.methodbuilder.makegenericmethod?view=net-8.0~~

[–] theit8514@lemmy.world 2 points 4 months ago

Typically a Fiber ISP will run Fiber optics only to your DEMARC (or Demarcation) point. This will be usually where your main cable (before any splits) or DSL line used to come in (in the US they've been using Orange tubes to indicate this and it will usually run to a panel in some closet or laundry). At the DEMARC they'll install one of two things: a basic fiber to ethernet converter which will provide you a single ethernet port and a pure tap to the internet, or a Gateway device that will convert the fiber to multiple eithernet with NAT (usually providing other capabilites like TV, Phone, etc).

If you have the latter, you may not get much say in what you can do with your connection, and would be limited to a DMZ mode that is configured on the Gateway. What you put behind the converter or gateway is up to you.

[–] theit8514@lemmy.world 4 points 4 months ago

I've got my mom setup on their PC backup service, no complaints so far (on the Backblaze side that is, she still insists that she doesn't need continuous backups even though I've had to restore multiple times for her).

I switched my backups from Crashplan to B2 as it was significantly cheaper than going to AWS. B2 is more expensive than what I was paying for Crashplan Pro Unlimited (about 8x for the amount of data I have), but I have more peace of mind with it not relying on Crashplan's terrible Java client.

A reminder that the only good backup is a tested backup.

view more: next ›