webdev Web Development Biome formatter wins The Prettier Bounty Challenge to write a prettier-compliant pretty printer in Rust
Jump
  • g6d3np81 g6d3np81 10 months ago 100%

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

    3
  • blender Blender Who did this????
    Jump
  • g6d3np81 g6d3np81 10 months ago 100%

    (https://quackers.gumroad.com/l/classic_modifier_menu)
    Here you go

    IIRC The reason is that old layout is getting cluttered. It least the modifier is searchable now, which I think is a great improvement.

    It's just a muscle memory issue for me, keep hitting S after Shift + A.

    7
  • blender Blender [SOLVED] Need help with shader node, faking normal that is flatter than its geometry.
    Jump
  • g6d3np81 g6d3np81 10 months ago 100%

    Yup, probably watched the same video. Those are much more focused on flat shading... like dead flat.

    There is Abnormal addon but I find doing it with mesh data (beyond vertex weight / vertex color) is kinda cumbersome.

    After some fooling around, I find using normal form texture coord node is all I need.

    1. Take normal from texture coordinate node
    2. Rotate X to adjust up/down facing
    3. Map range Y axis to use as weight (or weight paint)
    4. Subtract result from true normal
    5. Transform vector from object to world (normalize first, maybe?)

    Not great but good enough, most importantly not ugly. Quite easy and fast to apply to different model too.
    Barbara from Genshin - Mihoyo
    Node

    3
  • blender
    Blender g6d3np81 10 months ago 100%
    [SOLVED] Need help with shader node, faking normal that is flatter than its geometry.

    Without using normal map, how do I make something look flatter in arbitrary direction? model: Godette by Pablo Dobarro [Figure 1](https://files.catbox.moe/wj4ewe.jpg) Let's say I want to smoosh character face to make lighting appear flatter while keeping the geometry. What kind of shader node setup can do this in a simple non-destructive way?

    7
    2
    blender
    Blender g6d3np81 10 months ago 95%
    Blender 4.0 - Reel kbin.social

    > > > Enjoy this showcase of amazing work done by the Blender Community. > > > > See everything new in Blender 4.0 LTS [https://www.blender.org/download/releases/4-0/](https://www.blender.org/download/releases/4-0/) > > edit: So this is not how to cross-post on kbin... sorry for extra click. Can't change the link now.

    20
    2
    blender
    Blender g6d3np81 10 months ago 93%
    Blender 4.0 - Reel youtu.be

    > > > Enjoy this showcase of amazing work done by the Blender Community. > > > > See everything new in Blender 4.0 LTS [https://www.blender.org/download/releases/4-0/](https://www.blender.org/download/releases/4-0/) > >

    14
    0
    programming Programming How would I go about creating an alternative frontend for a website?
    Jump
  • g6d3np81 g6d3np81 10 months ago 100%

    I also have a similar side project planned for a revamp. Successfully made a v1 with grease monkey (vanilla JS) + stylish back in maybe 2016. Super dangerous to keep firefox 56 running only for this front-end. Just need to do the v2 then migrate to latest librewolf.

    I want to redo the whole thing in Vue, client side routing with build step. The problem is that

    • site is not open source
    • no API doc (but I already made my own)
    • required log-in (no sensitive info)
    • some route request must be made from that domain due to CORS

    My goal is not to change the UI but wipe the whole page and start over with custom API call instead. V1 do this by visiting a 404 route to stop unnecessary load and use my own URL param for the API call. For bonus cringe I used local storage for database.

    Ended up having to use userscript, and now I'm kinda stuck with how to mash Vite build and tamper/violent monkey together :(
    Do you have any suggestion or resource I can learn more on this?

    1
  • nostupidquestions No Stupid Questions At which scale (real world day to day life situation) when each extra digit of pi become necessary?
    Jump
  • g6d3np81 g6d3np81 11 months ago 100%

    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.

    5
  • nostupidquestions No Stupid Questions At which scale (real world day to day life situation) when each extra digit of pi become necessary?
    Jump
  • g6d3np81 g6d3np81 11 months ago 100%

    TIL there is a closer approximation than 22/7

    12
  • nostupidquestions No Stupid Questions At which scale (real world day to day life situation) when each extra digit of pi become necessary?
    Jump
  • g6d3np81 g6d3np81 11 months ago 100%

    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"

    2
  • nostupidquestions
    No Stupid Questions g6d3np81 11 months ago 94%
    At which scale (real world day to day life situation) when each extra digit of pi become necessary?

    [xkcd: Coordinate Precision](https://xkcd.com/2170/) 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](https://kbin.social/u/howrar) > Any extra example of big object and its minimum pi approximation still welcome. > >

    101
    49
    opensource
    Open Source g6d3np81 11 months ago 100%
    BCON2023 - Ton Roosendaal's keynote about GNU GPL and other updates (26 minutes) youtube.com

    [piped link](https://piped.video/watch?v=0P-hQNzDSk8)

    24
    1
    anime Anime Kadokawa Aims to Establish More Wholly-Owned Anime Studios
    Jump
  • g6d3np81 g6d3np81 11 months ago 100%

    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.

    3
  • murdermoe
    MurderMoe g6d3np81 11 months ago 92%
    Cleaning Maid (ni02)

    Pixiv: [5234063](https://www.pixiv.net/en/users/5234063) Twitter: [https://nitter.net/asahi\_nini/status/1126817932565069824#m](https://nitter.net/asahi_nini/status/1126817932565069824#m)

    32
    0
    kemonomoe KemonoMoe tactical fox
    Jump
  • g6d3np81 g6d3np81 11 months ago 100%

    Bruh, I'd like to be warned.

    THE ARTIST'S PIXIV GALLERY CONTAINS GORE / DISMEMBERMENT

    3
  • games Games Stop using Fandom
    Jump
  • g6d3np81 g6d3np81 11 months ago 88%

    Regarding SEO, What's stopping maintainers from vandalizing their own fandom page?

    It would not be difficult to make a bot to update fandom page with a convincing but slightly wrong info, after a few hundred iterations, it's all useless. Go look at what google recommend and do complete opposite. I'm convinced this will bomb ranking and put whatever wiki they migrated to at the top.

    13
  • webdev Web Development Question: How to start with building a timeline interface
    Jump
  • g6d3np81 g6d3np81 11 months ago 100%

    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.

    1
  • webdev Web Development Question: How to start with building a timeline interface
    Jump
  • g6d3np81 g6d3np81 11 months ago 100%

    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?

    4
  • animemes
    Animemes g6d3np81 11 months ago 100%
    Peak voice acting career
    7
    0
    bocchitherock Bocchi the Rock! Bocchi the... thing
    Jump
  • g6d3np81 g6d3np81 11 months ago 100%

    Basically biological description and discussion of this slug-like Hitori organism. Kita saying she have no idea.

    2
  • technology Technology Not even the ghost of obsolescence can coerce users onto Windows 11
    Jump
  • g6d3np81 g6d3np81 11 months ago 100%

    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.

    1
  • technology Technology Not even the ghost of obsolescence can coerce users onto Windows 11
    Jump
  • g6d3np81 g6d3np81 12 months ago 50%

    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.

    0
  • bocchitherock
    Bocchi the Rock! g6d3np81 12 months ago 93%
    Bocchi the... thing

    pixiv: [108056561](https://www.pixiv.net/en/artworks/108056561) さがや

    42
    5
    technology Technology Not even the ghost of obsolescence can coerce users onto Windows 11
    Jump
  • g6d3np81 g6d3np81 12 months ago 97%

    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.

    32
  • blender Blender Please help me tackle a GIS problem using Blender
    Jump
  • g6d3np81 g6d3np81 12 months ago 100%

    If you've just open Blender for the first time and then you've tried to... do things.
    Maybe, trying to see how far you can go... without getting help. [laugh]
    You might have discovered... you need help immediately.

    -- some donut guy


    This is janky but will do the best I can. Maybe someone way smarter than me can find a more efficient way to do it.

    I'm doing this demo on some park with Butt in Germany (OSM)
    Blend file
    Layout window
    Node setup

    Limitation
    Line of sight is made from the 'origin' of (building) geometry (one-to-many).

    I have tried the same method but in reverse and combine lines of sight (many-to-many) and iterate through them but can not get any result, 'position node' output is changed based on whatever you are using with it and two sets of point cloud hurts my head.

    However, with this node setup if you model each room as separated object, it will still work but at room level instead of building level. Wowowee itsa very nice. Just no way to quickly get an ID that I know of.

    Process

    1. Import GIS stuff as usual
    2. You MUST set the origin of each object to its own geometry (orange dot must stay in the geometry) as GIS plugin will set origin as world center 0,0,0 and that will break stuff.
    3. Any object that will potentially obstruct the view must be put inside a flat one-level collection.
      3.1 Buildings to analyze can be put in any collection or not at all.
      3.2 If any potentially obstructing object is also an analyzing target from (3.1), it should be duplicate-link with Alt+D then ESC and put in the obstruction collection.
    4. View target e.g. park, lake, must have face, can not be just curves, edges, vertices.
    5. Add geometry node modifier to any buildings you want analyzed.
      5.1 Browse for a node named 'visibility' I already set up.
      5.2 Select target.
      5.3 Set ray length (meter) long enough to reach your target.
      5.4 Select any other buildings you want analyzed, with copy source in yellow, paste target in orange hilight. Ctrl+L to copy geo-node modifier to all of them.
    6. Open spreadsheet window and select a unit to see visibility value.

    EDIT: I forget to expose obstruction selector, you can select it inside geometry node window. I also got an idea for V2 which may solve issue of getting IDs list. Will try again tomorrow.

    HAPPY ACCIDENT: you can also stack the modifier and select another target, spreadsheet will show another line of visibility attribute for each additional target in the stack.

    Be careful though, too much and blender might crash.


    I don't recommend watching/doing the whole donut series, but you still need some familiarity to get around and understand more complex part of blender that other tutorials may teach you :|

    Maybe you can cobble together something even better from these tutorial channels. Erindale, Chris P

    1
  • blender Blender Please help me tackle a GIS problem using Blender
    Jump
  • g6d3np81 g6d3np81 12 months ago 100%

    Yep... this is tough. After reading through another of your comment, I'm not sure if geometry node alone can handle this.

    The answer/solution will depends on how accurate or detailed you want for the result.
    If you count any single point on a building that can see any amount of a park as a 'pass', that will be easy. But when you start to dice them down to each floor or room unit, then it will be a bit harder. If you also want to check how much of the park you can see from certain room too, it will be even harder. If you want to list all that, I think you will have to write python code. The complexity will scale with amount of rooms, buildings, parks.

    If the amount of objects that you considered 'lit up' is possible to select and move into another collection by hand in reasonable time, then maybe geo node is enough. From your result, how many are those?

    Spreadsheet window (geometry node workspace) can list vertices/edges/faces and other things with custom attribute they have (in this case, see a park or not see a park). It can also list name of object in a collection but I'm not sure if it can also display extra data alongside it though, it's not the right tool for the job.

    1
  • blender Blender Please help me tackle a GIS problem using Blender
    Jump
  • g6d3np81 g6d3np81 12 months ago 100%

    Geometry node with raycast
    EDIT: Removed rough description

    After some fiddling... I have ran into a problem of how to raycast from many-to-many points.
    Currently stuck to either boolean visible or not visible. In real life you would want a some form of how much you see it (float value).
    Will get there eventually, this is a nice exercise.

    EDIT again: Update with new top level comment

    2
  • kemonomoe KemonoMoe Moon (by atikix)
    Jump
  • g6d3np81 g6d3np81 12 months ago 100%

    Not much activity on pixiv :(

    3
  • webdev Web Development Framework of Your choice and why
    Jump
  • g6d3np81 g6d3np81 12 months ago 75%

    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 ¯\_(ツ)_/¯

    2
  • memes Memes microscopic fedora
    Jump
  • g6d3np81 g6d3np81 12 months ago 75%

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

    4
  • memes Memes microscopic fedora
    Jump
  • g6d3np81 g6d3np81 12 months ago 75%

    maybe I should have use wojak :|

    2
  • kemonomoe KemonoMoe Nanashi Mumei with Horse Ears
    Jump
  • g6d3np81 g6d3np81 12 months ago 100%

    If you post something on kbin and it doesn't federate properly, hit edit and save (temporary workaround).

    2
  • memes
    Memes g6d3np81 12 months ago 88%
    microscopic fedora
    228
    8
    mildlyinfuriating Mildly Infuriating Finding a rogue screw on your desk and not knowing what it fell out of
    Jump
  • g6d3np81 g6d3np81 12 months ago 100%

    I mean... if your room have a lot of stuff then it might take a while to find the source, if you aren't being pranked. But random screws on your desk will never be as horrifying as random maggots on your desk.

    5
  • enoughmuskspam Enough Musk Spam Elon Musk Sued by California Man For ‘Ridiculously False and Damaging’ Claim He Was a Federal Agent Posing as a Neo-Nazi
    Jump
  • g6d3np81 g6d3np81 12 months ago 100%

    WTF he won???
    I thought it ended in some kind of settlement. I hope the fight did not financially damage the diver too much, still sucks.

    7
  • enoughmuskspam Enough Musk Spam Elon Musk Sued by California Man For ‘Ridiculously False and Damaging’ Claim He Was a Federal Agent Posing as a Neo-Nazi
    Jump
  • g6d3np81 g6d3np81 12 months ago 100%

    A sane person would have learn the lesson after cave diver case.

    9
  • linux_gaming Linux Gaming The DOS game Raptor Call of the Shadows releases source under GPL
    Jump
  • g6d3np81 g6d3np81 12 months ago 100%

    Monkey related trauma flashback

    2
  • g6d3np81 g6d3np81 12 months ago 100%

    My first thought... "is this from the guy who draw crab comic?"

    *check*
    It IS from the guy who draw crab comic

    5
  • memes
    Memes g6d3np81 12 months ago 99%
    COOL BLUE™
    405
    2
    kemonomoe
    KemonoMoe g6d3np81 12 months ago 96%
    Sheltered kitty (チヨ丸)

    pixiv: [100617212](https://www.pixiv.net/en/artworks/100617212) artist's profile contains NSFW

    30
    0
    kemonomoe
    KemonoMoe g6d3np81 12 months ago 94%
    Four Seasons (jonsun)

    pixiv: [58352009](https://www.pixiv.net/en/artworks/58352009) mastodon: [https://pawoo.net/@jonsun](https://pawoo.net/@jonsun)

    30
    0
    gaming Gaming War Thunder user leaks restricted military documents for AH-64D Apache Longbow
    Jump
  • g6d3np81 g6d3np81 12 months ago 100%

    This was 3 DAYS APART from previous leak : wikipedia

    22
  • anime_irl
    anime_irl g6d3np81 12 months ago 98%
    anime_irl

    Apprentice witch who wants to draw magic circle VS A familiar who wants to sit in a circle pixiv : [101473206](https://www.pixiv.net/en/artworks/101473206) twitter : [https://twitter.com/koikoisararira](https://twitter.com/koikoisararira)

    161
    1
    noncredibledefense NonCredibleDefense Jets are now banned for corrupting the youth
    Jump
  • g6d3np81 g6d3np81 12 months ago 100%

    Don't stop there. Give it an ACE COMBAT treatment.
    The supersonic weeb machine that cause physical pain to anyone looking at it, and maximum humiliation to the side getting bombed by it.

    3
  • biology Biology Spider silk is spun by silkworms for the first time, offering a green alternative to synthetic fibers
    Jump
  • g6d3np81 g6d3np81 12 months ago 100%
    7
  • biology Biology Spider silk is spun by silkworms for the first time, offering a green alternative to synthetic fibers
    Jump
  • g6d3np81 g6d3np81 12 months ago 100%

    If looking at strength alone, maybe everyday clothing can be made with less material... maybe.

    Will have to wait and see if it can be made at industrial scale.

    2
  • biology Biology Spider silk is spun by silkworms for the first time, offering a green alternative to synthetic fibers
    Jump
  • g6d3np81 g6d3np81 12 months ago 100%

    Next, find a way to make them leave cocoon intact for better yield, then breed the moth so they don't have to modify the next generation.

    I also find this quite funny.

    but when he saw the silkworms’ eyes glowing red under the fluorescence microscope—a sign that the gene editing had been successful

    11
  • games Games Microsoft Nintendo acquisition hopes revealed by leaked Xbox exec email
    Jump
  • g6d3np81 g6d3np81 1 year ago 100%

    Bought one many years ago, it's unexpectedly pricey for a 5cm paper card (48 cards). IIRC it's their excuse is "traditional look". The box is nice though.

    1
  • opensourcegames OpenSourceGames *Permanently Deleted*
    Jump
  • g6d3np81 g6d3np81 1 year ago 100%

    Just looked it up. That Tyrian aesthetic hit hard.

    1
  • games Games Is there a way to cap frame rate on UE4 game through ini file?
    Jump
  • g6d3np81 g6d3np81 1 year ago 75%

    Already tried that. No significant improvement over running at uncapped with v-sync (60fps).

    baseline:
    uncapped with v-sync (60fps)
    result: running at 40% usage and 40C temp.

    nvidia cp config:
    capping at 20fps with or without v-sync (running in background)
    result: usage jump up and down predictably between 20% and 50%, no temperature difference.

    Clearly worse than capping it at game engine level since ES2 shows linear and stable drop in GPU usage. I assume this varies greatly on different game engine.

    2
  • games
    Games g6d3np81 1 year ago 94%
    Is there a way to cap frame rate on UE4 game through ini file?

    There is this janky early-access game that I try recently and another good one, Everspace 2. In Everspace 2, I really like how you can force lower frame rate when the game is not in foreground (when alt-tab to another window) In `GameUserSettings.ini` under `[/Script/ES2.ESGameUserSettings]` there is ``` FpsLimitNoFocus=30 ... bFPSCapEnabled=True CappedFPS=60 ``` Are these implemented by dev themselves or are they available at engine level on all UE4 games? Is there a way to do this on other games that do not have this in-game config?

    16
    3
    programming Programming Some *real* benchmarks on Bun (compared with Node) -- It only wins *sometimes*, but it's mostly a fail
    Jump
  • g6d3np81 g6d3np81 1 year ago 100%

    Bun no good => ☹️
    Don't have to learn another shiny JS thing => 😀

    31
  • programming Programming What would it take for you to move away from Github?
    Jump
  • g6d3np81 g6d3np81 1 year ago 100%

    No. Maybe it flagged dynamic IP as spam or whatever. At this point I don't really care. Got what I want.

    2
  • asklemmy
    Asklemmy g6d3np81 1 year ago 96%
    What is the most unnecessarily excessive thing you have ever done to accomplish something?

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

    255
    80
    linux
    Linux g6d3np81 1 year ago 97%
    External drive encryption question

    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](https://old.reddit.com/r/linuxquestions/comments/wooe2t/is_there_a_way_to_encrypt_an_external_hard_drive/) 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.

    43
    22
    webdev
    Web Development g6d3np81 1 year ago 90%
    Seeking advice on minimizing function and worker usage (Nuxt on Cloudflare Pages)

    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.

    8
    0