1,590 karma · joined August 31, 2018
[1] https://developer.android.com/develop/ui/views/graphics/vect...
Maybe there isn't any need for a simpler vector graphics format because no one is using TinyVG, either.
public func read(path: AsRef<Path>) -> io.Result<Vector<u8>> {
func inner(path: &Path) -> io.Result<Vector<u8>> {
var file = File.open(path)?;
var bytes = Vector.new();
file.readToEnd(&mut bytes)?;
return Ok(bytes);
}
return inner(path.asRef());
}
I have replaced pub with public, replaced fn with func, removed separate declaration for P, replaced :: with ., replaced Vec with Vector, replaced let mut with var, replaced snake_case with camelCase, added return keywords. Note that all these are syntax changes. Semantics hasn't been changed at all. One more thing would be to remove the semicolons..Compare that to the original. Which one is more readable?
"Once upon a time there was a mouse called Miisa. One day she was driving through the woods and she saw a beautiful castle in the middle of nowhere. She didn’t go in but wanted to. Then she saw a door which said “The Secret Passage.” She went inside and met the owner who was the witch of the woods. “I’ve been lonely for a while and would like to live with you” said Miisa. The witch agreed. “But there’s one condition,” she said. “No matter how many times I ask you to do something, you must do it.” Then the witch asked Miisa to put a hat on her, which would make her invisible. Miisa was terrified. But she did it any way. Then the witch asked Miisa to kill a mouse which lives in her home. The witch wanted to have the mouse’s blood. “I can’t do that,” Miisa said. “I hate mice.” “Well,” said the witch. “You can’t kill a living thing. So then you must torture a living thing.” Miisa was getting scared but then a thought came into her head. She asked the witch, “Does this mean that I can torture a mouse?” The witch didn’t say anything, so Miisa said that she didn’t want to do it and started to leave the castle. The witch was so sad that she threw a fireball to stop Miisa. And that was that."
https://varjo.com/company-news/varjo-and-vrm-switzerland-mak...
It means that crates.io will have crates which compile only with gcc and its extensions.
Womp looks like https://www.vectary.com with few additional features.
Google just doesn't like formats created outside their own company. They prefer WebP and AVIF (created by themselves), but dislike JPEG XL (not created by them).
AOMedia fights against this with its defense program: "Established the AOMedia patent defense program to help protect AV1 ecosystem participants in the event of patent claims" https://aomedia.org/press%20releases/the-alliance-for-open-m...
Google Chrome teams refuses to implement SVG-in-OT. Instead, they wanted to implemented their COLRv1. https://bugs.chromium.org/p/chromium/issues/detail?id=306078...
I've been running webui [1] on M1 MacBook Air 16GB RAM: 512x512, 50 steps takes almost 300 seconds. I'm suspecting that it is running on CPU, because the script says "Max VRAM used for this generation: 0.00G" and Activity Monitor says that it's using lots of CPU % and no GPU % at all. When M1 users are running stable diffusion, does the Activity Monitor show the GPU usage correctly?
I like the language! It is so much more readable than Rust. I might switch from Rust to Jakt once version 1.0 has been published.
If you buy a certified USB4 cable, it has the markings and should work as you expect it to work.
If you buy a cheap Chinese cable, it won't have any markings or it has wrong markings. It won't be possible to mandate that every cheap Chinese cable has correct markings. It would require Amazon or Walmart to do some kind of quality checking for all their sellers, which won't happen. They allow SSD scams, so they also allow USB scams. https://news.ycombinator.com/item?id=32628381
LineageOS helps ( if the phone is supported by it: https://lineageos.org )
But, the latest Macs don't have a LED for the mic, which is a disappointment. Good old MacBooks had a LED indicator for the mic.
EDIT: sorry, my memory failed me. The old MacBooks didn't have a LED for the mic. On white plastic MacBooks (2006), there's two black dots around the camera. The dot on the right side is a LED for the camera. The dot on the left side is the mic, not the LED indicator for it. Thanks for correcting me!
[1] https://www.savingiceland.org/2010/10/geothermal-energy-runn...
"It is also querying companies on AV1's compatibility with other video codec standards, such as whether a smartphone or a browser can support both AV1/VP9 and competing codecs HEVC and VVC simultaneously."
"And if AV1 were to turn into a new market standard, the commission asked, what would be the impact on companies’ ability to compete with AV1’s AOM licensing conditions, and their incentives to work on alternative video codec technology that may be non-royalty free?"
"Brussels is trying to understand the rationale of companies that didn't choose AOM and instead have chosen to license the AV1 and VP9 standard-essential patents through Sisvel's pool."