HNHacker News
TopNewBestAskShowJobs

realharo

993 karma · joined October 11, 2013

https://www.holak.net/
submissionscomments
realharo··on My class required AI
What about simply helping your child with their homework at all? That could also count as cheating if you go with a strict interpretation.
realharo··on Type Inference That Sticks
VS Code also supports inlay hints for both inferred types, and parameter names https://code.visualstudio.com/docs/typescript/typescript-edi...

I think it's turned off by default for most languages though - probably considered unnecessary, as you can always just hover over the variable. Also, unlike the JetBrains IDEs, I don't think you can Ctrl+Click on such a hint to navigate to its definition in VS Code (like you can in normal code).

realharo··on ESP32 Buyer’s Guide: Different Chips, Firmware, Sensors
That has not been my experience at all, neither with a dev board (https://www.dfrobot.com/product-2566.html), nor with a custom PCB using the ESP32-C3-WROOM-02 module (https://www.mouser.com/ProductDetail/Espressif-Systems/ESP32...).

No button presses necessary (there are no buttons even, I have a slide switch on my PCB but almost never need to use it), everything resets automatically (except when it's in deep sleep, then I need to unplug it and plug it in again), I see log lines from the very first line in `app_main()`, etc.

I'm using a recent version of the ESP-IDF framework including all its tools (there is a VS Code extension that has a `Build, Flash and Monitor` button, I think all the operations are just run using the `idf.py` script, but not sure).

realharo··on ESP32 Buyer’s Guide: Different Chips, Firmware, Sensors
As far as debugging goes, you basically need to run `idf.py openocd` to start OpenOCD, and then connect to it with the gdb that's part of the ESP-IDF SDK, by default it should be listening on port 3333. At least that's how I have it set up in CLion.

There is more info here https://docs.espressif.com/projects/esp-idf/en/v5.0/esp32c3/..., the ESP-IDF VS Code extension should have this doable with one button click.

realharo··on ESP32 Buyer’s Guide: Different Chips, Firmware, Sensors
Not much to be said, it should "just work" out of the box. You plug a board in (for example this one https://www.dfrobot.com/product-2566.html, I've seen it in a bunch of online stores in Europe), and it should give you a COM port on Windows, a `/dev/cu.usbmodem...` device on macOS, and something similar on Linux. Then all the usual tools should work as normal, at least the ones that come with ESP-IDF.

On the chip or the modules, this is pins GPIO18 and GPIO19 that just need to be directly connected to USB D- and D+. Of course the chip still needs between 3.0V and 3.6V for power, so you can't power it from USB directly. If the firmware is just rebooting all the time (sometimes the case on a fresh module), you may need to pull GPIO9 low to enter bootloader instead (https://docs.espressif.com/projects/esptool/en/latest/esp32c..., there is a button for this on some boards), but otherwise you can just flash it in normal mode too.

realharo··on ESP32 Buyer’s Guide: Different Chips, Firmware, Sensors
ESP32 also has pretty good Rust support https://github.com/esp-rs
realharo··on ESP32 Buyer’s Guide: Different Chips, Firmware, Sensors
If you're just making HTTPS requests to your own servers, you can simply include the root certificate of the CA you're using, pass it to the config when calling `esp_http_client_init` (https://docs.espressif.com/projects/esp-idf/en/latest/esp32c...) and then you probably don't have to worry about it for a long time, it will work through your regular certificate rotation.

See https://docs.espressif.com/projects/esp-idf/en/latest/esp32c...

If you need to make requests to other people's servers, there is a tool to generate and include a bundle from Mozilla, that you can update in the future as part of an OTA update (https://docs.espressif.com/projects/esp-idf/en/latest/esp32c...).

realharo··on ESP32 Buyer’s Guide: Different Chips, Firmware, Sensors
ESP32-C3 also has built-in USB serial/JTAG functionality (https://docs.espressif.com/projects/esp-idf/en/latest/esp32c...).

Unlike the ESP32-S ones though, that's all it does on the C, so you can use it to program and debug the thing, but you cannot make your own USB device with it.

realharo··on AI is in danger of being swallowed up by copyright law
>It's very possible that a judge will rule that AI models do not violate copyright

Would that mean you can simply use one AI (or more) from anyone else to train another AI?

Of course access can always be limited to an API with rate limits and per-request costs, which would make it difficult to straight up copy the whole thing, but it would be hard to justify any legal protections against it.

realharo··on A not so unfortunate sharp edge in Pipenv
This is partially addressed by .env files (many projects support them) and an accompanying file with empty values or defaults, that lists and documents the variables (the .env file itself is then in .gitignore)
realharo··on Ask HN: Given AI advancements, is a master’s degree in CS worthless?
I meant this decade or so.
realharo··on Ask HN: Given AI advancements, is a master’s degree in CS worthless?
Are you picturing a world where companies are still making mostly the same kind of products as today, just with robots instead of people?

The change AI brings could be lot more fundamental than that. What that means for jobs though, is really hard to predict.

realharo··on Deepmind’s AlphaCode conquers coding, performing as well as humans
If that's the case, why not just use some existing shared notebook software instead?
realharo··on Ask HN: Is Vim still worth learning?
What do you expect out of it?
realharo··on Why doesn't Bash’s ‘set -e’ do what I expected? (2021)
Sometimes it also depends on the specific version, like when you need to deal with empty arrays - https://stackoverflow.com/questions/7577052/bash-empty-array...

The answers there are just a few of the many great examples of why bash is best avoided in almost all cases.

realharo··on Making your own e-paper dashboard for home from scratch (2021)
Using a Raspberry Pi is very wasteful in the first place.

If it's powered from USB, it doesn't really matter, but if you want to power it from batteries (especially something like AAA NiMH batteries) so that you can easily hang it on a wall somewhere and make it last a month or so (refresh every 10-15 minutes maybe), you pretty much have to use something much more low power (like an ESP8266, ESP32, etc.).

Having pre-stored pictures is also unnecessary, just generate them on the fly. Unless generating the picture takes a long time (e.g. having to contact a lot of slow external services), you can just draw it on the server in memory with each request.

In the same request, the device can also send its battery voltage to the server, where you can collect it as metrics.

realharo··on Rust 1.63
The compilation speed is not the greatest.

Other than that, it's a great language with a great ecosystem.

realharo··on Double Commander
Yeah, Far actually has pretty good integration with the command line, which is a must for a good file manager - and a file manager is a very natural fit for many CLI workflows.
realharo··on Ask HN: Has anyone made any serious money selling Android apps?
Question is, do any apps, other than a tiny percentage at the top, get a significant number of users that discover them via the app stores?

My guess would be most apps are discovered through other channels, and then the user just clicks a link on a website that takes them to the app store. Or they already know the exact app they're looking for, and search for it by name directly. So the store doesn't provide any value in such cases, yet they still take the 15% or 30%.

realharo··on GitHub Copilot is generally available
There are issues with many of the other demos too, especially in the second group of examples (e.g. `const months = days / 30`, the prime number test function not testing any `false` cases, etc.).
realharo··on Tauri 1.0 – Electron Alternative Powered by Rust
The problem is, you can forget about the entire web and node ecosystems of libraries, because it's just not compatible with any of the standard stuff. You'll probably end up having to write almost everything from scratch.

Also, whatever you write won't then be usable in normal browsers. So it's essentially just another cross-platform UI library, with a DSL for the UI parts - of course that's still good enough for many people.

realharo··on Google Will Eat Itself (2005)
The term is mostly used for speakers with a built-in assistant (Google Assistant, Alexa, etc.), where the assistant is one of the main reasons for wanting a smart speaker.

It's great for things like setting alarms, kitchen timers (don't have to touch anything with your hands, just talk), checking the weather, and controlling the other smart devices like lights, with just your voice.

realharo··on iOS 16
There is also DroidCam, which despite the name also has an iOS version. It has a pro version that's a one-time purchase.
realharo··on We're moving to a four-day work week at Beacon
Calling it a scam is completely inaccurate, scams rely on people not being aware (on some level) of what they're signing up for, and on people making promises they don't intend to keep. Here it is perfectly clear what everyone's getting.

Tons of people would prefer a 4-day in-office work week over a 5-day remote work week. You may not, but there are many who do.

realharo··on Show HN: Seal – Verifiable timestamp for your private ideas
You can just publish encrypted text as a GitHub gist (or use any other large public site where you can't modify the timestamps), and then release the decryption keys later.

Or only publish a hash that used some collision-resistant function (future proof), and then publish the text that matches the hash later. For this, you can just tweet it, or write it into a HN comment.

$2a$12$0qd0ztFAO5XAjQ.HRDMxjeS3n6tsemeHfWfWO0MIBR0mwFfmyp2RO

realharo··on Show HN: A Visual IDE for React
Something like https://storybook.js.org/? Not a VS Code plugin, but similar idea (though it does a lot more).

SwiftUI and Jetpack Compose also support individual component previews in their respective IDEs. (https://developer.apple.com/documentation/swiftui/previews-i..., https://developer.android.com/jetpack/compose/tooling#previe...)

realharo··on How much math you need for programming (2014)
That's not just true for math, it's a more general fact - if you make software in a particular domain, you're going to need domain knowledge.
realharo··on Rust 2021: GUI
No, this is a larger trend. Both major mobile platforms are moving in this direction as well (SwiftUI, Jetpack Compose).
realharo··on Split Keyboard for Professionals
I have an Ergodox EZ that I've used for about 4 months now, and it definitely took some time getting used to. I dropped from about 90 wpm to below 40 in the first few days, but now I'm back up to over 80, with fewer mistakes on average - I guess I'm slower at correcting them, so I try to type more accurately.

Previously I was used to typing some of the letters on the edges with the "wrong" hand (e.g. typing Y with my left hand) so I mapped an Y onto both halves, but eventually I got rid of that mapping.

I also had to gradually make many other small adjustments to the layout (which is thankfully really easy), because while you can adapt to typing of the letters fairly quickly, keyboard shortcuts and function keys are another matter (especially if you were used to using the function key row with Ctrl/Alt/Shift modifiers).

Having your arms naturally apart is pretty comfortable though, and I also like how cool it looks with the blank keycaps and the metal legs.

If anything, I had bigger issues with a MacBook keyboard, due to the missing Home/End keys, which I use all the time for selecting code (e.g End followed by a Shift+Home or vice versa to select a row, or using Shift+PageUp/PageDown plus arrows to select a block, are very ingrained in my muscle memory).

realharo··on What's new in PHP 8?
Bash: https://stackoverflow.com/questions/7577052/bash-empty-array...
← PreviousPage 5 of 15Next →