« first day (810 days earlier)      last day (4154 days later) » 

Xeo
2:00 PM
@R.MartinhoFernandes With his friend, the fox.
Also, he has magical abilities.
@R.MartinhoFernandes Just look through these images.
(That's the best query I could get for now.)
 
Yeah, there is an evil snake and a friendly fox, but not really any snake hunting.
 
Xeo
Also, the evil snake tries to steal the rose from the prince.
 
The rose is the prince's love interest.
 
Hi
 
Xeo
@R.MartinhoFernandes Oh, so it's like that too in the book.
 
2:09 PM
Fuck my life. VS is clogging on scrolling 400-line text file.
 
Xeo
I don't know what you're all doing, but you're doing it wrong.
 
@BartekBanachewicz Buy more RAM.
 
@R.MartinhoFernandes I have only 3.06GB taken. Plus it's my work laptop, not my home workstation
It looks rather funny now that I've read it.
 
@R.MartinhoFernandes fuck the system
It looks like a nice criminal story
government agents and shit
 
2:17 PM
@R.MartinhoFernandes wouldn't that actually be extortion by the DA:
> Stuart asserts that New York authorities only came after him because they wanted to use him as a conduit to uncover illegal gambling operations in that state. He says the New York district attorney’s office tried to strong-arm him into a plea agreement that would have had him hacking into the systems of his software clients in order to obtain the usernames and passwords of gamblers and their bookmakers to help authorities gather evidence of illegal gambling.
 
@sehe I doubt offering plea agreements counts as extortion.
 
@R.MartinhoFernandes Well, if the terms are "you will commit information theft and privacy/confidentiality breaches (on our behalf, but we won't actually get our hands dirty)" OR you'll be charged, that could easily be construed as blackmail
 
@sehe Again, I doubt it can. That kind of legal coercion is recognized almost everywhere.
 
Of course, they could play the card "that the DA is entitled to charge him anyway" - butttt (and that is a big but) that's decidedly not how it was phrased
 
All plea bargains consist of "do something that benefits us or be charged".
 
2:22 PM
@R.MartinhoFernandes Sickens me. Either you think someone is a villain, and you want to press charges, or you don't. Gah.
 
argh
worthless health service needs an entire day to add my name to their database
 
@DeadMG sqlite
 
@DeadMG Your name must be fucking long.
 
> The case began in February 2011, when Stuart says he and his wife got the Kim Dotcom treatment after about 30 local Arizona law enforcement agents wearing SWAT gear and camouflage dress — some of them with bushes attached to their shoulders to blend into the woods around his house — descended on his home and threatened to send him and his wife to prison for 35 years if he didn’t cooperate.
^ I mean, srsly. There should be legal ways to press charges for disproportional display of power, and intimidation
 
cpx
Hmm. I never wondered about what "DeadMG" means.
 
2:25 PM
welp, that was a day well spent
 
@thecoshman It's over already?
 
I can fire up lynx directly to a search page on pirate bay
@sehe don't be silly
 
@thecoshman How impressive.
 
@DeadMG your full name must be very long
 
@thecoshman no shit
slow


poke
> Stuart has tried to obtain a copy of the affidavit used to get the search warrant, but it’s currently sealed
 
2:26 PM
@thecoshman I bet he is in the royal family or something.
 
^ I guess civilians have no rights
 
@sehe Well, that is another matter.
 
@R.MartinhoFernandes more then just lynx http://....
actually url encodes the search term, so I can just go pirate all the cake and it fires up lynx with the right url to do the search
simple yes
handy very much so
will I use it much, I very much doubt it
 
@thecoshman Good for you. I bet it is using Tor+Privocy+some kind of curl/GET incantation to get a current IP
 
I need moar music. Any recommendations?
 
2:28 PM
@BartekBanachewicz Of what kind?
 
@thecoshman Set up wget + sed (ok, maybe an actual HTML parser instead of sed) to get a magnet link directly.
 
@sehe well, no... just ssh you silly panda (I know you are not that type of bear)
 
@thecoshman I doubt you use SSH for the outgoing connection to TPB.
 
2:30 PM
@sehe I'm using Wimp, not spotify. It's too pricey in Poland ATM :(
 
@R.MartinhoFernandes does TPB have SSH? What exactly would be the gain over SSL?
 
@R.MartinhoFernandes no, uses 'xxd' and sed to convert the entire command line argument string into url % codes, then adds that to the url for pirate bay search results and fires up lynx
 
I then find my torrent(s) of choice, book mark the magnet lynx, when I want to enqueue them, I run a script that scrapes them from the bookmark file
 
@BartekBanachewicz Progressive, does that mean rock?
 
2:31 PM
@R.MartinhoFernandes no, but I will need to use ssl
 
@Xeo is it just free to download?
 
Xeo
@BartekBanachewicz Aye. They also got a classic and techno list.
 
@wilx umm... It does mean progressive. 9th symphony is progressive. The Human Equation is progressive.
 
Xeo
Note that you should like Touhou music in general.
 
Shit, I have finally found the undocumented cobwebs of this API. And it seemed I was on the right track :( Time for blind experimentation. Sigh.
 
Xeo
2:33 PM
Otherwise, you won't like them very much, I guess.
 
> Despite numerous public comments on the CIA’s drone attacks in far-flung locales such as Yemen from [...], the government is taking the position in court that it would have to eliminate you with one of its drones if it explained the legal basis of the program Alice-In-Wonderland ruling
 
Xeo
There's also a Youtube playlist on one guy's channel.
 
@Xeo Never heard any of it, so... Let's see.
 
@BartekBanachewicz In any case, try Bluetech, all albums up to The Divine Invasion.
Bleh. What was the linking syntax?
 
@wilx 404! Oh no!
 
Xeo
2:34 PM
@BartekBanachewicz First part, second part
 
@wilx you mean Sines and Singularities and Elementary Particles?
 
Yes, all before Love Songs To Source.
 
@Xeo It's... funny sounding. I'd tag it soft-metal :)
 
Xeo
@BartekBanachewicz The "hardness" ranges widely.
 
why in gods name do people give so many fucks about the OSI 7 layer model? clearly the fact that nothing practical uses it shows how useless it is
 
2:39 PM
@Xeo If the guy has an Ibanez guitar, I think I can listen to it
 
@BartekBanachewicz rather strange logic
 
> But here's the thing. That design is going to be held around 50cm from the user's eyes, drawn on a screen which is caked in sweat and grime, which is reflecting the ambient light in the room, and is - in all likelihood - cracked. Worrying about the exact scaling of a button, and the nuances of shadowing is what we in computer science would call "premature optimisation". — source
2
 
@thecoshman I'm Ibanez fanboy, and it would be an icing on the cake of this music
 
@R.MartinhoFernandes ooooh, I can't not star that
 
cast close and reopen votes 99%
MOAR REP.
 
2:48 PM
@R.MartinhoFernandes lol, even after seeing the two images flashing back and forth, I still look at the pair and think "one of them might be slightly charper... but I can't say for sure"
 
I think none of them is charper :P
 
@thecoshman Because it is convenient as a reference frame for communication between people?
 
@thecoshman Wait, TCP/IP are not practical?
 
@R.MartinhoFernandes they are not OSI 7 layer
 
What do you mean by that?
 
2:49 PM
TIL .NET Clipboard.SetText throws an argument exception saying "text cannot be null" if text is an empty string
@thecoshman ?
 
@sehe ... TCP/IP does not conform to this idealistic OSI 7 layer model
 
@sehe Probably uses if(string.IsNullOrEmpty(arg)) throw the_thingy;
 
user142019
@sehe Wat. Reminds me of MySQL where "" IS NULL is true.
 
user142019
It secretly uses MySQL for clipboard! :D
 
@R.MartinhoFernandes yeah it does. fools
@Zoidberg'-- More likely, MySQL uses the clipboard for string conversions and checks. (Obviously running wine embedded on *nix, explaining the download size)
 
user142019
2:54 PM
Now I'm wondering how Mono implements Clipboard.SetText.
 
Does this work on Twitter followers? #sudoRetweetThis
@Zoidberg'-- On what system? On Windows it probably uses the WinAPI.
 
Xeo
@R.MartinhoFernandes Lame.
 
user142019
Oh yeah that's OS-dependent. xD
 
Of course!
I cannot get the damn glyphs before the text is composed, hyphenated, rendered and all that jazz. How silly.
 
user142019
@R.MartinhoFernandes ANIMATED GIF!!!! BIN IT!!! :^)
 
2:56 PM
Animated gifs are allowed, but likely to be binned :P
At least that's how I like to interpret the rules.
 
I did not post a gif!
 
user142019
@StackedCrooked (Pro tip: upgrade your machine from the 80's.)
 
Could someone tell me how cout is actually connected to the console i.e. where does that connection setup happen after the cout object is made?
 
user142019
Implementation-defined.
 
@Zoidberg'-- It's fabricated in September 2009.
 
2:57 PM
Precisely the same: https://github.com/mono/mono/blob/master/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Clipboard.cs#L330
That wasn't hard to google (<20s)
 
user142019
@Tuntuni On POSIX it just writes to file descriptor 1 aka stdout.
 
@Tuntuni It's with wifi.
 
@StackedCrooked lol ;D
 
user142019
@sehe don't you get an exception when you call a method on null? How could isNullOrEmpty exist?
 
@Zoidberg'-- It's a static method, silly
 
2:58 PM
@Zoidberg'-- hmm ok, is there a way for me to "connect" my own ostream to the console?
 
user142019
@sehe Ah yea xD
 
The kernel exposes stdout via stdlib. So cout will call that. There's not much to connect.
 
@Tuntuni yup. assign rdbuf, or dup2 the filedescriptor if you prefer C
 
user142019
@Tuntuni use a file descriptor stream (see Boost.IOStreams) and write to stdout's file descriptor.
 
@Zoidberg'-- x.IsNull() is quite simple to get working in C#.
 
3:00 PM
@Zoidberg'-- and if i'm not using boost? rdbuf?
 
user142019
Then I don't know.
 
kk
@Zoidberg'-- @sehe thanks
 
user142019
@R.MartinhoFernandes huh? How?
 
user142019
bool IsNull() {
    return false;
}
 
user142019
:P
 
user142019
Oh cool.
 
Xeo
@Tuntuni std::cout << your_stream.rdbuf()?
 
Sorry about the indentation... ideone seems to have messed up editor settings that mix tabs and spaces in silly ways.
 
user142019
I'm used to terrible indentation. (Read: class mates.)
 
@Xeo i could but is there a way to make my own cout and make it output to the console?
 
user142019
3:02 PM
Yes. That is possible.
 
@Tuntuni Replace rdbuf.
 
Xeo
printf in the streambuf's overflow, I guess. :D
 
@Xeo lol
 
@Xeo ?!
 
Xeo
3:03 PM
@sehe What?
 
@Tuntuni Btw, there is no console in C++.
The best you can get is make it output to the same place that cout outputs, wherever that is.
 
@R.MartinhoFernandes ah, yes, thanks for the correction :) that's what i meant
 
user142019
Nothing.
 
3:05 PM
Should that be a cycle?
 
user142019
No.
 
I would expect an infinite loop.
 
user142019
You set cerr to cout, then set cout back to cerr.
 
user142019
a = b;
b = a;
 
user142019
That kind of thing.
 
3:06 PM
@StackedCrooked No. You cannot swap without temporaries.
 
Xeo
std::cout.rdbuf(0); // mwahaha, no output for you!
 
user142019
In the dtors you do the reverse. IOW: you can never get back std::cerr to its normal state.
 
@Zoidberg'-- Right. I see it now.
 
@Xeo That would do something else. Related, but it isn't the same
 
user142019
It's the epically failed swap people implement the first time they program. :^)
 
3:07 PM
@Tuntuni Simples thing that could work:
std::ostream my_cout(std::cout.rdbuf());
my_cout << "hello world\n";
 
Xeo
@sehe It prints the content of your stream to stdout. Isn't that what was wanted? :)
 
@StackedCrooked Here is a cycle using POSIX ideone.com/xL7rj
 
user142019
@Xeo he wants to redirect.
 
6 mins ago, by Tuntuni
@Xeo i could but is there a way to make my own cout and make it output to the console?
 
Xeo
@sehe I answered before that message, obviously. :P
Also, my message was missing a ':)'
 
user142019
3:10 PM
Derive from std::ostream and somewhere to std::system(("echo '" + text + "'").c_str());
 
@StackedCrooked And I have a pipe looped over itself here ideone.com/rvgUU
 
user142019
Escaping ' where necessary. :^)
 
user142019
> Author's note
 
user142019
> Forever alone.
 
@R.MartinhoFernandes I'm reading the docs for those system calls.
 
3:11 PM
@Xeo you do get repcapped if a Q is deleted
I have 4 accepted today and am repcapped at 190
 
Xeo
@LuchianGrigore Seriously?
 
Yup
and the deleted answer was 70 rep
 
@LuchianGrigore I got that before too.
FTR it did not count as a rep cap for hat gaining effects.
 
Xeo
I remember getting rep past that... oh well, whatever.
 
That's gonna be over tomorrow, right?
 
3:13 PM
@Xeo lame excuse
@Xeo somewhat better
 
Oh, I didn't know there's such a thing as stl::multimap. In fact, I didn't know there's stl namespace
 
user142019
Oh my lexer.
 
user142019
Where was I.
 
are you copying the puppy?
 
@Zoidberg'-- use assembly, call 21h subfunction AH=09 and point DX at the start of the buffer. Make sure $ terminates the contents (I can't believe Micro$oft designed that API)
 
3:15 PM
you've gained the privilege – cast close and reopen votes nananana
 
@BartekBanachewicz Obviously, someone made it. Rule 37
 
@BartekBanachewicz Not in the standard.
 
user142019
@sehe Why would I do that? That's omslachtig.
 
@Zoidberg'-- right
 
@R.MartinhoFernandes the goddamn thing is still in the question's title
11
Q: stl::multimap - how do i get groups of data?

the_SaintMultimap essentially has groups of data sorted by the key. I want a method by which I could access these individual groups and get their aggregate values. For example, in a std::multimap< string, int > I store {"Group1", 1}, {"Group1", 2}, {"Group1", 3}, {"Group2", 10}, {"Group2", 11}, ...

 
user142019
3:17 PM
Time to get out of bed.
 
I thought I was a lazy slob?!
 
I have one more class today aaargh
My back hurts and breathing requires way too much energy
2
I should be sleeping right now
 
> breathing requires way too much energy
lol
you cat!
get a more comfy chair
 
They produce these setups.
 
linked list?
 
3:21 PM
(Circles are processes; pairs of nearby parallel-ish lines are pipes)
 
oh I see
 
@StackedCrooked Oops, forgot to plink you.
 
I just saw it.
What does back and forth mean?
 
Those are the names of the pipes in the code.
 
I see. Forth is from parent to child. So it makes sense to name child to parent "back".
 
3:25 PM
@StackedCrooked Actually, forth is from child to parent.
 
(The 0s are the reading ends)
Should have put arrows in the first one.
 
fork() == 0 indicates the child right?
 
Cool.
What does pipe(back) do?
 
3:27 PM
Creates a pipe (it's an output parameter).
 
Oh, and a pipe must be a pointer to two integers?
I mean, it is represented as such.
 
Yes, an array of two file descriptors.
 
I get it now.
The dup2 calls do the actual redirection.
 
Yeah.
The weirdest bit in there is all those close calls.
 
How come you write into back[1] before redirection?
I would think you first need to setup the redirection and then write.
 
3:31 PM
@GanGnaMStYleOverFlowErroR your expressive (?) username is making me sea-sick, by the way — sehe 11 secs ago
^ also: "verbibols"
 
0
Q: Does "ANSI C" or "ANSI C++" still means something today?

user1849534last time I checked saying that you are coding in ANSI C was equal to say "this is C99 compliant code with nothing else in it", now with C11 and C++11 does this distinction still remains or it still has some sort of meaning ?

 
@StackedCrooked Does not make a difference: either way the data will end up in the pipe.
 
@R.MartinhoFernandes well, accidents rarely happen :) The rest is just close calls, that no one notices
 
@StackedCrooked Note that what gets redirected is the stdout.
(It's dup2(to, from))
 
3:33 PM
The pipe ends do not change so I can write to them at any time.
 
I could not write to stdout before redirecting though.
(Well, I could, but then there would be nothing flowing through the pipes)
 
3:49 PM
@ScottW Unevaluted statements?
 
42 mins ago, by Xeo
std::cout.rdbuf(0); // mwahaha, no output for you!
 
user142019
I use memcpy in my lexer.
 
user142019
I still do.
 
@Zoidberg'-- weer aan't memmen?
@Zoidberg'-- You wouldn't memcpy a car.
 
user142019
3:53 PM
I would if I could.
 
Me too.
lol
But I'd prefer value semantics.
auto mycar = car;
auto how fitting
 
user142019
That would also copy all the filth inside it.
 
@Zoidberg'-- Cars are not trivially copyable.
 
user142019
@R.MartinhoFernandes so, when the other car starts driving, my wheels also start spinning because they point to the same objects? OH NO!
 
3:55 PM
@R.MartinhoFernandes Well, you number plates should not be memcopied.
Those should be unique.
 
user142019
@StackedCrooked Not in Belgium.
 
@Zoidberg'-- You can always use copy-on-write.
 
user142019
lol
 
@StackedCrooked You mean when you are about to hit an obstacle the car duplicates itself?
 
user142019
@StackedCrooked lol
 
user142019
3:57 PM
Searching for "lol".
 
user142019
> 26005 messages found
 
@R.MartinhoFernandes No your original copy is only instantiated when you take your first ride.
copy on ride
@Zoidberg'-- lol
 
user142019
You wouldn't memcpy yo momma. You'd run out of space.
 
@Zoidberg'-- You can memmove her slightly to the left.
 
The human genome is quite large I believe.
 
3:58 PM
To the right is Pollux, so you better be careful.
 
user142019
@StackedCrooked that's just a single pointer. No need to copy the pointed-to-object.
 
user142019
But all the fat is directly stored as plain-old non-static data members. No pointers or references.
 
Judging from the comments here herbsutter.com/2013/01/01/video-you-dont-know-const-and-mutable I don't think this talk by Herb is being well-understood by the masses.
 

« first day (810 days earlier)      last day (4154 days later) »