« first day (1278 days earlier)      last day (3896 days later) » 

17:00
I've just commited a refactored interface
@CatPlusPlus lol, no.
looks a tad better I guess
Now Windsor
@CatPlusPlus why
17:01
headdesk
Never not
@CatPlusPlus yes and no
I enjoyed it and it had good moments. I wouldn't say it was "good" in the sense that you surely mean.
user1804599
17:25
Hmm.
user1804599
Volbeat.
user1804599
Thank you for the answers. What if I had List2 = [[1,2,3],[4,5,6]]? How can I do it now? — DejaVu 30 mins ago
user1804599
lol; using a comment to post a follow-up question
I propose new type named ind as a replacement for int and to be used for indexing.
user1804599
Noo.
user1804599
17:30
ind<N> where N is the number of dimensions.
ind is one-dimensional.
use ind per dimension
user1804599
Meh. :(
user1804599
std::tuple<ind, ind, ind>
how would you increment vertically?
^^ and vv ?
Xeo
Xeo
17:39
meh, I need some people that are actually good at SpeedRunners. :(
user1804599
@StackedCrooked **my_ind.
Xeo
Xeo
only finding noobs online, that's no fun
user1804599
only finding boobs online, that's fun
my colleague's UI has a duration input textbox and you can specify the time units as: ns, μs, ms, s, ...
He doesn't know how to type μs with his keyboard.
I'd just use us or have a dropdown box for the units.
user1804599
17:41
@StackedCrooked What a dumbass. It’s just µ followed by s.
user1804599
I wonder what YouTrack does when I enter “1µs” as estimation.
He just sets it to 10000ns, closes dialog, and then reopens it. then it will appear as 10 μs.
He could just write one line of code to make it accept us.
That was just amusing to see.
user1804599
Can I also enter time in t_P for Planck time units?
user1804599
And what abbreviation is used for lunar months?
@StackedCrooked Make a better layout duh
μμμμμμ
user1804599
17:47
I should do something with rightfold.org.
@BartekBanachewicz someone discovered FRP in JS, pretty funny if you want to see.
@BenjaminGruenbaum yeah, Polish JS-News group was talking about those yesterday. linky
It's nothing special but I found it really amusing that they thought about it.
inb4 my answer kinda sucks :P
If some function exists in one part of my codebase then access it anywhere without needing the header file. I could just forward declare it when I need it.
Then I don't have to add 4 lines to 3 different Makefile.am files in order to get access to the header path.
It's tempting.
Make another smaller header file for that function and other common ones that have a goal in common and include that?
17:58
sure
that header would still reside in the library it was defined.
so I won't escape the automake torment.
@StackedCrooked So, essentially, manually creating a header and including it.
0
Q: how to Change the value of $_GET variable in url

Malangiplease help me in solving the issue given below: http://www.test.com/file.php?did=12&done=25&sort=92 how i can update the value only of did=12 to did=11 and the remaining part of URL will remain same by clicking on a button or link. waiting for your kind responses. thanks in advance

knock yourselves out
@LightnessRacesinOrbit I actually completely understand what OP wants.
he wants money
18:11
@SamDeHaan lol
@FredOverflow wow, twote it!
@rightfold you use YouTrack?!
user1804599
Yes, why?
user1804599
JIRA was shit.
@rightfold you're such a wow php programmer.
Also - what was shit about JIRA?
user1804599
We used to use Mantis, which was even more of a piece of shit than JIRA is.
@rightfold what? Are you new here?
user1804599
18:20
@BenjaminGruenbaum Cluttered unnavigatable UI.
@rightfold really? It works quite well for us.,
Sam
Sam
Higuys..!!
user1804599
Going to an issue took like, more than four clicks.
user1804599
Also the trial expired.
@rightfold Mantis /was/ shit. Back when it even was applicable.
18:21
From where?
Ah, trial expired
user1804599
@sehe Why the interrobang?
user1804599
@BenjaminGruenbaum home page.
user1804599
I also find the agile boards working more smoothly in YouTrack.
user1804599
The ones from JIRA were laggy and glitched.
You can change the home page to show whatever you want, but I agree the defaults should be to show more issues.
Oh, we don't use agile boards.
user1804599
18:22
We use only the agile boards. :P
@rightfold I was confuzzled. Thought it was one of those lifestyle/body health devices. I wondered why you'd make it accept µs
user1804599
lol
user1804599
> confuzzled
@rightfold ah lol, I have no idea how good or bad is JIRA as anything but a bug tracker, that's all we used it for.
user1804599
We put bugs on the agile boards too.
18:23
I never got agile boards.
But, I don't get a lot of agile stuff, that's just me.
user1804599
It’s clear to see who is doing what this way IMO, and changing the status is easy (just drag and drop).
Always reminded me of Java.
Damnit, I just want some new Scott Meyers material, and all I find is this gay porn.
user1804599
Gay porn is way hotter than that.
Sam
Sam
0
Q: How do I implement assign once in C++

The MaskI know there's no compiler support for it, no compiler-exntension, so far I know but if I'm wrong tell me please. So, I want to implement this in C++ itself. An obvious solution is create a class with a boolean value, overload operator = check if it's true and if so, give a compiler error meaning...

hmmm
18:28
type x;
x = 3; // ok, not assigned yet
type y = 3;
y = 2; // already assigned, error
lolwat
So I cannot assign to y, because x was already assigned to?
Why on earth would I want something like that?
user1804599
In Scala you can probably do that, lol.
Fred, look again. You're doing it wrong.
Oh, OP thinks type y = 3; is an assignment.
18:30
doesn't matter
He doesn't want an assignment to be valid after precisely one initialization OR assignment has already taken place
final int i;
i = 42;
He also doesn't want an intrusive solution with a bool flag in the type
^ valid Java?
So I say fuck it, don't do this
Sam
Sam
why would one need to do so?
18:31
@Sam Because one cannot into programming.
@BenjaminGruenbaum Doesn't matter that you can guess. It's a poor question when you have to guess. And here you have to guess hard. OP needs to learn.
@Sam Apparently, he needs "Java's final behavior in C++" without giving an actual reason.
because he's positive he needs a hammer for this, it's obviously the best way. If only his hammer was a wrench.
user784668
@FredOverflow Who knows, fuck Java.
user1804599
@FredOverflow Because all languages are Java.
user1804599
18:32
And Java is the only good way to write software.
user1804599
Duh.
Sam
Sam
^ +1 for "Duh." :D
@LightnessRacesinOrbit I don't guess, I know. I don't care and I think OP is lazy and shouldn't be allowed to ask questions - but that's another story.
user1804599
Here is my guess: OP is a faggot.
18:34
Dear diary
@BenjaminGruenbaum You are objectively wrong, unless he has private messaged you some details.
Sam
Sam
@BenjaminGruenbaum too hard on him/her
user1804599
Hardness Races in Orbit
@the0ther Did you downvote me for that? I think that's fair if you can show me how you'd answer the OP's question with just find then? — sehe 8 secs ago
user1804599
Hmm.
user1804599
18:38
Confusing -L for -l.
@Sam thanks Jesus, gonna teach me to forgive next?
user1804599
Reminds me of the Perl documentation, which uses crappy font for these flags.
user1804599
I wanted to use -I flag but I used -l flag and for like an hour I had no idea what the fuck was going on.
18:40
@EtiennedeMartel tais toi
user1804599
@FredOverflow Almost always happens to me. :D
This morning I was thinking that operator int&() gives you almost identical behavior as if you inherited int (if that were possible).
@rightfold Yeah, been there :)
The only thing you don't get automatically is operator&
@LightnessRacesinOrbit What? It's about hockey.
(The only Canadian team in the playoffs is the Montreal Canadiens)
user1804599
18:42
Beh, silly type systems with different kinds of types.
user1804599
Fustercluck.
@FredOverflow Should be on the wiki, really
@FredOverflow They ignore everything else, there's nothing to gain by pinning such a thing.
user784668
@EtiennedeMartel The only Canadian hockey team that can play hockey?
@rightfold disagree
18:45
@EtiennedeMartel What is that in English?
@EtiennedeMartel No, it's about ice hockey.
@LightnessRacesinOrbit The only hockey there is.
Hockey is played on grass without poncey helmets. Like a real girl.
user1804599
Air hockey best hockey.
@DeadMG Amount of NHL teams that take part in the playoffs, in percentage.
18:46
Hockey is another game about moving a ball around a field and just as worthless as all the rest.
Hockey is great fun
@LightnessRacesinOrbit Hockey on grass is a thing?
and great exercise
making the field of ice instead of grass is at least a somewhat novel twist.
user1804599
I want to ride my bicycle.
18:47
@SamDeHaan You're joking, right?
@LightnessRacesinOrbit not even a little bit
@SamDeHaan That's really sad :(
user1804599
Hmm … cycling on ice.
Hey, did you know there's a place called "England"? It's named after the language! Crazy, huh?
user784668
Icing on ice.
user784668
18:48
@LightnessRacesinOrbit And the language is named after a region in Germany.
user1804599
Why haven’t we terraformed the Moon yet?
England- or, literally, the Land of the Angles, give or take.
@Fanael correct; the Angeln peninsula
@rightfold Because it couldn't hold any atmosphere we gave it?
the Moon, like Mars, has no protective magnetic field.
@rightfold We have. It's ready. Off you pop.
user784668
18:49
So it's obvious "English" is the word we should be using to refer to German.
even if you instantly terraformed the Moon to have an Earth-like atmosphere and climate
the only thing that would happen is it would all fly off into space.
Add stuff to moon, destabilize orbit, destroy earth?
I haven't played KSP, so not an expert on orbital physics.
@Fanael Just the language spoken by the Angeln tribes. The Angles.
as everyone knows, only KSP-players are the orbital mechanics experts.
they know more than NASA
18:54
hi
user784668
Right now I'm doing something that Windows can and Linux can't.
user784668
Conclusion: Linux sucks.
@Fanael "Be Windows"?
user784668
@LightnessRacesinOrbit Upgrade GPU drivers without restart.
anyone planning to go to the CPPAndBeyond Europe thingy?
18:57
@TemplateRex Yes, I should imagine so.
user784668
And I'm done.
@LightnessRacesinOrbit it's rather ridiculously expensive
@TemplateRex Okay but they wouldn't put it on if nobody were going
Sam
Sam
@TemplateRex Sad... I can't travel there... :(
@LightnessRacesinOrbit alright smartypants, lemme rephrase: anyone in this room planning to go?
18:58
;)
Woah, €4,000
o.O
@LightnessRacesinOrbit and that's without breakfast ;-)
@DeadMG How is my favorite puppy today? :)
@TemplateRex link or won't happen
woof woof bitchcake
Sam
Sam
Ok guys... time to go...
19:03
@LightnessRacesinOrbit lolrly?
> 4.000,- € plus tax (19%)
So €4760 actually :)
@FredOverflow it's insane
Why is it so expensive? How much was it last year?
note also the marketing: "once in a lifetime"
this is the classical durable goods monopolist's dilemma
"once in a lifetime". Oh, and also pretty much the same content as last year
German site where they host it
btw, note the Dr. Meyers... they forget that Andrei is also Ph fucking D
19:08
> Frühbucherrabatt: 3.500,- € zzgl. MwSt. bei Anmeldung bis 26.06.2014
oh they fixed it
So only €4165 for early birds!
3
typical german to be impressed by Dr.
Do you think we should have their doctorates revoked while they're in Germany? :)
@FredOverflow ha, but note also that there is no seat limit, which they had last year
19:10
Maybe Scott, Andrei and Herb will perform at Wacken next year!
@FredOverflow what is Wacken? your fave wrestling competition?
@TemplateRex If Andrei is a PhD, shouldn't Scott be a PhC++?
18
@TemplateRex Only one of the biggest metal festivals in the world.
user1804599
@FredOverflow dat pun
Xeo
Xeo
@FredOverflow Happening in one of the smallest towns in the world.
But it sure would be fun to see them wrestling :)
user1804599
19:13
They wrestle with C++ every day.
@FredOverflow Andrei was a paratrooper in a previous lifetime, he should beat the crap out of the others
user1804599
lol
user1804599
Google works on hoverboards.
@FredOverflow yeah, not that special
19:19
Who else just downvotes lightness on site? — Ben 32 secs ago
holy mother
@chris I'd like to know who upvotes him. It is not a helpful answer.
There is a big difference between saying "goto can be used safely, and occasionally yields nicer code than some of the alternatives", and "herp derp, you wanna know what to use instead of gotos everywhere? GOTOS!"
@Ben On which site? — FredOverflow 9 secs ago
@jalf I'm not arguing with your main point. It just seems like the result of being told never to use goto (which in all honesty is a good idea for beginners as long as they know it's not the Spawn of Satan). I don't think the answer promotes using them all the time, but it doesn't explicitly promote rarely using them.
argh ffs
plink noise!
19:23
poop
I did earlier today
In C, goto is the only sane way to do error handling. In C++ the more idiomatic way is to use RAII. — asveikau 9 mins ago
> +1 to counter silly unupvote for countering the silly downvote
wait wat
^^ tempted to say that
19:24
@chris The OP is asking a very basic question of "ok, I've been told to avoid gotos, but I don't have any knowledge of what the alternatives are, or how I should use them". The first words in that answer are effectively ignore what you've been told, go ahead and use gotos
you don't do error handling with RAII now, do you?
@jalf I still don't see any particular examples of how to do that. Maybe I'll add one with some specific examples.
@Jefffrey No you do error handling. But you do it conveniently and less error prone /because of/ RAII
@Jefffrey No. You do exception safety with RAII.
I agree the question itself should be answered, with any sort of getting rid of the notion of never using them as a side note.
My sister is ranting at me about how she doesn't like tattoo's, I'm having so much fun
> Based on his 25 years of experience with C++, Scott Meyers will offer a recommendation—almost a plea—regarding the D programming language and its community.
user1804599
@FredOverflow cool :3
user1804599
@TonyTheLion Is she hot?
2
wtf right
19:29
@rightfold That's kind of hard (weird) for me to say
....
@TonyTheLion Does she make other lions roar?
@sehe I count 4
@TonyTheLion dat pun
19:30
One is bonus
@Mysticial lol
@Mysticial unintended
user1804599
punintended
@FredOverflow hm, do not form an ISO committee?
2
19:32
@TonyTheLion I'm sure I'd have a subconscious boner for my sister too if I had one (sister, not boner), and she'd be half as hot as me.
@TemplateRex starred! (in fairness, standardization is one of the best things that happened to c++)
@sehe sure, but the timing is crucial: too early and you can't get coherent design; too late and you might have fragmentation
@the0ther ahahahaha. I've edited :/ Now you should be able to undo the damage. [sic - the things we do] — sehe 39 secs ago
user1804599
@sehe You already not posted that here.
@TemplateRex true
19:36
@FredOverflow the fuck
> iX: Do you see C++ getting simpler with C++0x ?
> Scott Meyers: Not in any meaningful way. C++ is a big, complex language. There is no practical way to change that.
@rightfold Not fixed. I got fooled by weird brower-back-button behaviour.
@FredOverflow same with the bible, did the new testament make christianity simpler than judaism? ;)
user1804599
The new Testament album.
@TemplateRex YES.
user1804599
19:38
Christianity0x
> Fedora Workstation Is Making Me Quite Excited
I am deeply sorry, but I got a question that is a bit too trivial for the site. How to get this idea working? ideone.com/6dT7cD
user1804599
@sehe I find Hennis gaat Oost-Europa verdedigen worse. :P
19:43
@typ1232 That's actually quite interesting. You should post the question on SO before someone steals it and reaps your upvotes ;)
anyone read it? I can't see the real fuss about it, compared to say Boost.Range
user1804599
> operator?:
user1804599
lol
user1804599
auto x = operator?:(a, b, c);
@typ1232 What's the question?
user1804599
19:45
@sehe How to get line 11 to compile, I suppose.
@rightfold ah right! sure a simple cast should do :)
user1804599
@typ1232 I would actually go with a utility function instead.
user1804599
Casts are fugly.
19:47
the problem is that ?: really wants the same types. i just noticed that even false ? new MooA() : new MooB() didnt work
@rightfold Do we need to cast both, or would one suffice?
@FredOverflow btw, the funniest part from that podcast was where Scott explains that in his initial C++ course, the best C programmers were the worst learners. E.g. they would answer a question like "how to get polymorphic behavior" immediately with "that's easy, just use a table of function pointers".
@rightfold only need it on the lhs
user1804599
@FredOverflow I don’t know, but asymmetry is fugly. :P
@typ1232 except if one hand is 'throw X'
19:47
@typ1232 Interesting. I'm pretty sure it works in Java.
?: stems from before type deduction rules, perhaps
@FredOverflow listen to this @typ1232
user1804599
@typ1232 I like this approach: ideone.com/mcYrKd
@Jefffrey feel free to reap the internet points. I got my 3000 rep and that's enough for me :D
19:50
@rightfold Have you looked up "overkill" in a dictionary lately? They use snippets of your online code as examples.
^ that
@typ1232 It's actually good for the community, not only for your rep.
user1804599
@FredOverflow ideone.com/sGupbR :)
not an overkill yet for my taste
@Jefffrey Because the community wouldn't know how to figure it out
19:51
quite elegant
@rightfold Wait a minute... Java beats C#?!?
Of course
This must be like the first time this has ever happened.
right
user1804599
19:53
@FredOverflow ideone.com/8uRfn1 :)
user1804599
Note the true. :D
user1804599
So fucking evil.
user1804599
You expect an A but you get a B.
ho ho ho
@FredOverflow I think the simplest fix: ideone.com/27fzoZ
19:54
4
A: What is Ogre::String?

concept3dFrameworks in C++ tend to use their own string implementation to solve Unicode and localization issues. Unicode support in C++ is generally not that good even in C++11. std::string can't store Unicode characters. If you want to take advantage of unicode and probably localization you may want to ...

badass rightfold
how true is this claim?
user1804599
user1804599
Fuck implicit conversions.
@AlexM. std::wstring
19:54
lol
std::wstring solves nothing and only introduces new problems
user1804599
@FredOverflow I like C# better in this case, though.
user1804599
someBoolean ? someString : someInteger makes no sense.
@CatPlusPlus it solves the problem of memory frugality!
@rightfold but it's annoying when you want to have null for one of possible results
user1804599
19:56
Fuck null.
well, you have std::basic_string and you can go from there
you can do anything with it
For some values of "anything" that are very close to "nothing"
you can use any kind of character type you want
@rightfold Nietzsche: "If you fuck null long enough the null begins to fuck you back"
if you have the right character type, you have your unicode string
19:57
:lol:
@BartoszKP Well that reminds me: twitter.com/sehetw/status/453184839433617408
AINT IT TRUE
@BartoszKP wrong. nulls fucked you first, but maybe you didn't know it was rape
user1804599
I give null fucks.
That's what she said.
19:59
@sehe interesting, if it's java I'd take a guess that it will pick the object overload, and for c# I'm guessing that it will be an ambiguity
user1804599
It’s true. vOv
user1804599
@BartoszKP Enums in C# cannot be null.
user1804599
They are value types.

« first day (1278 days earlier)      last day (3896 days later) »