« first day (655 days earlier)      last day (4296 days later) » 

10:00 PM
@Drise @MooingDuck Wait, Code::Blocks reads it as a string if I put the '\' on the end of each line o.o
 
Ugh. Now I'm just bleeding the hour away so I can go take my final.
@unNaturhal Don't use Code::Blocks.
 
@unNaturhal don't do that, it's wrong(I'm pretty sure)
 
@Drise Umh? And what?
@MooingDuck Okok, I trust you :)
 
@unNaturhal Use VisualStudio, or eclispe.
@MooingDuck Don't do that ever again.
 
10:02 PM
@unNaturhal do what Prætorian said
 
@Drise Eclipse is too few reactive... It takes one minute to start...
 
@yurikilochek Just post the link. It will one box.
 
@unNaturhal yuri's link says I'm wrong and that using `` to get to the next line in a string literal is valid
 
86
A: C++ multiline string literal

unwindWell ... Sort of. The easiest is to just use the fact that adjacent string literals are concatenated by the compiler: const char *text = "This text is pretty long, but will be " "concatenated into just a single string. " "The disadvantage is that you have to quote " "each part, and newli...

 
10:04 PM
wait, maybe,. that answer is confusing
 
i dont like these big boxes
 
@unNaturhal yeah, I was right the first time, can't use `\` to newline
 
Disable CSS.
 
@MooingDuck So, wait, which is the right way? I'm confused :|
 
@RadekSlupik thats too radical
 
10:06 PM
@yurikilochek 1) We do. 2) It protects us from link hiding to say a rickroll, or something more nefarious.
 
const char* string = "MULTIPLE\n"
                     "LITERALS";
 
Apparently there's a ghost in the chat.
 
@Zeta whoa
 
0
Q: Why does my Motorola Atrix 2 freeze up when I plug it into my linux laptop?

Mutant BobMy boss handed me a Motorola Atrix 2. I plugged it into my linux laptop to install a .apk, but then the phone became very unresponsive. It's impossible to do the unlock swipe. If the phone is already on the home screen touch screen interactions have no effect. Not even the "buttons" below the...

Close votes. Too localized, or NARQ
 
@Zeta for real? File a bug report?
 
10:10 PM
@MooingDuck I wonder if you're still a ghost.
 
@MooingDuck Thanks :D
 
@MooingDuck I had the same problem once.
 
@Drise Just off topic -- not about writing code at all.
 
@MooingDuck Search for „4chan” by Radek Slupik, sort by date.
 
@MooingDuck: It works now (after a page refresh). Could be a browser bug. After reading Drise's message I deactivated CSS and activated it again.
 
10:12 PM
@JerryCoffin Same difference.
 
@Zeta oh, disabled CSS? nevermind then
 
@Drise Effectively mostly yes. The "mostly" being that I can believe (perhaps) that it might qualify as a halfway decent question in the right place, whereas NARQ or too localized need (at least) serious modification to be good questions at all.
 
@JerryCoffin Fair enough
 
600 bits to go
 
@DeadMG What are you going on about?
 
10:17 PM
then I will have cracked SHA-2
 
How? At least one hash must have an infinite number of answers, due to the pigeonhole principle.
 
nah
for one, SHA-2 has a fixed length maximum
but for two, to crack it, you don't need to list all the answers, just one
 
You cannot SHA-2 strings that are longer than a specific length??
 
a mere 18 ettabytes
 
& the latter is true.
Oh. Meh.
 
10:20 PM
that's the same scale as we measure stuff like, "All the information on the entire Internet".
 
With porn removed.
 
but by the Pigeonhole Principle, it's pretty guaranteed to find one in, say, a 460bit input.
 
SCHEDULING!
Fuck an A
There went 4 points on my final.
 
lol
anyway
 
I was assuming there were infinite strings that could be hashed, and if that were true at least one hash would have an infinite number of answers.
 
10:21 PM
there are 102549 bits in the state of an 8-bit input, and I solved for all except about 600 of them.
 
cool :p
 
@DeadMG '"What is the term when the OS allocates a timeslice for a GUI to run?"
 
@Drise timeslice?
 
@Drise That has nothing to do with GUI. All processes are scheduled.
 
@MooingDuck Yes.
 
10:22 PM
@Drise wikipedia says "preemption" is a better word
 
nah
pre-emption is a kind of scheduling, afaik.
 
@DeadMG I know. But it was in the gui section. A soemwhat irrelevant to the class question, but it had some place. Just not something I would have studied. I would have focused on Design patterns.
 
the kind you find in 32bit operating systems is pre-emptive multi-tasking
as opposed to in DOS, when you had to explicitly yield processor time
 
@Drise what was the answer?
 
10:24 PM
@MooingDuck I dunno. I should have put scheduling though.
 
@Drise I've never heard of "a term". There's lots of parts to it, each has a name. Sheduling is best I think
 
When in doubt, answer 42. It is always correct, by definition.
 
@DeadMG That would be 16-bit Windows, not DOS. DOS didn't support multitasking at all.
 
actually giving time to a process is a context switch.
@JerryCoffin Oh. Close enough :P
 
@DeadMG question says "allocates" which I thought to not be the switching process itself.
 
10:26 PM
lol DOS. Glad I never had to use it.
 
0
Q: Visual C++ - enable optimizations and browse the optimized code

MessyCodeHow I can compile my project with optimizations turned on and see what optimizations changed in my code. For example: My original code: printf("Test: %d",52); for (int empty=0;i<100000;i++) { //Nothing here } Now when I compile my code with optimzations ,I want to see: (I think it'll ...

This is the same guy that was trying to beat compiler optimizations yesterday
 
@RadekSlupik If you're tested with acbd, answer q, since q can be manipulated to form all 4
 
@MooingDuck The scheduler decides which process gets the timeslice, and the context switch is what actually gives it.
so I'd argue that context switch would be more appropriate analogy to allocation.
 
Greetings!
If I accepted an answer to one of my questions, can I still answer my own question?
 
I just felt it was unfair to ask a question like that in a "Intro to OO using C++" class
@Chimera Should
 
10:30 PM
@Drise Agreed. It belongs in an operating systems class.
 
@Chimera Never tried it, but it seems like it should be possible.
 
@Chimera Yes.
 
@DeadMG Especially on a final.
 
@Chimera I'm not sure how you accepted an answer that you haven't posted yet...
 
@Drise I downloaded this eclipse.org/downloads/download.php?file=/technology/epp/… (just to have a try with it), but.. is it standalone? o.o
 
10:31 PM
@DeadMG The originally accepted answer will still stay accepted correct?
 
@Chimera Yep.
 
@Chimera yes
 
@Drise Don't even know what a final is.
 
@Chimera ...unless you unaccept it, it should stay accepted.
@DeadMG Final test, presumably.
 
excellent... thanks.
 
10:32 PM
@unNaturhal It should be. Everyone who is anybody uses eclipse. Except me. I use Qt Creator.
@DeadMG A final exam?
 
you have non-final exams?
 
@DeadMG Yea....?
 
@unNaturhal You have to install a compiler, if I recall correctly. Either cygwin or MinGW. Or MSVC.
 
@Drise Eclipse is one of the least used IDEs.
@Drise WTF even is such a thing?
 
@DeadMG That's news to me.
 
10:33 PM
Ok wait a second, I have a BIG trouble.
 
@Drise It's popular for some of those languages used only by scum and the damned, like Java and PHP.
 
@Drise I use ed
 
but it's very minor amongst C++
 
When I installed Code::Blocks, it installs a compiler by itself (in the same directory of Code::Blocks), but when I installed QtCreator, it installs another compiler, in the Qt directory ._. (the same, MinGW)... So my question is: it's better to install a compiler, than to link all IDE to it?
 
10:34 PM
@DeadMG You have exam 1 exam 2 exam 3 and a final exam. Depends on the professor. You could have midterm and a final.
 
ed FTW!!!
 
@unNaturhal Probably a relatively recent Cygwin/MinGW.
 
@Drise Eclipse is heavily used by Java weenies, but almost nobody else will put up with it. There is a module that's supposed to make it bearable to use for C++, but the people who wrote it seem to have a pretty loose definition of "bearable".
 
Exam just means see what you know. Final specifies see what you've learned overall.
 
@JerryCoffin You talking about CDT?
 
10:35 PM
@Chimera Yes.
 
@JerryCoffin My boss wanted to switch me off of Qt Creator and put me on Eclipse.
 
@JerryCoffin Actually there are many embedded systems manufacturers who only support Eclipse for their C/C++ toolkits
 
@unNaturhal some IDEs come with compilers. Some don't
 
@unNaturhal Try this: dcs.vein.hu/bertok/oktatas/cpp_by_eclipse/… - I would to it a little bit different, but this should work too. Just make sure that there is no white-space in your destined path. eclipse doesn't work well with those.
 
@JerryCoffin I've used it a bit.... it's not too bad.... eclipse itself doesn't seem really stable to me.
 
10:36 PM
@unNaturhal If you want a relatively clean experience for Windows, then Visual Studio is the main way to go.
 
But I think I was using an older version of Eclipse at the time.
 
@MooingDuck And it's a good thing?
 
@unNaturhal Why are you not using Visual studio?
 
@Drise So which were you having the affair with: his wife or his daughter?
 
@JerryCoffin His daughter is like 4. I'll pass.
 
10:36 PM
@Zeta Wow, it's a bit complicated to install Eclipse, this descourage me :p
 
@JerryCoffin Neither. Otherwise he would have to use Java.
 
@Drise Because it is Microsoft branded :)
 
@Zeta but Eclipse is (implemented in) Java!
 
@unNaturhal I thought you were on linux. Just use visual studio or something.
@JerryCoffin Java's soooo easy. Just install Eclipse and find out!
 
@unNaturhal If you want a pleasant Windows C++ experience, then that's pretty much all you've got.
 
10:38 PM
@JerryCoffin But he doesn't have to actually write Java - this would be even more pain. j/k
 
@Drise I'm not on linux
 
@unNaturhal In this case, that's not an excuse. I feel reasonably safe in saying that although VS sucks pretty badly, all of the other IDEs available for Windows are a lot worse. I know that sounds pretty negative, but it's actually true.
 
@unNaturhal Just install linux. Problem fixed.
 
@DeadMG It's really so good Visual Studio?
 
yep
 
10:39 PM
@JerryCoffin So VS is the lesser evil?..
@Drise LOL why? xD
 
What compiler do you recommend for windows allongside with Sublime Text 2?
 
everyone who's anyone uses VS when they target Windows.
 
@JerryCoffin I'll give my consent to that
 
@unNaturhal Yes, by far -- and I've spent a fair amount of time really looking for others too.
 
then why did people suggested me sublime text?
 
10:41 PM
@DeadMG My targer is not only windows. It's windows at the beginning..
 
@zyngawow Maybe they're just stupid? How would I know?
 
@unNaturhal Linux was designed so you could write your own experience. It's just begging to be used to write software.
 
@JerryCoffin So, you use VS too? C::B it's so bad? Why?
 
@Drise Yea, so you have to write your own experience, and it takes for fucking ever to work.
 
@Drise I have fedora 16 with GNOME 3.2... but gnome sucks, really, it sucks ._.
 
10:42 PM
@DeadMG Not really. Have you installed Ubuntu in 11?
 
yes, and it really did not work out.
 
@unNaturhal yes
 
@DeadMG I will also want to programm in more platforms, so i would like a tool available in most of them, like sublime text.
 
@DeadMG I'm talking to you on it right now. I would switch over entirely at home too, but Netflix and video games are not windows friendly.
@zyngawow Qt creator?
 
@Drise I installed ubuntu recently. Had to reboot into windows to look up how to launch firefox, then used firefox to figure out how to open a console.
 
10:43 PM
@unNaturhal Yes, I use VS also. Code::blocks is poorly organized, and despite having roughly 100000000000 configuration settings, there still doesn't seem to be a configuration that actually works worth a damn.
 
@zyngawow Most people simply write code that compiles with both GCC and Visual Studio.
 
gcc is a compiler?
 
yep
 
@zyngawow yes
 
@zyngawow Just leave
 
10:44 PM
GCC is the primary Linux compiler
 
I'm sorry, I'm new to C++ :(
 
GCC = GNU Compiler Collection
 
@DeadMG GCC is the compiler for everything-but-Windows
 
and it's perfectly good, as long as you don't mind spending a decade finding the other necessary components and coding them in yourself.
@MooingDuck Not true. Clang is the primary Mac compiler now.
 
@DeadMG true.
 
10:45 PM
and clang is also for windows isnt it?
 
@zyngawow not yet no. It runs on windows, but doesn't produce good windows code yet.
 
@zyngawow Technically, clang can target any major platform.
 
@JerryCoffin Wow.. I have to say that before of Code::Blocks I used Dev-C++ (because this is on high school/college computers) and C::B seems for me the savior :p
 
@MooingDuck There's MinGW, but it gets updated rarely and plattform specific C++11 features (threads, std::random_device) aren't implemented yet.
 
@zyngawow Theoretically, yes. In reality, no.
 
10:45 PM
but in reality, it's Windows support is shittier than what comes out of my dog's arse after she eats a bunch of slugs.
 
then vc?
I really like sublime text
 
once you use VS a little, you will go crying to your momma for the VS debugger whenever you even think about changing compiler.
 
How's the VS beta looking? Usable? Good C++11?
@DeadMG GDB does ok.
 
@Drise it has the C++11 library, but not many language features
 
@unNaturhal That's a bit like saying: "having your knees broken isn't too bad. It didn't bother me nearly as much as the time they cut off both my arms."
3
 
10:47 PM
@Drise Haha, as if.
 
@Drise no, it's not user friendly enough
 
I wont use debugging so much
 
@DeadMG Is it really so much better then gdb? Never gave it a try.
 
@MooingDuck Dafuq.
 
@Zeta yes, it's infintely better than gdb
 
10:47 PM
@zyngawow Are you fucking insane?
 
@zyngawow That's like saying "I'm writing code, but I don't care whether it will start the robot apocalypse"
 
Yes, but I'll write veeery simple programs
 
@Drise Not really.
 
@zyngawow doesn't metter, you'll do debugging
 
I dont use it on java
 
10:48 PM
@JerryCoffin :P So I think that I will try VS.. it is not free right?
 
@DeadMG I've had comparable experiences with GDB and VS, and I didn't see much of a difference between the two.
 
@unNaturhal It is free.
 
@unNaturhal it's free
@Drise one has buttons and mouse interaction and GUI, and the other has cyptic commands.
 
Really? Microsoft distribute free software? o.o
 
@unNaturhal yes. The free version doesn't have "advanced" features, but you dont need those so...
 
10:49 PM
@unNaturhal free as in beer, not as in freedom, but yes.
 
@MooingDuck Ok, I then must admit I do have bias. I use GDB in Qt creator. Which looks exactly like VS in debugging.
 
@Zeta Umh? What does it mean?
 
@unNaturhal There's a free version. There are also versions up to over $10_000USD/copy.
 
@unNaturhal Don't worry. You'll learn when you're older.
 
@Drise yeah, QT Creator makes GDB pretend to be like VS's debugger
 
10:50 PM
@MooingDuck Which is why I recommend Creator a lot. Good cross platform IDE
 
@Drise or, use the awesome IDE it's modeled after: visual studio
 
@unNaturhal What @Drise said. However, if you really want to know...
 
@Drise oh, for cross platform yes
 
@MooingDuck Not on linux!
 
Is it possible to have osx and windows on the same pc¿
 
10:51 PM
Mmmh.. I have a pass on DreamSpark provided by my college... can be usefull?
 
@zyngawow yes, I do
 
Is it a mac?
 
@zyngawow yes, can't (legally) install OSX on a non-mac
 
@zyngawow Yes, but OSX should come first. Then it's just a matter of installing bootcamp
 
@unNaturhal Yes. Gives you Professional for free.
my university gives MSDNAA, which means I can get Ultimate for free.
 
10:52 PM
@unNaturhal YES! They give you the $500 for free! Take advantage of that!
 
@DeadMG Professional give things like F# and such right?
 
@DeadMG I'm out of college now, I miss the free stuff
 
Ok, I want to install OSX on my computer(not mac, illegal, i know) just to try it and see if i prefer it to windows, so I dont want to loose my stuff
 
@Drise professional gives profiling
 
@Zeta :Still haven't understood :(
 
10:52 PM
@Drise Don't know. I got Ultimate, so :P
 
@MooingDuck Do you still have a .edu?
 
@Drise yes
 
@MooingDuck @DeadMG Good! :D
 
@DeadMG Ultimate, professional, same thing.
@MooingDuck Then you should be able to get Dreamspark stuff
3 mins ago, by Drise
@unNaturhal Don't worry. You'll learn when you're older.
 
@JerryCoffin Ten thousand? O____O
 
10:53 PM
MSDNAA is a lot more restricted
but Dreamspark will give out to anyone who has an academic email address
 
@unNaturhal As Drise said, don't worry. You'll learn later, when you discover free software licenses, open source projects, the GPL or other really long documents.
 
@Drise I could, but it's against the rules
 
@DeadMG I have one :p
 
the GPL are even worse than Apple
 
So if I want osx I have to uninstall windows
 
10:54 PM
they're not just patent trolls, they're patent trolls who turn their victims into patent trolls.
 
@DeadMG A fuckin virus
 
@unNaturhal Yup.
 
@Zeta I'm handeling with lincenses in this period :/ Too long lobs of text...
 
@DeadMG Our MSDNAA subscription has almost everything except Microsoft Office. Can't say I'm missing it though.
 
@JerryCoffin Why the fuck it costs so much? O_O
 
10:55 PM
@Zeta Same.
@unNaturhal The price seems a lot to you, but to most businesses, it's not a big deal.
 
@unNaturhal I have something nice. And you want it, right?
 
the cost of tools compared to the cost of salary, HR, accounting, hardware, and all the other stuff
 
@unNaturhal I have to ask, is English not your first language?
 
@Drise Oh, I see...
@Drise Nope :/ It wasn't clear? :p
 
@DeadMG it looks like they verify student status with the school
 
10:56 PM
@JerryCoffin With that kind of money I could have a real nice 454 build engine put into my car...
 
@MooingDuck I doubt that.
 
@MooingDuck Not for me. There's an option where you can verify from email address.
 
@DeadMG Oh yeah, I see
 
@DeadMG they claim they do, I'll see
 
@unNaturhal Had the feeling. Just making sure you aren't some pubescent boy who thinks he's all-mighty because he has a computer.
 
10:57 PM
honestly
 
@MooingDuck Yea, so long as you can log into that email...
 
compared to most pubescent boys, I'd certainly call a pubescent boy who wants to do C++ all-mighty.
 
@Drise I don't think to be "all-mighty"...
 
@DeadMG Then start addressing me as all-mighty.
 
@Drise huh, that's not much of a "verification" process. Confirmed though
 
10:59 PM
@DeadMG: what if he wants to learn it just because he thinks some C++ knowledge will make him "cool"? Jusr that?
 
@akappa Then he'll rapidly learn the truth and piss off.
 

« first day (655 days earlier)      last day (4296 days later) »