932 karma · joined Sep 18, 2020 (6y ago) · 485 submissions
comment 3y ago · link · parent
There are several support notes about sleep problems and overheating, so I know I'm not alone.
No combination of BIOS or OS settings should make it possible to overheat while asleep---especially not the defaults! (Notably, overheating occurs equally in Windows or any of the 5 Linux distros I've installed in the past two years.) It's particularly disappointing when the computer is made by the processor company. There's no excuse---no missing documentation or inability to test side effects. Expecting peerless hardware support was THE reason I went with Intel instead of any other small-form-factor PC.
Honestly, at this point, if I want Windows, I'll probably run Parallels on a Mac. I hate Mac. That's where I stand with Intel and Microsoft.
comment 3y ago · link · parent
I'm sure I can take a spare RPi from my bottom desk drawer and get HA running before lunch tomorrow. I also know that's a waste of a RPi if there's purpose-built hardware (and by that, I mean power profiled, no useless Arduino-layout pins, no SSH configuration, ideally no manual installation at all). If I'm not around and HA stops running because RPis sometimes have weird clock issues or someone closes the power cord in a desk drawer (RIP old laptop) or a service was misconfigured or SD flash storage sometimes goes haywire, are my family members going to be in the dark, literally, while I'm away?
A site that doesn't spoonfeed you the step-by-step, dummy-proof onboarding (a la Hue) usually indicates that the product will require equally esoteric maintenance.
My partner only thinks of Raspberry Pi as a food, and I know of it as a collection of known and yet-to-be-discovered vulnerabilities that runs about 300 mA too much all the time. I have a NUC. It's a royal pain in my ass because it's my primary device and if you don't have a very precise combination of drivers and BIOS settings, it overheats and/or refuses to wake from sleep. (It's actually a replacement; the first overheated one too many times.) I will never, ever run HA on a NUC.
Same deal with Docker: Every time I touch containers, I discover the Who's Who? of certificate errors, "jessie/bionic were last in vogue 5 years ago; no version pin, no run" (yesterday's error), "No connection could be made because the target machine actively refused it", system clock is wrong, etc.
I'm not so cruel to subject my family to opening up a terminal or finding the right manpage anytime the smart home starts acting dumb.
-----
As far as residency mattering... Dollars are on the home page. Only after clicking a few links to buy can I find a variety of countries for buying a Yellow or Green, but the place where I live is not actually the best option, price-wise. Unless someone from mediarath is going to phone me up and walk me through the setup or throw in the perfunctory bag of Goldbären, there's no point in paying extra when the guy a few borders over will ship it for less.
People in Denmark seem to be getting screwed worse, at 126 euros per Green. It's one thing if this was an American or European product, but they're all COO China (and it's still not even breakeven to buy bulk from the Chinese vendor, it would be the U.S. price before tax and customs---ultimately more than the Danes).
comment 3y ago · link · parent
I think these two areas could be holding the commercial voice assistants back, since the majority of bug reports on the Google Home and Alexa subreddits are people complaining about being misheard.
comment 3y ago · link · parent
Amen.
+1 to timers, schedules, integration with a lighting bridge or even kitchen appliances e.g. Home Connect, custom routines, music (including Bluetooth and/or TuneIn), line out (so I can connect my own speakers), microphone relays that I can put all around the house instead of owning 5 or 6 RaspPis and the associated 15 to 30 watts
Better than math, for me, would be a Wikipedia summary readout that voices the first paragraph (or a reasonably defined "summary length") from simple.wikipedia.com, although metric/imperial conversions are also very handy.
Weather integration would also be delightful---including a way to tie this in to reminders e.g. "bring the plants indoors tonight", "remember rain clothes for riding home this evening", "tomorrow is probably the last good sled day until next winter"
Oh. And properly bilingual. We have a Philips light named "Turtle". Alexa absolutely cannot handle this name if the input is set to either German or German/English.
comment 3y ago · link · parent
I'd rather buy local but not if it's costing 10% more. And I'm quite certain there are people who grumble that they need to buy a certain threshold of goods at Costco (perhaps the most prominent price discriminator) before a membership is worth it.
comment 3y ago · link · parent
The landing page has two products with pricing in dollars and nothing else w.r.t. hardware. Click "Getting started" and there's still no sign of what to buy. Click "Installation" and then there are 9+ platforms (and multiple subplatforms) but no quick and realistic comparison of features or pricing. Is a NUC12WSHi3 a better deal, more energy efficient, and better equipped to handle wake words than an ODROID-M1 4GB/16GB-uSD/256GB-NVMe Addict? Will I need to buy an add-on microphone? Do I need just one box/bridge for multiple stories of a large house and then some supporting hardware? Can I finally throw my Amazon devices into the electronics trash bin at Penny?
Even among HA products... It looks like I can get a Green from the official German supplier for 110 euros, from a different European vendor that I search on Google Shopping or Idealo for 103 euros, or from Slovakia for around 100 euros.
It's all of the inconsistencies and friction that keep me from using HA. I have a solid theory on Linux distros: the landing page is a good indicator of how much of a pain it will be to install and use. I suspect that's also true with HA.
8fingerlouie mentioned Homey. When I go to that landing page, there's a flag to switch region and a big Buy button. It's only a few clicks to switch to their non-Pro bridge, and the pricing is consistent on the page and with any vendor I search online.
-----
In any case, I'm not using a Home device until they remove Google from the wake word. I'm not using Alexa for its invasive behavior (most notably Amazon Sidewalk) and because the Philips skill mysteriously broke a few days ago, confusing the hell out of family members accustomed to a house full of working Philips lights with customized Alexa phrases. I'm not using Siri or Cortana ever.
I'd love to move on to a better platform and would even pay a premium to get an industrial controller like my workplace. Such a platform either needs a dedicated installer-maintainer or exists only in my imagination.
comment 3y ago · link · parent
comment 3y ago · link · parent
I open https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html
in my browser and see a 4,000+ word blog post.
Oof. Do I really want/need to read this?
*proceeds to write an 8,000 word blog post about it*-----
Kidding aside, good content and a great reminder to think before blindly upgrading—at least until the kinks and details are worked through
comment 3y ago · link · parent
(Not to sound all Buzzfeed-y, but Table 3 makes a lot of sense)
198.
A11y Is Not Accessible(mobilea11y.com ↗)
24 points · by PennRobotics · 3y ago · 61 comments
comment 3y ago · link · parent
-----
My mobile plan is prepaid, and I discovered that one turn-based puzzle I would play with my partner would consistently use more than half of my data for the month.
Since discovering this 'the hard way' (i.e. running out of data before the next monthly renewal) I go out of my way to search for apps that don't have any in-app purchases and advertisement---often getting .apks directly from git repositories.
(Why in-app purchases, too? Some locations have atrocious cell coverage. Ever try to open a tuner, visual metronome, audio recorder, or room acoustics meter right before a performance and discover it won't go beyond the splash screen until the app can phone home? I have...)
It's infuriating to discover that the open-source audio recorder I use was copied with virtually no changes (other than branding) and is one of the top ad-supported, closed-source apps in the Play Store.
same deal with 2048: You can find a few totally ad-free versions, but all of the top results have ads inserted.
I suspect this copy-and-monetize scheme affects at least 3 of the other apps I use regularly.
People regularly take and abuse the work of others, and it's bullshit. OSS as the idealists see it? It doesn't have teeth. In fact, the Play Store pushes free results to the bottom and has a financial incentive to promote ad-supported ripoffs. I'm glad to see someone with a following offer useful software and proactively stave off the leeches.
-----
I'm also curious on the opinions (author's or others) of Ardour, which is open-source (plus build logs are available, which really streamlines getting the right dependencies on Windows) but binaries are all kept behind a paywall. Rossmann seems to have the same model, except Ardour is GPLv2. I don't know enough about Kotlin and signing to know... is it possible to compile your own [free] version of this app if you are otherwise required to pay for the released binary?
Then again... Other companies seem to fumble source + licensing and inconvenience well-meaning devs: Steinberg with the ASIO SDK but not the VST3 SDK, the latter offering a GPLv3 license. I'm unaware of Steinberg actually making money from ASIO (other than perhaps offering support to hardware manufacturers, and there are not so many) so the license choice is confusing and gets in the way of mass usage of ASIO with something popular AND simple compared to other DAWs: Audacity.
comment 3y ago · link · parent
For embedded, this might do something nonawful on a device with memory management e.g. Cortex-A. This exercise is left to the reader.
Moral of the talk? Most of computing is extremely complicated, and you can hand-wave and abstract much of it away unless it's directly in your field. In this case, that would be a compiler engineer or low-level kernel developer.
comment 3y ago · link · parent
I know on some microcontrollers (e.g. Arm) addresses 0x0 and 0x4 are usually used to define the initial stack pointer and entry point and then are never needed again.
Later, you probably want to detect the presence of null pointers by checking if &maybeAStruct is either 0 or valid. If you accidentally test the value at that address, you'll get a non-zero and then run code you didn't intend to run. By defining address 0x0 as value 0, you'll avoid this issue. That has two problems.
Alternatively, you define address 0x0 to erase the initial stack pointer so that a nefarious actor can't somehow memory dump and then find out where the program starts its execution. I don't see the benefit for several reasons.
-----
Scenario 1.
The first problem is that you shouldn't write code poorly. If you meant to check a variable's address and instead check its value, that's on you, your test suite, your compiler, and your debugger (and by extension, your colleagues and educators).
Second, writing to address 0x0 on a Cortex usually involves writing to flash... which is not a temporary/nonpersistent change, more involved than simply writing to an address (you usually need to enable the flash controller and set some peripheral registers), and would usually not be allowed on a production device because that's where the bootloader is or that section of memory has been write protected following good practices.
Scenario 2.
The more I think about this one, the less it makes sense. Anyone with debug port access or a memory dump is already inside the castle, well past any defenses e.g. zeroing the main stack pointer. Plus, the same caveats from Scenario 1 apply: if you COULD write to 0x0, it is almost always a terrible idea.
-----
Grand takeaway? This is probably a talk relevant to PC and not embedded. A Cortex-M would definitely complain about this code. Even on an AVR (atmega) changing 0x0 would be changing R0. I don't even know if that register is directly writeable during execution---probably because it's how you set some bootloader bits---but it's definitely dangerous.
With that in mind, I searched for "virtual address space windows" to figure out what goes in an executable at address 0x0. After reading Microsoft's first two articles, it's still unclear what goes in 0x0. Wikipedia? No answer. Next result? Nothing.
Finally, a page about Windows ME/98/95 states address 0x0 is "available to the process" but is "not writable".
After ten more minutes of fruitless searching, I'm willing to just test what happens, because I expect that's not even writable without side effects during execution.
#include <iostream>
int main() {
*(char*)0 = 0;
std::cout << "test" << std::endl;
}
and then, "g++ test.cpp -o test", and ...[1] 869 segmentation fault ./test
Linux? Fail.
-----
"cl test.cpp /link /out:test.exe"...
This compiles and runs but does not display the test string. (If you remove the 0x0 assignment, the string displays; no surprise)
Interestingly, I can't delete test.exe right away. It has stayed open:
ERROR: The process with PID 12776 (child process of PID 19728) could not be terminated.
Not only does PID 19728 not exist, I have to use an administrator console to "taskkill test.exe", so this would probably never belong inside user space code on Windows.
-----
Thus, this short code snippet seems like trouble, and the answer I would hope for as an interviewer is, "yeah, I don't write code like that, sorry."
(Coincidentally, I would say the same in response to the professors giving microcontroller exam questions that try to stump students with multiple casts and dereferences in a single line *ahem Moreno*. Stop teaching students methods they will never, ever use in a shop that cares about its code!!)
Now I watch and learn.
comment 3y ago · link · parent
I've resorted to using "datemodified:this year -kind:=folder" on a keyboard macro and changing 'year' to 'month' or 'this' to 'last'... or using WSL to search.
One obvious problem here is that the number of files I search through changes with each season. January and February are the worst, because "last month" and "last year" overlap for one month, and then on February 1st, the query results are again exclusive. If I want all PDFs published in the past three weeks after returning from winter break, I need to use two search queries in Explorer.
Contrast that with Linux, where there are multiple standard, well-documented, reasonably easy to remember methods of searching by date, including within very specific timeframes---not just a choice of month or year. On the GUI side, GNOME Files has much more customizability and isn't any harder to understand than Explorer.
Just as the past decade has been a disappointment in home assistant progress, I had hoped in this present age, ANY reasonably query could be parsed, and optionally, the exact query shown as the machine sees and/or a plain-text standardized description of the search.
[<Ctrl> + F] "PDFs from the past three weeks"
↓
Parsed: find "//doc-network/rel/**/*.pdf" /createdafter 2023-09-24
Searching for all Adobe Reader documents (PDF format) created between three weeks ago and today in the current folder ("rel") and/or any subfolder.
As a bonus, the best five results matching MOST (but not all) of the query would be previewed at the bottom of the search results, slightly greyed, with "84 weaker matches found, such as...", and this could also be disabled for privacy/performance/etc reasonscomment 3y ago · link · parent
When I ran ChromeOS (years ago) I recall having only a few intuitively named folders with most everything in "Downloads". I never needed to build my own stylus Wacom definition or switch operating systems to get the entire audio system functional. (In fact, the Gallium team had a lot of trouble getting the ChromeOS audio to "just work" on some platforms, such as Sentry.). Everything that came with the laptop worked. You could always pop up the shortcut overlay to remember how keys were mapped, Chrome browser didn't need weird codec or GPU flags or dependencies, I didn't need any obscure addition to the bootloader, the thing would run for over ten hours on a charge, I had no issues connecting to my school's networked printers.
Sure, ChromeOS still has dotfiles for things like editors, but it's not nearly as newbie-hostile as xorg.conf, /etc/profile, fstab, /etc/modprobe.d/blacklist.conf, GRUB, and all of the other service/module/daemon configurations needed to get something like Arch running on a random old 486 PC or laptop.
Then, the ChromeOS community started to make code editors and compilers accessible without needing crouton and needing to remove a screw from the motherboard.
Around this time, I started using a Dell XPS and stopped using the Chromebook. It developed some sort of memory problem sitting on a shelf. It still starts up but will crash anywhere between a few seconds and ten minutes, otherwise I'd repurpose it as a MIDI player/recorder for my digital piano.
From my recollection of ChromeOS, it seemed more stable and performant a decade ago than Windows 11 today.
Linux? I had rough times with Ubuntu around 10.04, it was much improved by the time I had it on the XPS in 2017, and now when I run Ubuntu on a ThinkPad Z13 or NUC Enthusiast 11, it has far more software and hardware issues than 16.04 and 18.04 on the XPS.
comment 3y ago · link · parent
flashlight, overheating, extremely slippery which mandates a case, small chance of screen lines, no personal need for SD, weird camera choices e.g. focal length of telephoto, notification LED, waterproof but unusable in the rain, I think one vendor sells a screen protector that isn't total garbage, no personal need for Qi charging, basic photography mode has always been awful, antenna/battery/amp/side sense/night mode is nothing special, previous gen microphone config had echo and/or gain problems on Signal calls, and the list goes on and on...
Biggest selling point: photography, right? Sony continues to develop amazing hardware and then takes the most leisurely and conservative approach toward camera firmware/software. Both auto modes on an a6000 are head-and-shoulders above this year's Xperia auto mode, despite being nearly a decade older. The fanboys continue to defend manual mode photography as if every serious picture taker wants to dial in focus, white balance, shutter speed, etc. all on a touchscreen while their toddler hangs from a branch for his/her first time; as if every photo should go straight into Lightroom Mobile before getting sent to grandma or the friend group or onto social media.
Beyond that, the update schedule is suboptimal (Hello, Pro-I!?) and so fast-paced, you're always hoping the next generation or surprise mid-year model fixes most of the details you dislike.
The 5 V comes out and totally eliminates the telephoto which you loved and frequently used. Not only that, everyone compares it to the 5 IV (60 mm) when Gen. II had a 70 mm shooter and Gen. III had a 70--105 mm (which, as most non-prime lenses, was quite soft at the longer range). "You get literally the same detail because 52 MP!" Sure, dude. Now explain why every comparison review of the 5 V telephoto has significantly less detail than even a lowly 3x zoom, even factoring in how 1/9th of 52 is 5.8 MP? (Notebookcheck.net supposedly lets you downscale its comparisons to 2 MP and 4 MP, and the closest-to-Xperia-quality but still better shot belongs to the 3x Galaxy S23.)
You remember being disappointed when the 1 V bundle was WH-1000XM5 and you already owned well-worn WH-1000XM3s. You're even more disappointed when the new 5 bundles inferior cans rather than buds or something wired from Sony's Pro Audio division. The 5 price is always the same as the 1 price when the 5 drops in September, so you wonder why not get the 1, which is superior in nearly every way?
Oh, right, because you know it only gets one more OS upgrade (Material You: Yuck!) and you probably won't get whatever new APK comes standard in the next gen's Xperia 1, plus you've already missed your chance to order and resell the bundled headphones, so the now-300-off price of the 1 is just the same that you would've paid by selling the bundle plus a little depreciation.
Also, where the hell IS this Pro-I successor? Is _that_ going to have a real telephoto and less of Xperia 5's wacky design changes and 4 to 7 years of software support and a screen bright enough to use as a flashlight because, let's face it, Sony will close its mobile division before letting its users put more current through the rear LED. Plus, who knows, maybe next year they finally release crimson or that same sweet shade of orange that sits at the base of their true flagship full-frame mirrorless??
-----
Cost, within reason, is not an issue for me. I would get another Xperia---any model---if it ticked most boxes. My main reason for ignoring Sony as a serious contender? Sony continues to nerf two peripherals or APKs for every one feature they improve, and then I continue to wait for actual improvement while my Zenfone 8 and a6400 slowly age. Every few months, I wonder what phone I would get if I needed a replacement today, and Xperia drops further down the list.
comment 3y ago · link · parent
If you introduce a feature where someone writes
int i=0;
and the IDE goes, "Hey dude, probably writing a loop, should I manage that for you?" and it's C++ 17/20/23 or Rust or Go best practice and looks back a little bit in your code and in its compendium of great project examples to see what the loop logic should/could be...I would probably let the IDE write the loop header for me. And the string formatting. And modify the function I'm writing to support multithreading. And tell me it looks like I was trying to change each instance of pxX to pxY and graphX to graphY but also forgot to change one rotX to rotY.
Hell, if the IDE could read a PDF datasheet and automatically import addresses and bitfields and assign them to variable names, much of my current career workflow would be automated and I could focus mental effort on more creative work.