« first day (3279 days earlier)      last day (1683 days later) » 

12:03 AM
I knew this was going to happen
and it's only going accelerate
 
 
2 hours later…
1:52 AM
Time to put some pictures, descriptions on the internet later this week and get people to call/email me again - one of my parents tenant is moving away after living there for 6 years and I need to help to rent it out.
 
2:47 AM
In all these chaos I could not but feel like I am one of those small percentage of people who actually actively improving others lives - building and improving residential dwellings for people to live in, building solar farm to generate renewable energy for people to use, maintaining useful/entertaining apps that have been built by myself which had tens of thousands of accumulated downloads, leading A.I. in Robotics group with the aim of advance of human kind.
I wonder all those people who claim to be super busy, what good have they done for this world?
 
 
3 hours later…
5:28 AM
The place I help my parents renting out is 10 minutes walk from Scientology headquarter in Sydney.
I was right outside of its compound just now.
Doesn't say anything about Scientology in the name.
 
 
2 hours later…
nwp
7:19 AM
Narrator: Little did she know that the place she rented is a Scientology brainwashing facility, explaining the moderate price. She would find out soon enough.
 
Wouldn't mind some rich scientologist to rent the place for a modest $800 a week, we are tolerant, no greedy people who have broad minds. </Shameless_self_promotion>
 
 
2 hours later…
9:12 AM
@TelKitty of course not, the cult name is what gets all the bad press, so their official coorporate name is something unrelated
 
NVCC needs a native GPU target. CUDA code will be transpiled to match the native version, which for large CUDA projects results in waiting a hella lot of time. On the other hand adding every CUDA target, causes build times to sky rocket (literally, recompiles each file for each target...). So For my debug release I just want the native target...
 
 
2 hours later…
11:24 AM
So if Raspberry Pi is designated to talk to Arduino @ 115200, but Arduino is talking to the servo @ 57600. Then how do I get rPi to control Arduino?
The frequencies are like 2:1
 
do you really need the low-level direct control on the Pi side?
 
I don't need to control it directly, but I need to control the servos through rPi.
 
well if you can abstract the controls into higher level primitives like "move at x speed for y duration" then you might be a ble to significantly declutter the command traffic
 
Not at the stage of optimization yet, more like at the stage of proof of concept.
 
that isn't optimization, that is core architecture
but yeah you will need to synchronize the baudrate of the devices
 
11:42 AM
import serial
from pyfirmata import Arduino, util
board = Arduino('/dev/ttyUSB0');
while True:
        inputVal2 = board.digital[2].read()
        print(inputVal2)
 
oh damn, python arduino, I got no clue about that. Always just used C or C++
 
@ratchetfreak I could access the Arduino board like this, but value printed are all none.
@PeterT This is rPi code.
Arduino code is in C++.
 
weird, how does it access the digital pin then? Does it require a specific Arduino program to be loaded or is there some debugging protocol?
 
I was looking for a library to take care of the communication between rPi and Arduino, someone in the lounge suggested pyfirmata. To my understanding, it treats Arduino as an object (constructed by giving the port which is connected to) and you could access the pin through that object.
 
11:57 AM
right, but did you upload the firmware program to the Arduino for it?
 
Good point, I probably have not.
 
 
3 hours later…
3:10 PM
@TelKitty what are you trying to do?
 
I'm not often here, so have a quick "hi" whatever it's worth :D
 
3:33 PM
@Morwenn Hey
 
:o
The chat seems a bit alive
 
3:45 PM
@Morwenn can be, it's not completely dead at least
 
 
1 hour later…
4:52 PM
room topic changed to Lounge<C++>: The Lounge is not a parrot! [c++] [c++11] [c++14] [c++17] [c++-faq]
 
@JerryCoffin Beautiful plumage the lounge blue
 
We are definitely not one of those. But we're also not this guy:
Hmm...reminds me of Scooter, a blue and gold I knew back in the mid 1980s. I wonder how he's doing.
I'm a bit surprised. Pictures of birds, but Telkitty hasn't shown up... :-)
 
5:23 PM
@JerryCoffin probably sleeping? it's four in the morning there?
 
@Mgetz I guess that's a fair excuse... :-)
 
Can anybody recommend a good resource to learn about pthreads?
Other than the man pages of course :)
 
@Rishav If at all possible, don't use pthreads directly. Use <thread> from the standard library instead. For guidance on using that: manning.com/books/c-plus-plus-concurrency-in-action
 
Ah sorry, I'm working on an assignment where we're supposed to use the pthread API directly.
Hence.
 
@Rishav you have my condolences..
I'd still learn it the proper way
 
5:28 PM
¯\_(ツ)_/¯
 
If you understand thread, mutex and condition variable as a concept the it's a piece of cake to learn how to use the posix equivalents.
 
Ah no, I don't understand condition variables tbh.
Do you have a book to recommend?
A blog post?
 
@Rishav I can't blame you. They're one of the more confusing parts of pthreads (but using them is pretty easy).
 
6:17 PM
283
Q: Why should I always enable compiler warnings?

n.m.I often hear that when compiling C and C++ programs I should "always enable compiler warnings". Why is this necessary? How do I do that? Sometimes I also hear that I should "treat warnings as errors". Should I? How do I do that?

 
can someone explain what is happening in this example


struct A {
  using U = int;
};
struct B {
  using U = float;
};

template <class T>
struct C {
  static_assert(std::is_same_v<T, A> || std::is_same_v<T, B>);
  using V = typename T::U;
};
 
@Rick it requires that V is either a float or an int? but there are better ways to do that?
 
Oh, I see it now.
@Mgetz thanks :-) how would you do it?
 
@Rick variable template probably, using std::is_integral_v and the float equivalent
well technically type template but the point stands
 
Or just choke compilation of its not that type
 
6:31 PM
pretty much
 
 
4 hours later…
10:26 PM
@JerryCoffin Thanks for the topic change <3
Also those parrots are pretty
 
11:01 PM
@Morwenn Surely. :-)
@Morwenn Pretty smart too...
 
user8104581
11:21 PM
I was thinking that topic change was just a joke, until I reloaded
 
@andreyrk It may or may not be a joke, but any Monty Python reference is automatically at least a little funny, even if it lacks any originality.
 
11:41 PM
'Parrots vs Bots' could be an intriguing movie plot.
 
@TelKitty Sounds like Plants vs. Zombies with new artwork.
 

« first day (3279 days earlier)      last day (1683 days later) »