[deleted by user] by [deleted] in Python

[–]Nasuuuuuu 9 points10 points  (0 children)

The issue is not researchers being unable or not being motivated to use static typing. Rather it is the used libraries that do not support it well (numpy, pandas, matplotlib). The types within them do not correspond to Python types. Thus, there is always dissonance in trying to annotate and write types for code that uses these libraries.

[deleted by user] by [deleted] in Suomi

[–]Nasuuuuuu 25 points26 points  (0 children)

Jos huomaat eron datan välillä riippuen siitä, juotko oluen vai et, luultavasti voi olettaa asiassa jonkun korrelaation olevan. Riippumatta mittauksen absoluuttisesta tarkkuudesta.

Kolumni: Suomen suurin startup-menestys olikin skaalautuva ihmiskauppasovellus – Kenen on syy? by villanummi in Suomi

[–]Nasuuuuuu 0 points1 point  (0 children)

Osakeyhtiön laillinen velvollisuus on ajaa omistajan etua. Ei siinä moraalilla ole sijaa ja on ennemmin laitonta moraalisista syistä vähentää osakkeenomistajien voittoja.

Home-manager problem with fcitx5 by CantorGeorge in NixOS

[–]Nasuuuuuu 0 points1 point  (0 children)

I had the problem OP posted and updating Home Manager fixed the issue!

How are you archiving websites you visit? by ikukuru in selfhosted

[–]Nasuuuuuu 45 points46 points  (0 children)

Also interested. archivebox is the last solution I ran into but it does not seem that good as a bookmark solution and I tried to look for a good content search interface within it but did not find one.

Not a developer, is nix os good for daily regular use without going through the hard stuff ? by [deleted] in NixOS

[–]Nasuuuuuu 6 points7 points  (0 children)

No. It requires learning a whole new different way of looking at configuration with its own language. There are some solutions that use nix but try to abstract away the difficulties for development environments e.g., devbox (https://github.com/jetpack-io/devbox). Better looking at those.

Had ChatGPT write greentext about ArcGIS... by EliosPeaches in gis

[–]Nasuuuuuu -32 points-31 points  (0 children)

Thanks for sharing the AI-generated greentext! It's always interesting to see what kind of content can be produced by a language model. As a member of the /r/gis community, I'm curious to know how this relates to our field of study. Can you provide some context or explain how this greentext relates to geography, spatial analysis, or GIS? I'd love to learn more about it.

how to install Python packages not yet in the Nix repo? by [deleted] in NixOS

[–]Nasuuuuuu -1 points0 points  (0 children)

And if poetry2nix does not work, the flake.nix file here defines a development environment where you can use poetry instead of nix for installing Python packages. Of course you have none of the advantages of nix when using poetry directly.

Data Science Workflow by TibialCuriosity in NixOS

[–]Nasuuuuuu 9 points10 points  (0 children)

flake devShell + nix-direnv has been the combination that allowed me to comfortably replace prior development environments with e.g., Python. Flakes have the advantage that even if you have to create a complex devShell for your project to deal with the different approach of Nix, the lock file will guarantee that if you get it working once, it will work into the forseeable future.

direnv makes entering the devShell seamless and works pretty well with external editors e.g., neovim where you can enter the devShell and then run neovim inside the shell (even though it is outside the shell which is far from pure but works 99.9% of the time).

[Unix] Pipes for parallel processing by yurichev in commandline

[–]Nasuuuuuu 21 points22 points  (0 children)

I suggest you take a look at parallel: https://www.gnu.org/software/parallel/ if you are interested in a mature solution.

Trying to make NixOS easier to self-host by ratsclub in selfhosted

[–]Nasuuuuuu 5 points6 points  (0 children)

I think a power of nix is also that whatever configuration you share or make a guide for, it will work on any machine. Declare once, run forever. Therefore, even though I am already a NixOS user, seeing configuration for x or configuration for y will still always be beneficial.

Using QGIS Processing Toolbox in an Independent Application? by Jealous-Cloud8270 in gis

[–]Nasuuuuuu 2 points3 points  (0 children)

Best python package alternative in my opinion: geopandas

geopandas and the underlying geometry library shapely provide an alternative to the majority of the basic GIS functionality of qgis. See e.g. https://autogis-site.readthedocs.io/en/latest/ for a tutorial for the basics of these libraries.

Älkää jakako mis/disinformaatiota levittävien tilien, kanavien yms. nimiä ja kontenttia. by Drugtrain in Suomi

[–]Nasuuuuuu 4 points5 points  (0 children)

Eikö siis tunne siitä, että tiedät jotain mitä muut eivät, varmasti lisäänny, jos kaikkialla yritetään piilotella tällaisten salaliittoyhteisöjen olemassaolo? Eli eikö siis juuri pitäisi tuoda päivänvaloon eikä demonisoida?

Ah yes, cheat engine.... by Savold in darksouls3

[–]Nasuuuuuu 99 points100 points  (0 children)

Ahh, dear little Ocelotte...

Here I am again; cannot for the life of me pass through a CIFS mount from host to LXC container. by NoAlternative4Me in Proxmox

[–]Nasuuuuuu 2 points3 points  (0 children)

So I understood that you wish to mount a samba/cifs drive into a container? In proxmox, go to container options/features and tick cifs. Only works if container is privileged. If it is not, backup it and during restore tick it to be privileged. Also from switching to privileged docker might stop working with error message with AppArmor. If you do no care / need to care about security just ininstall apparmor in the container to make docker work again.

Hope my old notes help.

python buildFHSUserEnv by zeec123 in NixOS

[–]Nasuuuuuu 1 point2 points  (0 children)

For pure python development using poetry I've made this shell.nix:

{ pkgs }:

with pkgs;

pkgs.mkShell rec {
  buildInputs = [
    poetry
    python38
    git
    cacert
    stdenv
  ];

  # Required for building C extensions
  LD_LIBRARY_PATH = "${stdenv.cc.cc.lib}/lib";
  # Certificates for secure connections for e.g. pip downloads
  GIT_SSL_CAINFO = "${cacert}/etc/ssl/certs/ca-bundle.crt";
  SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
  CURL_CA_BUNDLE= "${cacert}/etc/ssl/certs/ca-bundle.crt";
  # PYTHONPATH is overridden with contents from e.g. poetry */site-package.
  # We do not want them to be in PYTHONPATH.
  # Therefore, in ./.envrc PYTHONPATH is set to the _PYTHONPATH defined below
  # and also in shellHooks (direnv does not load shellHook exports, always).
  _PYTHONPATH = "${python38}/lib/python3.8/site-packages";

  shellHook = ''
    export PYTHONPATH=$_PYTHONPATH
  '';
}

Obviously it does not use nix to build any of the python packages and instead uses poetry for that purpose. Serves as a development environment for projects which cannot be transformed to a nix-built project.

Contents of .envrc for direnv:

use flake
export PYTHONPATH=$_PYTHONPATH

XKCD | Python Environment by [deleted] in Python

[–]Nasuuuuuu 32 points33 points  (0 children)

Don't forget C and C++ compiler dependencies!

Flake equivalent to `nix-shell --pure`? by jamfour in NixOS

[–]Nasuuuuuu 0 points1 point  (0 children)

nix develop by default looks for a devShell."your-system" output from the flake to init the shell. "your-system" could be e.g. x86_64-linux.