« first day (2630 days earlier)      last day (2301 days later) » 

12:04 AM
The conditions that cause UB are well-defined, yes?
 
12:27 AM
@Code-Apprentice For reasonable definitions of well-defined, yes.
 
 
3 hours later…
3:26 AM
.
 
 
3 hours later…
6:10 AM
what programming language can be used to program the raspberry pi?
 
@Telkitty There are undoubtedly compilers that haven't been ported to target the ARM, but that doesn't limit your choices a whole lot.
 
I have seen two examples, both written in python
wouldn't mind write anything in C++ or java instead
but really depends on the complexity of setting things up
 
6:55 AM
@Telkitty I believe if you install the current Raspian, you get Java and C++ out of the box (but I haven't done it in a while, so I could be mis-remembering).
 
this might be a dumb question, but how do I get my action cam to talk to the raspberry pi?
cam can use wifi to send feed to a smart phone
Raspberry Pi 3 Model B has built in wifi
 
7:17 AM
@Telkitty Mostly comes down to finding an open-source app to handle receiving and storing (or whatever) the stream, and (possibly) building it for the Pi.
 
 
3 hours later…
10:22 AM
Jerry Coffin Worryingly Helpful. Has He Lost His Edge?
 
he's worried about this chat's inactivity probably
 
 
3 hours later…
12:59 PM
@Telkitty What are you going to do with it?
 
1:32 PM
@Telkitty as long as you have a driver for it, you can use v4l api or any higher level stuff
 
 
1 hour later…
2:43 PM
Hello, World!
 
jrh
3:17 PM
What a crazy learning curve this was, it was fun though. Not a bad holiday research project.
This is probably a long shot but if anybody has a VM with a really old version of Windows, I'd be curious to see if this works on Windows 98 or earlier.
Also I am not sure what (if anything) I should have changed for a C++ winapi answer, the API is pretty primitive and I usually write plain C winapi code. Let me know if you have any recommendations. I'm not particularly interested in MFC at the moment.
 
3:43 PM
MFC is baaaaarf
 
jrh
I'm starting to wonder if I should have made a literal dialog box opened by the main window, just for the sake of exactly matching the question; IMO the "hard part" that the rc file used to do was the "Control" creation, and having a main window does that by itself.
 
4:40 PM
@jrh As much as I'd like to vote this up, it doesn't seem to me like it really answers the question. As far as I can see, you've simply created a window containing some controls, but it isn't a dialog box (and doesn't act like one). For example, inside a dialog box you can normally use the tab key to shift focus from one control to another, but at least at first glance it doesn't look like that would work in this case.
On the other hand, I can't actually blame you much (if at all). There is (for one example) DialogBoxIndirectParam. It's fairly simple, but painfully tedious to use unless you create something like a dialog editor, and harvest data from there to populate the dialog template. Once you've populated the template, creating the dialog itself is utterly trivial though.
 
4:59 PM
^ Quite interesting channel with commentary about YouTube law related causes.
 
jrh
@JerryCoffin noted, I'll edit in the code necessary to make it a dialog when I get to that point. There's a couple reasons why I ended up with that answer. 1) All of the other answers were link only, I was hoping to add some code that got readers at least in the neighborhood, 2) I figured there was a way to easily show a custom window class as a dialog, turns out it's not quite that easy
3) I figured the dialog editor's main contribution was creating "control" windows and that's what I stumbled on the question looking for; a way to add child windows without using rc scripts.
I'll delete it and re-post it later, if you think that's the best course of action
I'm not sure how long it would take me to change the answer from a window to a dialog box
 
@jrh I'd leave it there until you have something better. It doesn't actually answer the question asked, but it may easily be sufficient for quite a few people's purposes, and as you've noted, it provides a lot more than the other answers there.
 
jrh
thanks, will do
 
@jrh When you do add another answer, I'd leave at least something about this approach, and how it differs from a "real" dialog (mostly the aforementioned tab behavior). Somebody who doesn't care about tabbing between controls can use the simple code, and those who need it can create the real dialog.
 
jrh
This was kind of a terminology problem more than anything, I figured windows were like "controls" in .NET and there was no real difference between a dialog and a window. I was surprised to find that tabbing did not work, but I assumed that it was something that .NET added (and tabbing was something that had to be manually coded) and I didn't think twice about it.
Ah well, at least I learned something today; I'll work on fixing the answer up.
@JerryCoffin since you're here, is there any reason to #define the IDs / other constants? Everybody does it in the examples, but I couldn't find a reason to do it instead of using a const.
 
5:20 PM
@jrh The obvious reason would be for compatibility with C.
Given that you're writing C++ anyway, using const seems like the better approach, for all the usual reasons.
 
jrh
For IDs, and window names, though? There's no issue with them as long as they aren't used as the size of an array; my sample compiles okay in C99 (and probably even C89).
 
5:32 PM
@jrh Yeah, it would probably be fine in C89, as long as you didn't use it where a constant expression was required. This would go all the way back to pre-standard compilers.
 
jrh
ah right, Watcom C / Borland C and all that jazz. I forgot MVC and GCC/Clang weren't always the only games in town
I was planning on finishing my winapi improved IntUpDown WNDCLASS (and maybe a FloatUpDown) first but I was going to research modal dialogs eventually, it just got (suddenly) pushed up in priority.
 
@jrh Much as it is now, back then MS C was really the tail of the pack in terms of conformance. Borland was (usually) a little better (but with poor code generation). Watcom was quite a bit better for both conformance and code generation.
Part of it was that the Windows team apparently continued to use older versions of MS C long after they'd been replaced though. Much of the Windows code seemed centered around MS C 5 (pre-standard) long after MS C/C++ 7 (pretty good standard C, initial implementation of C++) had been released.
Just to be clear: all of these version numbers predate Visual C++ version numbers--Visual C++ 1.0 came immediately after MS C/C++ 7.0.
 
6:00 PM
I have mentioned that I love my combined washing machine-dryer combo?
 
@wilx No, at least not that I've noticed. I always wondered why the two were normally separate. Seemed like combining them should be fairly easy.
 
jrh
 
jrh
7:05 PM
the docs seem to be... inaccurate, so I'm going to just code the reverse of what WINE is doing there and I'll see if the API takes it.
 
jrh
7:43 PM
 
@JerryCoffin I like your hat.
 
Ven
8:41 PM
Hi lounge
 
jrh
9:09 PM
@JerryCoffin I think I'm going to just CW the answer, knowing what I know now, if it wasn't my answer I'd DV it, or think it should be deleted. But then again, examples like that are very hard to find. If CW isn't the right thing to do, I'll try to delete it.
 
9:26 PM
@JerryCoffin this is actually a myth
while XP only move compilers three times it did increment the compiler each time there was a service pack
every subsequent release has updated at the same
and 10 tracks the stable release of whatever's latest
 
10:03 PM
Don't take your DAG graph to the ATM machine and use your PIN number, or you might get the HIV virus. — chaos Oct 7 '09 at 16:01
This joke is completely over my head. Anyone care to explain it to me my friend?
 
10:14 PM
It's over mine as well.
 
10:27 PM
@sehe I think it's just acronym spam
 
10:40 PM
@wilx I am going to make a (low capability) autonomous driving (toy) car with it - raspberry pi, RC car & cam
I need to figure out how to control RC car with raspberry pi
 
0
A: make sub graph from boost graph using particular parent

seheI struggled to make sense of the description. I think I've figured it out. Please consider specifying the requirements instead of merely giving one incomplete example next time. Starting From The Root First I thought that you meant to find the root (zero in-edges) and treat each child node as a...

 
@Telkitty Sounds interesting.
 
@Mgetz How the hell did that get 3 upvotes :| Thanks for confirming my sanity, or at least not confirming my clear inferiority
Turns out, I'm just not so good at graphs anyways. I'm a lot better at programming with BGL than I am with actually thinking about graphs. That answer took me entirely too long.
 
So, the newest Star Wars, all of the reviews I have read or heard are damning except for visual quality.
It looks like I won't be seeing it any time soon.
 
If you guys want to watch some horror... follow this:
@sehetw @MSLearning I watched the videos and they were full of inaccuracies. The survey at the end didn't have anywhere to suggest improvements either :/
@wilx I've never seen any SW movie less than a decade after it appeared, I think
 
10:46 PM
@sehe :D
 
11:15 PM
can you run a server on raspberry pi? :p
 
jrh
yes, but if it's anything like my RPi 1, it will likely be frequently CPU bottlenecked.
 
11:43 PM
getting RPi 3, but I doubt it would be much more powerful ...
 

« first day (2630 days earlier)      last day (2301 days later) »