« first day (763 days earlier)      last day (4177 days later) » 

12:00 AM
@Jordan that's not how tags work.
 
@Jordan To me it matters. It is a very different experience for a student to being told that a homework tag is required; to we are closing your question as "Too localized".
 
user1174868
@MooingDuck I know how tags work but without a homework tag they will start to creep into other areas when people feel the need to fill in tags, before you could just not look at the homework tab but without they will be tagged with other things
 
@Ell Why not just set those objects to invisible.
 
user1174868
@CaptainGiraffe It seems to be a movement on this whole site to legitmate itself to other online academic communities. I think a lot of people here feel inferior to other more academic communities becuase of the open nature of this site it allows easy questions which leaves the more high level "academic" questions as a minority on the site
 
Ell
@deadmg I was thinking that, that would also lean I wouldn't have to remove nodes when switching region
 
12:03 AM
well, that's the most direct representation of what you want to do.
"I want to make X objects invisible."
 
@Jordan I understand why you may make this comment, however the computer science site of SO is doing very well. SO itself should, in my opinion, be welcoming to homework.
 
Xeo
Remember to disable collision for invisible objects. :)
 
@Jordan it's less about acidamia and more about being an FAQ. Much homework is not a common question.
 
Many homework questions are too localized.
 
@Jordan Nah, that can't be wrong. If anything most of the guys on SO feel they are above academia.
 
12:05 AM
@R.MartinhoFernandes And thats fine.
 
Otherwise we wouldn't get comments like, "Your professor's an idiot".
 
user1174868
@Jordan I guess, I probably am more familiar with other areas that aren't SO
 
Or, "I'd question the competence of your instructor" and such...
 
I like my "an idiot" =) I keep him in my bottom drawer, encrypted.
 
and then there is people who feel above the ones who feel above academics
 
12:06 AM
@CaptainGiraffe I don't think so. Stack Overflow is not meant to be your personal tutor.
 
If anyone tries to use SO as a personal tutor, they'll get question-banned.
If anyone tries to use this room as a personal tutor, they'll get trolled.
 
@R.MartinhoFernandes No, I agree with that; but the point about SO is to keep a good quality to the questions.
 
@Mysticial If anyone tries to use this room as a personal tutor, they'll get binned. fixed
 
Asking students with homework to provide good quality questions is in my opinion a very good thing. Close to rubberducking.
 
hmm
according to Steam Hardware Survey, only 12% of Steam users still use XP.
I guess that I could write a wrapper on DirectWrite
 
12:17 AM
@Mysticial I believe Jordan is question banned
 
@MooingDuck He is, unless that changed recently.
 
user1174868
@MooingDuck But not for asking homework questions
 
user1174868
I got banned for trying to troubleshoot visual express here, I figured it was an apropriate question because there was a tag for it
 
@Jordan You might have been banned for admitting using VSExpress.
 
user1174868
@CaptainGiraffe sheeeeit, what am I suppsoe to use?
 
12:26 AM
@CaptainGiraffe Whats the problem with VSExpress?
 
@Jordan he's joking
 
user1174868
I have no idea
 
user1174868
there are always hipsters for something
 
@Jordan Well, now that I have removed my joker shades I might suggest g++ or CLang or any other free compiler out there.
 
user1174868
thanks, I really dislike VSExpress
 
12:29 AM
@CaptainGiraffe glhf with those on Windows
 
I seem to recall an ide DevC++ or something like that for windows.
 
AFAIK DevC++ hasn't been updated in ages, I could be wrong though
 
user1174868
I have linux on my netbook anyways
 
user1174868
my school uses devc++
 
@Borgleader I'm not trying to exclude windows users.
 
12:30 AM
@CaptainGiraffe I'm just saying. g++/CLang on windows isn't the easiest thing to use.
 
by that, what you mean is that Clang's Windows support is a joke- it doesn't even support exceptions on x64, IIRC.
and Cygwin is hardly the experience a Windows user is looking for
 
@CaptainGiraffe DevC++ is notoriously bad.
 
and both Clang and GCC are markedly inferior to Visual Studio
 
user1174868
well VSExpress doesn't support loading files on my computer
 
@Borgleader It seems like you have to pick your poison. Not an expert in the area, a few of my students are succesful with cygwin. Others prefer virtualbox.
 
12:32 AM
@Borgleader installing is easy, using is no more tricky than using on linux.
 
@MooingDuck Yeah I meant the experience as a whole installing /using
@Jordan What do you mean by doesn't support loading files?
 
@DeadMG Quite a few C++11 checklists disagrees with you. Also G++ not gcc that would be awkvard
 
user1174868
@Borgleader I don't want to troubleshoot my compiler but if I save some code and try to load it into VSExpress it gets an error. I have to save it as a text file and then start a new project and copy past it all
 
@CaptainGiraffe he might have been measuring by something other than "conformance"
 
@Jordan Clearly theres something wrong with either your installation or how you work. I've used VSExpress in the past and I've had no such problems.
 
12:35 AM
@MooingDuck I forgot number of mouse clicks.
 
user1174868
@Borgleader I think the problem originates from having my operating system on a different drive than the standard and then VSExpress installed on a different drive, none of the drives containing the standard letter paths
 
alright, I'm gone for the weekend. Later.
@Jordan probably
 
user1174868
later
 
@MooingDuck Cya
 
user1174868
Which to fix would require a reinstall of the operating system which I do not feel like doing
 
12:36 AM
Or of Visual Studio...
 
@Borgleader if he's correct then reinstalling Visual Studio would not help the problem
 
@MooingDuck Well if I understood correctly Windows is on a drive X (other than C) and VS on a drive Y (other than C or X) what if he moves it to X?
 
@Borgleader the problem is most likely that VS fails if Windows is not on drive C. But you're right, it's possible that might help
 
user1174868
I have tried uninstalling and reinstalling in different locations
 
@Borgleader This seems like MS-DOS problems circa 1982,. but this is a good try.
 
user1174868
12:39 AM
The only thing I have not tried is reinstalling my OS
 
@CaptainGiraffe I wasn't born then :P
 
@Borgleader Still, you are stuck with the bad decisions from that time. I apologize. The 10 year old in me apologizes =)
 
Hehehe
Updating my Nexus7 to Android 4.2 :D :D
 
if I use a signed integer type for a bitfield in a struct, will the most significant bit be treated as the sign bit?
fo instance, struct foo { int bar : 14; };
why is "probably" the only answer? is that undefined behavior?
 
12:55 AM
@zneak yes
@zneak Theres no guarantee that 2-complement is being used. Nor as far as the number of bits.
 
let's see what n3337 has to say about that
9.6.3 says "It is implementation-defined whether a plain (neither explicitly signed nor unsigned) char, short, int, long, or long long bit-field is signed or unsigned."
let's keep reading, for now I'm happy to see that the standard acknowledges signedness on bitfields
that's all it had to say in 9.6 apparently
 
@zneak yup matches my recollection
 
so I would believe that bitfields can be signed or unsigned if explicitly specified
and this part:
9.6.4 "If the value true or false is stored into a bit-field of type bool of any size (including a one bit bit-field), the original bool value and the value of the bit-field shall compare equal."
seems to guarantee that 1-bit fields will always be unsigned
 
Greetings friends!
Anybody here work with C#'s HashSet?
 
@Chimera, did you try the C# room?
 
1:08 AM
@zneak Yeah, they seem to not be around.. :-(
Last message was over 2 hours ago.
I frequent this room a lot and several people here work a bit with C#.
 
I'm familiar with said class
 
Ok. I created a HashSet containing structs. I can add elements. But when It comes time to pull an entry out based on the contents of an element of the struct I'm lost. I decided to use a HashSet because I wanted to have no duplicates in the list.
So in the end I'd like to be able to lookup data in the hashset without having to iterate through each item.
 
how are you trying to pull something out?
hash sets are unordered, and you can't randomly access elements from them
so what kind of lookup are you trying to implement?
 
Hmm, so maybe I'm going to have to use a Dictionary or something else.
struct contains String and Int. Want to lookup by String to get Int value.
So perhaps Dictionary?
 
i don't know, you still didn't tell us how you want to read from your collection
 
1:16 AM
@zneak That's just it. I don't know the normal way to read from a HashSet.
 
I know you don't know how, but that's not telling your goal
the only way to retrieve the contents of a HashSet is to iterate through it
 
My goal is to look into the HashSet and return to me an element that matches String so I can get at the Int.
@zneak Ah, yeah....
That's what I was afraid of.
 
what int?
the string's "position" in the set?
 
Each element being put into the HashSet is a Struct containing String, Int
 
now that makes sense
so you want to lookup your struct based on one of its fields
 
1:19 AM
@zneak Correct.
 
yes, use a dictionary then
 
Roger! Thanks
 
maybe you shouldn't have told them why you were there
 
@R.MartinhoFernandes Wow!
 
1:28 AM
gn8 oll farts
 
this afternoon at work I discovered a whole new kind of yoda conditionals
if (true != foo)
!foo was probably too succint
 
user1174868
why is foo so common in examples?
 
user1357851
because the earlier programmers were always hungry so they were thinking 'food bar'
 
user1357851
then they thought that's too explicit
 
because it goes well with foo bar
 
user1357851
1:31 AM
so they changed to foo bar
 
it probably came from "fubr" (f***ed up beyond recognition)
 
which comes from fubar which means fucked up beyond all recognition
 
and it's easiest pronounced "foobar"
yeah I guess I forgot the "all" in the abbreviation
 
Xeo
> The origins of the terms are not known with certainty, and several anecdotal theories have been advanced to identify them. The first known use of the terms in print appear in a 1965 edition of MIT's "Tech Engineering News."[3] Foobar may have derived from the military acronym FUBAR and gained popularity because it is pronounced the same.
 
I was right, see!
:-)
 
1:33 AM
Is it possible that I am a woman and just don't know it yet?
 
Xeo
> These terms gave the name to foobar2000, an audio player independently developed using C++, as its author was more focussed on producing a functional program than on aesthetics.
Haha
 
if you want to check a map key exists whats the simplest way?
will if(mymap["key"]) be sufficient?
 
user1357851
yes crowz we totally believe you are woman, it is so obvious
 
@Crowz Are you telling us you might be transgendered?
Female in a males body?
 
@Chimera That depends, are you coming on to me?
 
1:35 AM
@Crowz Not at all.
 
@Chimera I accept your sexual advances
 
female in a males body... is that what we call ugly girls these days ... thats new
 
Xeo
@Dave No, operator[] will create the key-value pair if it doesn't exist.
 
@Crowz LOL
 
i dont want to create it just check if it exists ..
 
Xeo
1:35 AM
Then don't use operator[].
 
@Crowz It's unlikely. However, there was a case of a man born without a penis and his doctor told his parents to raise him as a woman. It ended with suicide. But that's not the point. Erm, it's unlikely.
 
Xeo
if(map.count(key) > 0) should do.
 
@StackedCrooked Yeah, I watched a TV program about that case and a few others.
 
ah so mymap.count("thekey")
cheers :)
 
Xeo
or if(map.find(key) != map.end())
 
1:37 AM
hmm count or find.. =/
they do the same thing?
 
Xeo
For checking whether something exists, yes.
 
@Crowz Possible. My brother has a friend who claims to be a lesbian in a man's body.
 
i guess find is my preferred choice as i dont need to know how many their are
 
Xeo
However, if you need to actually access the existing element, I'd use find and store the returned iterator.
@Dave In a std::map, there's at most 1 anyways. :)
 
only if i created a key with the name in question
 
Xeo
1:39 AM
It's rather common idiom for Boost.ProgramOptions: if(vars.count("the_option")) /*logic*/
 
doesnt count check all keys even if its already found it ?
which would be less efficient to check if a key exists or not
 
Xeo
Why would it do that?
 
because its counting how many their are
 
Xeo
Again, in a std::(unordered_)map, there is at most one element with that key.
 
wait what :S
 
Xeo
1:41 AM
For multiple values for the same key, there's std::multimap.
 
im not talking about the values
only checking a key
 
Xeo
sigh
 
like if mymap["PositionX"]
 
Xeo
Yes, I know.
 
if i use count itll check how many positionX there are no ?
 
Xeo
1:41 AM
I'm just trying to explain why std::map::count will never be larger than 1
@Dave There can't be more than one
 
@Xeo Lost cause ;)
 
Xeo
The keys are unique.
 
then i dont see why there is a find and a count function
 
Xeo
Because there's std::(unordered_)multimap, which sports the exact same interface.
 
@Dave Consistent interface with multimap
 
Xeo
1:42 AM
And the set equivalents.
They all have basically the same interface.
 
ah ok ill use count then ^_^
i dont like the word choice of count
 
Xeo
It does what it says.
Counts the number of elements with that key.
 
true but it makes it sound like it can count more than one. "exist" would be better one
 
Xeo
As I said, it can count more than one for the multi variants.
It's all about a consistent interface for generic functionality.
 
okies
alot to learn in this language :P
 
1:45 AM
if only we had ranges so
if (binary_search(map, key))
would work.
if (std::binary_search(map.begin(), map.end(), key))
is too much work to be worthwhile.
 
could always make a function to return bool
 
Xeo
binary_search is stupid.
 
@Xeo Works fine when all you care about is whether something is present (e.g., using a sorted vector as a fast set).
 
Xeo
@JerryCoffin Y'know, you could've just split that into two messages. :P
@JerryCoffin But it could do the same thing as std::find and return a friggin iterator :|
 
@Xeo Yeah, could've. Oh well, too late now.
@Xeo That's std::lower_bound or std::upper_bound.
 
1:47 AM
@JerryCoffin Can't you just do: bool binarySearch(std::map<T,U> m, T key) { return std::binary_search(m.begin(), m.end(), key); } ?
 
Xeo
@JerryCoffin That's different.
 
@Borgleader Yeah if you used it enough to bother, you probably could.
 
Xeo
Okay, not completely different, but requires an extra check.
 
@Xeo The point of binary_search is to make checking for presence really simple. Returning an iterator would make that harder, and make it pretty much equivalent to one of lower_bound or upper_bound.
 
 
Xeo
1:50 AM
@JerryCoffin I don't think so, really. You either get exactly the element, or end.
 
yay two weeks it took me to get this far :P
 
Xeo
With lower_bound (or upper_bound) you need an extra check for equality.
 
@Dave whelp. at least it's not Farm Truck Simulator 2013
 
im trying to go down the rollercoaster tycoon route
one of my fav isometric games long time ago
im amazed people buy things like farm truck simulator
only flight sim is worth getting
 
@Xeo If you're using it to check for presence, yes (but if that's all you want, binary_search is just fine). Most people who check for equivalence/equality should really just be doing an insert and then (if necessary) checking whether it succeeded.
 
1:53 AM
yeah I don't get how those games turn a profit
 
@Dave The fact that people spend hundreds of dollars on Train Simulator blows my mind.
 
Xeo
@Dave There are worse ones. Like Postman Simulator.
 
lmao
post man simulator !?
i wouldnt even buy that for my enemy at christmas
 
@Xeo Could be worse, Post Op Hooker Simulator
 
Xeo
(Translated liberally)
 
1:54 AM
who the fuck buys that
 
Xeo
Please don't.
 
@melak47 Isnt that just farmville with better graphics?
 
Xeo
2 messages moved to bin
Nothing against you, but my screen isn't that big. :)
 
2 images are binworthy already? :(
 
Theses ones were yeah
 
1:55 AM
@melak47 Simple: once you have one kind of vehicle simulator, it's pretty trivial to draw some art work and let it simulate almost any other kind of vehicle. It's like spam -- only one in a thousand responds, but it's so cheap to send out that if even one in a hundred thousand responded, it'd still be profitable.
 
i wouldnt say graphics were easy :O
im crap at it
 
are you on a phone or something? those images are like 300x400 :/
 
Xeo
@melak47 1366x768 display. I was low on money when I bought that.
Still, it easily spammed out 20 messages
 
what images?
 
@Dave from a company viewpoint they are -- it's a lot easier to find semi-decent artists than programmers, and they're much more dependable at delivering what they're supposed to on time, under budget, etc.
 
1:56 AM
ah true
 
alright, how about Toilet Tycoon
 
@melak47 Oops -- now it showed up.
 
o_0
lmao i cant believe thats real
have any of you guys played rollercoaster tycoon years back ?
 
Xeo
@melak47 That one is done with humor atleast, it seems.
@Dave I did.
 
it was made in assembly code i believe by one person
 
user406009
1:58 AM
Best part was drowning the people when they started complaining about the sanitation.
 
Xeo
Yep, first one was pure assembly by a single person.
 
@Dave Nope. The last simulator I played was the original SimCity (in beautiful 720x348 Hercules Monochrome!)
 
ah simcity is good too
and theme hospital was a classic
 
Xeo
I liked the third one, though, with first-person riding the rollercoasters.
 
yeh i got RCT 3 still play it. now with custom mods its alot better
 
2:01 AM
@Telkitty ...and so?
 
user1357851
isn't posting random pic a cultural of this room?
 
none of the pictures were random =/
 
@Telkitty Sometimes, I guess. I just wondered if there was some point to it or not.
 
toilet tycoon^ game footage
 
user1357851
 
2:10 AM
@Telkitty So if a couch was nice enough, it wouldn't get attacked? Apparently cats have really high standards in this regard (I've apparently never seen a cat-owner with one that met with approval!)
 
I hate everything, you guys.
 
@Crowz You must be much more energetic than me. I can't be bothered to spend the effort to get much past "annoyed" most of the time. Hate -- no more than one thing a month at very most.
 
whats the reason for the hate first
 
@JerryCoffin Yeah I get it once a month too [spoiler]withmyperiod[/spoiler]
 
user1357851
@JerryCoffin Maybe it does not depend on the couch but the cat - the young and skinny ones tend to have higher standard (thus attack couches more)
 
2:15 AM
The SC2 WCS are here, live from Shanghai
 
@Borgleader Also there: us.battle.net/bwc/en
 
@Telkitty Unfortunately, women seem to be the same way (the young, skinny ones have higher standards).
 
Thank God for subtitles, my mandarin isn't too tight.
3
 
@EtiennedeMartel Hahahaha, have a star for that.
lol @ the chinese guy coughing backstage
 
user1357851
2:22 AM
@JerryCoffin true ... then you have cougars :x
 
user1357851
stalking their young, energetic prays
 
user1357851
 
@Telkitty No I don't have them -- they don't want anybody as old and grey as me.
 
@EtiennedeMartel Haha, clearly HuK is more used to being in front of a crowd. Too bad he's gonna get his ass kicked. I like that guy.
 
I root for HuK. Even if I know he's gonna lose.
 
2:28 AM
Yeah me too.
 
user1357851
@JerryCoffin lol I was joking :) you are much better than some aggressive idiots who frequent this room who's mentality is like some 13 yo and whose only skill is downvoting others
 
"Famous for his skill and personnality, welcome idrA" LOL WHAT
 
Famous personnality INDEED.
 
How can I debug the following? "cat synclog | z123456.tee a b - c > d" as it get a segfault when the argument is -
 
Although I'm not sure it's a positive thing.
 
2:31 AM
Definitely not.
 
@Steven10172 Hi, have we seen you before?
 
user1357851
you would have thought aggressive nerds would have some C++ skills. But then you would be wrong. I guess there are always nice skilled people (the majority) and aggressive idiots in every chatroom
 
No? I was here yesterday, but left right away
I'm just not sure how to run the debugger with the pipe
 
Have you read our newbie hints?
 
@Telkitty Oh, don't worry. I was deliberately misinterpreting what you said. The humor was weak, but at least it made me smile! :-)
 
2:33 AM
@JerryCoffin That's what counts :P
 
user1357851
@JerryCoffin yeah I know, just using this chance to whine :D
 
@EtiennedeMartel I saw that, doesn't mean I cant still try and ask
 
Indeed. But don't expect an answer.
 
user406009
@Steven10172 Why don't you try stackoverflow.com? Someone already seems to have asked this question: stackoverflow.com/questions/455544/…
 
@Telkitty Well, it is the lounge -- venting is one of its intended purposes.
 
2:38 AM
guise wat if i told u.
 
@EtiennedeMartel I really hope Day[9] is casting
 
@Borgleader He's one of the casters. There's also Mr. Bitter and Tastosis.
 
@EtiennedeMartel Awwww yeah, Tastosis :D
I dont care much for Mr.Bitter
 
@Borgleader I think he's handsome.
 
Thanks. Fixed it, but is there a reason why regcomp and regexec return different results for same command?
 
2:40 AM
@EtiennedeMartel Hah, he does look good in a suit. But like idk I just don't care for him much. I much prefer Day[9]/Apollo, Tastosis, TotalBiscuit
@Crowz go on...
 
it would ruin the mystique u guise
 
Boxxy <3
 
I hear Tastosis on the main stream.
 
does SFML support GUI stuff like input boxes etc?
or is there some library i'll need
 
user406009
@Dave You need another library.
 
2:52 AM
any suggestions that are any good
 
user406009
No idea.
 
user406009
Another alternative would be to use SFML inside one of the "popular" GUI libraries like QT or GTK+.
 
@EtiennedeMartel I cant hear anything on the main stream
nvm the sound is back
 
Yeah, I'm just muting it.
I'm here for the games, anyway.
 
just when i got the hang of SFML i need to learn a new library to do form features
 
2:59 AM
Yeah, well, SFML isn't the best choice if you want to do straight up GUI.
 
WPF :)
 

« first day (763 days earlier)      last day (4177 days later) »