« first day (481 days earlier)      last day (4476 days later) » 

2:00 PM
By knowing it!
:P
 
CO?
 
CO = company
lol yea I can say I know C++ but I haven't written anything for production..
I have written production C# code.
 
well, if you want to show you know C++ then write C++ code. There's no harm in doing the GUI through QT or MFC or whichever other framework you like, as long as your actual program logic is nice, modern and clean C++
 
room topic changed to Lounge<C++>: Pointers: just say no [c++] [c++11] [c++-faq]
 
Part of the art of C++ is the ability to tuck away the nastiness.
2
 
2:02 PM
room topic changed to Lounge<C++>: Pointers: just say no. [c++] [c++11] [c++-faq]
Damn, forgot the period.
 
room topic changed to Lounge<C++>: Pointers: not even once. [c++] [c++11] [c++-faq]
I mean, nastiness of underlying libraries, not your own nasty code.
 
Speaking of which...
1
Q: converting int to pointer

AJ.I want to save int value to a pointer variable. But i get a error: #include <iostream> using namespace std; int main() { int *NumRecPrinted = NULL; int no_of_records = 10; NumRecPrinted = (int*)no_of_records; <<< Doesn't give value of NumRecPrinted cout << "NumRecPr...

 
ah I see.
@StackedCrooked haha! =)
 
hello everyone! :)
 
hey there!
 
2:12 PM
What's up?
 
not much! Looking to get myself into more C++ soon :)
 
Nice, that's the spirit.
Anyone here knows some good real time garbage collector?
 
I don't even know what a real time garbage collector is. The only C++ garbage collector I know is boehm-gc.
 
Real-time is opposed to stop-the-world IIRC.
I.e. it runs concurrently to the 'usual' code.
 
Then I guess boehm-gc fits the bill. It's what Mono uses.
GCC, I hate you. Your build is killing my poor CPU fan.
 
2:21 PM
@DzekTrek several garbage collection schemes have been implemented in libcds: Concurrent Data Structures
 
user142019
@RMartinhoFernandes Downclock your CPU.
 
> garbage collectors interface is generalized. cds::gc::GC (where GC is one of HP, HRC, PTB
 
yeah, but in boehm-pc pauses occur so much frequently which means it's not so real-time.... @RMartinhoFernandes @sehe Thanks, will check it up now.
 
@WTP Then it will take even more forever than it already takes.
 
@DzekTrek Hazard Pointers, Pass-The-Buck and Gidenstam's memory reclamation schema (HRC)
 
2:23 PM
@DzekTrek Told you I didn't know what it was.
 
@sehe fantastic! @RMartinhoFernandes :)
 
Beware of potential legal constraints (published research could have patents pending)
 
user142019
This is cool. Google Translate is becoming pretty good.
 
I think libcds wasn't boostified due to some licensing concerns
@WTP waarom zou ik dat nou weer in het Engels moeten gaan zitten lezen (En: dutch translation joke)
 
2:24 PM
@DzekTrek What pauses? The boehm GC is a library solution, it can't modify the control flow of the program.
 
user142019
@sehe er zijn hier mensen die geen Nederlands spreken. :P
 
@WTP Really :)
 
"There are people here that don't speak Dutch"?
3
 
@LucDanton You got it. You have no plausible deniablility :)
 
Pauses at the time-scale relevant to the running app. @LucDanton @sehe I will. @WTP Sounds interesting.
 
user142019
2:26 PM
Yeah.
 
Woot, it's finished.
> Yet they succeed so far not found a lot of these super fast transistors in a computer chip, because too much current leakage. This would allow the chips within a fraction of a second melting.
 
user142019
lol
 
This doesn't make sense. Google Translate is not helping.
 
@RMartinhoFernandes Go read the original page then. Let's see if you'd rate your definition of 'not helping' overly harsh after your attempt :)
 
Yay, my CPU is back below 60ºC!
 
user142019
2:27 PM
@RMartinhoFernandes The researchers don't succeed in making CPUs from those transistors as they would melt within a fraction of a second.
 
As, so it's promising, but worthless.
 
@WTP: doesn't the electrons pass much faster through grapheen gloss over the fact that mostly means that the chips will use more power (higher currents)?
@RMartinhoFernandes always has been. Did you reapply thermal paste?
 
user142019
@sehe but they would also be much faster.
 
Right: faster => good.
 
@WTP Ever faster seems to be a bit out-of-fashion. It is more about cost effectiveness now that scaling means scaling out anyway
 
user142019
2:28 PM
My CPUs are only 36º and 38º.
 
No. 1 cost in datacenters is power consumption
 
@RMartinhoFernandes erm... Engrish much?
 
@thecoshman Ah lovely. I didn't notice that quote. Obviously, I click 'read original version'
 
Status: Currently trolling the Indian casual chatroom.
 
@WTP I'm pretty sure my laptop is full of dust, and it's old, and the fan has had better days (I can tell that because I can hear her constantly whining).
 
2:31 PM
@Xaade :D link?
 
user142019
@Xaade u Mean causal Chatroom ?
 
Woot.... I emptied the room.
 
@Xaade noooooooo..... Porque, amigo Alejandro.
 
2:32 PM
Why would you do that?
You seriously need to get out more.
 
user142019
My power supply is 70º. Is that much?
 
depends, f c or k?
 
@thecoshman There's no such thing as 70ºK.
 
user142019
ºC
 
@RMartinhoFernandes ah man, your just trolling... I hope :O
 
user142019
2:37 PM
lol if it were 70ºF that would be awesome.
 
well, I suppose technically, you should just say 70 k
 
user142019
70 K*
 
@thecoshman It's just 70K. The unit is "Kelvin", not "degree Kelvin".
 
@WTP get some eggs out then!
 
user142019
k
 
2:37 PM
Just like you don't say "degree Watt".
 
why are people here taking over the indian chatroom?
 
@RMartinhoFernandes you say potato, I say potato
why not?
 
user142019
I say degree potato.
 
I failed at English, may as well give Indian ago
2
 
user142019
I just ate 3 ºpotato.
 
user142019
2:44 PM
Little question, is |x| = √(x ∙ x) always true?
 
@WTP assuming x is real
 
user142019
@thecoshman What if x isn't real?
 
It's fake.
 
user142019
goo.gl/TscFO says "Alternate form assuming x is real"
 
2:46 PM
well, last I checked, i * iis -1, and the the square root of -1 = i... not sure what the modules of i is...
 
@WTP If x is complex, |x| means something else.
|a + bi| = √(a^2 + b^2)
 
@RMartinhoFernandes Zing
 
While (a+bi)(a+bi) = a^2 + 2abi - b^2.
 
user142019
@RMartinhoFernandes because complex numbers have two parts instead of one?
 
@WTP have imaginary numbers
 
2:49 PM
@AlfPSteinbach why did the colibri cross the road - did it?
 
@WTP Dunno. I suppose the absolute number having the meaning of distance to the origin is more useful than other meanings.
 
user142019
@RMartinhoFernandes I see, pythagorean theorem. Never thought of |x| meaning "distance from x to origin".
 
Well, that's what it means :)
 
Als
Why are people trolling that other room?
 
Because they need to get out more?
 
2:54 PM
Never thought of my age as time elapsed between now and my birth.
 
user142019
@Als because trolling is fun.
 
Als
@WTP looks like it
 
user142019
 
user142019
f*ck JPEG. ><
 
user142019
2:56 PM
I wish there was something like unjpegify.
 
Als
@RMartinhoFernandes: I was trying to catch hold of you Mr. Bot
What you think about this:
 
user142019
@RMartinhoFernandes To remove visual artifacts introduced by saving an image as a JPEG.
 
Als
0
Q: Function that takes parent as an argument call with child object: what is the reason of copying twice?

DaddyMHaving the following code: #include <iostream> struct A { int x; A(){} ~A(){std::cout <<"~A("<<x<<")\n";} }; struct B: public A { }; void f(A a) { a.x = 2; } void main() { B b; std::cout <<"----------\n"; b.x = 1; f(b); b.x = 3;...

 
22 secs ago, by R. Martinho Fernandes
What for?
@WTP Save as PNG?
 
Als
2:57 PM
@RMartinhoFernandes Your comment there gave me a indication your that bot mind is on to something..and knows whats it about.
 
user142019
@RMartinhoFernandes I got the image from the internet.
 
user142019
hi cat
 
user142019
Yeah right… SE thinks 8 == 0.
 
user142019
 
@Als Not really. But since the OP asks why the compiler is not optimizing, but doesn't specify the compiler nor flags used, I thought I'd make sure he's compiling properly.
 
3:00 PM
@WTP so tempted to flag that post it self...
 
@WTP That only shows flags you have not acted upon yet.
If you click "show all", you can see them.
 
user142019
@RMartinhoFernandes That would make the blue rectangle infinitely useless. Like "look there are some flags you haven't seen!!1" while I did see them.
 
Als
@RMartinhoFernandes Ah, I see that looked like a pretty crappy compiler.
 
@Als More importantly, since GCC 4.3 optimizes the copy away, I wonder if there's a very old GCC involved, like say, the one from Dev-Cpp (3.4).
@WTP Please direct your complaints to meta.
 
user142019
Good idea (Y)
 
3:03 PM
@WTP what's with the cleavage? (Y)
 
user142019
(Y) = thumbs up
 
@thecoshman You sex obsessed fiend.
 
@WTP (Y) will certainly get a thumbs up from me :D
 
But that doesn't look at all like "thumbs up".
 
@RMartinhoFernandes :O
 
3:04 PM
Pointers: Just once? Please?
hides
 
user142019
@Moshe NO
 
0
Q: How Can Develop My Own GUI in C++ Not The Win32 API?

Harman JI Want to develop my own GUI's in C++ means from the scratch.I m not interested in using Win32 API,the MFC,The .net nothing.I want to create and develop everything from scratch.I want every thing of myself.I just want some links,references or books anything that give me guidelines about this.. C...

 
Als
hmm...Am I not fairly clear on what I meant to say here?
2
A: Pure Virtual Function call from Base Ctor

AlsCalling an Pure virtual function from constructor is an Undefined Behavior & the compiler is free to show any behavior. Reference: C++03 Standard 10.4/6: "Member functions can be called from a constructor (or destructor) of an abstract class; the effect of making a virtual call (...

 
You don't know what you meant to say?
 
Als
3:07 PM
Especially, the comments
 
What did you drink?
 
are there really that many JS developers they need a UK room?
 
Als
@RMartinhoFernandes Because the OP fails/refuses to understand it as it seems.
 
@thecoshman I love how the third message ever in the "UK_javascript" room is "do you know how to do pagination in php".
 
@WTP Use inkscape. Apply trace bitmap with 2 colors. Voila perfectly vectorized. Save as svg, ps, what not (even jpg :) )
 
3:08 PM
in UK_javascript, 7 hours ago, by Urvisha
do you know how to do pagination in php
 
user142019
@sehe yuck inkscape.
 
user142019
Illustrator ftw.
 
@RMartinhoFernandes priceless :P
 
@WTP Not easy to please you. Be happy with sucky jpeg then!
 
user142019
@RMartinhoFernandes LOL!!1
 
user142019
3:09 PM
@sehe :P
 
@thecoshman They are trolling us? #casual chat
 
user142019
1
Q: Make the blue rectangle in chat show the amount of unread flags, not the total amount of flags

WTPWhen I vote all flags as "valid", "invalid" or "not sure", the blue rectangle still shows up: What about making it just show the amount of unread flags (rather than the total amount of flags)? That would make the square much more useful and less annoying.

 
Wait, you asked that?
 
user142019
Yeah, why?
 
Well, I'm downvoting.
That blue square is not annoying. You barely see it.
 
user142019
3:13 PM
Fine, if that's your opinion.
 
You only see it on pages outside any room.
 
what blue rectangle?
 
See? It's not annoying.
 
user142019
@jalf the one in the screenshot
 
user142019
@RMartinhoFernandes at least it's useless the way it is
 
3:16 PM
Why is it blue? If it's the one I think it is, it's orange here
 
lol
@jalf In chat.
 
oh
I.... don't see it at all in chat?
 
Exactly my point! It's pretty much invisible.
 
user142019
@jalf chat.stackoverflow.com <— here
 
hello, dudes
 
3:18 PM
@jalf Look here: chat.stackoverflow.com. On top of the page.
 
oooh there!
 
I'm having a problem with Global semaphores in winapi
 
Once you disable the notification bar which for some reason always pops up
 
when i create a semaphore in one process, I can't access it in another process
 
user142019
@MeLight you can't have "no problem" when using the WinAPI.
 
3:18 PM
with error 5 (access denied)
 
@jalf Yeah, that thing is definitely buggy. It's constantly welcoming me and asking me to login.
 
@WTP I'm afraid you're right
 
I never logout.
 
user142019
Never?
 
user142019
3:20 PM
That's not often.
 
same here
 
user142019
and here
 
has anyone ever booted into what the replacement of BIOS has become?
can't remember the name, it's not called BIOS anymore
 
Als
woot?
 
3:27 PM
They called it "woot"? Cool.
 
Snuffaluffogus. Been wondering where he's been. Gone fishing, huh? Good for him! ROFL
 
Off the top of your head, does anyone know a simple way to "step through" an if statement? I tried just using cin at the end but it only does it for the first loop
 
user142019
@TonyTheLion EFI?
 
yes EFI
 
user142019
My computer boots using EFI.
 
3:28 PM
I need to get access to it
 
user142019
Macintosh computers use EFI.
 
user142019
I'm not sure about other computers.
 
I think windows also uses EFI nowadays
 
It's not about OS is it?
 
user142019
"Microsoft introduced UEFI for x86-64 Windows operating systems with Windows Server 2008 and Windows Vista Service Pack 1, so the 64-bit versions of Windows 7 are compatible with EFI."
 
user142019
3:29 PM
@RMartinhoFernandes The OS must be compatible with EFI.
 
@WTP Ah, but Windows doesn't pick what to use.
 
user142019
You can emulate BIOS on EFI, though. Boot Camp does that.
 
Als
Check this answer:
1
A: How do I return a array from a function?

LihOSince you are using C++, it would be appropriate if you return vector<int> instead of array.

 
@WTP boot camp = ?
 
Als
It's like if anyone asks a Question on arrays, you just type an answer which says use vectors.
 
3:31 PM
nobody?
 
@Als Yeah, returning a std::array is much better.
 
user142019
@AlfPSteinbach a tool to boot an OS on a Macintosh that's not Mac OS X (e.g. Windows or Linux).
 
Actually, BootCamp is a BIOS emulator, IIRC.
 
user142019
For OSes that don't support EFI, to be exact.
 
Als
3:33 PM
@EtiennedeMartel Yes, but saying only that is an comment not the answer to OP's Question. Why should we assume OP doesnt know there are better options but still sticks to array, perhpas the OP is aware and just still wants to.
 
@Als Sigh, the code in that question will take a lot to teach.
 
@Als Because anyone who knows about proper SL usage in modern C++ would not ask that kind of question.
 
user142019
@EtiennedeMartel That's the main purpose of Boot Camp, yes.
 
Als
@RMartinhoFernandes Yes, but that doesn't justify the answer.
13 secs ago, by Als
@RMartinhoFernandes Yes, that doesn't justify the answer.
Oh holy..someones bombarding me with serial upvotes
:P
 
Oh those are always nice...
I love those random chunks of upvotes on old questions... methinks its some sort of bot.
 
Als
3:38 PM
:)
 
Dudes, any one good with semaphores?
 
Als
No, sorry we are all just some crazy people hanging out in the lounge.
 
I haven't played OpenTTD in a while.
 
Seems like it ;)
 
user142019
Aaargh, I was just writing a web app in Ruby and then I came to this godforsaken place, decreasing my productivity to 0%.
 
Als
3:40 PM
@MeLight In fact not all of us are humans actually.
 
@Als that I find hard to believe
robots are generally way more productive ;)
 
Als
@MeLight We have lot many and more than just robots actually.
 
How about someone who deals with semaphores?
uh
gonna do the unthinkable
 
@WTP how would I find out if my machine has EFI or BIOS?
 
Als
3:44 PM
@MeLight Seems you missed the hint, If you want to ask a Question, Just ask it, don't freakin keep asking whether you can ask, If someone can answer it, they will, if not you go and ask in the SO forum
 
user142019
@TonyTheLion if you boot it up and press F12 or F2 or whatever it says, look if it says "EFI" or "BIOS". If the computer isn't a Macintosh, probably BIOS.
 
right, so F12
lemme try
 
user142019
Hi, @Prætorian.
 
Oohh I just looked at the OpenTTD website for first time.. but @CatPlusPlus care to explain what it is? XD
 
ah, there you go
0
Q: Can't open semaphore from another process

MeLightI'm creating a global semaphore object in a process like this: CreateSemaphore(NULL, 1, 1, "Global\\bitmap"); now, when I'm trying to open it in a child process (it's a special case of "another process", it's not going to be a child that opens the semaphore created) like this: bitmapSem = Open...

@Als ok, question asked :P
 
3:52 PM
@TonyTheLion it may not be F12, your bios (or efi) will say what it is. Common keys include F2, F10, F12 and DEL
 
yes found it
unfortunately there were no options that I was looking for
 
@TonyTheLion what was that?
:2590810 o_0
 
I have a USB 2.0 device that doesn't seem to work on a USB 3.0 port
and I read somewhere sometimes you have a "usb legacy mode" that can be enabled through the BIOS
but it's not there
:(
 
@TonyTheLion erm... I thought USB3 has a new port shape
 
user142019
Tried a USB hub?
 
3:54 PM
yes
@thecoshman no
 
@Als To be fair, he asked the question sometime ago.
 
user142019
@Tony tried superuser?
 
@Als here's my take on it:
0
A: How do I return a array from a function?

R. Martinho FernandesThe error you get is because you named a local variable the same as the function's argument. double readScores(double scoreArray /* parameter named scoreArray */) { double scoreArray[maxStudents]; // this cannot have the same name! The code you've shown reveals a lot of confusion. I'll try...

 
@RMartinhoFernandes thanks ;)
 
@WTP nope
 
3:56 PM
Too late, though, seems an answer was already accepted :(
 
+1 up for the effort @RMartinhoFernandes
 
4:13 PM
@RMartinhoFernandes That is by far the best answer.
 
Ell
hey guys
somebody pleaseee cheer me up!
 
@Ell You're awesome.
Did it work?
 
I think I'm gonna write an online C++ tutorial that doesn't suck.
 
Ell
meh not really :S
im suicidal so it might take a bit more :S
 
4:15 PM
@EtiennedeMartel I'll gladly link to it all over the place once it is done (and accomplishes the stated goal, obviously).
 
Ell
@EtiennedeMartel I'll gladly read it if its done before tomorrow night ;)
 
Woa, woa.
I don't think I'm that fast.
 
@Ell what happens then?
 
He goes hunting unicorns.
And nobody comes back alive from that.
 
Virgin maidens do.
 
4:17 PM
do we still get unicorns?
 
Ell
@thecoshman its a long and complicated story which I know will bore everyone, i need slapping over the face with a cold wet cod to shock me out of my misery. Or some conversation
 
Try vodka.
 
Ell
so how was everyones day? :)
@EtiennedeMartel I'm underage :O
 
@Ell Never too early to start drinking.
 
@Ell :O don't you know that cod should be used less. You should use a kipper or something else of that sort
 
Ell
4:19 PM
@thecoshman sorry I will try to find a kipper!
 
@Ell frustrating
 
Ell
why frustrating?
 
What is a cod? What is a kipper?
Call of Duty, I know, but I never heard of kipper.
 
@RMartinhoFernandes a fish. a fish
@Ell lots of things, sourcecontrol, other people, documentation etc
 
Ell
@thecoshman ahh kk. listen to some relaxing music! :) Gymnopedie by Erik Satie is good :L
 
4:21 PM
@Ell going home in ten minutes. In the rain ¬_¬
 
Ell
@thecoshman its raining here too! where are you?
 
Ireland
you know, rain clouds are not globally unique
 
Weren't you guys broke just like us?
But maybe I'm confusing things.
 
@RMartinhoFernandes What country are 'you'
 
4:26 PM
IIRC Portugal wan't hit that hard. People say Ireland was, but I don't really see it
but then, I moved over after the crash
 
Well, we had to ask the IMF for cash. And our prime minister is constantly saying things are going steady, which certainly means we're screwed.
 
any way
home time :D
 
Ell
have fun in the rain :)
 
@RMartinhoFernandes oh my
 
4:32 PM
What?
 
@RMartinhoFernandes Woa, you stay up late.
 
Last I checked it's ~16h.
I'm not supposed to be asleep.
 
#augmented reality
 
I mean, sometimes it's late for me and you're on the chat.
 
@EtiennedeMartel Ah, yeah...
 
4:33 PM
@EtiennedeMartel I'm in holland and testify we all stay up Late(TM) a bit too often
 
Damn Internets are messing with me.
 
Internet is growing by leaps and bounds every day. :) It's a wheel invention of the modern age.
 
What about the microwave oven?
 
Well, it's not as effective and popular as internet, you know. :)
 
I wonder what the first posted question on SO ever was?
 
@TonyTheLion Nothing interesting really.
Some internal joke.
 
That's the question with ID 1.
 
user142019
:P
 
OT: belongs on meta :)
 
user142019
The first question still alive is № 4.
 
user142019
4:49 PM
111
Q: When setting a form's opacity should I use a decimal or double?

Eggs McLarenI'm new to C#, and I want to use a track-bar to change a form's opacity. This is my code: decimal trans = trackBar1.Value / 5000; this.Opacity = trans; When I try to build it, I get this error: Cannot implicitly convert type 'decimal' to 'double' I tried making trans a double, but then ...

 
0
Q: Replacing object from itself in C++

tartakynovHow can an object replace itself in ASNI C++ ? I want a function like foo->replaceBy(bar) which will cause object foo to delete itself and replace pointer by bar if (foo->isFoo()) { foo->replaceBy(bar); } ASSERT(foo->isFoo(), false); ASSERT(foo->isBar(), true);

Well well.
 
Is it even correct to talk about ANSI C++? I thought it was an ISO thing with no ANSI level standardisation
 
Yeah, it's probably a misnomer.
 
@EtiennedeMartel LOL, I deem that he just trolled you.
 
4:53 PM
Is ANSI an American standardisation comitee? Therefore since ISO is worldwide is must include it ?
 
@yvesBaumes Not really.
There's cooperation between the two standard bodies, but one does not own the other.
 
ASNI sounds like a Portuguese word for "stupid".
 
@DzekTrek You really need to learn what "trolling" means.
 
I thought the way it worked was there were national and international bodies and sometimes (particularly the national ones) try to get their standards accepted by the international one
 
@EtiennedeMartel :| ^
 
user142019
4:55 PM
@RMartinhoFernandes Stupid C++.
 
@WTP Redundant.
 

« first day (481 days earlier)      last day (4476 days later) »