@dan@upvote.au avatar

dan

@dan@upvote.au

Aussie living in the San Francisco Bay Area.
Coding since 1998.
.NET Foundation member. C# fan
d.sb
Mastodon: @dan

This profile is from a federated server and may be incomplete. Browse more on the original instance.

dan,
@dan@upvote.au avatar

Metric? Somebody set the region settings wrong!

That’s a weird way to spell “correctly”

I’m a metric user btw

dan,
@dan@upvote.au avatar

Why? Tubes! The internet is tubes! m.youtube.com/watch?v=_cZC67wXUTs

dan,
@dan@upvote.au avatar

amd64-noarch

ಠ_ಠ

dan,
@dan@upvote.au avatar

There is a disproportionately large number of furries working as network admins though. Whenever you use the internet, there’s a good chance that your data is transiting via a network administered by furries.

What distro would you recommend for a 32-bit old Acer One laptop? (kbin.social)

It's an old model (Acer One D257) Processor is Intel Atom. Memory is 1GB DDR3 with 320 GB of HDD. I currently Have MX 21 running on it, but I need to reinstall because I forgot the root password. Since I'm reinstalling the OS, I thought I'd ask here for recommendations for an OS that makes the most of this oldie.

dan, (edited )
@dan@upvote.au avatar

The Linux kernel already has OOM killing… Do you mean something like Facebook’s oomd where you can more easily control it from userspace?

dan, (edited )
@dan@upvote.au avatar

In-browser DRM usually uses a library called Widevine, which is a closed-source library created by Google that’s usually only used on Windows or MacOS.

On Linux, you can use Google Chrome to get Widevine working. You can also extract the library from Google Chrome to use it with Chromium (e.g. see github.com/proprietary/chromium-widevine). The version of Chromium shipped with Linux distros doesn’t include it since you need a license and permission from Google to distribute it. Lots of Linux users would also (understandably) really not want to run a DRM binary on their system. It’s intentionally obfuscated to try and prevent people from breaking it.

I don’t know what other Linux browsers do - I haven’t used Linux desktop for a while (going to switch back soon though). On other OSes, browsers like Firefox and Brave prompt you the first time you try to watch DRM’d content, asking if you’d like to download the plugin. I assume they license it from Google.

Also as far as I know, Widevine doesn’t allow the same security/compliance levels on Linux as it does on Windows and MacOS, as the OS is less locked down. This could mean that a 4K video streaming service works fine on Windows but won’t allow you to stream in 4K on Linux. Isn’t DRM great???

dan, (edited )
@dan@upvote.au avatar

just spoof your browser fingerprint

That won’t help if your platform or browser doesn’t support Widevine. It’s possible Amazon only support the Widevine implementation on Windows and MacOS, and no amount of browser spoofing is going to help you if your browser just doesn’t have the right closed-source binary DRM blob.

dan,
@dan@upvote.au avatar
dan,
@dan@upvote.au avatar

There are many other places where DVCS repositories can be hosted

I mean… Everyone that’s cloned the repo has a full copy of it. You could clone it directly off someone else if you wanted to.

dan,
@dan@upvote.au avatar

How many people use Github for discovery though? I usually find interesting projects through a search engine, through word of mouth, through posts on here, etc. at which point it doesn’t really matter where the repo is hosted. A lot of the useful projects I use aren’t even on Github.

As far as I know, Gitea is current working on federation support, which will be great. It’d be like Lemmy where you can browse repos, submit issues, etc from one instance even if the repo is hosted at a different one. Git was really designed for a model like that, not for a centralized one.

dan,
@dan@upvote.au avatar

You don’t need to make it an Electron app to have AI integration.

dan,
@dan@upvote.au avatar

I don’t understand why desktop JS apps don’t use React Native at least. It’s still JavaScript but doesn’t use a browser, and renders to native UI widgets. Far lighter than Electron.

dan,
@dan@upvote.au avatar

Across all devs that fill out the Stack Overflow survey: survey.stackoverflow.co/2023/-most-popula…

dan, (edited )
@dan@upvote.au avatar

Business/application logic can be 80-90% of an app’s code, and all of it can be reused across platforms. The actual UI rendering is just a small part of it.

In the UI code, some of it does have to differ across platforms but it’s mostly the lower level components like buttons, text fields, etc. Some product UI code built on top of those abstractions can be reused across platforms.

dan, (edited )
@dan@upvote.au avatar

If you want the lowest latency, you could try NBD. It’s a block protocol but with less overhead compared to iSCSI. github.com/NetworkBlockDevice/nbd/tree/master

Like iSCSI, it exposes a disk image file, or a raw partition if you’d like (by using something like /dev/sda3 or /dev/mapper/foo as the file name). Unlike iSCSI, it’s a fairly basic protocol (the API is literally only 9 commands). iSCSI is essentially just regular SCSI over the network.

NFS and SMB have to deal with file locks, multiple readers and writers concurrently accessing the same file, permissions, etc. That can add a little bit of overhead. With iSCSI and NBD, it assumes only one client is using the file (because it’s impossible for two clients to use the same disk image at the same time - it’ll get corrupted) and it’s just reading and writing raw data.

dan,
@dan@upvote.au avatar

If you do this, make sure you use snapshots, ideally taken automatically. You wouldn’t want ransomware to overwrite the files on your NAS.

dan,
@dan@upvote.au avatar

Anywhere that COBOL can be replaced with something more modern, it’s already underw

Rewrites are extremely risky though, and some companies don’t want to risk it. That COBOL code probably has 40 years worth of bug fixes and patches for every possible edge/corner case. A rewrite essentially restarts everything from scratch.

Do you know of a decent sized company that successfully migrated away from COBOL? I’d be interested in reading a whitepaper about how they did it, if such a thing exists.

dan, (edited )
@dan@upvote.au avatar

I moved from Australia to the USA since salaries for developers are so much higher here. I live in Silicon Valley which helps too. If you’re a senior developer (say 5+ years of experience) then a lot of the large companies here pay $200-300k/year salary plus $100-200k/year in company stock plus a bonus that’s 10-20% of salary if you get a good performance review.

dan, (edited )
@dan@upvote.au avatar

I got lucky since I’ve been into computers and programming since I was 8 years old (late 90s). My first job when I was at school was a part-time developer at a tiny IT company that did consulting work. Since then, all my jobs have been software development jobs.

The fact that it pays well in places like Silicon Valley was a great bonus. I moved here 10 years ago (when I was 23) after I got a job offer, and the starting salary was literally double what I was getting paid in Australia at the time.

The job changes a bit as you get more senior - there’s more mentoring of junior devs, project planning, deciding what your team should focus on, etc. I still spend a lot of my time writing code though, and still enjoy it. :)

There’s some downsides to living in Silicon Valley. A lot of stuff is expensive (that applies for California in general, but especially here). Housing is extremely expensive too.

dan, (edited )
@dan@upvote.au avatar

We wouldn’t have Safari (Webkit) or Chrome (Blink) today if it weren’t for Konqueror and KHTML! Webkit is a fork of KHTML, and Blink is a fork of Webkit.

dan, (edited )
@dan@upvote.au avatar

I wish people wouldn’t downvote comments like this. The downvote button isn’t an “I disagree with you” button and downvoting people just because you disagree with their opinion is silly.

dan,
@dan@upvote.au avatar

Especially sick of the users who ask for the same data over and over again.

Use something like Apache Airflow to automate it :)

dan, (edited )
@dan@upvote.au avatar

It can really slow things down if your views start calling other views in since they’re not actually tables

They can be in some cases! There’s a type of view called an “indexed” or “materialized” view where the view data is stored on disk like a regular table. It’s automatically recomputed whenever the source tables change. Doesn’t work well for tables that are very frequently updated, though.

Having said that, if you’re doing a lot of data aggregation (especially if it’s a sproc that runs daily), you’d probably want to set up a separate OLAP database so that large analytical queries don’t slow down transactional queries. With open-source technologies, this is usually using Hive and Presto or Spark combined with Apache Airflow.

Also, if you have data that’s usually aggregated by column, then a column-based database like Clickhouse is usually way faster than a regular row-based database. These store data per-column rather than per-row, so aggregating one column across millions or even billions of rows (eg average page load time for all hits ever recorded) is fast.

dan,
@dan@upvote.au avatar

The only way they would have gotten more replies is if they had posted “I’m thinking of switching to Ubuntu. What do you think?”

dan,
@dan@upvote.au avatar

Debian doesn’t break often because they don’t change things just for the sake of changing them. Nice and stable. Even if you do break something, a guide published 5 years ago describing how to solve the problem would probably still mostly work today.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #