1,113 Matching Annotations
  1. May 2020
  2. Apr 2020
    1. def save(self, *args, **kwargs): return

      def delete(self, *args, **kwargs): return

      from django.db import models

      class MyReadOnlyModel(models.Model): class Meta: managed = False

  3. Mar 2020
  4. Feb 2020
    1. Hi all, I while ago here I asked about using nix with drone.io (a CI system which uses docker), to deal with push based tests. I previously reported back with a solution with gitlab, but I did end up with a workable (not perfect) solution for drone. On the 'drone agent' machine run this once: # docker volume create nix # docker run --rm -v nix:/newnix nixos/nix cp -a /nix/store /nix/var /newnix in the .drone.yml files: pipeline: build: image: nixos/nix commands: ... volumes: - nix:/nix/ And whenever you want to update nixchannel: # docker run -v nix:/nix/ --rm -ti nixos/nix nix-channel --update This will share the /nix directory with every build, so rebuild (and downloads!) are kept to a minimum.

      Hi all,

      I while ago here I asked about using nix with drone.io (a CI system which uses docker), to deal with push based tests. I previously reported back with a solution with gitlab, but I did end up with a workable (not perfect) solution for drone.

      On the 'drone agent' machine run this once:

      # docker volume create nix
      # docker run --rm -v nix:/newnix nixos/nix cp -a /nix/store /nix/var /newnix
      

      in the .drone.yml files:

      pipeline:
        build:
          image: nixos/nix
          commands:
            ...
          volumes:
            - nix:/nix/
      

      And whenever you want to update nixchannel:

      # docker run -v nix:/nix/ --rm -ti nixos/nix nix-channel --update
      

      This will share the /nix directory with every build, so rebuild (and downloads!) are kept to a minimum.

  5. Jan 2020
  6. Dec 2019
    1. Clojure has a programmatic macro system which allows the compiler to be extended by user code. Macros can be used to define syntactic constructs which would require primitives or built-in support in other languages. Many core constructs of Clojure are not, in fact, primitives, but are normal macros.
  7. Nov 2019
  8. Oct 2019
  9. Sep 2019
  10. Aug 2019
  11. Jul 2019
  12. Jun 2019
    1. The value of organic imports during Jan.-Aug. was up 25 percent compared to the same period in 2016, the trade data showed, while the value of organic exports during the first eight months was up 14 percent. Last year, the U.S. organic products trade deficit hit nearly $1.2 billion, its highest level ever, with U.S. organic imports reaching $1.7 billion, while U.S. organic exports came in at $547.6 million. Check out the Top 10 U.S. organic imported and exported commodities for 2016.
    1. , demand for organic food is growing so fast that consumer demand is outstripping some domestic supplies. Once a net exporter of organic products, the United States now spends more than $1 billion a year to import organic food, according to the USDA, and the ratio of imported to exported products is now about 8-to-1.