Git Product home page Git Product logo

elbum's People

Contributors

dependabot[bot] avatar jerith666 avatar web-flow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

elbum's Issues

big memory usage

The first thing I did with this was run it on my phone photos folder, just to see what the output looked like. That's 9673 images. The result was my machine UI froze, ha. Last update from btop showed 19G memory usage from elbum (I have 32G), but hard to say what final memory usage was as the screen was frozen, mouse pointer wouldn't move, etc. Rebooted and ran on a smaller folder with fewer images, but still impressive memory usage of like 5.4G. So it works, but better for a curated gallery than a comprehensive catalog it seems.

Write elm-test testcode for the spreadThumbs function in ThumbPage.elm

Include tests with images of the same and different heights. Include tests with images whose combined width is large enough to induce multiple images in the same column. Include tests with images of different widths, requiring them to be scaled to fit the column width.

Checklist
  • src/client/src/ThumbPageTests.elm ✅ Commit b6e5a5b

• Create a new Elm test file named ThumbPageTests.elm in the src/client/src/ directory.
• Import the ThumbPage module, the elm-test library, and any other necessary dependencies at the top of the file.
• Define a suite of tests for the spreadThumbs function. Each test should cover a different scenario as described in the issue.
• For each test, create a set of input data that matches the scenario, call the spreadThumbs function with this data, and assert that the output is as expected.
• Group all the tests into a test suite using the suite function from the elm-test library.

Sandbox Execution Logs
Sandbox logs 1/3
⡿ Downloading Trunk 1.15.0...
⢿ Downloading Trunk 1.15.0...
⣻ Downloading Trunk 1.15.0...
⣽ Downloading Trunk 1.15.0...
⣾ Downloading Trunk 1.15.0...
⣷ Downloading Trunk 1.15.0...
⣯ Downloading Trunk 1.15.0...
⣟ Downloading Trunk 1.15.0...
⡿ Downloading Trunk 1.15.0...
⢿ Downloading Trunk 1.15.0...
⣻ Downloading Trunk 1.15.0...
⣽ Downloading Trunk 1.15.0...
⣾ Downloading Trunk 1.15.0...
⣷ Downloading Trunk 1.15.0...
✔ Downloading Trunk 1.15.0... done
⡿ Verifying Trunk sha256...
✔ Verifying Trunk sha256... done
⡿ Unpacking Trunk...
✔ Unpacking Trunk... done


✔ 12 linters were enabled (.trunk/trunk.yaml)

actionlint 1.6.25 (2 github-workflow files)
checkov 2.4.9 (5 json, 6 yaml files)
git-diff-check (80 files)
markdownlint 0.36.0 (2 markdown files) (created .markdownlint.yaml)
nixpkgs-fmt 1.3.0 (13 nix files)
osv-scanner 1.3.6 (1 lockfile file)
prettier 3.0.3 (2 html, 4 json, 2 markdown, 6 yaml files)
shellcheck 0.9.0 (8 shell files) (created .shellcheckrc)
shfmt 3.6.0 (8 shell files)
trivy 0.45.0 (1 lockfile, 6 yaml files)
trufflehog 3.54.4 (81 files)
yamllint 1.32.0 (6 yaml files) (created .yamllint.yaml)

Next Steps

  1. Read documentation
    Our documentation can be found at https://docs.trunk.io

  2. Get help and give feedback
    Join the Trunk community at https://slack.trunk.io

</details>



<details >
<summary>Sandbox logs 2/3</summary>

Checked 1 file
✔ No issues

</details>



<details open>
<summary>Sandbox logs 3/3</summary>

Found no applicable linters for the requested path

</details>

</details>

missing source directory

Looks like a submodule is needed for the nix-build to succeed! You may want to update your readme.

I did git submodule update --init --recursive and then the build succeeded. But without that you get:

-- MISSING SOURCE DIRECTORY ------------------------------------------- elm.json

I need a valid elm.json file, but the "source-directories" field lists the
following directory:

    vendor/elm-route-url/src

I cannot find it though. Is it missing? Is there a typo?

error: builder for '/nix/store/zx7vpvdd26q365l8q8x86fchq1r8bqm7-jerith666-elbum-0.1.0.drv' failed with exit code 1;
       last 10 log lines:
       > Dependencies ready!
       > -- MISSING SOURCE DIRECTORY ------------------------------------------- elm.json
       >
       > I need a valid elm.json file, but the "source-directories" field lists the
       > following directory:
       >
       >     vendor/elm-route-url/src
       >
       > I cannot find it though. Is it missing? Is there a typo?
       >
       For full logs, run 'nix log /nix/store/zx7vpvdd26q365l8q8x86fchq1r8bqm7-jerith666-elbum-0.1.0.drv'.
error: 1 dependencies of derivation '/nix/store/1avqhga2z3xlyir6jy03ql4faxcd3rgh-elbum.drv' failed to build

I've also used nix build "git+file://$(pwd)?submodules=1" before so that's maybe an option?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.