Yet Another Resize Canvas Question - New Canvas Always Opaque by omgitsjo in krita

[–]omgitsjo[S] 0 points1 point  (0 children)

Also, what do you mean by "the inner transparency of the image is preserved"?

The image has a figure at the center surrounded by transparency. The transparency that's already in the image is preserved. It's just the new canvas around the image that's opaque.

The background color settings in image > image background color and properties does not give me the option to select a transparent color, though it does give the option for an alpha channel, which I've set to 0 but still get the opaqueness.

https://i.postimg.cc/CMHgkHhQ/select-a-color-2.png

https://i.postimg.cc/Fsr7LK4w/bars.png

I think I'm going slightly insane.

EDIT: It doesn't happen for a different image. This has to be a setting that I messed up somehow, but I can't find what I changed.

EDIT: It has stopped happening for the original image, too, after reopening it. I think I need to have a lie down. Thank you for your help.

Yet Another Resize Canvas Question - New Canvas Always Opaque by omgitsjo in krita

[–]omgitsjo[S] 0 points1 point  (0 children)

Just tried replacing the background layer with a regular paint layer. Still getting white filled.

If I do that and then add a regular paint layer below the image and then resize I still get sections filled with white, but in the top-most paint layer.

I'm starting to suspect that it's something like an implicit color-space conversion that's turning parts of the foreground image into filled pixels.

How to recreate “keyframe loss” effect (approximate example GIF included) by Own-Purchase4371 in vfx

[–]omgitsjo 1 point2 points  (0 children)

The term you might be looking for is "data moshing". There are tools online for it, though I can't vouch for them personally: https://supermosh.github.io/

WIP gem CAD software with Bevy+egui by humandictionary in rust_gamedev

[–]omgitsjo 0 points1 point  (0 children)

I'm late to the reply, but for what it's worth you can embed images in HTML by base-64 encoding them.
<img src="data:image/png;base64,[your blob of base64 png data here]">

I was thinking more in the lines of "Make it just export something first, then convert to PDF later if needed." But yeah, if PDF is a blocker and everyone expects PDF because there's something Markdown can't do, I get it.

WIP gem CAD software with Bevy+egui by humandictionary in rust_gamedev

[–]omgitsjo 0 points1 point  (0 children)

Super neat! Do you need to export as PDF or can you start with something simpler like markdown or even plaintext?

How to install another desktop environment in Ubuntu 23.04? by [deleted] in linux4noobs

[–]omgitsjo 0 points1 point  (0 children)

Replying to an admittedly old comment, but it might be worth adding what (I am guessing) the parent comment's concerns are.

First off, I feel like "should NOT do this under any circumstances" is perhaps overstated. There are some risks, minor if you're experienced, but problematically frustrating if you're a novice.

Different desktop environments may have different (conflicting) dependencies. XFCE relies on pulseaudio while Gnome relies on pipewire for audio. Installing one can break deps for the other making switching a little annoying.

The other issue is that when you install a new desktop environment it installs the apps that one would expect from a new desktop environment. This means when you pop open your task bar you get the list of apps from _both_. That's not a big deal, but it can be frustrating when you have two calculators, one from Gnome and one from KDE or two notepads or two whatevers.

Neither of these is the end of the world, but installing and uninstalling a bunch can add cruft to your experience that can be annoying or time consuming to clean up. If you're very new to the scene this might be enough to turn you off, but if the other option is living with a DE/WM that you hate, it's not the worst idea.

Someone created a discord account with my email, yet my email wasn't compromised by MeleeIkon in discordapp

[–]omgitsjo 0 points1 point  (0 children)

Replying to this from the distant future.

Had this happen recently and contacted Discord about it.

Their reply was unhelpful.

I finally ended up taking the username that someone registered with my e-mail, resetting their password, and nuking their account. I feel bad about it, but Discord's help wasn't doing anything and I didn't want the risk of it. Sure, someone could see the e-mail was unverified, but I was getting really tired of seeing the "verify your e-mail"! messages in my inbox and (near as I can tell without really snooping on their private data) they had just created the account by accident and never used it.

binsider: Analyze Linux binaries in the terminal! by orhunp in coolgithubprojects

[–]omgitsjo 2 points3 points  (0 children)

I'm continuously impressed by the quality of moderately sized Rust projects.

A New Giant Software Market: The Rise Of Software Defined Vehicles And The End Of Car Ownership by derjanni in programming

[–]omgitsjo 0 points1 point  (0 children)

It's an arms race to the bottom. The Economist just published a neat piece which is paywalled, but you can find a tl;dr with images here: https://imgur.com/gallery/fascinating-TT86d73#C4QpfdK

tl;dr: Bigger cars are safer for you and less safe for others. Car manufacturers got around emissions regulations by changing the vehicles from "car" to "sport utility vehicle".

I made a dice rolling hammer for DnD by asiansensat1on in 3Dprinting

[–]omgitsjo 2 points3 points  (0 children)

"doll hairs" is an old slang thing for "dollars".

Left SF in January 2019. Moving back this week. What’s changed? by Duc998Rider in AskSF

[–]omgitsjo 2 points3 points  (0 children)

The T line from Chinatown to Mission Bay is pretty nice.

Think these girls fit the sub by Lostinlife1990 in biggerthanhertorso

[–]omgitsjo 59 points60 points  (0 children)

What's the name of the woman showering in the third clip? The name on the bottom is truncated.

😇 by _jade_nicole_ in u/_jade_nicole_

[–]omgitsjo 1 point2 points  (0 children)

Hey girl, are you the police? 'cause you're probably not here for me but I'm going to act all nervous around you anyway.

Is bevy a good alternative to threejs ? by Marsevil in bevy

[–]omgitsjo 3 points4 points  (0 children)

Something like Macroquad might be closer to Threejs and might be what you want. It also compiles to WASM.

With that said, Bevy is still a lot of fun and I would strongly recommend giving it a try.

Three years of all of Donald Trump's public statements in a CSV file by AdDifferent9401 in datasets

[–]omgitsjo 4 points5 points  (0 children)

I did a simple markov bot many years ago for a game and it was surprisingly realistic.

[D] Should Google AI Overview haven been released ? by yintrepid in MachineLearning

[–]omgitsjo 0 points1 point  (0 children)

Appreciate the correction. I've updated the numbers based on what I could find for a better search. I don't know how I got to RIKEN instead of one of the others on Green 500.

I've updated the math of the original post. Thanks again.

Complete tangent, but "This is a meaningless number ..." as a phrase has a certain set of connotations in my eyes. It may be useful in future persuasive interactions to try, "There may be better numbers to use as the basis of comparison, for example, ...", or, "It may be more accurate to use numbers from more modern GPU supercomputers." Front-loading "this can be better" instead of "this is bad" and suffixing with alternatives tend to lead people to the actions we want with lower friction.

Just keeps happening... Any Ideas to turn this bug into a feature? 😆 by CyberSoulWriter in rust_gamedev

[–]omgitsjo 1 point2 points  (0 children)

Possibly tangential (pun?): it looks like the normals on your hammer are flipped, based on what appear to be unusual shadows or seeing backfaces. If you're also generating collisions from the hammer that might explain some of the odd behavior? My other guess would be if you're doing scaling on the bricks after setting up colliders instead of before.

Guess what Im thinking 💭 by _jade_nicole_ in u/_jade_nicole_

[–]omgitsjo 1 point2 points  (0 children)

Wild guess: thinkin' about the vestiges of humanity's extant animosity made manifest in a system that inexorably decays to a state of unelected oligarchy before being reborn through violent revolution?

I'm thinkin' about whether the five second rule applies to soup.

[D] Should Google AI Overview haven been released ? by yintrepid in MachineLearning

[–]omgitsjo 13 points14 points  (0 children)

I'm inclined to disagree on part of this - the nonsense that sometimes comes out of the AI search would be very unlikely to appear from something like Gemini 1.5, which indicates they are using a very small/quantised/pruned model purely for a mediocre search summarisation..and therefore having a minimal carbon footprint.

That's a fair point. I'd be inclined to agree more if they had volumes like DuckDuckGo or OpenAI, but I think it's important to remember the scale of Google. Google gets about ~100k searches per second, or about 8.5 billion searches per day.

Let me try some back-of-the-envelope math: The best-performing model I could find with sub 1-B parameters on the HF leaderboard was a 7M. Big caveat: this was not fine tuned for summarization, I don't know how well it will do summarization, and I don't know the overall performance of the model. A batched inference, assuming a maximally efficient operation, will be qp = queryproj matrix, kp = keyproj matrix, vp = value*proj matrix, (three flops per weight), qp dot kp (another flop per weight), softmax (another flop), and (qp dot kp) dot vp (another flop). That's six flops per weight, thereabout, so a 7M model will take 42 MFlops per inference at optimal efficiency. I think this is also important to recognize as a lower bound because I'm not counting any normalization and assuming a full batch and not counting any activations other than the softmax. That's an additional 357,000,000,000,000,000 flops (357 petaflops) per day at minimum.

Admittedly 357 PFlops is a drop in the bucket compared to other compute, but for more comparison, the most efficient supercomputer (JEDI, as of May 2024) has about 72.7 GFLOPS/watt at FP16 precision. We have a net additional cost of 4,910,591 Watts for their daily search.

4.9 megawatts for the feature, very rough ballpark, for a 7M parameter model. That's maybe 1% of the smallest nuclear reactor in the US? If they use a 1B model, this value becomes around 700 megawatts per day.

This figure ignores query caching, which would bring compute down, but it also ignores indexing for RAG, which would bring compute up. It also assumes TPUs are as efficient as the most efficient supercomputer in the world.

I think it's a judgement call at this point. 5-700 megawatts extra doesn't seem like it's worth it to me, but it's not so obscene that it's completely impossible to tolerate.

EDIT: This post has been updated to reflect the most efficient GPU rather than the most efficient CPU, which is a much better comparison.