Better HN
topnewbestaskshowjobs
Log inSign up

PennRobotics

932 karma · joined Sep 18, 2020 (6y ago) · 485 submissions

Submissions

comment 2y ago · link · parent

If you want a clear, modern example of a popular non-Microsoft product doing printer availability wrong, it's gnome-control-center.

Add a printer in Settings. While the printer is installing, click over to the "Color Profiles" tab. If you time it right, gnome-control-center will crash. If you dive into the details, you see that it was trying to enumerate the available printers (it knows one should be there) but that info doesn't exist yet. So it just crashes.

Thankfully, the fix is to just wait a few seconds for GNOME to finish installing the printer and restart Settings. Still, it's the principal app responsible for making your desktop work correctly as an end user with some unknown computing background. In a perfect world, this app should never crash.

It's hard to think about edge cases. It's even harder to imagine your handling of edge cases has its own edge cases. Right or wrong, at least the author is thinking deeper than "bad app, needs to be rewritten to support Wayland"

comment 2y ago · link · parent

There are two ECC types in DDR5: on-die ECC and external.

All have on-die ECC, which always operates. It is relatively rare to have external; something like Kingston Server Premier, and then you would need a motherboard to support it e.g. some of the Asrock ones, or just a server motherboard (MSI D3051, etc.)

AFAIK there's a performance hit using external ECC, as it adds an extra cycle. I think errors get reported to the OS differently. Beyond that, I know nothing.

comment 2y ago · link · parent

A similar design (although it balances on the reaction wheel rather than corner after the initial startup jump) has been made for less than 1000 euros and open-sourced:

https://sites.google.com/view/wheelbot

comment 2y ago · link · parent

In other words, you cease being a startup once you have liquidity: collect profits, IPO, get acquired, liquidation of assets, etc.

comment 2y ago · link · parent

I've seen DOS in JavaScript and now JavaScript in DOS. :)

comment 2y ago · link · parent

People aren't shitting on GTK for no reason. We/I do it because new releases are flawed and GTK is often what you get if you buy a laptop with Linux preinstalled and hardware-certified. Even several months ago, if I scrolled to the bottom of Nautilus with a MX Master mouse, I couldn't scroll back up.

The "nothing" stopping me from contributing is that GNOME source is in an inconvenient location, is more difficult to understand coming from non-GUI microcontroller programming than for the core devs, and is a hassle to build. When I try to install or compile dependencies, I seem to encounter a new error every time, like GNOME Builder not respecting a corporate proxy while using WSL even though my environmental variables are set correctly. (So now, you're learning about "curl -vvv" and maybe installing MSYS instead of figuring out why your mouse doesn't scroll up. Make sense yet?)

Beyond that, I don't want to turn my computer into a machine with Flatpak and multiple GB of devel files just so I can fix the scroll bar that should already work and might be caused by libinput or kernel source.

Something is fundamentally wrong if the GTK scrollbar---one of just a handful of available widgets that would be put in countless GTK programs---doesn't work in a GNOME app.

The last 3 Linux devices I've owned have been an overpriced garbage heap of Certified hardware---running too hot with GPU glitches, OS hanging, everyone's special take on application packaging (aka No More Ubuntu for me), awful sleep and power management, terrible peripheral support, having to learn about journalctl and a laundry list of kernel parameters...

The thing in common with those terrible modern devices that weren't around on my much-loved XPS 13 9370?

Wayland

GTK 4

Pipewire

S0ix

Kernel 6+

I'm not necessarily blaming one specific new technology, but I just today took a video of my laptop (2500 euros, shipped with linux by a major manufacturer) evidently having graphics glitches just from opening Firefox (on a Radeon, just to clear up that not every GPU Linux problem is Nvidia and everyone using AMD is enamored). I have no idea if it's a software or hardware problem---it also happens if I change the UI scale to 125% or plug in a dock---but it's not even the first of ten major problems this laptop has had.

I'd gladly RMA the thing, but then I don't know what to develop on except maybe an Android tablet cross-compiling to x86 plugged into a dock.

My grandpa's 286 was more reliable than an off-the-shelf Linux or Windows laptop today, and the only MBP I ever used left a sour taste.

comment 2y ago · link · parent

Android's own Gmail app is a prime example of shitty use of checkboxes in Material Design (or Material You or Material 3 or whatever the hell it's called now):

There's a list of emails with a checkbox for each email on the left.

If you want to quickly select a bunch of emails---for instance, to label or sort them---you quickly press all the checkboxes.

If you just barely miss a checkbox, you will open the email because you press the larger selectable region (which is, btw, invisible until selected---a nod toward your "prior use" statement) for one email where a checkbox happens to be fully enclosed.

Now, if you are trying to label or sort some messages that have been opened and also some that are unread, you now have one extra task of going back after labeling/sorting and marking the one that you accidentally opened as unread---if you actually noticed in the first place whether it was already opened before you opened it!

On my phone, Gmail checkboxes are about 3 by 3 millimeters. If I dip my finger in coffee and lightly tap the paper on my desk, it creates a circle about 5 to 6 mm in diameter. I've opened countless emails just trying to do routine sorting and labeling via checkbox. I know there are larger fingertips, smaller screens, and people with less stable coordination than mine.

Google's nested, tiny checkboxes are a waste of time and a needless security flaw, as emails often contain info you'd like protected, and cameras are commonplace and usually legal, so it doesn't matter if you are quick to close the message you suddenly opened outside of your home.

The alternative? Hold each message until the checkbox populates, which is noticeably slower but lowers the likelihood you accidentally open a message.

I don't understand why the Gmail "open this message" region isn't a full 5+ mm right of the checkboxes (except maybe at smartwatch resolutions). They shouldn't be enclosed or nested AT ALL! Nobody reasonable is opening messages by clicking the little blank space to the left or top of the checkboxes. (...at least they weren't until they saw my statement and decided to do it from now on out of spite or curiosity.)

I also don't know why Android Studio shouldn't/doesn't harass developers with "Attention! You are committing BAD DESIGN!" alert messages when they try to put small selectable elements on top of other selectable elements that perform an unrelated task.

comment 2y ago · link · parent

Is it that the reflection of the already-on LED (or maybe external light at the right angle) is hitting the sensor used for NOT and then creating a feedback loop to keep the light on when the switch isn't pressed? This happened a few times, and either changing the ambient light or holding the book tightly shut will resolve the issue on my copy.

edit: because the author is here, thanks for the book: an interesting idea and well-executed. Daughter doesn't mind the front page blue LED. I am more amused than annoyed: even a two-transistor circuit needs debugging sometimes.

comment 2y ago · link · parent

Yeah, something wrong with the filter.

Google marked several Samsung mobile phone order confirmation emails as phishing messages a week or two ago. Nobody sells more Android phones than Samsung, so they should be one of Google's top partners to accommodate correctly 100% of the time.

comment 2y ago · link · parent

I have been screwing around with Microsoft C 3.0 in DOS. What a breath of fresh air it is to install Vim for editing and still have nearly all of its modern functionality (macros, syntax highlighting, folding, splits, regex, visual mode) with absolutely NO keystroke changes.

comment 2y ago · link · parent

Looks like https://github.com/Neverball/neverball and https://www.neverball.org

comment 2y ago · link · parent

This feels misleading. As soon as you add a minimum price, there are 236 phones---implying those are probably prohibitively difficult to buy in the U.S. or West Europe.

Cursory browsing... There's Infinix (serves mostly Africa and Asia) and Tecno (popular in India) and a few other brands that are mainly released in Asia. Beyond that, can you really count all 14 "Redmi" as separate phones when some only differentiate "5G" or "not 5G"? Same with various "Fan" or "VIP" editions, which typically tweak one or two peripherals?

Are you really in the market for vivo, Realme, TCL, Oukitel? Or a specialist/rugged brand like Ulefone or Doogee?

Ironically, the most popular handset made outside of China for a worldwide market is the Galaxy A24, which has a horrendous single on-board speaker. So much for audiophilia! (In fairness, as soon as you restrict Chinese and Hong Kong headsets, you're down to just a few brands. Weird tangent, it's nice to see Nokia putting out spec-competitive mid-market Android phones. I might get one next because Asus and Sony are sticking with two OS upgrades.)

Then I fell into a rabbit hole and plotted the GSM Arena prices of phones with jacks and without: https://gitlab.com/PennRobotics/permalink/-/raw/main/handset...

From that, I can fathom that headphone jacks are largely bullshit features tacked on to devkit-derived bargain bin phones, which creates a huge peak in jacked sub-$150 units. From $300 up, where you expect good peripheral selection and a normal Android experience, it's clear that headphone jacks are in the minority.

I was in the same boat: gotta have headphone jack. The best player here was LG. Keyword: was. Now I'm convinced that until phone makers actually prioritize wired audio, the better path forward (and which won't be long-term obsolete) is picking the smartphone with the best overall specs/support plus a USB splitter and whichever grade of USB DAC you prefer to drive your headphones. It's easier for the manufacturer to waterproof their case and gives more room for battery, etc. This also lets you quickly transfer your preferred hardware to a tablet/laptop/desktop, which seems like a pain unless you're in love with something high-impedance like HD600, ATH-R70, DT990, etc.

comment 2y ago · link · parent

Interesting… I wonder if this is the reason I need to restart Windows if I save files in my project directories during a Podman-based (via WSL) compile, which causes a hang that I've—until now—blamed on Podman.

comment 3y ago · link · parent

I tried again last night with just arecord, and that worked without issue on both 44100 and 48000 Hz. Something is amiss in Ardour, Reaper, and Audacity, so I suspect my sound server is just misconfigured and each DAW is using the misconfigured bit instead of direct device access. I'll try again later with dnf upgrade and a reboot.

Thanks for the recommendation. I'll put a watch out on that MXL. (It's not in my usual stores.) Noise, I can probably FetHead much of it away.

comment 3y ago · link · parent

glad to see PipeWire declaring itself production-ready, and I mostly agree:

Lack of S/PDIF was one of the many reasons I switched away from Fedora to Windows for a year (the others include power management, Nvidia, a few USB-C devices, MSVC, HDR, wireless game controllers, and audio equipment that doesn't run so well via Wine). I never noticed echo cancellation, but that's because I switched to using a USB lav mic years ago.

It's good to see rapid progress in these areas, although I wish there was a more intuitive and likely graphical setup for Pipewire/Wireplumber. (I haven't checked for the last year, maybe it's happened?)

Yesterday, I plugged in a single-sink, single-source USB audio device---the Shure MVX2U---using an up-to-date Fedora 39. It's an XLR/USB adapter that basically lets you plug in any standard professional microphone into a USB port. While there are two USB endpoints---one for config and the other for class-compliant audio---it's a really simple device.

On my Android phone? Works. On Windows? Works. On Linux? Fail.

No matter what audio driver I use, the sample frequency is off by 2x causing stuttering and playback that is an octave higher than recorded. Beyond that, the configuration software running in Wine doesn't detect the USB endpoint used to set gain, EQ, compression, monitor volume, etc. (I've already captured all of the config packets and hope to one day get around to writing a Python-based config client.)

So ... back to the regular grind of figuring out which group is actually responsible for unexpected device behavior, submitting bug reports, researching which workaround or conf file or udev rule or group membership is responsible for improperly matching sample rate and passing config data to the interface, and more complaining about how desktop Linux still falls short of expectations despite near-universal (albeit well deserved) praise of Pipewire, Wayland, Flatpak, Wine, and other modern improvements, and then getting chastised for not doing my part to contribute---despite the aforementioned USB capture and chipping away at each part in my spare time: https://gitlab.com/-/snippets/2595361#note_1620254493

P.S. while it would be nice to pin this on Shure, they're slow enough to release software and firmware upgrades for PC/Mac that would affect all end users (hanging software, audio distortion, high noise floor that's probably filterable, making the monitor sink disable-able, porting this adapter to their existing Android app). No one else makes an inline XLR-to-USB device. I guess it's on me or some other poor chap to get this device working on Linux until Shure gets caught by the competition (probably Behringer---yuck)

comment 3y ago · link · parent

TAOCP is about like reading an encyclopedia; a very well-written, black and white encyclopedia with not-necessarily-clear illustrations.

For instance, I just opened randomly to the binary tree traversal material in Vol. I. It's very mathematic or formal, e.g. "T2. [P = Λ?] If P = Λ, go to step T4." and so on. To fish out some of the more interesting details, you have to look through the questions and then flip to the answers.

Meanwhile, https://en.wikipedia.org/wiki/Tree_traversal has the same information but somehow more clearly presented.

If I flip to other random pages and scan for 30 seconds, I can't find much that is actually interesting---particularly in the early volumes.

-----

The Art of Electronics is more my speed, as it's a collection of real-world applications, deep dives into each component type, quick comparison tables, and clear overview of a specific design's pros and cons. It's as much interesting to read through as it is useful as a reference.

I can flip to basically any random page of The Art of Electronics and find something eliciting, "Oh cool." I can't say the same for TAOCP.

comment 3y ago · link · parent

DCP-L3550CDW

comment 3y ago · link · parent

One caveat that is easy to miss: Files that are shared with you are not exported if you are over quota or are part of an organization that is over their quota. You either need to manually download everything locally or find a different tool for getting these files.

comment 3y ago · link · parent

printing from a smartphone over Wi-Fi with no extra drivers

:)

comment 3y ago · link · parent

Partial template source of the slides is available at https://github.com/jacobneu/150lectureNotes (For the uninitiated, it's a Beamer theme, compiled with LaTeX)

Some assembly required; use the instructions from https://github.com/jacobneu/alleycat as inspiration, use the scripts (e.g. startLecture) and Makefile in /crucible

comment 3y ago · link · parent

Not exactly exercises, but there's https://smlhelp.github.io/book/docs/ which supports the course and explains each of the concepts as well as library documentation at the official class site, http://www.cs.cmu.edu/~15150/resources.html

It looks like their current workflow keeps exams and homeworks off the internet effectively, but there's a 6-year-old codebase at https://github.com/zhengguan/15150-1 with 10-year-old homeworks and such.

comment 3y ago · link · parent

Standard ML (sml / smlnj)

The instructor is clear, energetic, has a decent flow in the first lecture e.g. emphasizes the important points with vigor and repetition, switches media every 10 or 15 minutes, has a conversation with students. Slides are relatively noise-free and are informative; terms to know are highlighted.

I haven't watched a full functional programming lecture series yet, but I'd gladly audit this one.

As a "new" instructor (as in, not a TA anymore) he's got a bit of teaching talent. I hope he keeps a tight feedback loop and improves every year and continues publishing material.

comment 3y ago · link · parent

Quiz Duel (MAG Interactive) did this.

Partner wanted to play all the time. I discovered the videos ads were using up all of my prepaid data before the end of each month. I bought the premium version, which was a one-time purchase "back then".

They launched an app revision that had a handful of very noticeable bugs. Then they changed to a new app (rather than upgrade), pushed all the users to the new app, and made the ad-free version a subscription. What do you get for your monthly payment? Well, nothing significant, like you'd expect from a subscription.

In fact, they essentially crowd-sourced their Q&A content by letting users submit feedback when a pair was inaccurate, so users are fixing problems in the content for free.

Server usage?

Not to minimize the daily work of countless devs, but a quiz game is essentially a handful of databases, a dollop of quite straightforward logic, some static UI visuals, and then content scraping to fill the main Q&A database. The logic and UI visuals almost never need a rewrite. DynamoDB is pennies per month per user, and if you're a real POS you can use long advertisements to push away users temporarily when your RCUs/WCUs are getting close to a scale-up threshold, which has the nice side effect of increasing revenue if everyone watches the long adverts anyway.

I guess they expected a percentage of users to bail switching to subscription, and that doesn't cost them a cent. You said it best: shady

comment 3y ago · link · parent

Microsoft and Intel are telling us we're holding it wrong. Laptops and PCs should behave like smartphones.

The irony is that an Android tablet---about as smartphone-like as you can get with a laptop-sized display---never has heating problems while sleeping.

comment 3y ago · link · parent

Are there any current laptop models with S3? Desktop?

comment 3y ago · link · parent

How do you propose patching security vulnerabilities in deployed devices?

comment 3y ago · link · parent

That's a $225,000 dumpster as of 2007: https://www.nytimes.com/2007/07/12/us/12parking.html

comment 3y ago · link · parent

Taking the Trash Off the Streets: Innovative Waste-Management Solutions for New York City (2023)

https://media4.manhattan-institute.org/wp-content/uploads/in...

1
567
17