« first day (823 days earlier)      last day (4116 days later) » 

4:00 PM
XSD?
 
user784668
@TonyTheLion The XML one?
 
user142019
Dafuq.
 
user142019
I #include <stdio.h> but clang can't find popen.
 
user784668
4:03 PM
@TonyTheLion That's because XML is fugly.
 
dat pun
 
user784668
@Zoidberg The lesson is don't use popen.
 
@TonyTheLion shame about the photoshopping
 
user142019
What must I use?
 
4:04 PM
GOOD MORNING PEEPS
 
user142019
fork/exec?
 
Who wants to use a function with the word pope in it anyways?
 
Today I saw a guy playing Zelda songs with an accordion in the metro.
 
@TonyTheLion sex offenders
 
user784668
@TonyTheLion A priest?
 
4:04 PM
besides those then
 
Dayum, finally finished that presentation
(for whoever needs to give a similar talk and seeks inspiration)
 
@thecoshman Isn't that the same thing as what @Fanael said?
 
user784668
@Zoidberg Well, it gives you moar control than popen.
 
user784668
@EtiennedeMartel Not all sex offenders are priests.
 
user142019
Whokay. Thanks.
 
4:06 PM
@Fanael Good point.
 
@EtiennedeMartel nearly
 
user784668
@Zoidberg What do you want to do with the pipe, anyway?
 
user142019
@Fanael I need to read stdout of the child process.
 
user142019
No wait fuck
 
user142019
4:07 PM
I need to read stderr. xD
 
user142019
So I guess I can't use popen anyway.
 
user784668
@Zoidberg Exactly.
 
@EtiennedeMartel ...nope, appears to be a pipe.
 
4:08 PM
^ I like this one better.
 
0
Q: Let me see stars

fredleyHere is how the chat sidebar looks, annotated with how interesting/useful stuff is: On my monitor, I can usually only see the top two or three starred items, but I want to see more. Could something be added so that I could: Reorder chat sidebar items? Collapse chat sidebar items? Scroll the ...

4
 
@AndreiTita Right, right. See this.
 
@AndreiTita You should read on the meaning of the painting.
@AndreiTita Magritte would answer: Go ahead and smoke it then.
 
@StackedCrooked I prefer my meaning.
 
You don't have meaning.
 
user784668
4:11 PM
Ceci n'est pas une pipeline.
 
@StackedCrooked A "pipe", in French, is also slang for fellatio.
 
ecchi n'est pas sans pipe
@EtiennedeMartel aha
 
user142019
@Fanael Dankeschon.
 
user142019
With an Umlaut.
 
user784668
@Zoidberg ö
 
4:13 PM
where can one find good C++ tutorials?
 
puppy has some
 
@StackedCrooked So one could say it's not that kind of pipe.
 
user784668
@Crowz You have to be born with knowledge of C++, sorry.
 
user142019
 
@Zoidberg Sarcasm detector just blew up...
 
4:17 PM
@Zoidberg he said good
 
user784668
@Mysticial He forgot .
 
Good tutorials are not biased
 
Is TheNewBoston good?
 
user784668
@Zoidberg </br>
 
wellp, I'm calling time
see ya'll later perhaps
 
user784668
4:18 PM
Puppy has no clue what he's doing.
 
if not, the morning :D
@Fanael bit harsh
 
@Mysticial It's taken years to refine my craft — fredley 7 mins ago
 
my new meganoob question of the day: how do you run a single cpp file in Visual Studio?
 
user784668
@thecoshman He's supposed to know everything.
 
user784668
@Crowz Compile it. You cannot run a cpp file.
 
4:20 PM
If you broke your jaw, how would you tell the ER you're allergic to penicillin? With this #patent. http://tmblr.co/Zb2FVtbv2Pzs #think20
^ dat use case...
 
Welp I have this and whenever I use "build solution", I... think this basic program should compile.
    #include "Camera.h"
#include <iostream>

Camera::Camera() {
}
Camera::~Camera() {
}
int main() {
	using namespace std;
	cout << "hello";
	cout << endl;
	system("pause");
	return 0;
}
 
user784668
@Zoidberg "Plus, it [GCC] cannot cross compile to other desktop platforms."
 
user784668
Stopped reading right there.
 
@Crowz using namespace std; <--- kill it with fire
 
Hey, it's not at namespace scope
 
4:21 PM
@Crowz You really wish you were running VS 6 (or earlier) where you could click the compile button, and it was smart (kind?) enough to just create a project file that included whatever file you asked it to compile, then built it.
 
@Crowz Maybe? We can't tell. Also, code goes to ideone or pastebin
 
@TonyTheLion right! never use namespace std!
 
@TonyTheLion what is wrong with it? Sorry completely new
 
@Abyx Meh
@Crowz You're not. Completely new
 
user784668
4:23 PM
174
Q: Why is 'using namespace std;' considered a bad practice in C++?

ManaOkay, sorry for the simplistic question, but this has been bugging me ever since I finished high school C++ last year. I've been told by others on numerous occasions that my teacher was wrong in saying that we should have using namespace std; in our programs, and that std::cout and std::cin are m...

 
I think using namespace X should have been defined minutely differently. It should define a "virtual block" surrounding the block in which it happens, so { using namespace std; ... } acted like { using namespace std; { ... } } Everything from namespace std is in scope, but at an "outer" scope, so if you define something with the same name, that's what's visible, and whatever came from std is just hidden and the two don't conflict.
 
@TonyTheLion It's fine in this case.
 
@sehe well, to C++ syntax and all that. I'm somewhat familiar with C and okay in java though
 
> IBM US Patent No. 8,326,865 will help hospitals and medical facilities create a fast and easy-to-navigate globalized database of patient records.
@sehe I wasn't aware patents could solve problems.
 
@Crowz wokay. but seeing that you have been here quite a while now, your 'I'm new here' license is expiring slowly but steadily :)
 
4:26 PM
@EtiennedeMartel right right, I was wrong.
 
@sehe Well, he does seem to be the kind of guy who learns very slowly.
 
@EtiennedeMartel My point exactly :)
 
@EtiennedeMartel Sure they do: they disclose an invention, so others can find it and put it to use.
 
@EtiennedeMartel Ow
 
@sehe People kept saying learn C++ so I'ma do that now
 
user784668
4:27 PM
@EtiennedeMartel Well, judging from the description, it might even be the if statement what's patented.
 
@JerryCoffin Well, in a way. In that particular use case though... a bit of attention and a note to scribble on would do wonders for quality of medical care
@Crowz Great. You will :)
 
@sehe I'm certainly not trying to defend that particular patent (haven't even looked at it, to be honest). Putting something into a patent does accomplish something though, and not just for the owner of the patent either.
 
@JerryCoffin Agreed
 
user784668
Is std::make_heap + std::sort_heap a conforming implementation of std::sort?
 
@Crowz Well, I kept telling you to look at C#.
@JerryCoffin I was mostly criticizing the sentence itself.
The way it's written, it's almost like they claim the patent itself is going to magically solve all the problems.
 
4:32 PM
@EtiennedeMartel Fair enough -- I'd agree that it is poorly worded.
 
@EtiennedeMartel TIL patents don't solve problems.
 
In related news, IBM seems to be proud to have so many patents.
 
@Fanael Yes -- I think it should be anyway (but note that it'll be using heap-sort, so you can probably expect it to be substantially slower than std::sort).
 
@EtiennedeMartel C# looks weird
 
user784668
@JerryCoffin substantially[dubious — discuss]
 
4:36 PM
@EtiennedeMartel I'd say they are, yes. Probably more important than the sheer number is that a lot of the inventions in their patents are extremely useful. Just a quick guess, every reasonably modern PC contains implementations of at least 100 different inventions originally disclosed to the world in an IBM patent.
 
@Crowz It's got roughly the same syntax as Java. So... for varying definitions of weird, yes.
@JerryCoffin They're not as evil as one might think.
 
@NolwennLeGuen Hahahahaha
 
Xeo
@NolwennLeGuen The only CS part of that is the "TRUE" and "FALSE" words on the paper...
 
@NolwennLeGuen QCM ? :s
Is that really a serious exam?
 
4:40 PM
@NolwennLeGuen J'pense qu'ils ont juste copié-collé des bouts d'un livre.
 
@LucDanton Yeah, it is. Now solve it!
 
@NolwennLeGuen EWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
 
@CatPlusPlus "Name".
 
I figured
 
4:41 PM
I'm glad I didn't pick machine learning, btw.
 
Still funny though
 
Damn, machine learning is hard up there.
My machine learning course was mostly data mining in disguise.
 
user784668
0
Q: C++ Injected DLL read memory causes crash

user1892003i made a dll which i inject onto my process and i create a new thread which is doing the scan, but when it reaches the address 0xb application crashes instantly,here is my code for scan DWORD Max; int i = 0; DWORD old; MEMORY_BASIC_INFORMATION mbi; do{ VirtualQuery((LPVOID)MEM_START,&...

 
disguys
 
user784668
Call for close votes.
 
4:42 PM
Luckily my AI class only covered an intro to machine learning
 
Nubbery.
 
And tomorrow, "oo-modelling" exam
Meta-meta models
 
user784668
@NolwennLeGuen So meta it's not meta anymore?
 
@EtiennedeMartel What's it's main application?
 
Actually my AI class was like Intro to a bunch of stuff
 
4:44 PM
@Crowz Stuff that runs on Windows.
@NolwennLeGuen Hahahaha
 
@Fanael At least in my testing, slower than std::sort by a factor of 3-5 isn't all that rare (depending somewhat on size, of course).
 
Patterns and shit
 
@EtiennedeMartel isn't it a lot of games?
 
Someone do this crappy project for me
 
@Crowz C#? No.
C++ is used for games.
 
4:45 PM
I had data mining last year. In the exam, we used several data mining techniques to eventually get to the conclusion that "Moscow is more to the north than Alger". Amazing.
 
You'll see C# a lot for tools in game development, though.
 
@Crowz C# is for non-AAA games mainly. Because it's fast to develop.
 
@NolwennLeGuen And that's mostly because of Unity.
 
Even AAA titles use C# for their tools, though.
@EtiennedeMartel I like to call it Fagity.
 
I'm working on a tool in C# right now as we speak!
 
4:45 PM
@NolwennLeGuen Yep I wrote one
 
@NolwennLeGuen ah I see... I have a few family members that are programmers for triple A titles.
 
@Crowz Are they married
 
Are the binary representations of true and false implementation-defined?
 
@NolwennLeGuen nope hah
 
@EtiennedeMartel What is it!
@Crowz Good. Send their names at once.
 
4:46 PM
Alcoholism and Abandonment
 
@AndreiTita yep, but they are convertible to int
 
@NolwennLeGuen A host for a bunch of plugins. But mostly GUI design.
 
is there #define in C++?
 
user784668
@Crowz Yes.
 
@EtiennedeMartel You work with Unity too?
 
user784668
4:47 PM
@Crowz But avoid it.
 
@Crowz Is there ever...
 
@Crowz No. Depends for what.
 
@EtiennedeMartel I'd say they've done the best job of just about any company on earth at putting together a research organization that invents things that turn into real, useful, products (parts of products, improvement to products, etc.) At one time, Bell Labs was in the same league, but it's since been pretty much gutted. Many others do lots of cool research, but little of it really comes to much in the end.
 
@Crowz it's in cpp
 
@NolwennLeGuen No. The tool is in WPF. Our engine is in C++.
 
user784668
4:47 PM
@Abyx cpp is an implementation detail.
 
@EtiennedeMartel Why you do this to yourself? D:
 
Okay so if I have a method and I want to do #define 1 ERROR_NO_FILE_SELECTED for example...
 
@ThePhD Because WPF is coooool.
@Crowz Use a constant.
 
user784668
@Crowz You cannot #define 1. It's not a valid identifier.
 
@EtiennedeMartel But not for ThreeeDeee maaannn.
 
user784668
4:48 PM
@Crowz Also const.
 
There are AAA games on Unreal Engine, and that's using high-level scripting too
 
@Crowz Or better yet, throw a fucking exception.
 
So saying C# is mostly for non-AAA is ridiculous
 
@ThePhD We said tools. Now stfu!
 
4:48 PM
@EtiennedeMartel I click on a random game on your website. Screenshot comes up. "How many ounces are there in a half pint?". Oh, fuck.
 
@ThePhD Why are you talking about 3D?
 
Oh, tools.
Lulz I can't read.
 
@NolwennLeGuen Don't ask me how it sells.
But it sells.
 
I mean
 
For 3D you need a rectangle you can plug OpenGL or DirectX into
 
4:49 PM
This is exactly the kind of games you can't do with the international system
 
@CatPlusPlus Relatively easy to do in WPF.
 
So WPF would work just fine
 
Mmm. I took the painful route of using DirectX with WPF, I think.
 
If it's relatively easy to do using raw low-level WinAPI calls, it's trivial to do everywhere else
 
That is, I was using XNA, and not DirectX, and thus shooting myself in the face.
 
4:50 PM
I thought directx was easier to integrate...
 
@NolwennLeGuen We could only wish. How many seconds are there in a day?
 
86400, everyone knows that!
 
DirectX doesn't need extension dance to create the context
 
user784668
@CatPlusPlus Well, unless the "everywhere else" is raw X11 in your case. Assuming anybody's insane enough to use raw X11 anyway.
 
But on the other hand it's COM
So pick yer poison
@Fanael I did :V
It's not that difficult either
 
4:51 PM
@CatPlusPlus You can embed a Win32 window in a WPF control.
 
@Fanael what
 
@EtiennedeMartel That's what I had to do to use XNA.
 
@EtiennedeMartel Yes I'd expect that
 
Just use SharpDX and done. It's C# and it's nice.
 
It made me very unhappy because I also had to do raw GraphicsDevice management myself, and so cooked up a GraphicsDevice for WPF.
@NolwennLeGuen I wasn't smart enough back then. :c
 
4:52 PM
@NolwennLeGuen I heard it isn't really "slim".
 
user784668
@CatPlusPlus The last time I tried, I quickly gave up wondering why X11 is so fucked up and illogical unlike Win32.
 
SlimDX is also apparently a whole lot slower than SharpDX, but that's performance and I can hear cat hacking up a hairball. :D
2
 
They're both fucked up
 
@EtiennedeMartel Sorry, I mixed with SharpDX, I always confuse both lol
 
@Fanael I'm going to try to use X11 when I port to Linux.
 
4:52 PM
X11 more on the architecture side but still
 
@ThePhD SharpDx is much better, yup
 
user784668
@CatPlusPlus Understandably so, for they're very low-level.
 
@ThePhD Purrformance.
 
DirectX is COM, you can always just use it directly
 
@EtiennedeMartel Mmrrr, yesh, the speed must be just purrrfect, myrow~
 
4:54 PM
Well, COM-directly
 
Xeo
Awright, time to head home~
 
@CatPlusPlus Do it the wrong way and you incur all the nightmares therein.
@Xeo Buhbye!~
 
@Xeo Later.
 
WOW
 
4:54 PM
I wouldn't use DirectX on account of being too lazy to write another codepath for other platforms
 
Jerry, messin' it all up, not usin' a Tilde.
 
Xeo
@JerryCoffin As in, tomorrow, since I still don't have interwebs at home. :(
 
implying there are other platforms
 
Well, Linux
 
@Xeo !!! no tethering on phone??
 
4:55 PM
I don't really care about OSX
 
@ThePhD Would you prefer "~now"?
 
@JerryCoffin tilde at the end
 
Fuck those tildes.
 
@NolwennLeGuen But it's a prefix operator. Anybody knows that!
 
Xeo
4:56 PM
♪
 
@JerryCoffin not in japanese desu~
 
@NolwennLeGuen In C and C++, silly.
 
Xeo
In Japanese, you get the tilde if your font can't display ♪ or ♫
 
@Xeo you also get it at the end of sounds like nyuuu~
for extra kawainess
 
FFF
 
Xeo
4:57 PM
Heh
 
Wait
 
Xeo
Anyways, good evening y'all.
 
Is it Single I, kawai, or double I, Kawaii ?
 
@Xeo lol, "font can't display ♪ or ♫". it you keyboard has that key, FTFY
 
I was under the impression it was Double I.
 
Xeo
4:57 PM
double
 
Kawaii~
 
fucking finally I get visual studio to work. Was annoying to make a simple blank project
 
Shit on a biscuit.
 
@Crowz racist
@ThePhD i don't have a clue
 
Xeo
@Abyx Alt-13, Alt-14
 
4:58 PM
@EtiennedeMartel Bishcuit?
 
Xeo
♪
And Alt-3 ♥
 
THE HEART!
 
Which key is for poo?
 
Xeo
No clue.
 
I knew how to make that at one point.
 
Xeo
4:59 PM
Of course, the ever important dagger Alt-0134 †
room topic changed to Lounge<C++>: Alt-P3N15 [c++] [c++11] [c++-faq] [get-out] [no-questions]
 
What there should really be is tutorials for people who aren't beginner programmers, but are starting a new language
 
Xeo
Bye.
 
Laater.
 
@Xeo what was that?
 
@Crowz Read Accelerated C++.
2
 
5:03 PM
Here we go again...
The C# room.
 
Anyone like metal here?
 
@Crowz I like Tool.
 
I enjoy silver and gold.
 
@Mysticial Aren't you wondering why there are still so many stars on the penisboard?
 
5:09 PM
@NolwennLeGuen Har har.
 
user784668
Programming world problems: I can't decide whether the build configuration should be called "optimized debug" or "release+asserts".
 
@Borgleader There are none left now.
That took a while...
 
@Crowz I gave you a step-by-step walkthrough on how to do so :(
 
@Mysticial My bad
 
Dec 20 '12 at 0:06, by Mooing Duck
@Crowz compiler options are part of a solution/project. If you want to compile, you must have a solution/project. file->new->project->VisualC++->General->EmptyProject.
 
5:19 PM
@Borgleader Yeah, that wall of penises lasted almost 24 hours.
 
user142019
Guys.
 
user784668
GCC, you vectorized something. I know you did.
 
user142019
int foo{1, 2, 3};
std::vector<int> bar(std::begin(foo), std::end(foo));
 
user142019
I vectorized an array!
 
@Zoidberg completely different sort of vectorization
@Zoidberg also I don't think int foo{1, 2, 3} is valid syntax
 
user142019
5:23 PM
Oh yeah fuck.
 
Well, today is Frank Zamboni's birthday. And there's a cool little game about it on Google.
 
anyone know if MSVC10 is smart enough to inline lambdas?
 
user784668
@MooingDuck Is.
 
user142019
Whatever
 
5:26 PM
@Zoidberg I starred this so others can see and laugh
 
user784668
@LuchianGrigore Oh come one, he meant int foo{(1, 2, 3)};.
 
user142019
 
int[] foo = { 1, 2, 3 };
;p
 
user784668
@ShotgunNinja fromList [1, 2, 3]
 
foo = [1, 2, 3] in Python
 
5:39 PM
Is there an way to download a file to memory? I'm attempting Reflective DLL injection.
 
user142019
foo = [1, 2, 3] in Haskell
 
user784668
@Zoidberg That's a list, not an array.
 
foo = array(1, 2, 3) in PHP
@Fanael Oh, they're both trivial-time-complexity ordinal/linear containers.
 
Not in Haskell
 
They have 3 elements, are you saying there's a significant impact to time for getting an element in the worst case?
 
5:47 PM
@ShotgunNinja you said the word complexity which ignores the 3 element part. So yes.
 
@MooingDuck Oh crap, so I did.
Well, let the records show that I intended that to mean trivial access time, despite what I typed.
 
@ShotgunNinja gotta wait 3 more minutes
> The array has 2 members, and I was writing to it's 3rd, 4th and 5th members which caused it to overflow. source
@ShotgunNinja the record doth show
ooh! my wife packed brownies!
<3
 
lawl, I've certainly written to out-of-bounds indices before...
I figured out that I was doing that in my Matrix implementation lab for computer graphics a few weeks back, actually.
 
std::array in MSVC has asserts that catch that
actually, in my newest code, I use an enum to address the array. Of course, each array element has a name, so that works well in this case.
enum side_type {left, right};
obj child[2];
I can't recall why I used an array...
I'm sure I thought it was an optimization for something or other. Easier/faster access to a runtime selected element probably.
 

« first day (823 days earlier)      last day (4116 days later) »