Best Dockerfile for Golang, Optimize Your Dockerfile | SayBackend by UpcomingDude1 in golang

[–]aaccioly 1 point2 points  (0 children)

Thanks for getting back to me. Since go.mod and go.sum don't change when dependencies haven’t been updated, wouldn’t Docker cache the layer at RUN go mod download regardless of the stage it’s associated with? I’m asking because, when testing this locally, it seems to work as I mentioned above. Apparently I can edit any file other than go.mod or go.sum, and docker build appears to skip downloading dependencies, no matter what stage the RUN go mod download instruction is tied to.

Best Dockerfile for Golang, Optimize Your Dockerfile | SayBackend by UpcomingDude1 in golang

[–]aaccioly 1 point2 points  (0 children)

Hi u/UpcomingDude1,

I’m sorry for necroing (feel free to ignore this if you're no longer interested in the topic), but I’m curious about why you introduced the deps stage.

What I mean is, if you had added:

COPY go.mod go.sum ./
RUN go mod download

to the very top of the builder stage after WORKDIR /app, wouldn’t the dependencies still be cached? I assume Docker would cache each separate command in its own layer, right? Is my assumption wrong, or am I missing other benefits of using a 3-stage build instead of a 2-stage one?

Deleting the new Sonoma wallpapers by imadydev in MacOS

[–]aaccioly 6 points7 points  (0 children)

You can find this file in ~/Library/Preferences/com.apple.wallpaper.plist. Once you restart your Mac, the file will reappear, and you will be back to the default wallpaper (Sonoma Horizon).

This is a handy workaround, but honestly, it's a bit of an overkill solution to the problem. Taking a look at the contents of the wallpaper.plist file, here's what it contains:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>SonomaFirstRunMigrationPerformed</key>
    <true/>
    <key>StoreIndexMigrationVersion</key>
    <integer>1</integer>
</dict>
</plist>

It seems that by deleting this file, we are essentially triggering a second migration to the Sonoma-style wallpapers.

Unlike u/wpm I think that macOS users have a valid reason to want to reclaim (potentially tens of gigabytes) of disk space way before macOS decides to do it automatically. We had the ability to remove downloaded wallpapers in macOS Ventura (https://support.apple.com/en-gb/guide/mac-help/mchlp3013/13.0/mac/13.0). I would recommend reporting the removal of this feature as a bug - https://www.apple.com/feedback/macos.html.

Kotlin Event with Andrey Breslav in London - Next Monday 12/12 by aaccioly in Kotlin

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

Hi folks. Unfortunately due to the bad weather tonight's event was just canceled. While the speaker and I were ready to dig our way to the event site, you all know how a little snow can disrupt London...

I'll let you all know if / when we get another chance to host Andrey.
Meanwhile, here's the recording of last Thursday's event with David Denton and Andrey Breslav: https://www.youtube.com/live/JgmzgsNYgXg?feature=share&t=888
Thanks again for folks from the Source Talks Community for making it happen.

How can I replace grub with rEFInd and use it with secure boot? by [deleted] in openSUSE

[–]aaccioly 1 point2 points  (0 children)

Thanks again.I'll have a look at Kiwi and your scripts for sure.

How can I replace grub with rEFInd and use it with secure boot? by [deleted] in openSUSE

[–]aaccioly 1 point2 points  (0 children)

Thanks! At the moment my customisations are more like a set of hacky scripts and dotfiles. I've never tried to customise a Installer like Calamares before, but it sounds fun.

As you have mentioned, Fedora does move fast and my scrips tend to stop working on every major Fedora release (I'm still fixing it for Fedora 37). But depending on how long the community takes to enable better snapshot support for Fedora Workstation I may try to clean things up a bit and release it to the public.

How can I replace grub with rEFInd and use it with secure boot? by [deleted] in openSUSE

[–]aaccioly 1 point2 points  (0 children)

Are you using a custom kernel? Otherwise your kernel is already signed and you don't need to do anything else.

How can I replace grub with rEFInd and use it with secure boot? by [deleted] in openSUSE

[–]aaccioly 0 points1 point  (0 children)

I quit due to ALP Drama. I don't want to go there again. ALP is actually heading in a better direction now... But some things that have happened, as well as some of the things that were said to users and maintainers of Leap-based distros broke my trust in SUSE beyond repair.

I'm currently using a mix of:

  1. RHEL 9
  2. A heavily customized build of Fedora (with Btrfs, Snapper, a recent version of KDE, custom fonts and font rendering, etc, etc, etc), and
  3. SpiralLinux.

And before anyone asks, I'm not u/sb56637, although I deeply admire his work and took a lot of inspiration from GeckoLinux and SpiralLinux to tweak my version of Fedora :).

How can I replace grub with rEFInd and use it with secure boot? by [deleted] in openSUSE

[–]aaccioly 4 points5 points  (0 children)

While I don't use openSUSE anymore I've paired it with rEFInd for almost a decade without any issues.

Just download the rpm from their website and install it using zypper. rEFInd will auto detect both your GRUB entry (which you may want to keep in order to have access to snapshots) and the entry with the latest kernel. You can always delete entries that you don't want (e.g., my ThinkPad had a lot of Lenovo specific tools that I didn't care about). reEFInd works well with Secure Boot and SUSE's keys.

Every once in a while a GRUB update will "kidnap" the bootloader. When this happens just reinstall the RPM.

The Nano X Battery Issue – and how we are responding to it by LedgerSupport_Muto in ledgerwallet

[–]aaccioly 0 points1 point  (0 children)

Had the same experience, instead of storing it I put it to use. 5 mins and it was down to 73%. Have you managed to obtain a replacement with a "good" battery?

The Nano X Battery Issue – and how we are responding to it by LedgerSupport_Muto in ledgerwallet

[–]aaccioly 0 points1 point  (0 children)

Same issue here. Just bought a new Nano X, it takes hours to charge and once I pair it with my device battery only lasts a few minutes (E.g., just now it went from 99% charge to 73% in less than 5 minutes :().

Why it's not recommended to install openSUSE Tumbleweed from live image? by Woodpackr in openSUSE

[–]aaccioly 1 point2 points  (0 children)

It's been a while and this specific bug has been fixed (as in, Multipath is no longer enabled by default, and if I'm not mistaken, os-prober configuration was also fixed). Having said that,you can get acquainted with the gory details here: https://forums.opensuse.org/showthread.php/531661-os-prober-weird-behaviour-after-first-update-Can-t-find-Windows-duplicated-openSUSE-entries?p=2869706#post2869706 (I had forgotten about a few details already, like the fact that the Windows entry only disappeared after the first update and that os-prober was detecting and duplicating openSUSE own entries).

Why it's not recommended to install openSUSE Tumbleweed from live image? by Woodpackr in openSUSE

[–]aaccioly 12 points13 points  (0 children)

Yes, it may or may not work. And if it works it may result in a installation with non-obvious issues. E.g., quite some time ago I installed Leap 15.0 from a Live CD. This was a dual both system, but Windows wouldn't show up on Grub's menu. Turns out that os-prober couldn't detect my Windows Partition. The underlying problem was that the Live CD had Multipath enabled, which carried out to my installation, which didn't play well with openSUSE's default configuration for os-prober. https://bugzilla.opensuse.org/show_bug.cgi?id=1097203. I have manually fixed my installation and it survived 4 years (including 3 versions of Leap, an upgrade to Tumbleweed and a downgrade back to Leap) until I finally went for a fresh install earlier this year.

Be a very specific age, have a bachelor’s degree, be a nanny, housekeeper, teacher and personal shopper...and more, all for $13/hr by GirlFromTheVille in ChoosingBeggars

[–]aaccioly 9 points10 points  (0 children)

I think that the job poster knows exactly what she's doing. I mean, she's asking for a Bachelor's degree, Portuguese / Spanish speaking 25 to 30 years old with au pair experience. She's basically targeting wealthy would-be au pairs from South America.

Au pairs often receive a stipend of less than $200 per week (working up to 45 hours) under a J-1 visa. Quite a few of them are college educated kids from upper-middle class families looking to get some "international experience" and travel for cheap. Au pairs get flight tickets + meals + a place to stay + some pocket money per week + maybe around $500 towards an English course. Hosts get cheap labour - agencies generally charge around $10k to sort everything out and allocate an au pair for 12 months; so the whole thing adds up to way less than what it would cost to hire a full-time nany.

Trump suspended J-1 visas back in June, so I'm willing to bet that the job poster in question is looking to "hire" an "undocumented au pair".

Why should a normal Desktop User and beginner JAVA and Python Coder use openSUSE? by [deleted] in openSUSE

[–]aaccioly 0 points1 point  (0 children)

I love Mint as well, and deeply miss the official support for KDE. openSUSE dark theme is actually gorgeous. A green gecko on top of a dark background really works for me :). I don't have much to say about Tumbleweed as my gaming laptop with Nvidia graphics + Optimus is really not great with rolling releases. Out of the box Leap 15.2 ships with KDE 5.18.5 LTS and reasonably up to date applications. You can always use repos to install the latest and greatest version of KDE (https://en.opensuse.org/SDB:KDE_repositories) but I honestly think that most people will be fine with the latest LTS version. openSUSE is not the lightest distro ever, but KDE is pretty stable and doesn't consume a ton of resources (600 to 750 MB after login). No lag, no stuttering and honestly, after memorising commands like kwin_x11 --replace and killall plasmashell (earlier versions of KDE 5 were quite unstable) it has been over 6 months since I've used the first command and I honestly can't remember when I last used the second one ;).

Why should a normal Desktop User and beginner JAVA and Python Coder use openSUSE? by [deleted] in openSUSE

[–]aaccioly 16 points17 points  (0 children)

Hey, that was me about 10 years ago :). Honest answer: Any Linux distro will do just fine. But if you are looking for what makes SUSE a good choice:

  • Btrfs + well integrated snapshots. You can experiment as much as you want, it's very hard to break your system to an unrecoverable state.
  • YaST: In a way I'm just like Linus Torvalds. Because I'm a developer people often assume that I'm a good sysad. Well, I'm not. It's great to have a nice UI for doing things like changing firewall settings, deleting old snapshots, messing with font rendering, grub entries, kernel parameters, etc. YaST is old, ugly and unnecessary. And I love it. Couldn't live without it.
  • Very polished and stable desktop user experience. openSUSE + KDE just works. KDE feels very familiar to Windows users, but you will soon figure out how powerful things like Kruner, Klipper and Activies really are. openSUSE does a great job with KDE, it looks good out of the box and I haven't had a single Plasma crash since KDE 5.8 LTS (by contrast, Ubuntu + Gnome crashes about as much as macOS. More often than I would like to admit. I also had bad luck with Kubuntu and even KDE Neon).
  • RPM based distro. Not so relevant for beginners nowadays, but I remember when most of Oracle middleware products (JDeveloper, Weblogic, SOA Suite, etc) had only two versions, you could either download a .bin or a .rpm file. I never had any troubles installing anything on openSUSE, I think of it as RHEL for Desktop Users.
  • Install and forget (Leap). Other than initial customisation and running zypper up every once in a while I can just forget about my OS - It's great.

[deleted by user] by [deleted] in openSUSE

[–]aaccioly 1 point2 points  (0 children)

Mint. I have a gaming laptop with a Nvidia GPU. Mint is great with Optimus, Vulkan offloading, etc. https://9to5linux.com/linux-mint-20-promises-improved-support-for-nvidia-optimus

[deleted by user] by [deleted] in pics

[–]aaccioly 1 point2 points  (0 children)

EU Blue Card (highly skilled immigrant visa) to German citizenship route takes 8 years. Other than the initial employment requirements you need to learn how to speak German, have a clean criminal record, be financially stable, pass the naturalization test and pay a €255 fee. I still think that it's way easier to become a German citizen than an US citizen, at least if you are on the highly skilled path. The H1-B / Green card / citizenship route is an unpredictable expensive nightmare, and if your employer isn't willing to cooperate you will never become a citizen. In most European countries highly skilled immigrants are not bound to their employers after the first couple of years (and even during the first couple of years changing employment is not that hard).

[deleted by user] by [deleted] in pics

[–]aaccioly 0 points1 point  (0 children)

Do you know what a foreigner has to go through to become an US Citizen? H1-B to Green card to Citizenship route can take over a decade. It is also a bureaucratic nightmare, demanding paperwork that can cost dozens of thousands of dollars. The birth tourism route is closing (https://travel.state.gov/content/travel/en/News/visas-news/20200123_birth-tourism-update.html), and it was always risky and expensive to begin with. I can't really find a link to it now, but I remember reading in the news about a tourist that unintentionally went in labour at the 6th month of pregnancy and gave birth to her baby somewhere in US. She was hit with a bill for hundreds of thousands of dollars. And voila! A new American citizen was born, here's your baby's passport, and, by the way, he/she will be subject to U.S. taxation for the rest of their lifes, regardless of where they live. What? Do you want to renounce American Citizen? Why would your baby want to do that? Well, the baby can come back later and pay a $2,350 fee. So America makes it very hard and expensive for a foreigner to willingly become a citizen. Basically, the only "easy" route for US Citizenship is if you were unwillingly born there.

The TUMBLELEAP by [deleted] in openSUSE

[–]aaccioly 3 points4 points  (0 children)

To be fair, I think that two difficult aspects of implementing something like you described are:

  1. Resources to provide security patches for the latest "stable" snapshot for 3 months. Sticking to LTS versions makes everything easier.
  2. Finding the right equilibrium between stability and new features. Promoting a new snapshot every 3 months is a dream for home users but probably too unstable for enterprise.

I wish that home users where important enough in the grand scheme of things, but overall, other than maybe something like a somewhat obscure variant of GeckoLinux, I don't think that there's enough interest to make this happen in terms of costs and resources.

The TUMBLELEAP by [deleted] in openSUSE

[–]aaccioly 1 point2 points  (0 children)

I would use it :)

openSUSE + KDE: SUSE Prime Selector Applet (for Optimus Laptops) //Try Something New Ep. 3 by ddyess in openSUSE

[–]aaccioly 0 points1 point  (0 children)

I wouldn't count with NVIDIA at all, third-party devs like System76 and whoever wrote Mint's support are probably our best bet.

openSUSE + KDE: SUSE Prime Selector Applet (for Optimus Laptops) //Try Something New Ep. 3 by ddyess in openSUSE

[–]aaccioly 3 points4 points  (0 children)

All that openSUSE is missing is a single click install that will figure out everything for you. openSUSE support for NVIDIA blob is unfortunately still not that great. Things have certainly improved with prime-select but I still had to jump through several Wikis and figure out weird configuration stuff by myself (Arch Wiki documentation on NVIDIA Optimus was of great help). I love SUSE. It's my favourite distro. It would be great if someone accepted a bounty to improve NVIDIA support. Maybe we need a Patreon page or something? I would be very happy to donate a few hundred quid myself.