News for hackers. Stuff that matters.

floitsch

Re:Aphantasia: I can not picture things in my mind on Saturday June 22, 2024 @07:11AM (#40758108)
The other ones for me:

- "go to your happy place", or "imagine you are on an island..."

- counting sheep to fall asleep. I just couldn't visualize them.

Re:Aphantasia: I can not picture things in my mind on Saturday June 22, 2024 @06:59AM (#40758027)
I have aphantasia, and I don't feel handicapped at all. The only thing where I really notice differences is when trying to describe people. Since I can't visualize them in my head, I can only describe "known facts", like "they have brown hair". I would make a lousy crime witness...
Re:Two ways to use an LED as a light sensor with Arduino on Thursday June 20, 2024 @01:31PM (#40741144)
I used this technique to send data from the cell-phone to an ESP32 using the phone's flashlight: https://www.reddit.com/r/esp32/comments/wfea4r/send_data_wit...
My mistake. It's, alt+., not ctrl.
In vscode: ctrl-d selects the word at the cursor, or the next occurrence of the current selection. Use it all the time.

In bash: alt-. copies the last argument of the previous command (history).

Have a look at https://docs.toit.io/tutorials (using Toit).

I wrote lots of easy to follow tutorials there.

It depends a lot on the sensors you have. That said, even without any (or few) sensor(s) you can still have fun with network related applications like a Telegram bot.

It's very annoying when reading books or watching movies in English.

"A 5-feet tall monster ...". As a reader I have no idea if that's big or small.

As others already mentioned, there are lots of shakes for that.

I have tried the following (mostly European):

- Soylent: the original (first). Ok, but not my favorite.

- Mana: I like their powder version (more than the drinks). Especially good with some bread sticks.

- Bertrand.bio: tastes very much like cereals. Pretty good.

- Jake food: one of my friend's favorite. I prefer others.

Usually it's per consumed/produced kWh: https://app.electricitymaps.com/

Thanks to solar Germany is mostly in the middle of the pack right now.

I usually find electricitymaps easier to digest: https://app.electricitymaps.com/zone/DE
In Denmark most providers charge you hourly rates.

Here is, for example, the page of my current provider: https://www.ok.dk/privat/produkter/el/priser

This page doesn't yet include the additional costs (last mile...), but there is definitely a big difference whether I consume the energy at cheap or expensive hours.

Re:DeviceScript: TypeScript for Tiny IoT Devices on Wednesday May 24, 2023 @01:32PM (#36061468)
Note that Toit has nothing to do with JavaScript or the Web. It was from the beginning designed to run on embedded devices.
The current (and past) electricity prices in most of Europe can be found on nordpool.

Three days ago, in Denmark, prices went as low as -41.37Eur/MWh (where 100Eur/MWh is a common price otherwise).

https://www.nordpoolgroup.com/en/Market-data1/Dayahead/Area-...

At the moment electricity is cheapest (and therefore greenest) in the afternoon. Probably because of solar (partially from Germany).

https://app.electricitymaps.com/zone/DE

It's also great to see how much green energy Spain got recently.

Re:Using ChatGPT for Home Automation on Saturday May 20, 2023 @08:04PM (#36016725)
I have connected my esp32s to chat (telegram) and openai. With the correct prompt and an interpreter they can now execute requests in human language: https://medium.com/p/3242af6f2988
Re:Why teens are suddenly obsessed with chess on Monday May 01, 2023 @09:47AM (#35772722)
For games I'm usually on lichess, but for puzzles I tend to use chesstempo.com. I find their quality just better.
Re:Giving embedded devices intelligence with OpenAI on Tuesday April 25, 2023 @05:21AM (#35698186)
Uses OpenAI API calls to translate human requests to a small language that is then interpreted by an interpreter on the ESP32. Runs entirely on the microcontroller.
Yeah... That would be hard to do in the limited memory of the ESP32. Main issue is the cost of TLS connections.
Did something similar (without voice) that runs on an esp32. This way I don't need any server or keep my desktop machine running.

Supports Telegram and Discord.

https://github.com/floitsch/ai-projects/tree/main/chat

Ask HN: Good language-agnostic test suites?

Are there any good language-agnostic test suites for common protocols and RFCs?Any new programming language needs to implement libraries for things like JSON, Yaml, HTTP, MQTT, TLS, URL-parsing, etc.Are there some good test-suites that explicitly test correct behavior for the most important RFCs? Maybe even an online service or docker container?Is there an implementation that made these tests...

( Read More... | 1 comment | 2 points | on HN )
Re:Rust on Espressif chips – 2023 Roadmap on Friday February 24, 2023 @10:38AM (#34925539)
Maybe give Toit (toitlang.org) a try.

We have been working on it for a few years now, and it gets more and more complete. Recently Espressif started contributing as well (and added Toit to their esp-idf installer).

Some selling points of Toit:

* modern language

* very fast execution for a dynamic language. (more than 10x faster than micropython)

* consistent libraries.

Re:Mozilla Sees Loopholes in Google’s Data Safety Labels on Friday February 24, 2023 @08:33AM (#34924301)
Google's business model is absolutely not built around privacy invasion, and their model is built around data collection of public data. If, for some reason, they couldn't use personalized ads anymore, they would simply earn less, but their business model would be the exact same as before.

Mozilla business model is entirely built around their market share. As such, they are in a much more difficult situation than Google's Chrome team. If Mozilla has a difficult time (financially), they are more likely to do shady things than the Chrome team which has no such pressure. For example, the Chrome team would never accept any cryptocurrency deal; something that I have no difficulties imaging Mozilla to do.

Obviously, Chrome will not actively hurt Google's other businesses (specifically ads), but Chrome's primary goal is to make the web a better place. The worst case scenario for Google is that the web (and thus their revenue stream) disappears.

Machine shop work - Blondihacks: https://www.youtube.com/@Blondihacks
Re:Accessible hamburger buttons without JavaScript on Friday January 27, 2023 @08:29PM (#34554151)
I'm not the author, but I know him personally. I will make sure he reads this message.

Older »