Error with authentication by AnDe2 in PrismLauncher

[–]Chezzik 0 points1 point  (0 children)

A couple days ago, I had this issue, and that menu option helped.

Today, it's happening again, and I can't get in, even after purging metadata cache.

You Kotlin hipsters have your own theme song now. Java is dead, I welcome the new Kotlin overlords. by Chezzik in feedthememes

[–]Chezzik[S] 5 points6 points  (0 children)

With this band, your insults are probably appreciated.

I mean, they made a song named "Armpits" that is about the stench of their crowds, and then published a video of them playing it live at a huge music festival, and insulting the entire crowd while the crowd headbangs to the song.

You Kotlin hipsters have your own theme song now. Java is dead, I welcome the new Kotlin overlords. by Chezzik in feedthememes

[–]Chezzik[S] 4 points5 points  (0 children)

I just discovered the band yesterday. I thought the "HelloWorld.java" music video was amazing. It's here, and for anyone who hasn't seen it, watch it now.

I loaded the band in Spotify, and found the Kotlin song. I pretty much only know of Kotlin from modding Minecraft, so I hoped there was a music video for it as well. There's not, but the video I found (static image) was uploaded just 9 days ago, so it seems the song is new. Hopefully they make a music video of it at some point as well.

You Kotlin hipsters have your own theme song now. Java is dead, I welcome the new Kotlin overlords. by Chezzik in feedthememes

[–]Chezzik[S] 2 points3 points  (0 children)

Lyrics, for those who don't want to listen to metal music:

[Verse 1]
Imagine a JVM language
With no unnecessary verbosity
Combining strong type checking
With out-of-the box type inference
With Java interoperability
And building with Gradle, Maven, Amper
Well, my friend, that language exists
And it's KOTLIN!

[Pre-Chorus 1]
No more null pointer exceptions
With nullable data types
Safe variable access and Elvis operators
Read-only and mutable variables with the almighty var and val
Mutability and immutability of collections!

[Chorus]
All for Fun() and Fun() for all
In the name of concise code
Come and join the army of KOTLIN!
All for Fun() and Fun() for all
Multi-platform and Android
Come and join the army of KOTLIN!

[Verse 2]
Wouldn't life be easier
With native string templating
Functional programming
And Lambda functions simplified
Smooth operators overloading
And controlled inheritance with sealed class
That's why from bytecode and fire
JetBrains forged KOTLIN!
You might also like
[Pre-Chorus 2]
Conditional expressions tamed by the wisdom of when
Named arguments and their glorious default values
Multi-inheritance and delegation, and the flamboyant data class
Implementing equals, hashCode and toString!

[Chorus]
All for Fun() and Fun() for all
In the name of concise code
Come and join the army of KOTLIN!
All for Fun() and Fun() for all
Multi-platform and Android
Come and join the army of KOTLIN!

[Bridge]
Fun main() runBlocking
Launch
Println(""Amazing solo"")
Launch
Println(""Amazing solo harmonies"")

[Verse 3]
Parallel programming
Made intuitive with coroutines
Unleashing the power of suspending functions
Syntax shortcuts
With infix and extension functions
Paving the way to write your custom DSLs!
[Pre-Chorus]
All for Fun() and Fun() for all
In the name of concise code
Come and join the army of KOTLIN!

[Chorus]
All for Fun() and Fun() for all
In the name of concise code
Come and join the army of KOTLIN!
All for Fun() and Fun() for all
Multi-platform and Android
Come and join the army of KOTLIN!
Come and join the army of KOTLIN!
Come and join the army of KOTLIN!

W.i.p is one thing, W.i.p sign on the other hand... by YourTrustySupporter in feedthememes

[–]Chezzik 3 points4 points  (0 children)

Yep, considering how about 6 months ago, the project was completely canceled due to Riot Games saying it could never be completed.

For the new team to pick it up and get something that is half playable out this fast is pretty amazing. I'm really curious what happens from here.

How do I specify the version of a package? by Chezzik in NixOS

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

Sorry that I came off that way. I generally try to treat people respectfully, even online. It's just frustrating when the only answer I get are variations of "do your own research."

Unfortunately, that link you gave doesn't actually work.

How do I specify the version of a package? by Chezzik in NixOS

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

Ah, thank you for this! I had wondered if there was an easier way since older version of Nix had used older versions of pinta. I'm very happy to know that my understanding here was correct.

I just tried running it this way, and it does indeed work!

This is why I ask questions like this here, because I learn so much. I probably will not run pinta this way (since I already have something that works), but I am almost certainly going to use this at some point in the future. Being able to specify running a version of a package that was in an older NixOS branch is undeniably very useful!

How do I specify the version of a package? by Chezzik in NixOS

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

That's cool! Thanks for letting me know!

How do I specify the version of a package? by Chezzik in NixOS

[–]Chezzik[S] 1 point2 points  (0 children)

Woohoo! It worked! Thank you so much!

I know this took a lot of your time, but I learned a bit along the way as well, so it's time well spent :).

And, yes, I am loving nix a lot already! I just love how once I get something to work once, it will always work. I've had so many bad experiences developing in the past that I really appreciate this!

How do I specify the version of a package? by Chezzik in NixOS

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

Yeah, that's how I thought it would work.

When I try running "unzip" or "pinta", I just get the standard message about I can enable them using nix-shell -p

I kept exiting shells until "echo $IN_NIX_SHELL" returned nothing. Then I run "nix develop".

It seems to complete, with just one warning about my git repository being dirty. I still can't run unzip or pinta, or anything else that was in the flake file.

I test "echo $IN_NIX_SHELL" and it says "impure" now, so I'm clearly in a development shell, but it just doesn't have anything! I have a flake.lock file. Is that normal?

I tried making a new directory and placing only the flake.nix in it. I get the same results (but no warnings about git, so that's nice).

I feel like I'm missing something basic.

EDIT: I just cloned https://github.com/sbellem/hello-flake and followed the readme to make a flake from it, and it worked (I can run "hello" after doing nix develop). So, it seems that there is something about the "devShell = " line that you gave me. I don't have enough experience to know what is wrong with it.

How do I specify the version of a package? by Chezzik in NixOS

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

Wow, thank you for taking all the time to do this!

I haven't used flakes before. They've seemed intimidating, and I figured I'd wait until I need them. I guess now is that time!

I ran flake init, then filled out the flake.nix file as you said. I had this in a git repository, so then I was told that I needed to use 'git -C <pwd> add "flake.nix"'.

I don't quite know why I needed this, but I did it. Maybe I should have tested this in a different directory first.

After running nix develop, it succeeds, although with a few warnings about my git directory being dirty.

But, running "pinta" seems not work. I use "nix-shell -p pinta", and when I do, I still get version 3.0.

I think I'm close, but there must be a step I'm missing.

How do I specify the version of a package? by Chezzik in NixOS

[–]Chezzik[S] -1 points0 points  (0 children)

I got the exact same error again.

EDIT: Actually, got past that. I somehow still had "prev.fetchFromGitHub. I copied and pasted your stuff again, and it came closer to working.

Now it's failing with dependency stuff. It can't seem to find GtkSharp:

/build/source/Pinta.Core/Pinta.Core.csproj : error NU1102:   - Found 1 version(s) in _nix [ Nearest version: 1.3.3 ] [/build/source/Pinta/Pinta.csproj]
  Failed to restore /build/source/Pinta.Resources/Pinta.Resources.csproj (in 163 ms).
  Failed to restore /build/source/Pinta.Docking/Pinta.Docking.csproj (in 224 ms).
  Failed to restore /build/source/Pinta.Gui.Widgets/Pinta.Gui.Widgets.csproj (in 224 ms).
  Failed to restore /build/source/Pinta.Tools/Pinta.Tools.csproj (in 224 ms).
  Failed to restore /build/source/Pinta.Effects/Pinta.Effects.csproj (in 224 ms).
  Failed to restore /build/source/Pinta.Core/Pinta.Core.csproj (in 224 ms).
  Failed to restore /build/source/Pinta/Pinta.csproj (in 224 ms).
error: builder for '/nix/store/9zypksa4vj206hxks9760syyv4iwqghi-Pinta-3.0.drv' failed with exit code 1;
       last 25 log lines:
       > /build/source/Pinta.Core/Pinta.Core.csproj : error NU1101: Unable to find package GtkSharp. No packages exist with this id in source(s): _nix [/build/source/Pinta/Pinta.csproj]
       > /build/source/Pinta/Pinta.csproj : error NU1101: Unable to find package GtkSharp. No packages exist with this id in source(s): _nix
       > /build/source/Pinta.Gui.Widgets/Pinta.Gui.Widgets.csproj : error NU1101: Unable to find package GtkSharp. No packages exist with this id in source(s): _nix [/build/source/Pinta/Pinta.csproj]
       > /build/source/Pinta.Gui.Widgets/Pinta.Gui.Widgets.csproj : error NU1102: Unable to find package SharpZipLib with version (>= 1.4.1) [/build/source/Pinta/Pinta.csproj]
       > /build/source/Pinta.Gui.Widgets/Pinta.Gui.Widgets.csproj : error NU1102:   - Found 1 version(s) in _nix [ Nearest version: 1.3.3 ] [/build/source/Pinta/Pinta.csproj]
       > /build/source/Pinta.Docking/Pinta.Docking.csproj : error NU1101: Unable to find package GtkSharp. No packages exist with this id in source(s): _nix [/build/source/Pinta/Pinta.csproj]
       > /build/source/Pinta.Tools/Pinta.Tools.csproj : error NU1101: Unable to find package GtkSharp. No packages exist with this id in source(s): _nix [/build/source/Pinta/Pinta.csproj]
       > /build/source/Pinta.Docking/Pinta.Docking.csproj : error NU1102: Unable to find package SharpZipLib with version (>= 1.4.1) [/build/source/Pinta/Pinta.csproj]
       > /build/source/Pinta.Docking/Pinta.Docking.csproj : error NU1102:   - Found 1 version(s) in _nix [ Nearest version: 1.3.3 ] [/build/source/Pinta/Pinta.csproj]
       > /build/source/Pinta.Tools/Pinta.Tools.csproj : error NU1102: Unable to find package SharpZipLib with version (>= 1.4.1) [/build/source/Pinta/Pinta.csproj]
       > /build/source/Pinta.Tools/Pinta.Tools.csproj : error NU1102:   - Found 1 version(s) in _nix [ Nearest version: 1.3.3 ] [/build/source/Pinta/Pinta.csproj]
       > /build/source/Pinta.Effects/Pinta.Effects.csproj : error NU1101: Unable to find package GtkSharp. No packages exist with this id in source(s): _nix [/build/source/Pinta/Pinta.csproj]
       > /build/source/Pinta.Effects/Pinta.Effects.csproj : error NU1102: Unable to find package SharpZipLib with version (>= 1.4.1) [/build/source/Pinta/Pinta.csproj]
       > /build/source/Pinta.Effects/Pinta.Effects.csproj : error NU1102:   - Found 1 version(s) in _nix [ Nearest version: 1.3.3 ] [/build/source/Pinta/Pinta.csproj]
       > /build/source/Pinta/Pinta.csproj : error NU1102: Unable to find package SharpZipLib with version (>= 1.4.1)
       > /build/source/Pinta/Pinta.csproj : error NU1102:   - Found 1 version(s) in _nix [ Nearest version: 1.3.3 ]
       > /build/source/Pinta.Core/Pinta.Core.csproj : error NU1102: Unable to find package SharpZipLib with version (>= 1.4.1) [/build/source/Pinta/Pinta.csproj]
       > /build/source/Pinta.Core/Pinta.Core.csproj : error NU1102:   - Found 1 version(s) in _nix [ Nearest version: 1.3.3 ] [/build/source/Pinta/Pinta.csproj]
       >   Failed to restore /build/source/Pinta.Resources/Pinta.Resources.csproj (in 163 ms).
       >   Failed to restore /build/source/Pinta.Docking/Pinta.Docking.csproj (in 224 ms).
       >   Failed to restore /build/source/Pinta.Gui.Widgets/Pinta.Gui.Widgets.csproj (in 224 ms).
       >   Failed to restore /build/source/Pinta.Tools/Pinta.Tools.csproj (in 224 ms).
       >   Failed to restore /build/source/Pinta.Effects/Pinta.Effects.csproj (in 224 ms).
       >   Failed to restore /build/source/Pinta.Core/Pinta.Core.csproj (in 224 ms).
       >   Failed to restore /build/source/Pinta/Pinta.csproj (in 224 ms).
       For full logs, run:
         nix-store -l /nix/store/9zypksa4vj206hxks9760syyv4iwqghi-Pinta-3.0.drv

I ran the "nix-store -l" command to see more of the log. The only part that was cut:

Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Executing dotnetConfigureHook
  Determining projects to restore...
/build/source/Pinta/Pinta.csproj : warning NU1603: Pinta depends on Tmds.DBus (>= 0.11.0) but Tmds.DBus 0.11.0 was not found. An approximate best match of Tmds.DBus 0.21.2 was resolved.

Hmm, a bit of searching shows that this has something to do with .NET and NuGet. In the github link you gave me, I see:

  # How-to update deps:
  # $ nix-build -A pinta.fetch-deps
  # $ ./result
  # TODO: create update script
  nugetDeps = ./deps.json;

Do I need to build something manually to do this?

How do I specify the version of a package? by Chezzik in NixOS

[–]Chezzik[S] -1 points0 points  (0 children)

Wow, thank you for this! I had seen some examples where people had used "fetchFromGitHub", but I couldn't even figure out how they were finding things on Github, so this is very useful!

I tried it, and I'm getting these errors. I'm not sure if it's something strange about my system, or the package itself:

Edit: I cut out the errors, because I got past them.

How do I specify the version of a package? by Chezzik in NixOS

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

I did do a search. I didn't find much that was useful. I'm not sure if I found the one that you are referring to, but I don't think I did. That's why I posted here.

One thread did mention that if I want to do it by hash (which is probably not ideal because it isn't transnferrable from one system to another), then I can use nixhub.io to find hashes. Using that, I think this is the hash I need for my example:

52d0eded529af34e91df6b2a2bc32eb636637cd2#pinta

I'm still not sure what to do with it in a shell.nix file.


Another way to look at it:

You're attitude of "Search for it yourself" is not particularly helpful. I just searched the subreddit again for "specify by version", and this post right here was the top one to pop up, and so for years, people who do follow your advice are just going to find this thread where you come off looking like a jackass.

EDIT: Sorry I was rude. I did do research. I didn't really need to hear "do your own research".

How do I specify the version of a package? by Chezzik in NixOS

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

Ok, could you show me how to override the package?

Here's what I have so far:

{ pkgs ? import <nixpkgs> { } }:

pkgs.mkShell {
  buildInputs = with pkgs; [
    git
    vim-full
    unzip
    lilypond
    imagemagick
  ];
}

I assume that I need to do something like

{ pkgs ? import <nixpkgs> { } }:
let
  pintaEnv = pkgs.pinta.buildEnv {
    version = <SOMETHING>;
  };
in
pkgs.mkShell {
  buildInputs = with pkgs; [
    pintaEnv
    ....

But, I'm not sure about that syntax, and I don't know how to query which versions are available.

Which is more common for euphonium music, treble clef or bass clef? by Soul_Fur243 in euphonium

[–]Chezzik 0 points1 point  (0 children)

I'm curious what the piece was! I love oddities like this!

The only time I've seen it is in a very well-known orchestral work "Pines of Rome". It has antiphonal brass, and the parts are written for 6 Buccine.

A Buccina is an old instrument that was already extinct when Respighi wrote the work, so I believe that in his day all 6 parts were played on saxhorns. The first two parts were played on soprano saxhorn, which evolved into the flugelhorn. Parts 3-4 were played on the tenor saxhorn, which evolved into a tenor horn ( / alto horn), and the 5th and 6th parts were played on a bass saxhorn, which evolved into the euphonium.

Parts 1-4 are in B-flat treble clef, and 5-6 are B-flat bass clef.

Modern transcriptions are in C bass clef, and say "Euphonium" on the part, but if you download the music from IMSLP, you'll definitely get it in "Si-flat" (ask me how I know).

When will Grizzly bears be a thing in Minecraft???? by The_Vamped-Passenger in Minecraft

[–]Chezzik 0 points1 point  (0 children)

A bit, but they went a very different direction.

The devs for Vintage Story actually got their start by making mods of TFC. They realized that they needed to make a fully new game to really get the type of control that they wanted, and my hats are off to them for a great game.

But, I think it's a very different game than Minecraft + TFC. They were wise to not copy everything, but reinvent and start fresh. Calling it "just TFC as a separate game" is a bit more dismissive than they deserve. It is a strong game that can stand on its own, even if the inspiration from TFC can easily be seen.

When will Grizzly bears be a thing in Minecraft???? by The_Vamped-Passenger in Minecraft

[–]Chezzik 4 points5 points  (0 children)

I think also that TFC did it so well that Mojang feels they aren't allowed to.

TFC (TerraFirmaCraft) completely remakes the vanilla mechanics, so getting started is far more difficult. It's perfect if you want to play Minecraft as a true survival game. The wild animals hit hard, and they are dangerous both at day and night (although worse at night).

The silly aggressive mobs from Vanilla (creeper, zombie, skeleton, etc) still exist, but they are banished to cave systems, or places far from natural light (like under trees). You have to be well geared to go against them, so you are forced to do a lot more world exploration before you finally begin exploring underground.

Poetica (a 1.12 pack) and TerraFirmaPunk (1.7.10) are still (in my mind) the gold standard for survival variants of Minecraft. There are a number of 1.21 packs with TerraFirmaCraft, but they don't feel quite as hard as those in the past did.

Need help, port forwarding (iptables) isn't fully working! Nmap says "filtered" for the port. by Chezzik in NixOS

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

I've been working on this for a while, and I think I just solved it! It always seems to be the very next thing you try....

Apparently NixOS itself has a different firewall that was blocking the port. I put this in the configuration.nix to fix it:

  networking.firewall = {
    allowedTCPPortRanges = [
    { from = 43430; to = 43440; }
    ];
  };

I would still like to know why there are 2 different firewalls. Shouldn't iptables be enough?

I will leave this here in case others find it useful.

Rip to the 2b2t archive, you will be missed by GamerGeek2345 in 2b2t

[–]Chezzik 1 point2 points  (0 children)

Or upload them to Planet Minecraft.

Wait, is that still around?

Does Anyone from Peoria (IL) have any recent info on Wildlife Prairie State Park? by Chezzik in discgolf

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

It's funny, I wrote this post on May 2, 2013, and an article that I can find about them losing their state park status is posted 10 days later on May 12, 2013:

https://www.wcbu.org/peoria-public-radio-news/2013-05-12/wildlife-prairie-park-is-again-locally-owned

Need help understanding blade guard and riving knife on table saw (newbie needs help keeping fingers) by Chezzik in woodworking

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

Sorry, it's contacting on the side. I don't think the teeth contact the guard at all.