Better HN
topnewbestaskshowjobs
Log inSign up

cyberbanjo

517 karma · joined Jan 8, 2019 (7y ago) · 354 submissions

Submissions

comment 1y ago · link · parent

Have you tried what you're recommending without an ad block extension recently?

comment 1y ago · link · parent

  install_firefox() {
      source /etc/os-release
      printf "Package: snapd
  Pin: release a=\*
  Pin-Priority: -10" | sudo tee -a /etc/apt/preferences.d/nosnap.pref
      sudo add-apt-repository -y ppa:mozillateam/ppa
      sudo apt update -y
      sudo apt install -y -t 'o=LP-PPA-mozillateam' firefox
      printf "%s" "Unattended-Upgrade::Allowed-Origins:: \"LP-PPA-mozillateam:${UBUNTU_CODENAME}\";" | sudo tee /etc/apt/apt.conf.d/51unattended-upgrades-firefox
      printf "Package: firefox\*
  Pin: release o=LP-PPA-mozillateam
  Pin-Priority: 501" | sudo tee /etc/apt/preferences.d/mozillateamppa
  }

  remove_snaps() {
      sudo snap remove --purge firefox
      sudo snap remove --purge snap-store
      sudo snap remove --purge gnome-3-38-2004
      sudo snap remove --purge gtk-common-themes
      sudo snap remove --purge snapd-desktop-integration
      sudo snap remove --purge bare
      sudo snap remove --purge core20
      sudo snap remove --purge snapd
      sudo apt remove --autoremove snapd -y
  
      cat <<EOF | sudo tee /etc/apt/preferences.d/nosnap.pref
  # To prevent repository packages from triggering the installation of Snap,
  # this file forbids snapd from being installed by APT.
  # For more information: https://linuxmint-user-guide.readthedocs.io/en/latest/snap.html
  
  Package: snapd
  Pin: release a=*
  Pin-Priority: -10
  EOF
      sudo umount /var/snap
  }

comment 3y ago · link · parent

Perhaps they'll change the acronym

comment 3y ago · link · parent

How much more often does injury from police happen than kidnapping?

comment 3y ago · link · parent

It's a book by Chomsky, are you sure you did? His name and face are on page 1

comment 3y ago · link · parent

Please open the link.

comment 3y ago · link · parent

Why do that when there is pacstrap?

comment 3y ago · link · parent

I was surprised to learn the extent of what is a valid local-part (something+else in your example) of an email. Can have two dots in sequence if the local-part is quoted, and support for non alphanumeric characters like !#$%&'*+-/=?^_`{|}~; if the local-part is quoted, comments with parentheses. And it could be case sensitive.

comment 3y ago · link · parent

In that case, doesn't your password manager support TOTP?

comment 3y ago · link · parent

Caffeine naps are awesome, you just have to fall asleep before the caffeine wakes you up, but you wake up caffeinated. If I do it too tired though, I can sleep past my alarm, caffeine won't necessarily wake me up from a sleep, but will make me feel very groggy if I don't wake up before it's peak is passed.

comment 3y ago · link · parent

Source for executing files with cat? That certainly defies my understand of how cat works.

comment 3y ago · link · parent

Maybe it's anthropomorphic but I like hallucinations because it reminds me of the DeepDream psychedelic generator

comment 3y ago · link · parent

Supported in what sense? I meant that you could pay Ubuntu for support beyond it being pre-baked into the distro, which seems rare if not exclusive to Ubuntu.

comment 3y ago · link · parent

PolyMl is one https://polyml.org/

comment 3y ago · link · parent

Active Directory is allegedly supported in Ubuntu so that makes it seems most ready for fleet deployment for existing edu IT teams.

comment 3y ago · link · parent

Most adults also use mobile OS which are needlessly restrictive in terms of productivity software, even compared to Ubuntu, so it can't be just that or we would put the kids on Android and iPhone, don't all/99% adults use them?

EDIT: also how do you not think that Ubuntu using kids won't go on to use this free tooling in the future? MS spends a ton to target the education market because they know that you can get kids hooked early you get easier wins.

comment 3y ago · link · parent

Should schools use a mobile OS like Android or iPhone since that's most popular especially for school age?

18.

A guide to home row mods(precondition.github.io ↗)

2 points · by cyberbanjo · 3y ago · discuss

comment 3y ago · link · parent

Everyone wants a censor on their side, but they rarely are

comment 3y ago · link · parent

Java I am unsure about, but Clojure does support multiple dispatch https://clojure.org/reference/multimethods

comment 3y ago · link · parent

Usually when I show DuckDuckGo to someone I start with the bangs, so if they want me to search Google, I show them that use !g in my query, then I do a few searches on other sites like YouTube !yt and Bing !b and Google Image Search !gis so they see what, to me, is the biggest selling point. https://duckduckgo.com/bangs?q=

comment 3y ago · link · parent

Jazz is a contemporary pop music, so this doesn't even make sense

comment 3y ago · link · parent

Maybe I just didn't have enabled, thanks for reminding me, seems good enough for me

comment 3y ago · link · parent

I have seen that, and that's partially why it seemed so confusing to me but at least one difference is

  The ForEach-Object cmdlet works much like the Foreach statement, except that you can't pipe input to a Foreach statement. For more information about the Foreach statement, see about_Foreach.
https://learn.microsoft.com/en-us/powershell/module/microsof...

And another appears to be performance

  PS /home/me> $time = (Measure-Command {
  >>     1..1E4 | ForEach-Object {
  >>         $_
  >>     }
  >> }).TotalMilliseconds
  PS /home/me>  [pscustomobject]@{
  >>     Type = 'ForEach-Object'
  >>     Time_ms = $Time
  >>  }
  Type           Time_ms
  ----           -------
  ForEach-Object 144.558



  PS /home/me> $Time = (Measure-Command {
  >>     ForEach ($i in (1..1E4)) {
  >>         $i
  >>     }
  >> }).TotalMilliseconds
  PS /home/me>   [pscustomobject]@{
  >>     Type = 'ForEach_Statement'
  >>     Time_ms = $Time
  >>  }
  Type              Time_ms
  ----              -------
  ForEach_Statement  17.621
https://devblogs.microsoft.com/scripting/getting-to-know-for...

comment 3y ago · link · parent

KDE Connect is a standalone multi platform application, you don't have to run KDE to use it (I don't).

Installing the gnome alternative was one package and I killed X and started gnome-shell to test gsconnect it appears to pair and allow remote input from my phone to my PC and well enough, what doesn't work for you?

comment 3y ago · link · parent

Would you be willing to share this?

comment 3y ago · link · parent

IMHO if you are already fluent in bash and aren't running or administering windows machines, there's not much point to switch. And I personally think PowerShell is nicer, but like 10% not 10x, and they do the same things. If you know some bash though, googling PowerShell and the bash command has been pretty productive for my learning.

comment 3y ago · link · parent

Sometimes a cliche is a cliche for a reason.

I certainly felt the hostility when I discovered the preloaded apps and ads in my Win11 install that aren't included in the much more expensive enterprise version.

comment 3y ago · link · parent

popd and pushd are aliases for Pop-Location and Push-Location, so they are the PowerShell equivalent. Unsure about dir -v.

dir itself is an alias for Get-ChildItem, but I don't know about -v (natural sort of version number)

12345
12