« first day (3626 days earlier)      last day (1305 days later) » 

12:03 AM
👀
 
12:39 AM
 
 
2 hours later…
2:48 AM
Hi,
[enum class doubt].
Which casting from int to enum class is preferred :
1. `static_cast<Color>(2)`
2. `Color(2)`
ideone.com/RkGy3v
Thank you for your time!
 
 
2 hours later…
4:53 AM
hi there,

question:

if i have an array, say: a = [1,2,3]

what kind of algoryth do i need to find all subsets

[1] 1 1
[2] 2 0
[3] 3 1
[1,2] 3 1
[2,3] 5 1
[1,2,3] 6 0
[1]
[2]
[3]
[1,2]
[2,3]
[1,2,3
 
5:17 AM
Now obviously the atack is dynamically allocated, although this problem is probably also present in ASM
 
 
2 hours later…
7:13 AM
Now I can receive data on rasbberry pi from arduno, arduino suddenly wouldn't print out anything at all, not even on the serial monitor.
 
7:29 AM
Life as a serial bug killer ..
Umm ... seems that I need some sort of delay inside the loop. Could someone tell me why is it so?
 
user7659542
7:50 AM
@TelKitty what s your issue on which you need explanation precisely? I ll give it a shot
 
I had to add delay(100) inside loop on arduino otherwise nothing prints out.
But now my problem is that I am getting this on rPi from arduino:
,01,02,ANTSTATUS=OPEN*2B
$GPRMC,000125.799,V,,,,,0.00,0.00,060180,,,N*43
$GPVTG,0.00,T,,
arduino serial monitor is giving me the right values.
But not when I run it on rPi, output gives me garbage as above.
 
user7659542
@TelKitty does not look like garbage to me... COuld it be that you are using a GPS? One typically gets garbage when eg baudrates do not match
 
user7659542
then you get all kind of weird inexistent symbols
 
user7659542
but those are clearly letters of the alphabet if you see what I mean
 
user7659542
as for the delay, I d check under which condition,s the hardware buffer of your microcontroller gets flushed to te outside world
 
user7659542
7:58 AM
maybe... you re writing faster than it is able to handle data transmission. But this looks unlikely to me
 
user7659542
Maybe the arduino lib does some buffering before passing it to the hw buffers
 
user7659542
a bit like glibs. Glibs itself does buffering, then the kernel buffers and it is only after this that it may reach to the outside world
 
Yes that looks like the gps output. But it should not be, unless for some weird reasons, the config changes.
Should I do serial.flush() at the end of each loop on the arduino side?
Also I free the memory at the end of each loop too.
 
maybe read the documentation for the code you copypasted?
 
Yes I need to read the documentation for arduino. I have been tidying up the code and adding many new things. :x
 
 
3 hours later…
10:48 AM
Mornoon
 
 
2 hours later…
12:22 PM
The reactions are a bit underwhelming
 
 
4 hours later…
3:56 PM
plz I feel lonely here ç_ç
2
 
 
4 hours later…
8:25 PM
poor Morwenn all alone all day. I was at my nieces birthday party, so I didn't have my eye on SO chats.
 

« first day (3626 days earlier)      last day (1305 days later) »