« first day (3869 days earlier)      last day (1080 days later) » 

3:14 AM
Is there a easy way to host raspberry pi cam live videos on website: i.e. if I type in telkitty.com/yiz-chooks, I can view my chooks on rPi cam some 150km away?
 
Does it go on the intranet or internet? I need to access it from the internet.
 
Wait I'll try a find something then
 
I think I kind of know how, just that my websites are a mess, they need a bit tidy up first ...
Thanks for trying to help anyways.
 
Do you need it for your farm?
 
Yeah, as a hobby project.
 
 
2 hours later…
5:54 AM
rtmp STUN/TURN stuff is so annoying, I'd just make a script that starts a Twitch or Youtube stream and tune into that :P
 
Some Necessary C++ Concepts One Must Learn?
 
Concepts are relatively new to the language I'd say you don't have to learn them yet :P
 
Well features
 
6:14 AM
I was just making fun of capitalizing that word unnecessarily. Anyway, I don't have anything constructive to say. I always just build stuff and stumble across things when I need them.
 
How to assign a value to a char at runtime I know I can use std::cin but it'll assign it after I press the enter key is it possible to assign it as soon as I press the key.
 
I forget what that function is called all the time, getchar or getch or something
 
6:35 AM
How do I prevent visual studio 2019 from messing up my variable declaration spacing in c/c++?
Im aware of this:
https://stackoverflow.com/questions/26506563/visual-studio-2010-c-sharp-ignore-spaces-in-declaration-statements-not-wor
but it seems only c# support this
 
 
1 hour later…
8:05 AM
Thanks @PeterT it was getche()
 
nwp
8:48 AM
@Eminem Maybe consider using clang-format instead.
 
I don't think clang-format is better about that
nvm it has "AlignConsecutiveAssignments" apparently, but you would either have to enable it for all files or you need to comment the rule everytime you use it
 
nwp
You can have different rules for different folders. And having source files in the same folder formatted differently is just weird.
 
sure it is weird from a systemic/consistency point of view, but that's what people want "I just want it to not destroy things I manually aligned"
 
 
3 hours later…
12:02 PM
Is it possible replacing a line in a file without copying the file?
 
nwp
Only if the replacement has the same size in bytes.
 
yeah, just go back to the 80s and use fixed-width lines in a file, problem solved
slowly re-adding features into it, until you've build a full database system
or, ... you know if you need a database format, use one
 
12:29 PM
Well is removing a line possible?
 
nwp
Not without rewriting everything that follows the line.
 
Why cpp why??
 
nwp
It has nothing to do with C++. It's the same in every language.
File just do not have that capability.
But it's not a problem. Just put the file into a std::vector<std::string> or something and you can insert and remove as you wish.
 
Thanks I'll check that out
 
nwp
Though technically the same limitation applies. You cannot remove a character from a string either without moving the characters after the removed characters. And you cannot remove an element from an std::vector without moving the following elements either.
But the containers do that for your automatically.
 
 
5 hours later…
5:47 PM
Worning
 
is that like the Wario to Mario ?
 
@Morwenn Marning
 
It's like Morning but it's not actually morning so I flipped the M into a W
 
Morning
:
Worning
 
So yeah, definitely like Wario
Even though I didn't think of it
Wormenn
 
 
3 hours later…
9:18 PM
Yo, does protobuf do bitfields?
 
 
1 hour later…
10:30 PM
@Mikhail IIRC it does not. However you can use integers for storing bits.
Good discussion here. (Seems to be still accurate, even after 12 years.)
 
10:43 PM
@Morwenn which timezone? The time you messaged it was 23:17 for me
 
lack of bitfield support is lame
obviously you can store integers in bitfields :-)
 
storing integers in bitfields?
Ah well.
 
11:03 PM
What's the character code of backspace
 
11:27 PM
\b although that is an exceptionally low quality question and I'm disappointed in you
 

« first day (3869 days earlier)      last day (1080 days later) »