« first day (1501 days earlier)      last day (3450 days later) » 

10:00 AM
Does DOS even exist anymore?
 
@Nick no
 
@LightnessRacesinOrbit shell has successfully been added to this user's dictionary.
 
Searching for C code that uses class (vs the typical klass workaround). Didn’t expect to see C++ code in .c files, heh.
 
@Nick =)
@LucDanton mylene.cpp
 
10:01 AM
@milleniumbug Is this the real life?
 
@LightnessRacesinOrbit or is this just fantasy?
 
Caught in a landslide
 
@Nick not really
 
10:01 AM
Open your eyes @Nick
 
No escape from reality
 
@Nick that's more likely
 
@Nick no
 
Look up to the skies!
 
next time when I receive a spam call, the kind that wants to sell me funeral insurance I am going to be pretend to be a creepy psycho
 
10:02 AM
alright alright enough
> pretend
 
I am going to invite the callers to my home then ask what size shoes do they wear, then tell them I have many shoes and owners aren't coming back
is that scary enough?
 
@chmod711telkitty hehe
 
@LightnessRacesinOrbit Now, shell me this: How can I change the color of my C++ output? I want it lime green!
 
Xeo
Is there any way to obtain references to value types in C#?
 
@Nick Assuming you mean for console output, that's up to your terminal.
 
Xeo
10:04 AM
except as an out / ref parameter?
 
@Nick what color would your output be if you write to a file?
 
@LightnessRacesinOrbit I am terminally unaware of terminology.
 
green bits!
 
@salbeira lol, you know I was reffering to cout and cin right?
 
10:05 AM
@Nick where is the difference between cout and a file ?
 
Xeo
@LightnessRacesinOrbit Very funny.
 
@LightnessRacesinOrbit Yes, console output.
 
If you use streams, like cout is , none
"Everything is a file" #Linux
 
@salbeira One is temporarily printed to a shell while the other could be permanently stored on disk, I think.
 
Quite ... you write data into some arbitrary stream of bits, where it lands is unknown to you until you see a result -> the stream of your console prints it's input to the screen, a stream to a file writes the input to the file
 
10:08 AM
@LightnessRacesinOrbit What do you mean by terminal? My terminal is the same thing that runs cmd.exe
 
cmd.exe is your terminal
within it there is a shell
the shell executes the commands you input into your terminal
actually
 
they are not commands
they are programs
yes "cd" is a program
delete your bin folder of your system and you can not even change the directory anymore
 
@Xeo I'm glad the doc <title> worked out like that. It was touch and go there for a moment
@salbeira Well, no
 
Am I wrong?
 
10:11 AM
It can be implemented that way but it doesn't need to be
IIRC in Windows's shell cd is a built-in
 
@salbeira So, the shell is the terminal's bitch? Am I getting this right?
 
$ whereis cd
cd:
Looks like I can go ahead and get rid of bin.
 
The shell is a context in which there is a "current working directory", the ability to navigate directory hierarchies, and the ability to execute stuff. It's inherent in the innards of your computer. Your programs are using it all the time. cmd.exe is, quite literally, a window into that world.
 
Seems that way
 
@LightnessRacesinOrbit not inherent ... it's still a OS thing
 
@salbeira Systems that have cd as a program will have it be very lightweight, probably just invoking the setcwd syscall
 
@salbeira I've deleted the recycle bin from my desktop and my directory is working just fine. You're probably facepalming now. I get that reaction a lot.
 
@Nick Did you move the recycle bin to the recycle bin?
 
I am smiling right now rather
 
10:13 AM
@salbeira yes it's inherent in the OS
 
@salbeira cout is a an object in the C++ standard library. "a file" is... not. That's the difference
 
I didn't say the shell is implemented by transistors
 
I am hearing a lesson called "OS Construction" or "BSB - Betriebssystembau" in University right now
building my own OS from scratch in C++
:-D
brb changing rooms
 
We get that a lot
@AlexM. I wonder which of the 71 official genders is applicable here
 
@LightnessRacesinOrbit No, I just did this .
@LightnessRacesinOrbit 71? How many ratios of boy and girl can exist?
 
10:16 AM
@Nick Hiding the recycle bin icon and deleting the recycle bin are two incredibly different things
bloody cishet single-gendered entitlement. check your privilege Nick!
 
> Two-spirit person
what kind of gender is this
 
@LightnessRacesinOrbit Hiding the dirt under the carpet is how I clean my room. Do you have any objections to that?
 
druid?
 
@LightnessRacesinOrbit My privilage?
 
@Nick no, your privilege
still very proud of this answer; makes the point quite nicely, I'd say
@Nick still wrong
 
10:21 AM
Does LinkedIn have some sort of "I am not interested in job offers right now" setting anywhere?
 
yes
but I don't know where
a chick told me "I saw your profile settings say that you are interested in new opportunities, so I'm asking if this is true or you are satisfied with your current job?"
but I had no idea what she was talking about
 
tiny seafood
 
@LightnessRacesinOrbit My privilege?
 
@VáclavZeman turn your notifications setting off
 
10:24 AM
@VáclavZeman "de-activate account"
 
@LightnessRacesinOrbit :)
 
@chmod711telkitty doesn't look like seafood
 
@VáclavZeman They don't even have a setting to stop getting emails when you don't have an account
 
it's a tiny crab
 
@LightnessRacesinOrbit I no longer care what you meant by it.
 
10:25 AM
@CatPlusPlus lol
 
also generally good idea to stay away from all social networks
 
@Nick Feminist.
@chmod711telkitty thought it was a spider
 
@LightnessRacesinOrbit I think Equality should be split up into 71 equal parts if you know what I'm saying.
 
& I have small hands
 
10:32 AM
Should I switch over to Boost to get a functioning collections API ? ...
 
-4
A: What is the meaning of Rose's cameo in the Midnight episode?

17thDocterRiver Song would say: Spoilers. If you have already watched the end if the season then that's how it all worked... She re____rs and c___s back..... My 2nd favorite season that what makes docter who so awesome....... IT MAKES NO SINCE!!! LOL

top qual
 
Xeo
lol
 
It sounds like you should switch over to Java, if Java was your definition of a "functioning collections API"
 
Xeo
@LightnessRacesinOrbit Should've just answered with Bad Wolf.
 
@jalf No way ... Java's collections API is broken as fuck
but it is convenient to use
 
Xeo
10:35 AM
erm
 
with a clear naming convention that does what it says
 
@chmod711telkitty gross
 
@salbeira oh, I misunderstood then. I thought you were complaining before that std::vector's API wasn't like Java's equivalent
 
such a great country; wanna live there
 
10:37 AM
@jalf At least in Java every collection has an add, addAll, remove, removeAll, contains, isEmpty etc. etc. methods that are really clear about what they do because every collection actually needs them in some way ... until you realize the faults
@jalf Instead of a "Readable" and "Writable" interface from whom "List" derives to implement a readable and writable list interface, instead the "ReadOnlyList" derives from "List" and throws an exception if you Write to it ...
Exception centered design!
I once wrote an infinite loop by throwing an exception that caught itself causing a stackoverflow exception that get's caught with the handling of restarting the program :-D
 
user1804599
Immutable lists having add method returning void is retarded.
 
I don't understand what's wrong with C++'s collection API
Outside of the boilerplate it takes to make one.
 
Nothing's wrong it is just unusual for me
 
@salbeira the C++ container functions aren't clear about what they do?
 
Like me running around like a headless chicken trying to find out how to remove a known element from a vector
which is not supported by itself
I find that wierd
 
10:42 AM
@salbeira a known element, or an element at a known position?
 
remove(Object object)
 
erase remove idiom
 
@salbeira we find you being a noob.
 
As in, remove all elements that are equal to the argument?
 
user1804599
Write function that wraps idiom.
 
user1804599
10:42 AM
Don't repeat that crap.
 
@Abyx Say whaaaaaaaaat
 
user1804599
It should be in the standard library.
 
As in, remove the first element you find that equals the argument
 
@salbeira See <algorithm>
 
I have to admit the erase remove idiom is pretty meh
 
10:43 AM
I don't really understand what this erase/remove idiom is about ... and why it is called that
 
@salbeira That's different.
 
@salbeira std::find and then std::vector::erase
 
@salbeira Maybe you should google it.
 
@salbeira because you call the two functions named remove and erase ;)
 
Is there a difference between remove and erase?
 
10:44 AM
Remove takes things out of a range.
 
Except for the pencil? :-D
 
Erase takes things out of a container.
 
@salbeira remove is a free function that works on an iterator range, creating a new range that does not contain the removed elements. erase is a member function on the container, that erases a range of objects from the container
 
I guess it has something to do with pointer arithmetic since "what is a range in an unsorted collection" ?
 
@salbeira No, it has to do with iterators :)
pointers are just one special case of iterators
it's also what you need to learn in order for the C++ container classes to make sense
 
10:50 AM
I have kind of a feeling for that though it is still irritating
 
user1804599
@salbeira don't wrap it
 
user1804599
Write non-member functions instead.
 
globally defined util functions in their own namespace?
 
you know your day sucks when you open up your email and you find a support request saying "<thing> does not work" and nothing else about the issue, with a whole debug log sput out by adb logcat attached, that has nothing to do with the issue
some of the developers working here make me cry
 
@salbeira sounds like you don't. Otherwise you'd know exactly what "a range in an unsorted collection" is :)
 
10:51 AM
@AlexM. hey at least you got a log
 
I wish I could downvote and vote to close their email as offtopic
 
I said I get a grasp though I still do not know how it is implemented
 
wish that were all in one message mate for STARRING purposes
ho well#
 
or where it is used outside of begin() and end() parameters I pass to stuff that does what I want
 
10:52 AM
@salbeira Sure, and I'm not criticising you, just pointing out what you need to research in order to make sense of what's currently puzzling you :)
@salbeira an iterator is an object that points to one object in a sequence of objects. A pair of two iterators can be used to define a range of objects (one points to the first element in the sequence, and the other points to the object immediately past the end of the sequence)
beign() and end() just return iterators pointing to the beginning and end of a container respectively. But there's nothing magical about those
you can have an iterator pointing to somewhere in between those too. And you can define a range as everything between that and end()
 
since when did we start to feed vampires here?
 
A lot of member functions on the container classes take a range of elements (for example, vector::erase can be given two iterators, describing the range of elements to remove from the vector)
 
why is GroupBy on multiple columns so confusing?
 
user1646075
@Abyx salbeira is participating, shows a modicum of wit, and maybe the riots in the US are putting everyone in a convivial mood.
 
user1646075
@TonyTheLion what's the confusion?
 
11:04 AM
@CatPlusPlus They do, but you need an account first.
 
@GuruAdrian I'm trying to find a set of duplicate rows in a collection of objects, and per what I found on SO, you can do it with a GroupBy on whatever field you want to find duplicates for. Now I need to find duplicates based on multiple fields being the same, so I thought I could do mycolleciton.GroupBy(x => new { field1, field2, field3 }).Where( x => x.Count() > 1).Select(g => g.Key).ToList(); but it returns way too many :(
This is LINQ btw
 
user1646075
ok - LINQ is a bit foreign to me. If it was SQL there's a separate 'having' clause that is like a 'where' for groups. Does linq have something like that?
 
user1646075
in SQL: ....... having count(*) > 1
 
I think in this case it would be Where( x => x.Count() > 1)
 
You just where the groups.
 
user1646075
11:09 AM
can you point me to a sussinct overview of LINQ's clauses?
 
Count() here would count the elements of each set of items found in the different sets
 
user1646075
hmmm ok
 
@R.MartinhoFernandes Can you elaborate?
 
user1646075
This 'into' clause looks important: var custQuery = from cust in customers
group cust by cust.City into custGroup
where custGroup.Count() > 2
select custGroup;
 
user1646075
 
I see
 
user1646075
that's C# though. Can't find a Cish section for this.
 
He's using C#
 
@GuruAdrian It is C#
 
user1646075
this line intentionally left blank
 
user1646075
11:13 AM
cool
 
@TonyTheLion Do you want any of those fields duplicate, or all together duplicate?
 
user1646075
I don't suppose MSVC++ does LINQ
 
1, 2, 3, 17
1, 23, 4, 42
1, 2, 3, 69
Would all these count as dupes, or only the first and last?
 
ergh... I hate when you think a bug will quickly prove to be a non-issue, but it turns out it's in some shitty bit of code you don't know much about.
 
user1646075
anyway! your syntax is an alternative form I vaguely remember readign about? is there a .into method of come sort?
 
11:15 AM
No.
It's just the name of the parameter in the next lambda.
 
user1646075
ohhh - yeah I see it
 
If I have a texture and I only want to draw a portion of it what should I call that portion?
Clip area?
 
@R.MartinhoFernandes First and last would count as dupes here
 
user1646075
so - the result is showing (for example) (1, 2, 3) (1, 2, 3) in that situation? like it needs to be uniqued?
 
yea, I just want to find all occurrences of the duplicates.
 
11:25 AM
@TonyTheLion What kind of wrong results do you get?
 
@R.MartinhoFernandes I get way too many possible duplicates. Like 3000 out of a total 3500 items
should only be a like a few at most
 
user1646075
@TonyTheLion in a sense, it is. it's telling you the PK (according to your group list) of all the dups by the look of it.
 
Ell
@Rapptz Clip area is the area you want to draw into, so I don't think its quite right?
 
@GuruAdrian hmmm
 
user1646075
back at that MSDN page, I hate it when they don't show sample input and sample output. It's almost a perfect match for your code.
 
user1646075
11:30 AM
ummmmmmm - i don't suppose an order-by clause is needed to get the things next to each other? It's not dumbly thinking that A, A, B, A, C, A is groups of (A) (B) (A) (C) (A) just because of the order it is being presented?
 
@Ell Suggest a better term then.
SFML is useless, it calls it "TextureRect"
SDL is also useless, it calls it "Destination Rect"
both are rather dumb terms tbh
 
user1646075
SQL would not suffer that problem, but LINQ i never played with that much.
 
I mean I could try this in SQL
 
user1646075
I removed the order clause in my paste, just to save a line. It was like this:
var custQuery =
from cust in customers
group cust by cust.City into custGroup
where custGroup.Count() > 2
orderby custGroup.Key
select custGroup;
 
I'm just not a fan of running this on a database that is already quite slow, and has millions upon millions of rows in it
 
user1646075
11:32 AM
SQL has no trouble.
select k1, k2, k3 from foo group by k1, k2, k3 having count(*) > 1
 
user1646075
perfect result as expected
 
user1646075
I inserted robots sample into my table.
 
@AlexM. Went to find this post.
I can see why he thought she was male.
 
user1646075
do share!
 
11:34 AM
also I noticed that the original post is from /r/cringepics
the cancer of reddit
 
user1646075
heh
 
user1646075
just needs a tidy-up I reckon.
 
yeah
not terrible or anything
shame about the self-esteem though
 
user1804599
@Rapptz I like /r/imgoingtohellforthis a lot.
 
user1646075
then again, could be an attention whore. MAYBE. Lots of respondents piling on the support
 
11:39 AM
@Rapptz I've seen way worse yeah
 
user1646075
@AlexM. Seen? I've ... but alcohol has a lot to answer for sometimes.
 
I go to /r/amiugly every once in a while
and 65% of the people there aren't ugly
 
user1646075
 
Ell
@Rapptz subtexture rect? :P
Idk
 
fucking awful
:c
 
user1646075
11:41 AM
Any luck @TonyTheLion?
 
such bad names
;-;
 
Ell
Source Region
Source
 
user1804599
> What do you get if you put a baby in a blender? An erection.
 
"alright" is an alternative spelling of "all right", and "allright" is a misspelling thereof.
 
11:44 AM
> (informal) Alternative form of all right[1][2][3][4][5][6] Satisfactory; okay; in acceptable order, but not necessarily completely right. Used to distinguish from "all right", which would mean "all correct".
 
So there’s all together none wrong with it then.
 
@Rapptz Wow.
 
user1646075
@R.MartinhoFernandes English is psychotic
 
I get bored.
 
I looked at it, and gosh, some people are really insecure about their looks.
 
11:48 AM
Yup.
A majority of them look perfectly fine.
 
Ell
Hmm. What to call my blog
 
Ell
@Rapptz sheeeeit
 
user1804599
@Rapptz apart from the tear tattoos he doesn't look very bad
 
Ell
I don't know how to use jekyll with github pages
 
user1804599
11:55 AM
Instead of running jekyll build you run git push.
 
user1804599
That's it.
 
Ell
so github does jekyll build for me ?
so I add everything but _site?
 
user1804599
Yes.
 
user1804599
The only limitation is that you cannot use custom Jekyll plugins.
 

« first day (1501 days earlier)      last day (3450 days later) »