Better HN
topnewbestaskshowjobs
Log inSign up

PennRobotics

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

Submissions

comment 3y ago · link · parent

Their issues are entirely consistent with mine on the first-gen ThinkPad Z13:

Stylus was wonky for a while. ForcePad only recently got full functional parity with Windows (although I haven't tested this yet). 200% scaling is ridiculous looking but fractional doesn't work well. Sound after suspend has issues and is a pain to set up on something like Arch. There have been hardware problems (sections of keyboard unresponsive even after hard power-down, resolves after plugging in a wall charger), takes 28 seconds from power button to desktop, drag-and-drop into Firefox doesn't work...

The list (which I have in a private Github repo) goes on and on...

In contrast, the Dell XPS 13 9370 from a few years back was so rock-solid, I was duped into believing that laptop vendors finally figured out Linux.

It's a shame, because the head of Linux at Lenovo genuinely cares and works hard to add support across their lineup, but it seems like he has to cope with whatever hardware and whatever team he has been given, and Lenovo introduces at least a dozen generation updates a year, it seems...

comment 3y ago · link · parent

I did the upgrade. Bluetooth setup is as painful as before: about two minutes and thirty keystrokes. You have to advance through the modals (no Ctrl+Alt+T into terminal until setup is complete) and open the Bluetooth panel. When you type <Super> + "blue", the search bar suggests a bunch of matches from the Characters app (blue heart emoji, blue circle, whatever else) and searches from a second app. If you go into Settings but not the Bluetooth panel directly, you have to Shift+Tab about ten times to select the mouse for pairing.

(I swear there was a distro that would autoconnect to the first input device it found in pairing mode, but maybe that was a pleasant dream I had.)

gnome-control-center crashed when I disabled the (nonfunctional, for me) monitor color profiles. It then crashed again when I disabled scrollbar overlay (after disabling the overlay). When I would try to re-enable scrollbar overlay, Settings would crash without re-enabling. After going through the very lengthy backtrace process (downloading symbols presumably, "sign up", "make API key"... I got a "Processing Failed" error. Then, Software crashed when disabling Flatpak.

Most amusing to me was submitting a bug report that libreport had "Misbehavior". Right now, the next morning, my Problem Reporting dialog has 18 system failures or application crashes.

Updates in the Software app are extremely unintuitive: there's a very thin progress bar built into the bottom of the Cancel button. No "time/items remaining" or "waiting for XYZ repository"--- just hope that the thing is working.

The accessibility menu shows up even if you disable "Accessibility Menu" if you have any accessibility option set, such as Large Text---which just makes sense on a monitor over 160 pixels/in. (200% scale is too extreme to be usable)

So far? Nice visuals but unimpressive stability and functionality.

And then there's Nvidia. The install took 3 hours and that's with the experience of doing it a half dozen times before. (In fairness, this time I was using Secure Boot.) In 37, the nvidia-akmod package would work. This time, for some reason, not. Wayland is still disabled by default for the Nvidia proprietary driver, which is good because when I force Wayland, I get a segfault running nvidia-settings (which runs fine on X).

I know... I know... "It's your own fault! Nvidia sucks! No, really, Linus said so himself!" except I actually want to be able to view 10 bits per pixel on multiple 4K 60+ Hz monitors without visual glitches and without sounding like Cape Canaveral on launch day. My Thinkpad has a Radeon and OLED, and that system has had at least as many pain points as the Nvidia desktop. I'm trying to use a graphics card from the GPU market leader on a computer built by the processor market leader. Both Nvidia and Intel have their own Linux distros! The fact that my Intel computer doesn't have TOSLINK support unless I install Windows or no HDR unless I install Windows or no stupid case LED customizer unless I install Windows, etc. is extremely frustrating.

Also, odd that the default F38 Beta wallpaper isn't choosable in the Wallpapers dialog. You have to manually navigate to its path, if you know where that is...

-----

One positive: Files does proper scrolling now with the MX!

And Firefox is still a distro package, which is nice because the snap not working properly with a discrete GPU is one major reason I've stopped using Ubuntu.

comment 3y ago · link · parent

There's a power dynamic. Why should we have public sites like Rate My Professors but professors can't have a public Rate My Students?

comment 3y ago · link · parent

I'm excited to fresh install F38 Beta if only to provide the counterexample to this "transition is painless" statement.

Every startup, I need to "killall gnome-control-center" because it loads and hangs. (I also can't access "About" and a backtrace basically tells me I'm in a glib application.)

The default file manager gets wonky scrolling up with an MX Master 3. I replaced it with something else but now double clicking a zip file will open the terminal to my home directory.

Some apps (GTK or otherwise) need workarounds or "downgrading" to X11 because of using a 30-bit monitor: Room EQ Wizard, anything based on JetBrains, OpenSCAD, GIMP. That was a lie, Room EQ Wizard doesn't work at all after installation. No workaround to be found.

Anything related to codecs or graphics has been a headache---whether aptX, H.265, VP9, WebGL, ...

-----

If these problems could simply go away, I'd be a much more productive coder.

comment 3y ago · link · parent

https://librosa.org/

https://github.com/librosa

audio and music processing in Python

comment 3y ago · link · parent

As a mechanical engineer, Statics (a course all about calculating internal forces of non-moving structures) was the course that made the difference. It had almost nothing to do with the content---I think about internal forces of a thing about once a year---but that was the course where a structured and reliable engineering process was first introduced:

• Draw the full system

• Split into parts

• Build a free-body diagram of all parts

• Build an equation for every point of interest. For statics, the sum of all forces is zero and the sum of all "torques" is zero. Start here every time.

• Identify all "knowns" and put them in one place.

• Identify all "unknowns" and group them in a second place.

• DO NOT PROCEED UNTIL # of equations = # of unknowns! If this isn't true, you need to think harder about what equations are missing, start making assumptions, or change the points of interest (e.g. from method of joints to method of sections).

• Be prepared to defend your assumptions (gravity, friction, mounts, reference frame, material properties)

• Make sure all signs "match" and make sense.

• Solve, step-by-step, equation-by-equation.

• Make sure all units match and make sense.

• Sometimes ignore intuition. Parts that look like tension can be compression and vice versa. (If you need an example, those "impossible floating tables" can confuse a lot of people's intuition about force equilibrium.)

• All work should be clearly organized and clearly marked---especially the answer, with proper units.

... and as a bonus ...

• You can't push a rope.

comment 3y ago · link · parent

Sorry for length. Here's what I just experienced using one of my vendor's CMake builds:

(Windows)

I open a console, make a build directory, and run cmake.exe, which generates MSVC project files. I open these in Visual Studio and already realize there's going to be a problem because the target is "Debug x86" even though I passed -DCMAKE_BUILD_TYPE=Release and this would be cross-compiled for Arm Cortex-M. (The vendor should have this in their CMakeLists.txt, so either they had a large misstep during an easy CMake step, CMake is not intuitive enough for use by a large semiconductor firm, or CMake failed to inform MSVC that the target is ARM.)

For shits and gigs, I press build. At least a dozen times: Unknown compiler.

(I have two different Arm toolchains... one contained in PATH, the other in a standard install directory.)

Now... into Configuration Manager, I change the platform to ARM, but the new error is "cannot open include file". Thanks, CMake... At this point, I can go into Project Properties, manually add the include directory, and proceed with trying to build. Last time I did this, there were more errors and missing files.

At some point, it's easier to just put all of the files in a single directory, create an .o out of anything that looks compilable, link it against anything that looks like a linker script, and try to compile a binary with all those objects and scripts.

-----

(WSL)

(The Arm toolchain is installed via package manager and is in my path.)

Running cmake .. -DCMAKE_BUILD_TYPE=Release (it really is a pain typing that with the shift key held, and it's too short for Caps Lock plus I've mapped Caps Lock to a bunch of AHK macros):

    -Found assembler: /usr/bin/cc
Alright. Already, this is problematic. For completeness: "make" results in #warning Unsupported Architecture.

At this point, I need to know enough about CMake to "create a toolchain file", according to StackOverflow. So I've done this---manually specifying arm-none-eabi-gcc as my compiler plus a few other possibly correct flags---but honestly, I have no idea, because CMake probably has more possible non-custom flags than mpv!

    rm -rf build && mkdir build && build
    
    cmake ... -DCMAKE_TOOLCHAIN_FILE:PATH=...
The correct compiler is detected, but I'm still getting "Unsupported Architecture". Wat?

-----

I can run ccmake to try to fish out all the possible settings. When I change each of the tools to arm-none-eabi-*, I can't successfully configure (to exit ccmake) because of an error:

    The C compiler
    
      "/usr/bin/arm-none-eabi-gcc"
    
    is not able to compile a simple test program.
...and eventually, undefined reference to _exit

So, I can probably get this to keep going by passing -k to gmake, but in ccmake (which oddly only sometimes will reset only a few of the previously changed settings, such as CMAKE_VERBOSE_MAKEFILE) I do not find the argument for passing a flag to make, so this is a dead end.

-----

Alternatively, I can dive into the manufacturer's CMakeLists.txt, but it's a rabbit hole. The base-level file is short:

    cmake_min...
    include(Config.cmake)
    enable_language(C ASM)
    project(...)
    include(${CMAKE_CURRENT_LIST_DIR}/cmake/generated_src.cmake)
Config.cmake has one line: the path of the toolchain. I try /usr/bin and repeat. At this point, I wonder if every CMake expert has also deleted and recreated "build" three times by now. (Spoiler: this didn't change anything.)

Along the other road, the cmake directory contains three cmake files. In one file, arm-none-eabi-gcc is hardcoded as the compiler (along with friends: ranlib, ar, objdump, etc), so the possibility of using armcc seems slim. In the second file, I see the flags that should stop all of the errors, such as -mcpu=cortex-m33 and the CMSIS include path and everything else. However, this isn't a standard variable name but something like MFRTOOL_CMAKE_CXX_FLAGS.

The manufacturer's (Windows-based) tool might clear all this up. Maybe not. But... Everything already exists in plaintext in the project directory to compile, if CMake could put the pieces together. Anyway, why use a CMakeLists.txt at all if you need an external tool? Why not have a better error message if a tool is required?

(The answer, of course, is that CMake requires more than cursory learning and---as with any unintuitive language---most users don't want to learn more than necessary or more than StackOverflowable. Plus, I can imagine the original CMakeLists.txt developer for this BSP doesn't have the resources to dump into getting this working with every Arm compiler on every host OS for every board in their repertoire.)

The final cmake file includes all source using GLOB_RECURSE. This tells me that my earlier intuition of moving all source into one directory and compiling "the old way" (a 20-line Makefile) would probably be the least stress and least rabbit holes.

-----

In the end, I don't know if I should blame the vendor, blame CMake, or blame myself and lack of tool knowledge. I DO know that I can throw together a Makefile in under 30 minutes and it will definitely take more than 30 minutes to get CMake to compile in either Windows or Linux.

-----

If I tell a person, "use the tools around my house plus this book to make an acoustic guitar" and they throw out the book and go straight to the metalworking tools to shape the body, I'd have serious doubts about their ability as a maker. This theoretical person is how I feel about CMake.

I have to explicitly (in a very verbose, clunky, uppercase flag format) tell CMake how to use my (very standard) tools to compile an essentially "hello world" CMSIS package. The author is right. It sucks.

comment 3y ago · link · parent

There are (medical) shoe attachments for modifying gait: https://digitalcommons.usf.edu/usf_patents/856/

comment 3y ago · link · parent

RPi specifies the target voltage would be 3.3V. This would make VCC optional. The debug port speed can vary quite a lot in SWD and JTAG.

As far as professional debuggers...

Those typically have much larger buffers, much larger transfer speed, port voltage threshold can be set higher than 5 V and even under 1 V, data and instruction trace (and often code coverage), the ability to debug multi-core (synchronous or async), recording performance monitor counters, an interface that is easier to use than gdb, built-in workarounds for unconventional attach sequences (and info sharing with manufacturers so the latest chip is supported at or before its unveiling), instruction set simulation, support for virtual targets, task/OS awareness, "unlimited" on-chip/flash breakpoints, add-ons for recording/protocol decoding/triggering based on external signals (aka scope probes), more port options e.g. Aurora, a scripting language and modularity that lets you take debugging expertise from one architecture to an entirely new one e.g. PowerPC to RISC-V, support contracts so that their customers aren't "on their own" when something isn't working with the debugger or target...

There is a huge price disparity, but for the companies with a vision to get their product to mass market with the latest chip IP, it really does not make sense to give them only JTAG wigglers and OpenOCD. If you know your domain is something straightforward from the previous generation of popular Cortex-M, a cheap probe just makes sense. A company on a budget can get away with one professional debugger and a whole collection of slower probes that you can get working with CLion or Eclipse---a bit like having a wood shop full of basic power tools plus one fancy CNC machine.

In software terms, the difference (to me) is a bit like Mathworks vs Octave, AutoDesk/SolidWorks vs FreeCAD/OpenSCAD, Adobe vs GIMP/Inkscape/Darktable. I use the cheap stuff at home, but things are often three-click trivial in the paid software that would take an hour or more to figure out on the low- or no-cost front.

-----

What to look for:

* before anything else, check if you need something that is not found on the onboard debugger, if one exists

* ease-of-use (works with your IDE, loads symbols from your toolchain, easy to manipulate memory/list instructions/watch variables/navigate stack/set complex or conditional breakpoints)

* target voltage

* port data rate

* onboard buffer size, unless your probe can stream data as fast as it reads. (The pro debuggers will use Ethernet or USB 3.0+ but still have between 0.5 and 8 GB, often)

* trace capability (speed, max port width, buffer size, supported protocols), if the chip/port supports it

* supports internal and (if needed) external flash input/output/breakpoints

* if needed, works with multicore (SMP, AMP, heterogeneous AMP)

* data disassembly, instruction set simulation

* lets you do energy profiling or performance monitoring, if important

* advanced hardware techniques, like adjusting the exact timing and voltage of each debug and trace pin independently so you can still trace on a board with less-than-optimal EM design (mismatched trace lengths, weird pin impedances)

* software techniques for speeding up data transfer (computing checksums to skip unneeded flash I/O when a target has this info available)

* existence of (and conformance to) any license restrictions

-----

You'll find the cheapest USB things just use USB 1.2 (1.5 MB/s), 3.3 or 5 volts which is fine for a lot of popular targets, can still read SWO, might be able to read an onboard trace buffer, let you connect via a gdb server to your preferred IDE, can do the basic JTAG/SWD communication. You either get jumpers or the right ribbon cable for your target, which would usually be MIPI-10 or maybe ARM-20 (so you basically need one cable plus an adapter PCB if you plan to debug many different board types and not do extensive tracing)

I don't know enough about the free scene, but I suspect that scripts are what determine whether a Cortex-M is supported in 90 percent of cases. If you need to do a weird JTAG sequence on a second access port, a script will almost always open that door. If you need to hold the clock line high while communicating serially via TDO and TDI? That's a case that might not be supported by a 20 dollar debugger.

comment 3y ago · link · parent

This just needed a few corrections to get running:

* solve_cover should simply be solve

* The solution is a list with elements in the form (digit, x location, y location), zero-indexed. So I changed the ending some:

  out = [['0','0','0','0','0','0','0','0','0','\n'],
         ['0','0','0','0','0','0','0','0','0','\n'],
         ['0','0','0','0','0','0','0','0','0','\n'],
         ['0','0','0','0','0','0','0','0','0','\n'],
         ['0','0','0','0','0','0','0','0','0','\n'],
         ['0','0','0','0','0','0','0','0','0','\n'],
         ['0','0','0','0','0','0','0','0','0','\n'],
         ['0','0','0','0','0','0','0','0','0','\n'],
         ['0','0','0','0','0','0','0','0','0']]
  
  for d, x, y in solution:
      out[x][y] = str(d)
  
  print(''.join([a for b in out for a in b]))  # Flatten 2d array
There's probably a more elegant/pythonic way to do each code block, but this will get you a valid solution matrix: (Format lines were added during posting.)

  842|713|695
  913|652|847
  675|498|213
  ---+---+---
  354|267|189
  189|345|726
  267|189|534
  ---+---+---
  521|974|368
  438|526|971
  796|831|452
It is a bit interesting seeing the similarities and differences between the posted article and Norvig's Sudoku solver[1]. I've always appreciated how Norvig is concise and still has intermediate representations for debugging (e.g. shows all of the possible digits for a cell that hasn't yet been solved). The article's solver is MUCH faster in non-exact cases: The "multiple solution" example from Norvig (which Norvig states takes 3 minutes to solve) is done in 10 ms using this solver (plus, it finds a different valid solution), and the "impossible solution" (which fails after 24 minutes) gives a StopIteration after 90 ms.

[1] https://norvig.com/sudoku.html

comment 3y ago · link · parent

I must be missing something. malib does not have solve_cover, and this specific function is used without definition in the Sudoku example. The shown solution seems to be the order in which the digits are solved and not the actual digits in their correct location, because the solution matrix has repeat digits everywhere, and the first 21 digits are the provided solution digits in order.

comment 3y ago · link · parent

    This company helps people better understand websites. It does this by using a technology called GPT-3. People can use the button on the website to get an explanation of the website they are looking at. They can also click the button to explore random websites.

comment 3y ago · link · parent

There are many great suggestions---some that I might argue are better than what I have to add (Lewin, Sapolsky, Sedgewick, Boyd)---but I have some to add that I enjoyed because they were extremely well-taught:

* Donald Sadoway's Solid-State Chemistry lectures: https://www.youtube.com/playlist?list=PL36EC6A6180271B0F

* Anything by Patrick Winston, e.g. "AI": https://www.youtube.com/playlist?list=PLUl4u3cNGP63gFHB6xb-k...

* robert ghrist's calculus lectures, which were somehow clearer/more engaging than others I had found: https://www.youtube.com/playlist?list=PLKc2XOQp0dMwj9zAXD5Ll...

comment 4y ago · link · parent

At least for my on Fedora 37, having `tlp` installed/configured made the GNOME settings dialog only allow power saving mode. There wasn't much indication of why, just a similar bug report (and associated fix) somewhere online. After uninstalling, I could again select all 3 power modes.

comment 4y ago · link · parent

The smallest nitpick: The accepted variable for frequency is f or nu (ν). The formula and units are correct in the article, but lowercase omega is understood as angular frequency and would take the place of 2πf. I also got 3 hours of sleep, so I could be wrong.

Also, thanks for the great article and a possible alternative to my own SDL_mixer woes!

comment 4y ago · link · parent

It's not done very well, though

comment 4y ago · link · parent

Some scientists at Max Planck are aiming to ethically gather diverse image data. You can learn about this effort, submit your own pictures, or get paid (Euros) to collect pictures from your personal network. Details are in the link.

288.

MPI-Is Diverse Image Dataset Collection (Faces)(faces.is.mpg.de ↗)

1 points · by PennRobotics · 4y ago · discuss

comment 4y ago · link · parent

... until it gets to

    i  = 0x5f3759df - ( i >> 1 );

comment 4y ago · link · parent

Lauterbach | DevOps, IT Admin, Embedded OS/Hypervisor, FAE, Software Dev, VHDL Designer, Electronics Technician, plus business roles and work-study/internships | Full-time | Höhenkirchen (near Munich, GERMANY)

LAUTERBACH designs and manufactures DEBUGGING tools (modular debug/trace hardware, software, and simulators) for a wide range of microcontrollers and SoCs---from legacy designs to the next generation of silicon from Arm, RISC-V, Infineon TriCore, and more.

Great work environment: helpful and knowledgeable coworkers, superb work-life balance (lots of vacation, home office flexibility, weekends off), industry-standard fair wages and work contracts, high autonomy alongside productive collaboration in small teams, private or spacious two-person offices in a modern and well-equipped facility, 600 meters from Munich's rapid transit system, a subsidized in-house restaurant, no-cost fitness studio, challenging yet fulfilling responsibilities, plenty of opportunities to learn and evolve your career, and the Bavarian Alps visible on the horizon.

Job listings are in German, and English speaking debugging experts with limited German knowledge are also welcome. You can apply online and/or reach out to someone at Lauterbach using the application website.

https://career.lauterbach.com/

comment 4y ago · link · parent

This has been posted 5 times already in the past 3 months.

comment 4y ago · link · parent

I understand the tradeoff is all I mean. In fact, probably the biggest win is the BIOS setting that lets you choose whether you want function keys or media keys, since each user chooses their preference.

Your use case is definitely different than mine. I constantly want to adjust volume or mute when someone walks in or adjust brightness if I'm in the dark. The only time I really need function keys are in OpenSCAD and maybe once or twice a day in other programs. If I'm doing a lot of batch edits in vim, I'll nnoremap to the function keys if I have a full keyboard. For closing a window, it's almost always Ctrl+W or Ctrl+Shift+W, for refresh it's Ctrl+R, etc.

comment 4y ago · link · parent

You answered your own question. Non-Linux users already have plenty of options e.g. M2 Air.

If I need a high-performance laptop with Linux---and especially if extended distribution support is important---I'd be wiser to go with the first one certified against the latest LTS rather than trying to convince a "built for Windows" laptop to work: one expected to provide full ACPI access/control, a working fingerprint reader, S/PDIF, a working graphics stack, performance optimizations.

As one example: If you're a university robotics program, it makes sense to get 20 of these at the B2B price tier for your incoming students and they'll >>just work<< for the entire duration of someone's graduate degree and beyond. (Unless something changed recently, Northwestern does this.)

As far as function keys, I also hate capacitive buttons ever since having a touch bar on a work computer. Using vim, you're constantly pressing the glass... nothing corner.

For laptops, it is sensible to default the top row to various controls (brightness, media keys, airplane mode, etc.) rather than F1, F2, etc. But once you have a dedicated Fn key, why not make F1 = Fn + 1, F2 = Fn + 2, etc.? It would take a week of getting used to but makes the most sense---especially if your top row of "real buttons" is now the number keys.

comment 4y ago · link · parent

https://en.wikipedia.org/wiki/List_of_countries_by_incarcera...

Sweden: 36 homeless + 7 incarcerated per 10k

U.S.: 17 homeless + 64 incarcerated per 10k

comment 4y ago · link · parent

No. I'm not sure whether Xwayland or Wayland is used, and that's part of the problem.

In about:support, I have MOZ_ENABLE_WAYLAND=1 but also MOZ_USE_XINPUT2=1, which I haven't noticed until right now. xeyes doesn't respond at all (window freezes) so I can't tell which backend is actually in-use via xeyes. Finally, I'm using the package manager Firefox, and I'm not sure if that's different than the snap/flatpak.

In the OpenSCAD case, I've tried installing various qt-related and wayland-related packages and setting QT_QPA_PLATFORM or QT_DEBUG_PLUGINS, but this either ends in a crash or the same slow behavior.

comment 4y ago · link · parent

I have a 30-bit 4K monitor. It's been an adventure learning about environmental flags and how "the root problem is upstream/downstream from our project"

comment 4y ago · link · parent

I think there are two group opinions in this discussion and both are correct: The concept of Wayland is great and well-implemented. The implementation of Wayland is bad. Now if only the first group would trust the second's experiences with Wayland. It really is trash.

Firefox will stop updating the window contents but will still accept clicks and keypresses. You can either start a new Firefox process or go to the application switcher to see the updated window contents.

OpenSCAD editor has a one second lag between a keypress and the character appearing.

Those are the two that affect me everyday.

comment 4y ago · link · parent

* for native software

For microcontrollers, my go-to is a debugger (for complicated/large code or when real-time trace is needed e.g. moving parts) or blinky LED (simple code or tight memory constraints). print() is pretty far down on the list unless I'm flashing via USB and also already using serial communication.

Disclaimer: I build hardware debuggers and am obviously biased.

comment 4y ago · link · parent

1.5B unique users seems crazy, although I'm one of the users in that statistic because I have accidentally clicked on a few of those.

I've never been a fan of watching portrait videos on a landscape monitor, and that's what most of the "shorts" I've experienced have been. Also, I think my attention span is too long to be part of the target audience.

1
91011
17