« first day (400 days earlier)      last day (4566 days later) » 

10:00 PM
@RMartinhoFernandes Install from the adobe site?
@Drknezz C#
Also
If I try and run two clients on the same system
I don't know what happens
But the "server" actively refuses the connection? I'm guessing that's a firewall thing
 
@KianMayne I'd say firewall if those were different machines... why would a firewall block on 127.0.0.1?
@KianMayne Only thing i can say... install VStudio on Win8 and Debug there
 
@Drknezz Exactly! The ports aren't held up either - the login port gets released and listens again when one client is "logged in" and is allocated two ports
@Drknezz I'd need to debug on 7
I'm working on 8
 
@KianMayne Oh, thought it was otherwise
I really dont have a lot of experience with sockets, so you'd better whip up a Win7 VM or something :/
 
@Drknezz Eugh I just wanted to push this out :L
I'm trying WinDbg on the 7 machine
 
Not sure what that is :p
 
10:08 PM
I think (hope) it's a standalone debugger
 
Seems like WinDBG is to Windows as GDB is to Linux
Not quite sure tho
 
anybody knows jquery? js room is empty
 
WinDbg is Swiss army knife of Windows debuggers.
 
@sebas Does it look like we know jQuery?
 
10:15 PM
@sebas Ha I don't even know what it really does
 
Have you even read the title?
 
I've used it
 
Once.
 
What's there to know in jQuery? api.jquery.com and there you go.
 
10:16 PM
I did ask but seems nobody seems to know whats wrong
 
The code is in JS.
 
if anybody is bored and wants a challenge: stackoverflow.com/questions/8204897/…
 
@RMartinhoFernandes ...so cruel
 
I don't know about others but JS/PHP is not my way of fighting boredom.
I'm really thinking about refreshing my blog thingy, though.
I should start writing my ideas down somewhere.
I'm bit torn between using Hyde for static generation and writing the entire thing in Django.
 
@keithlayne It's annoying. This room is the one with the most activity on the site, so every once in a while, someone barges in asking for help with X-that-isn't-at-all-related-to-C++, claiming that the X room was empty.
FTR there are about ten people on the JavaScript room:

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
 
10:23 PM
Plus, we only answer questions we find interesting, and only when we're in a good mood.
 
@RMartinhoFernandes its empty now
 
There's an entire Q&A site attached to this chat.
 
My screen reads "14" under "current users".
 
People are so impatient these days.
 
@CatPlusPlus I get it, be advised that I'm a smartass almost always
 
10:24 PM
Sigh... time dries out so fast...
 
sbi
Ok, @jalf and everybody else, here's the list of my biggest gripes with the std lib's streams. It's what I came up with on short notice and it definitely needs some refining, but that's why I'm asking for feedback.
There should be a simple way to safe and restore all manipulatable state of a stream. There's no excuse for me needing to be reluctant to pass my precious stream to someone else's output operator lest that operator besmirches it with some kinky fill char or obscene number output format. And I never again want to have to answer a newbie question with "just create a totally new stream every goddamn time you need it, because everything else is just way too complicated!"
Throwing on errors needs to be the default mode, rather than setting some flags no newbie ever checks for.
 
I just get (almost) angry that people don't just figure stuff out
 
sbi
File streams need to open a file according to a name passed to them in the std lib's official string type. And that's std::string, not const char*.
If I want to write to/read from my own device, I rarely ever want to have to write a whole fucking buffer, I just want to provide ways to write to/read from that device and use whatever buffer was provided by the gods who implemented my std lib. (If, OTOH I want to write my own buffer – presumably because I know best which buffering strategy suits my device – then I want to be able to do that. But why do I have to everys time?)
It takes a very damaged mind to make sense of identifiers like egptr and having two member functions like underflow() and uflow() in the same class is a complete disaster, no matter which way you look at it.
There's probably only five people in the world who know how the localization facilities provided by the streams actually work, and I bet none of them ever used them for a real project.
I'm not sure there's anyone at all (besides maybe James Kanze and Dietmar Kühl) who actively remembers that there's obscure stuff like iword and pword in IO streams. Yet the purely theoretical possibility of someone, after all those decades of neglect, actually making use of those beasts makes life miserable for everyone doing anything serious with streams (like providing a means to save a stream's full state).
 
@keithlayne Yeah. I don't get that train of thought. They prefer to pester people for hours, instead of actually debug the problem.
 
can i refer to a global object in an unnamed namespace from another compilation unit with extern?
 
10:26 PM
No.
 
(yes i can with gcc 4.6.1)
i have a global object that shouldn't be part of the interface but i want to access it from within a member template. how would you go about it?
 
@wilhelmtell (what are the parens for, your inner monologue or something?)
 
i'm hoping i don't need to make this object a member.
@keithlayne it's a question about standard c++. that's what the parens are for.
 
An unnamed-namespace-definition behaves as if it were replaced by
inline(opt) namespace unique { /* empty body */ }
using namespace unique ;
namespace unique { namespace-body }
where inline appears if and only if it appears in the unnamed-namespace-definition, all occurrences of unique in a translation unit are replaced by the same identifier, and this identifier differs from all other identifiers in the entire program.
It's not easy to quote this stuff here.
Also TIL about inline namespaces.
 
10:30 PM
ok so presumably the linker didn't complain because i didn't instantiate the template.
sure.
 
@wilhelmtell Unnamed namespaces are like using static to get internal linkage. It doesn't exist outside of that TU.
 
@sbi Ugh, that's scary. I never heard about half of what you're talking about :(
 
@CatPlusPlus well only effectively.
 
If you want to refer to stuff between TUs, they need external linkage.
Also globals suck.
 
struct s { template<typename T> void f() { /* need X here, X a static-link object */ } };
 
10:32 PM
Use detail namespace or something like that.
 
@CatPlusPlus global is fine in my case. it's a constant statically-linked object.
 
Then use detail to tell people it's not part of the interface.
 
detail is a reserved C++ identifier that marks private implementation details.
(I am making stuff up.)
 
reserved? srsly?
 
By convention.
 
10:35 PM
0
Q: C#'s operators' order of operation

tlgI am porting a C++ utility to C#. When I run the following statement in C++, I get the correct operation. When I run the same statement in C#, however... Does anyone know why 'begin++' is executed? The crazy thing is that if I run (i % 2) == 0 with i=0, the Immediate Window returns true.

One more episode on the hit series "++++++++++".
 
does anybody know on what hour of the day can I get the most answers on my questions?
 
Why don't you check the database yourself, @litalmaatuk
It could be fun
 
sbi
@litalmaatuk Usually during the waking hours of the North Americans.
 
There's a question on meta about that.
217
A: Why Does Jon Skeet never sleep?

Jon SkeetOkay, just so everyone knows my rough routine, here's my timetable for weekdays. All times are UK time. 6am: get up, shave, get dressed etc (no SO presence) 6.15am: Check email/SO 6.30am: Walk to station (tiny SO presence via Android phone) 7am-8am: On train/bus to work (SO presence via 3G) 8am...

So, anytime between 6.15 and midnight (GMT).
 
10:49 PM
@sbi Don't lump me with those effing Canucks!!! :)
 
I hate my sleeping problems.
Or maybe I should hate the world for choosing stupid hours as business day.
 
@CatPlusPlus mine have rendered me pretty much useless to society
 
Sleep is just an inefficient replacement for caffeine.
 
I think I'd be much happier as a robot.
 
And lose all the cool stuff meatbags have? Like emotions and being able to put their own safety above everything else?
 
10:55 PM
Okay, a rogue robot. And emotions suck anyway.
 
@RMartinhoFernandes like
 
Meatbags :L
 
and another question: how do I read the inbox. I have written that I have 25 unread messages. but i don't know how to read them..
 
Click it?
 
I think i got it, the comments below the inbox is the inbox?
 
Circles!
 
Bow before my 1337 Paint skillz!
 
@CatPlusPlus ok, thanks. I think I got it now.
@RMartinhoFernandes Thanks
 
sbi
@CatPlusPlus Sleeping problems are cured best by a very regular way of life. Go to bed at the same time everyday, get up at the same time everyday, no matter whether you slept well or not, make it through the day. Do this strictly until it becomes better, and if it becomes worse when loosening those rules afterwards, tighten them again.
Of course, doing this isn't half a cool and hip as staying up through the night and sleeping when you ought to be at lectures.
 
11:05 PM
I fall asleep about 3, and wake up about 13-15.
 
But you can do both!
(Sleep and be at lectures, I mean)
 
Besides, gotta learn, I have a test at 7:30.
 
I will fall asleep at midnight, sometimes later, wake up at around 7, then as soon as it hits 1PM I'm exhausted and almost fall asleep in my next class
 
sbi
@CatPlusPlus You sleep 9-12hrs every day? I don't believe that.
@CatPlusPlus Yeah, of course, this excuses you hanging around here at midnight, wasting your time.
 
@sbi He's a cat.
 
11:07 PM
@sbi I'm reading slides.
It gets boring after 5 minutes, and I need a break.
 
sbi
@KianMayne Well, now let's all think hard about what could be a solution here...
 
@sbi At least.
If I somehow manage to wake up earlier, I'm as worn out as after all-nighter.
 
@sbi Hahaha I know I know but I always get caught up doing things
 
In deep sleep even world ending wouldn't wake me up.
 
11:08 PM
@CatPlusPlus It's not an instantaneous cure.
 
I just can't wake up earlier.
Or wake up and immediately fall asleep again.
 
sbi
@CatPlusPlus The last time I regularly had more than 8hrs of sleep per day was when I was under medication. The last time before that? Probably when I was in school, a few decades ago.
Oh, and make sure you never leave your apartment without a condom. If you have small kids, 6hrs of sleep all in one piece would be fantastic, so you need to prevent becoming a father at all costs.
4
 
Yeah, right, because I have to worry about that.
 
@sbi Make a vasectomy?
 
11:14 PM
@sbi You're very right about the regimented schedule. It wasn't until I had to follow the rigid Army schedule that I found out about that. And very true that you have to tighten up when you start to lose sync. I am dealing with that now that I have nothing but time on my hands.
@RMartinhoFernandes I got my wife fixed instead. Less intrusive surgery for a man, by far.
 
sbi
@RMartinhoFernandes Standard answer to that:
I have too many kids to be able to afford a vasectomy. :)
 
Yay I got my best friend to run the client on his machine
 
is it possible to use binary search on linked list. No?
 
It relies on random access AFAIK, so it doesn't make much sense.
 
@Srle I'ts possible, but it's no longer O(log n)
 
11:26 PM
so, nothing better thane O(n) ?
than *
 
That's linked lists for you.
 
Right, linear search is all that really makes sense
 
@sbi Yeah, that might be a little late now.
 
Wee, my bread isn't green yet, I still have food.
 
1
Q: What is the point of having an Object class in Java?

lordmarinaraThis is a question I was asked recently in an interview: Why does Java have a basic Object class from which all other classes inherit behaviors from? Why was Java designed in such a way? My answer (I had no clue how to answer it, so I told the interviewer this is my logical guess): The languag...

Bam, here I arrive, without an "hello", linking to a non constructive question about Java.
 
11:41 PM
"Why was Java designed in such a way?" "Because the designers were silly."
 
@RMartinhoFernandes cool film
 
I think this PHP manual page has an error: A hex character reference needs an x, as in &#xFFFD;, not <s>&#FFFD;</s>.
 
I always hated that about java...and primitives never seemed to fit with that
 
An error in PHP? Well I never.
 
@KianMayne any luck?
 
11:47 PM
I gave up and I'm just installing VC# express to debug
 
Ruby takes it even further so that everything inherits from Object, which inherits from BasicObject
In Ruby 1.9, at least
 
@keithlayne Primitives do not inherit from Object, unlike .NET's primitives (which are just structs)
 
@EtiennedeMartel I was talking out in relation to containers, etc. I know it's better now, but I hated the (un)boxing
I should have written "their integration of primitives" or something
 
OMG, have you seen the totally bullshit answer that was posted?
Claims it's about encapsulation.
 
Yeah, let's all go downvote him right now as punishment :)
... with no explanation
 
11:51 PM
@CatPlusPlus I hope to have stated it correctly in this answer.
 
I downvoted him. And provided explanation.
Didn't think I would use the "C++ doesn't have that, and it still works" argument.
 
Assembly doesn't have anything and still works.
Clearly, nothing is needed.
 
Wow I'm quite surprised at myself
I didn't know I could FTP to my server and download stuff through the command prompt :L Yet I did it without a hitch
 
@KianMayne there's another way to ftp besides command line? :)
 
I haven't used FTP for years.
 
11:55 PM
@keithlayne Haha I believe Filezilla is quite popular
 
@KianMayne whatever that is...
 
I get by with SCP.
 
I'm more a fan of naming things with the suffix "inator 3000" than "zilla"
I guess i'm in the minority though
 
Apparently so :/
 
Deploying stuff in a different way than <vcs> up/pull on the remote is silly.
 
11:57 PM
I FOUND MY BUG :D :D :D
 
@CatPlusPlus that reminds me of a question I read...
 
Oh god. That is the STUPIDEST thing ever
 
the dude was like "I checked delete from filesystem when I deleted my Eclipse project. Get it back for me. Now."
 
I must have written that method early on because it does not make sense with my whole protocol
 
@keithlayne I use 5000 or 9000.
 
11:59 PM
Information theory is sooooooooooooooooooooooooo booooooooooooooooooooring.
 
@RMartinhoFernandes that's only cause your stuff is better than mine
 

« first day (400 days earlier)      last day (4566 days later) »