g6d3np81

joined 1 year ago
[–] [email protected] 3 points 9 months ago (1 children)

Is this gonna be equivalent of ESLint + Prettier but in one performant package?

[–] [email protected] 5 points 10 months ago

Thank you. After thinking about it overnight, I realized I asked a wrong question. Your answer still helps greatly and get me more than half way to satiate my curiosity.
Tolerance grade and example objects that require different grade/minimum pi accuracy is what I was looking for.

[–] [email protected] 12 points 10 months ago (1 children)
[–] [email protected] 3 points 10 months ago

Thank you, I already skimmed through that article before posting. Maybe I failed to put my question into words properly.

I want examples similar to pool/fence circumference in the article. Along the line of "We're building x, and this is the worst rounding we can go, one fewer digit and it will be off by y"

 

xkcd: Coordinate Precision but pi (π)?

I tried looking for some answer but found mostly

  • People reciting pi
  • People teaching how to memorize pi
  • How to calculate pi using different formula
  • How many digits NASA uses

Update question to be more specific

In case someone see this later, what is the most advanced object you can build or perform its task, with different length of pi?

0, 3 => you can't make a full circle

1, 3.1 => very wobbly circle

2, 3.14 => perfect hole on a beach

3, 3.142 => ??

4, 3.1416 => ??

5, 3.14159 => ??

Old question below

In practice, the majority of people will never require any extra digit past 3.14. Some engineering may go to 3.1416. And unless you are doing space stuff 3.14159 is probably more than sufficient.

But at which point do a situation require extra digit?
From 3 to 3.1 to 3.14 and so on.

My non-existing rubber duck told me I can just plug these into a graphing calculator. facepalm

y=(2πx−(2·3.14x))

y=abs(2πx−(2·3.142x))

y=abs(2πx−(2·3.1416x))

y=(2πx−(2·3.14159x))

Got adequate answer from @dual_sport_dork and @howrar
Any extra example of big object and its minimum pi approximation still welcome.

[–] [email protected] 3 points 10 months ago

I would not place my hope on kadokawa doing anything like that. I don't think they even care about anime industry aside from make money part of it.

[–] [email protected] 1 points 11 months ago

Can you explain a bit more about "zooming, different levels of detail" you mention? Maybe break them down to separate issue you are having with the library, what does it do, what do you want that it's not doing. If there is a way to tweak it then you don't have to build the component from scratch.

But if you already abandoned the idea of tweaking timeline-js then you can have full control in vue, have to build it yourself though. Start by breaking the functionality of the timeline into separate interaction. From a quick look, timeline-js just make style attribute reactive. Have a box? good. Now put really long div in it with placeholder texture. Can you drag/scroll it? no? grab a suitable function from vueuse and make it scrollable. Follow with markers, zoom, dummy event items, data fetching (the actual width, marker spacing, events placement can be calculated from timestamp in json after this step), lazy loading, styling, animation, so on.

I don't know how much experience do you have with each things required (html, css, js, vue) so it is a bit difficult to give useful answer.

[–] [email protected] 4 points 11 months ago* (last edited 11 months ago) (2 children)

Events?? TimelineJS3/blob/master/API.md
Not sure what else is available if you want to build the component yourself though.

but note that because TimelineJS's primary use case is the embedded iframe, some of these methods have not been thoroughly tested.

I think you can replicate most of its function with vue alone, skip all the tedious work with vueuse. Lazy-load with Intersection Observer. Basic events and refs for zoom level.

I would start with putting all entries into a usable format. A CMS will help a lot. Maybe a JSON from your django server containing batch of entries, its timestamp, length, importance, tags, etc. Anything that is required to place entry on the timeline properly in vue.

EDIT:
Have you tried the official tutorial?

[–] [email protected] 1 points 11 months ago (1 children)

Flac is a low bar for any music player though. I don't know whether itunes support it yet, don't care.

I'm sure Rhythmbox works well for you and that is great. But I also need some niche features which might not be in it.

Mostly conversion and forensic thing.
ape tak tta format, bit compare, audio checksum, mass-tag/batch-tag, replaygain, custom playlist columns, statistic driven field. Don't know what else until I try and find it's missing.

I'm also sure I can get all those and more in different cli tool if I want but getting them in one software is very convenient.

After a quick look, DeaDBeeF might have most of what I want.

  • Sort and group the tracks in any order you wish, using advanced Title Formatting scripting, compatible with Foobar2000

Got the date wrong, last time I tried it was 2018. Lot of new features added since then.

[–] [email protected] 0 points 11 months ago (4 children)

What if I use foobar and will not settle for anything less?
I have not fully moved to linux yet. Last time I tried it through wine back in 2020 it ran like shit. Deadbeef did not have feature parity either. Wonder how good is it now.

[–] [email protected] 33 points 11 months ago (10 children)

There is a trend line of the amount of shit you need to do to get linux to do things you want.
There is a trend line of the amount of shit you need to do to stop windows from doing things you don't want.

Those two lines have crossed quite a while ago.

[–] [email protected] 2 points 11 months ago* (last edited 11 months ago)

For quick overview of frameworks... there is Brad Traversy and Jeff Delaney (Fireship)

Shop around and pick a few to try out then dive down when you finally find a framework you like ¯\_(ツ)_/¯

[–] [email protected] 4 points 11 months ago (1 children)

I'd love myself a hole to go in right now

228
microscopic fedora (media.kbin.social)
submitted 11 months ago* (last edited 11 months ago) by [email protected] to c/[email protected]
 
226
rawr (media.kbin.social)
submitted 11 months ago* (last edited 11 months ago) by [email protected] to c/[email protected]
 
405
COOL BLUE™ (media.kbin.social)
submitted 11 months ago* (last edited 11 months ago) by [email protected] to c/[email protected]
 
 

Famous example... a man spent $44b to push his memes.

43
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 

How should I do it if I want to...

  • Format external SSD to use with linux
  • Full drive encryption
  • Compatible with windows (temporarily)
  • Preferably do it with KDE GUI

Context: A linux noob. I got a new laptop earlier this year and uses it mainly for tinkering/playing with linux, get competent with it before dropping windows completely on my main desktop. There is a lot of stuff I want to move back and forth between those machines during this learning period.

My idea is to use an external SSD which when I'm done with windows, I can still use it to store work files or any sensitive stuff, so it will need encryption.

Saw a reddit thread saying I still need veracrypt, which I'm totally ok with on windows side but I prefer keeping everything simple on linux side (I only know it can be done without any extra package)

Extra question:
I can possibly store all works and sensitive data on encrypt external and leave root drive unencrypted. In that case, which file system should I use on which drive? Does it matter?

Thank you in advance.

 

What I want to do:
Deploy brochure site(s) with minimal (or no) cost.

Stack:
Nuxt, Sanity, Cloudflare Pages.

Problem:
$0.00 challenge (maybe I just don't want to pay)

Requirements:

  • Trim trailing slash on all routes
  • Server-side form sanitation/validation (optional)

Solution 1: Nitro server...
No problem with route middleware, I just don't know this will translate to function/worker usage. Can someone even DoS my site and exhaust 100k allowance? Is it 1 per request? Will crazy convoluted validation logic effect credit used?

Solution 2: Static generation...
I don't know how to use _redirect to trim trailing slash on all routes. The docs do not show any example using wildcard (splat) follow by slash.

Senpai of the Edge, please enlighten me.

view more: next ›