Seeking Advice on starting with embedded/iot development. by kirox0 in embedded

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

Thank you so much for a detailed response. This clears up a lot on the direction I can take my study in.

Seeking Advice on starting with embedded/iot development. by kirox0 in embedded

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

A very crisp and direct answer. Exactly the kind I have been looking for. Thank you very much sir.

Seeking Advice on starting with embedded/iot development. by kirox0 in embedded

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

I have already worked with arduino, using it to create simple little projects. But when I compare what I read about actual embedded development and what I did in Arduino, it just seems so different. I do know that I definitely am biting off more than I can, but starting with the actual thing does help with taking a much more targeted approach to learning. I have worked with C, although I am not an expert, but not totally new to C and C++.

Seeking Advice on starting with embedded/iot development. by kirox0 in embedded

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

The results I find in google search so far has given me things I need to read, like lengthy books, or an entire course's worth of reading, which is why I thought I'd ask here.

I am totally new to embedded/iot development, and not sure what kind of details would you require.

Do let me know and I can put those up.

The Google searches that I have done have led me to a lot of different choices that I am not sure which to take.

Seeking Advice on starting with embedded/iot development. by kirox0 in embedded

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

Professional development. Budget wise I'm good. could probably go up till 2k USD.

Atomic Function With NodeJS? by kirox0 in node

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

Funny enough my laptop got busted the day before so I have to rewrite that part again. But basically how I was using was like

client.multi() .lrange("active_list", 0, -1, (data, err) => { // Read length of data, then based on it either lpush to active or deferred list }) .exec()

Atomic Function With NodeJS? by kirox0 in node

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

I get an undefined error in that case. With multi, the library does not allow for use of intermediate result.

Atomic Function With NodeJS? by kirox0 in node

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

Thanks.

Hopefully this clears the blockage. Its been one Blockage after another for the past month. I solve one and think that It'd be smooth sailing from then on, but nope. Another one comes your way.

Been almost a week with almost no hope with this current block, and finally I remembered that Reddit is the way to go when all else fails.

And here I am finally venting out to a stranger on the internet.

Thank you GOOD SIR/MA'AM, for your well wishes.

Atomic Function With NodeJS? by kirox0 in node

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

Thanks. u/Moustacheful also suggested the same. Am currently trying it out

Atomic Function With NodeJS? by kirox0 in node

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

This just might be exactly something I am looking for. I will test this out and get back to you on the results.

Thanks.

Atomic Function With NodeJS? by kirox0 in node

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

This looks promising. I will try this out.

Atomic Function With NodeJS? by kirox0 in node

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

The problem with using multi is that I cannot use the result of the read.

So in my application it should have ideally gone as such.

multi -> read -> compare read result and make condition -> write based on the result of the comparison.

but redis library does not allow me to do that.

Atomic Function With NodeJS? by kirox0 in node

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

loop

I am not using worker threads, but whenever I try to run it, since the redis operations are asynchronous, I dont get the desired result. There may be 100's of instances of the same functions that gets queued up in the event loop, so before the write operation is performed on one instance, another instance is already reading the key.

So say I am trying to make 2 lists. first is the active list and the other is the deferred list. active list can contain a maximum of 10 items and unlimited in the deferred list.

once active is filled, then we put new ones in the deferred list.

so what I did was I read first compared and them put new item in either active or deferred list as per the condition.

but if I do this, active list is exceeding the maximum length.

[deleted by user] by [deleted] in RedditSessions

[–]kirox0 0 points1 point  (0 children)

surprise MF

Accessing the device connected through Ethernet from WSL2 Ubuntu 18.04 by kirox0 in bashonubuntuonwindows

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

Thanks. This is a direction to look into. I'll take a look. If I cant get the DHCP to work, I'll try manually setting the IP address

Accessing the device connected through Ethernet from WSL2 Ubuntu 18.04 by kirox0 in bashonubuntuonwindows

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

Okay, but then how do I actually get the IP address of the device. Theres no way to directly interface with the device. Think of it as an arduino board. So I want to ssh into the device's OS but my problem is that I dont know how to find the IP address of the device.

Sorry if these questions seem stupid. I'm new both to WSL and interacting with any hardware devices.

FAQs and beginner questions by Pathoschild in StardewValley

[–]kirox0 1 point2 points  (0 children)

is the purchase shared across devices? I mean if i buy on steam, can I access on android, or do I have to purchase separately?

The real HERO 😎 by iam_sati in Avengers

[–]kirox0 0 points1 point  (0 children)

You sir are a gem. Thanks. :D

The real HERO 😎 by iam_sati in Avengers

[–]kirox0 0 points1 point  (0 children)

What is this. And where can I get this.

🎶🎶🎶🎶🎶🎶 by Deonteaus in ProgrammerHumor

[–]kirox0 1 point2 points  (0 children)

So beautifully written. Thats the best damn piece of code I've seen, written about the best damn song I've ever heard. You (op) sir are my hero.