« first day (1878 days earlier)      last day (3086 days later) » 

3:02 PM
What's the complexity of std::string(first, last); where first and last are of type std::string::iterator ?
 
what's going on in this coroutine
@mash linear
you know what else is linear btw
 
@user703016 don't know yet: yield to the JS room
 
sup Cicada
 
@MartinJames last time I went there I got banned so I'll thread carefully
"hello inferior runtime peasants" sounds pacifist enough
 
@user703016 lol, a whole stack of problems in there.
 
3:03 PM
@Borgleader Majestic <3
 
@MartinJames ba dum tiss
 
So how should I pass a string to a function and call std::string::replace on it and then return the string again without copying it on the stack completely or reconstructing it using the std::string constructor?
 
Ell
@mash O(1) innit?
 
@Ell no, nope
 
@mash a reference?
 
3:05 PM
It's gotta do a full copy
iirc
 
indeed, COW is banned
 
Ell
Aren't std::string iterators ContiguousIterators ?
 
also wouldn't apply there
 
Ell
ohwait, copy is O(n) anyway :V
ignore me
 
ell sucks :P
 
Ell
3:06 PM
:D
 
Not nearly as much as @Nooble, though
 
4 mins ago, by user703016
@mash linear
 
Ell
and this assignment still isn't done argghh
 
you're 4 minutes late and wrong
 
3:06 PM
my gawd
 
Ell
well it's better than being 4 minutes late and right
 
try not to be wrong on Internet
 
How is that better
 
Ell
then it's worth it innit
 
Explain that to me
You've wasted time and come up with the wrong answer
 
3:07 PM
Hey @Madara some guy just pmed me that "user703016" is kind of offensive, can we change it to something else?
5
 
That's almost as bad as Hitler.
 
> You should note that by this point we had had the machine for two weeks, during which time it had worked for a total of less than 24 hours.
 
@TonyTheLion well I'm not allowed to use references.. Only const references. And I'd rather not use a pointer either.
 
@user703016 Huh?
 
good job
 
3:08 PM
@user703016 (removed)
you guys are SO annoying
 
@mash well then, let me put it this way, you're fucked
have fun :)
 
@MadaraUchiha just fyi, @user703016 is Cicada
 
Ell
@mash just return the string by value
I don't get the issue really
 
@ShotgunNinja Yeah, I know.
 
Or is it
 
3:08 PM
@TonyTheLion did you want to say "intercoursed"
 
Ell
pass it in by value
 
@CatPlusPlus it is
 
Ell
call replace on it and then return it
[N]RVO will prolly kick in
 
@MadaraUchiha He wants to change his name to something other than UserXXXXX, surely that's possible?
 
Is it, though?
 
3:09 PM
@Ell but then I'd copy the complete string on the stack and that seems like a bad idea to me.
 
@BartekBanachewicz yes, that's the word
 
@TonyTheLion Yes, but he recently change his name, there's a 30 days or so throttle on display name changes.
 
Some people get triggered by the 703016
 
@TonyTheLion not after forcemodchange
 
703016 killed my cat
 
Ell
3:09 PM
@mash I'm confused
 
@MadaraUchiha oh you mods can't do magic?
 
Ell
do you want to modify the original string?
 
@TonyTheLion We can, not sure if I should.
 
did you know that if you add a number to 703016 you get ASCII string for SATAN
 
@user703016 hey @user, join the intercoursing room
 
3:10 PM
We normally don't use superpowers to help users overcome system limitations.
 
Well I did receive a mod message saying I could change my name, I replied that the system wouldn't let me, and got no further response. @Madara.
 
@MadaraUchiha You probably shouldn't
 
@user703016 Let me check.
 
Ell
@ShotgunNinja Don't be a fun sponge
 
@user703016 Working As Intended
 
3:10 PM
@Ell Oh fine.
 
@user703016 just put a troll auto gravatar on
 
Ell
;)
 
@CatPlusPlus We'll add that feature, but it'll take 6-8 Weeks™
 
@user703016 "You may change your name again" when the system limitation allows you to
 
3:12 PM
Uggggghghhhgghg 42 more pages to print
 
It's worth noting that (if I remember correctly) mod forced name changes do not count towards the throttle
 
And I not only have to manually switch sides
 
So the throttle was caused by your name change on the same day.
 
@MadaraUchiha ah
 
This stupid fucking bullshit hellprinter requires that every page is fed separately
 
3:12 PM
are you subtly implying I may have to build a character on the name "user703016"
 
Otherwise it decides it's a good idea to use several pages at once
 
@CatPlusPlus how is it going in the paper users world
 
@user703016 its not subtle really :P
 
@user703016 yes
 
3:13 PM
@user703016 No, I'm not so subtly implying that you will need to wait until January 1st before you can change your name again.
 
I'm not printing this for fun
 
@MadaraUchiha that's what I just said
 
@CatPlusPlus Can't you get the intern to do it or something?
 
3:14 PM
I can't afford interns
 
@CatPlusPlus get a more modern printer?
 
readingcomprehension.txt
okay let's do this
 
ITT Cat has a printer from 1970
 
@CatPlusPlus, you're not using that old Mergenthaler, are you?
 
It's from 2010ish but doesn't matter, it's just broken
 
3:15 PM
@Ell yes... at least in most cases
 
It's a set of documents we want to mail tomorrow morning so
 
Ell
@mash then why not a regular ref?
 
@TonyTheLion Yeah. His print job was submitted in 1970.
 
Have printers ever worked?
 
dear all my name is seven hundreds three thousands sixteen nice to meet you hope we share common roots ah ah gedit
 
3:15 PM
@ShotgunNinja mine works fine
 
If it was a printer from 1970 then I wouldn't be having these problems
 
@CatPlusPlus Ironically true.
 
I think there was a golden age of printers, when they just worked
 
@CatPlusPlus yes clearly the bell labs paper proves that
 
3:16 PM
before HP started putting forced expiration dates on ink cartridges
 
@ShotgunNinja Teletypes.
 
@ShotgunNinja It was a golden age of everything. Everything just worked.
 
Ell
@mash why aren't you allowed though?
 
@Ell because he knows not what a reference is probably
#noobs2015
 
@MadaraUchiha but I was born in the early 90s... the only thing I remember that "just worked" was Nokia cellphones
and Nintendo consoles (excluding the ZIF slot on the NES)
 
3:17 PM
@Ell because I have to code after some stupid style guide in this project which doesn't allow references.
 
Dot matrix forever
 
Ell
wow that's bad
 
@Ell Well it does allow const references.
 
Ell
use a pointer I s'pose then
 
@ShotgunNinja I have a Gameboy Color at home that still works (when connected to power, the battery is the only thing that degraded)
 
3:17 PM
@mash that is bad.
 
ikr
 
@MadaraUchiha I actually replaced the quarter-size battery on my Pokemon Red version... by cutting out the screw holding it together with a pocketknife.
The damn thing is literally held together by superglue, a napkin, and tape
and it still works
 
What do you do with old inkjet printers? Once you have bought one, unpacked it in your car and taken out the cartridges to put into your printer at home, what to you do with all the rest of it?
 
oh, and a paperclip that I used to reconnect a broken segment of common ground on the board that I accidentally ripped out
@MartinJames sell it for scrap
 
3:20 PM
@ShotgunNinja Nobody would want it, unless I lied and said 'complete with ink cartridges'.
 
I also need to buy a goddamn shredder for all the misprints this piece of shit produces
 
hey @user703016 join the goddamn room
 
No, I mean, take all the metal out and sell that to a scrapyard
 
@MartinJames also sell the motors on ebay
 
@CatPlusPlus We have a shredder, but it's full from last time I wanted to print a one-page e-ticket.
 
3:22 PM
LOL
 
using paper is cool
at least that's what I've heard
 
Sigh one PDF done, two copies
Next
Oh shut up with this 'omg paper is so old'
 
@BartekBanachewicz I did quite well last vacation. I managed to handle the airline and hotel with just my phone, no paper at all:)
 
@CatPlusPlus ... said cat, ripping out yet another misprint from the jaw of the printobot-2000.
 
@TonyTheLion So much floof :3
 
3:24 PM
We're required to print this shit, I'm not doing it for fun
 
@MartinJames I was soo surprised when Wizzair told me that i can't use my phone at the Hahn airport
 
My gif is about to fall off the board :( rip
 
Ell
RIP in peace
 
"this airport has no technology"
 
what is a plane
 
3:25 PM
what is NIIIIIIIIIIIIIIIIIICKKKKKKKKKKKKKKKKK!!!!
 
Ell
how can nick be real if nooble isn't real
 
@nick two-dimensional surface
 
@BartekBanachewicz Ryanair OK with mobile boarding pass at Hahn, (and also other airports I've used).
 
@Ell you're supposed to capitalize the first letter of each word
 
@BartekBanachewicz Also, Hahn lol, that fuc.. intercoursing bus to F'furt takes forever:(
 
lmao
 
Ell
ah jeezis
 
@fredoverflow shitty example
 
@fredoverflow lol, Chewable. Talk about misnamed interfaces
 
I spend 10 minutes looking for useful examples of interfaces on the Internet, and all I get is total crap.
 
3:35 PM
You have to implement every method of crap. Just total will not do.
 
Ven
@fredoverflow To chew or to be chewed, that is the question!
 
'int ch;//讀取時存儲每個字符的位置' ... next...
 
0
Q: Not able to use *p1 / *p2 as it's considering /* as start of comment section

ItachiuchihaThe code below looks okay, but when I tried to execute the code, at the k = *p1/*p2; line, the /* is taken as the start of a comment. How can I avoid this? #include<iostream> using namespace std; int main() { int n1=10,n2=2,k,*p1,*p2; p1=&n1,p2=&n2; k=*p1/*p2; cout<<k; return 0; } I tr...

rofl
 
so @MartinJames what do you think about this
for rehearsals mostly
my friend is finally buying an electronic drumset and I'm thinking about how to make it all sound ok
 
> my friend
nice try bartek
 
3:39 PM
what?
I play guitar, remember.
 
holy shit dem sliders
 
@Borgleader <3 <3
 
@milleniumbug what about them?
 
@TonyTheLion Hahaha, it's funny because he's a lion
 
@BartekBanachewicz there are so many
 
3:40 PM
lions are amazing creatures :)
 
Surround Yourself With Those Around You
 
@milleniumbug really? One per input.
or did you mean knobs as well?
 
yeah, so many sliders, knobs, and buttons
 
Yeah. I'm also underwhelmed. It's pretty standard for a small / portable mixer
 
@milleniumbug in which case it's also easy - 3/input for EQ, 2/input for AUX/FX, 1/input for pan
 
3:41 PM
Does it do remote control/automation?
Don't forget the input level gain
 
@sehe It does multitrack recording over FW/USB, and can record directly to a USB drive. Also has 2 AUX outs per input, switchable pre/post
^ those are the features that I like the most
 
Yeah. It looks real nice.
Solid brand too
 
and it's 3x over my initial, planned budget
 
Ven
@sehe does Cicada counts as "secretly expert"? :D
 
3:43 PM
@Ven Yes. Not in perl, though
 
Ven
@sehe do I count as secretly expert in perl then?
 
@user703016 shanghai<3
 
@user703016 that looks crazy
10/10 wouldn't do that
 
@nick it's beijing though lol
 
@Ven I don't know. I think so - but I don't recall specific instances as foundation
 
3:44 PM
@sehe the thing is this one is 1/3 of the price and I'm not sure whether spending that much even makes sense
 
Ven
@sehe aw, I really wanted my secretly expert title :(
 
might as well be the whole band idea fails because no time or some other shit :/
 
I have approximate expertise of many things
 
Anyone up for a pop quiz on C? Is this legal?
struct X * a;
struct X * b;
struct X { int i; } * c;
struct X * d;
 
@Ven You know, you can easily be secretly expert in any field you make up.
 
Ven
3:45 PM
@sehe but then, how can I slip a hint that I'm secretly expert on it? Needs one expert to recognize another g
 
@user703016 How Can It Be Beijing If The Shanghaiist Posted It
 
@user703016 it's hard not to push people onto the tracks there
@Ven That's true. You'll have to convince me then
 
@sehe Surely there will be "mind the gap" warnings too? :P
 
Ven
@fredoverflow should work
 
@fredoverflow Yes
 
Ven
3:46 PM
@sehe :P
 
@TonyTheLion "Warning: mind gaps"
 
@Jefery I find it really funny that the struct X part can be both a forward declaration or use of a known struct.
 
@fredoverflow 18+
 
@fredoverflow Forward declaration would be struct X;.
 
Right, so what is the correct term for struct X * a;?
 
3:48 PM
Pointer types can be of incomplete types.
 
@fredoverflow Pointer declaration.
 
So unknown structs are incomplete?
 
@fredoverflow c-avoid-at-all-costs
 
Xeo
Fuck you too, Unreal developers. :| We're wondering why the fuck our slider handles are clipped when at the ends of the slider bar, which didn't happen with 4.9. Turns out they forwarded an option from the underlying Slate widget that wasn't there before ("Indent Handle") and had the wrong default ("don't"), while 4.9 defaulted to the right one. Grml grml.
 
3:49 PM
@fredoverflow I don't know if "unknown structs" are a thing.
I've never heard of them
 
Well, it compiles, even though I only define X later, and there is no forward declaration above.
 
Xeo
@Jefery No, you can declare structs in other ways.
 
@Jefery 7/10
 
@TonyTheLion I was aware of that. Contrary to popular belief I trod on Angelic ground before
 
Xeo
@fredoverflow That counts as a declaration
 
3:50 PM
So I declare X and a in the same declaration? mind = blown
 
@sehe :)
 
Xeo
@fredoverflow Know the tag trick? template<class Tag> struct whatever{}; and then whatever<struct OneTag>, whatever<struct AnotherTag>
 
@Xeo So I get a fresh type every time? cool
 
Xeo
Not every time. A second struct OneTag would refer to the same one you declared before.
 
3:55 PM
Will this work?
struct X * a;

int main()
{
    struct X {} x;
    a = &x;
}
 
not sure, but there's a chance it might, scoping is more primitive in C
 
@fredoverflow in C++ no
 
Xeo
@fredoverflow nope, X is scoped to main - the struct X from before refers to another struct.
 
I never knew about this stuff, it's really interesting.
 
@Xeo TIL
 
Xeo
3:58 PM
In C you get this (notice the warning)
 
ok, so even C has this kind of scoping. TIL
 
C; The only programming language that treats type errors as warnings.
 
Xeo
implicit cast, isn't it?
 

« first day (1878 days earlier)      last day (3086 days later) »