See beautiful Mt.Fuji:
yammmt / last-date Goto Github PK
View Code? Open in Web Editor NEWToDo based on last date I did
License: MIT License
ToDo based on last date I did
License: MIT License
For me, a lot of tasks are related to cleaning/washing or eating.
I think that it's enough for me to connect one task with zero or one label. Be simple.
Now, this app uses Bulma CSS in CDN.
Line 9 in 1e67f6e
According to Bulma customize documents, CSS file generated with following SCSS file is enough for me.
@charset "utf-8";
$section-padding: 1rem 1.5rem;
@import "../bulma-0.8.2/sass/utilities/_all.sass";
@import "../bulma-0.8.2/sass/base/_all.sass";
@import "../bulma-0.8.2/sass/elements/button.sass";
@import "../bulma-0.8.2/sass/elements/container.sass";
@import "../bulma-0.8.2/sass/elements/notification.sass";
@import "../bulma-0.8.2/sass/elements/table.sass";
@import "../bulma-0.8.2/sass/elements/title.sass";
@import "../bulma-0.8.2/sass/form/_all.sass";
@import "../bulma-0.8.2/sass/grid/_all.sass";
@import "../bulma-0.8.2/sass/layout/hero.sass";
@import "../bulma-0.8.2/sass/layout/section.sass";
But there is a problem: a relative path in base.tera
is expanded by files which extend base.tera
.
So confirm.tera
located in /<id>/confirm
couldn't read its CSS file ๐ค
Maybe url_for
in Tera's documents resolves it ๐ค
I think this is not big problem because loading CDN file doesn't seem to take a long time actually.
I want to add incremental search to the index page to narrow my tasks.
Abstract: to upgrade Diesel crate, better to wait for the next Rocket release (after v0.5.0-rc.2).
The latest Rocket crate doesn't implement Poolable
trait for diesel::SqliteConnection
. This invites the build error for this line:
Lines 26 to 27 in cfa3b1b
The master
branch of Rocket repo seems to have the commit for this issue (rwf2/Rocket@f0d678d). However, any current Rocket releases do NOT have this commit.
To fix the error I met myself, issues referred the previous commit link could be helpful. However, I do NOT have enough abilities ๐ข
And, actually, I did NOT confirm that the latest Rocket fixes my error.
It would be helpful if I have lots of tasks.
Next Rust 1.45 covers all nightly feature used by Rocket: we can use stable Rust with Rocket ๐
Error log from job (https://github.com/yammmt/last-date/actions/runs/4878348259/jobs/8846987232)
Running `rustc --crate-name ntapi --edition=2018 C:\Users\runneradmin\.cargo\registry\src\github.com-1ecc6299db9ec823\ntapi-0.3.6\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg "feature=\"default\"" --cfg "feature=\"user\"" -C metadata=ed81b78a94bbc657 -C extra-filename=-ed81b78a94bbc657 --out-dir D:\a\last-date\last-date\target\debug\deps -L dependency=D:\a\last-date\last-date\target\debug\deps --extern winapi=D:\a\last-date\last-date\target\debug\deps\libwinapi-9c8a551f1ec01933.rmeta --cap-lints allow`
error[E0793]: reference to packed field is unaligned
--> C:\Users\runneradmin\.cargo\registry\src\github.com-1ecc6299db9ec823\ntapi-0.3.6\src\ntexapi.rs:2785:52
|
2785 | *tick_count.QuadPart_mut() = read_volatile(&(*USER_SHARED_DATA).u.TickCountQuad);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> C:\Users\runneradmin\.cargo\registry\src\github.com-1ecc6299db9ec823\ntapi-0.3.6\src\ntexapi.rs:2809:25
|
2809 | ((read_volatile(&(*USER_SHARED_DATA).u.TickCountQuad)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: fields of packed structs are not properly aligned, and creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
For more information about this error, try `rustc --explain E0793`.
error: could not compile `ntapi` due to 2 previous errors
Caused by:
process didn't exit successfully: `rustc --crate-name ntapi --edition=2018 C:\Users\runneradmin\.cargo\registry\src\github.com-1ecc6299db9ec823\ntapi-0.3.6\src\lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 --cfg "feature=\"default\"" --cfg "feature=\"user\"" -C metadata=ed81b78a94bbc657 -C extra-filename=-ed81b78a94bbc657 --out-dir D:\a\last-date\last-date\target\debug\deps -L dependency=D:\a\last-date\last-date\target\debug\deps --extern winapi=D:\a\last-date\last-date\target\debug\deps\libwinapi-9c8a551f1ec01933.rmeta --cap-lints allow` (exit code: 1)
warning: build failed, waiting for other jobs to finish...
Error: Process completed with exit code 1.
I can find same errors from GitHub:
https://github.com/search?q=language%3ARust+ntapi&type=issues&ref=advsearch
From 283859b, this app allows us to update the "update date" attribute to only today.
However now I want to update it to NOT today (imagine that when I forgot booting this app).
To keep simplicity, I don't want to add this option to index page. Instead, I'm going to add it to task detail page.
In short: see https://github.com/actions/virtual-environments/blob/main/images/win/Windows2022-Readme.md
It might be from the update of the windows-latest
environment.
last-date/.github/workflows/rust.yml
Line 31 in 47cec3c
Here, if date is changed between first line and client.post
, this test fails.
Lines 258 to 268 in c25efc5
Apparently this is not critical issue, but, for example, GitHub Action could add โ to originally โ commit.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.