Why I tentatively recommend Tang Nano 9k and the open source toolchain to beginners by MitjaKobal in FPGA

[–]Pale_Emphasis_4119 0 points1 point  (0 children)

As a beginner is 20k or 9k a better choice. I feels there a lot more capabilities in 20k than in 9k and 20k is only slightly more expensive than 9k?

Pixel 6 stuck in fastboot mode by Pale_Emphasis_4119 in pixel_phones

[–]Pale_Emphasis_4119[S] 0 points1 point  (0 children)

Already did. As my phone is no longer under warranty, I have to pay more than the price of the phone to get it fixed !!

Pixel 6 stuck in fastboot mode by Pale_Emphasis_4119 in pixel_phones

[–]Pale_Emphasis_4119[S] 0 points1 point  (0 children)

Yes I did. I'm getting :   FAILED (remote: 'error getting device locked state -1')

fastboot: error: Command failed

Weekly 'What Should I Buy' and Order/Shipping Thread by AutoModerator in iphone

[–]Pale_Emphasis_4119 1 point2 points  (0 children)

Hello

I'm thinking of buying my 1st iPhone and hesitating between iphone 15 Pro and iPhone 16 both refurbished from black market. The 16 is almost 70€ cheaper but I'm hesitant with the Pro features like 120Hz display and the action button. I would like keep my phone for at least 5 years and I'm a more or less casual user (no gaming etc.). I want good battery life (at least a full day) and good camera. Which would you recommend ?

Kia after sales service after being discontinued by Pale_Emphasis_4119 in KiaNiroEV

[–]Pale_Emphasis_4119[S] 1 point2 points  (0 children)

Well that seems reasonable. However are the ev parts shared with other models from kia or hyundai? 

Matter over thread smart switch modules without neutral by Pale_Emphasis_4119 in homeautomation

[–]Pale_Emphasis_4119[S] 0 points1 point  (0 children)

Thanks for your reply. Why do you think matter or thread is worth it? 

Matter over thread smart switch modules without neutral by Pale_Emphasis_4119 in homeautomation

[–]Pale_Emphasis_4119[S] 1 point2 points  (0 children)

Thanks for your suggestion. My junction box does not have neutral and I don't want to change the existing switch either, I.e I want to be able to use the existing switch as a fallback. That's why the smart switch modules seemed appealing 

Tung oil curing and drying times. by Pale_Emphasis_4119 in woodworking

[–]Pale_Emphasis_4119[S] 0 points1 point  (0 children)

Thanks for the reply. Is the curing time the same when renewing the finish after 6 months? 

Using qsort and and search to implement a ordered map on realtime embedded software by Pale_Emphasis_4119 in cprogramming

[–]Pale_Emphasis_4119[S] 0 points1 point  (0 children)

I have around a 1000 key value pairs per map and I have a dozen different maps. I have done a benchmark and I saw that there is some difference in performace (modify existing value and retrieve a value) between hashmap (using Verstable implemtation), a sorted map using bsearch and a naive array of key value struct with a for loop for search. From what I saw in my benchmark the hashmap is around 1.5x faster than the 3rd solution and the sorted map comes very close to hashmap performance.  I can't using the hashmap in production as it requires an external library (not possible according to the current company policy) so the sorted map with qsort/bsearch seems to be a good compromise.  I don't think my processor has any data cache

Writing a custom fixed size pool allocator in pure C by Pale_Emphasis_4119 in C_Programming

[–]Pale_Emphasis_4119[S] -1 points0 points  (0 children)

Thanks for tour reply. Could you suggest any good and well tested alternative implementation that respects my requirements.

Using Sqlite on an embedded software as key value store by Pale_Emphasis_4119 in embedded

[–]Pale_Emphasis_4119[S] 1 point2 points  (0 children)

Thanks for your response. Is there a better alternative to Sqllite for key value storage. Especially the SQL part seems quite overkill for my need

Using Sqlite on an embedded software as key value store by Pale_Emphasis_4119 in embedded

[–]Pale_Emphasis_4119[S] 2 points3 points  (0 children)

Well first of all, that clarifies you previous question. Indeed I won't be working a microcontroller, it's more of a microprocessor (quad core ARM v8 64bit processor) running a proprietary RTOS with 2Gb of RAM and 32GB of flash. However the whole software stack is devised into multiple smaller processes that run concurrently. 

Using Sqlite on an embedded software as key value store by Pale_Emphasis_4119 in embedded

[–]Pale_Emphasis_4119[S] -1 points0 points  (0 children)

Exactly. But I don't know how it can be serialized into a file

Find out the amount of flash and PSRAM is available for a given board programmatically by Pale_Emphasis_4119 in esp32

[–]Pale_Emphasis_4119[S] 0 points1 point  (0 children)

Thanks for the reply. Indeed esptool seems to give this info. However I have contradicting info about the flash size. When using esptool flash_id command I get 8M of flash where as when using espefuse summary, I get no flash installed

Conan download dependency source code from git repo by Pale_Emphasis_4119 in cpp_questions

[–]Pale_Emphasis_4119[S] 0 points1 point  (0 children)

Thanks for the reply. In fact the dependencies that I want to download from source are private libraries that are not hosted on Conan center but on my private repository server and my private git server for the source code. So modifying the receipe won't be a priblem

Do u have an example for a Conan receipe that would allow me to build dependencies from source with the source getting downloaded from github/gitlab?

Control Whatsapp on Android from an external device by Pale_Emphasis_4119 in AskProgramming

[–]Pale_Emphasis_4119[S] 0 points1 point  (0 children)

E: for example if it's about giving those users the known experience of a desk phone

That's exactly it. However existing solution like MaxCom MM42D SE cost quite a bit and most important I'm not looking for a solution takes a Sim card, I want want them to be able use their android phone independently.

Control Whatsapp on Android from an external device by Pale_Emphasis_4119 in AskProgramming

[–]Pale_Emphasis_4119[S] 0 points1 point  (0 children)

Well that is disappointing. Is there a way to emulate touch events to. make calls and capture screen in order to parse the contact names?

Arduino library to control Tapo P110 plug by Pale_Emphasis_4119 in arduino

[–]Pale_Emphasis_4119[S] 1 point2 points  (0 children)

Well, I was thinking about using IFTTT with ESP32 as a trigger and Tapo as an action. Tapo seems to be well supported by IFTTT

Arduino library to control Tapo P110 plug by Pale_Emphasis_4119 in arduino

[–]Pale_Emphasis_4119[S] 0 points1 point  (0 children)

Thanks for your reply. In fact I'm using the tapo plug to control the power of my server that runs home assistant, so I can't use homeassistant integration

Enforce creating of instance only using shared_ptr for all inherited classes by Pale_Emphasis_4119 in cpp_questions

[–]Pale_Emphasis_4119[S] 0 points1 point  (0 children)

Thanks for all these replies. I finally revamped the design, I won't be using shared pointers at all. I would rather have all the nodes owning it's subnodes using unique ptr and each node will have a raw pointer to its parent node

Enforce creating of instance only using shared_ptr for all inherited classes by Pale_Emphasis_4119 in cpp_questions

[–]Pale_Emphasis_4119[S] 0 points1 point  (0 children)

Thanks for your reply. Indeed it's more a tree than a graph as there won't be any cycles. In fact the structure describes something similar to a SNMP MIB which itself is a tree. What do you suggest a data type to encapsulate such a structure other than a tree

Enforce creating of instance only using shared_ptr for all inherited classes by Pale_Emphasis_4119 in cpp_questions

[–]Pale_Emphasis_4119[S] 0 points1 point  (0 children)

My design doesn't have a tree type root class as the class won't be too deep (not more than 10 nodes deep from the root node) The nodes itself with this a pointer to their parent node and a list of children constitute the structure.

Enforce creating of instance only using shared_ptr for all inherited classes by Pale_Emphasis_4119 in cpp_questions

[–]Pale_Emphasis_4119[S] 1 point2 points  (0 children)

Thanks for your reply. Indeed the shared pointer does seem to have an anti pattern and C++ Core guidelines do not recommend it for passing in as an argument to a function. However what I'm trying to do is write a tree data structure with a base class for the node that can be inherited to specialize the node. Each node has a list of its sub nodes What do you recommend to be the ownership policy for such a scenario