« first day (1392 days earlier)      last day (3571 days later) » 

7:00 AM
Oo ... at least Stackoverflow homework questions are usually from university/college students, english.stackexchange.com has some primary school kids posting their homework questions there ...
 
lol
 
What makes you say that telkitty?
 
user3010322
@melak47 It's it a bit early for you to be up? :o
 
28
Q: If potato chips come in contact with humid air, they become what?

Maulik VIn my mother-tongue, there's a word for it. I'm wondering what the English word is. If potato chips come into contact with humid air (as in rainy days), they lose their crispiness and become _________. Fill in the blank. Note that the chips are eatable and won't cause food poisoning. But n...

 
they become bad chips
 
7:14 AM
I would go for 'soggy'
 
Actually it looks better than most stack questions to me
I doubt it was made by a primary school kid
 
'stale'
not 'soggy'
chips don't absorb moisture through air very well
 
saggy chips
 
the only chips I've seen that get soggy are pringles..
hmm pringles.
 
This place is a goldmine: ftp.microsoft.com
 
Xeo
7:23 AM
> Last modification: 30.08.1994
for the readme
 
Example, this directory contains two files which are supposed to be garbage but is actually an archive of Flight Simulator 2000.
 
What do you guys think I should call the collection of my constexpr stuff?
 
@Rapptz Stones or Concrete.
 
wot
 
@VáclavZeman I was also thinking on those lines.
 
7:34 AM
I would call them sad chips ... coz no one would want them any more ~_~
 
@MarkGarcia they should have named those "Not flight simulator 2000"
 
Why would you guys call it "concrete" or "stones"?
I don't get it
 
@Rapptz Unchangeable, unbreakable constexpr!
 
@Rapptz Because as constexpr, stones and concrete hardly ever change?
 
@Rapptz neverchanging
@Rapptz everlasting
 
7:36 AM
@VáclavZeman highfive
 
@MarkGarcia highfive
 
lol sounds silly
gears/meta/stones/string.hpp :v
 
stoned
 
constexpr_utils
 
@Rapptz Given that you have gears, why not use bolts, keeps gears in place?
 
7:38 AM
maybe Boost.MPL will have some extra bikeshedding
@VáclavZeman hah
 
@VáclavZeman Or nuts...
 
@MarkGarcia :D
 
> Implementations are not permitted to declare library functions as constexpr unless the standard says the function is constexpr (since C++14)
I didn't know this was an issue lol.
I was gonna go with gears/meta/const/
 
@Rapptz Was? What are you going to use now?
 
Not sure.
 
7:45 AM
constipated
@Rapptz It's under gears. Why not just constexpr?
 
cause I'm not sure it should be separate from my metaprogramming utilities
1 message moved to bin
Wrong way of doing it.
 
8:06 AM
0
Q: Working with pointers

Prashant YadavWill this program delete all the contents of ram ? I dared not to run it on my pc. And there was no use of doing it on online compilers. #include <iostream> using namespace std; int main() { int a = 10; int *p; p = &a; for(int i = 0;i>0;i++){ *(p+1) = 0; } re...

lol
 
I'm tempted to leave a comment like "yeah, but if you download more RAM you'll be fine"
 
@AlexM. Brilliant!
 
or maybe "Nobody knows because nobody dares to run it on their PCs" in response to I "dared not to run it on my pc"
but that would fail now because there are srs ppl giving correct answers
 
"Can confirm, ran code, then a bunch of guys in balaclavas rocked up and pulled the RAM out of my computer"
 
8:20 AM
"And no, I don't live in Ukraine right now".
 
I ran this and all of the contents of my RAM were indeed deleted. I was able to bring them back from Recycle Bin though. — Alex M. 10 secs ago
 
user image
3
saw this today
 
Barf
 
source is even funnier
 
I don't understand how this is possible...
 
8:35 AM
damn this is a good song
 
Need help here
>> http://stackoverflow.com/questions/25133481/zbar-c-with-mosync-not-scanning-qr-codes
 
do you have some sort of cognitive disorder?
your previous message got binned, with an explicit reason
and here you are dropping that crap again
 
clearly he needs so many downvotes he goes below 20 rep
 
Xeo
@GeoffreyMureithi Cool, how much are you willing to pay?
 
> Aspiring to become one of the best developers in Php and C++.
what a great combination he chose
 
8:41 AM
@GeoffreyMureithi Hey man. I already told you earlier, this is the wrong way to do it. You shouldn't drop your links in chat and ask for help.
You already posted your question on the main site, chat isn't a way to increase the exposure of your questions.
 
@BartekBanachewicz better than this:
 
am I the only one who thinks the silverlight logo looks like a pair of underwear?
4
 
Silverlight is nonexistent.
 
too big, crap
 
8:48 AM
@PolymorphicPotato I wonder what that says about @AlexM.'s underwear :p
 
@AlexM. I'm going to go with yes
 
@jalf righ--- Polymorphic Potato knows stuff about that :A
 
final String str1 = str2.getText().toString().trim();
 
professional.
 
does str2 have to be final too?
 
8:49 AM
No
 
proffesional
 
proffessionnall
 
that's what I thought ... happens to be ... well should have given more thought about copy & pasted code ~_~
why the heck does eclipse insist that I should use final on str2 then??
 
Since this website is so stupid that it will close my question in a matter of hours (it already has -1 and I've seen questions go downhill from there) I will give this as best answer before it is too late. — user50286 10 mins ago
an hero
 
getText().toString() <--- What is the reasoning behind this? Trying to really make sure you don't affect str2?
 
8:57 AM
I changed variable name in a hurry, str1 is supposed to be a EditText
 
You mean str2?
Ah this must be Android
 
just ignore me ... made some really dumb mistake ...
gosh why am I so retarded sometimes ...
 
Perks of the job
 
@chmod711telkitty It needs to be final if it's closed over
 
yeah ... inner class ... that's why
 
9:07 AM
You just unleashed the wrath of the four mighty tags. — Mark Garcia 59 secs ago
 
guys
Why is T const& preferred over const char* const& for a string literal?
I'll just read that again and shut up, I suppose.
 
Ell
Morning all
 
Xeo
9:22 AM
@BartekBanachewicz string literals are lvalue arrays
so the char const* one need a conversion
 
I didn't know C++14 constexpr allowed you to modify variables.
Kinda weird.
Granted it's not really modifying
 
it allows you to modify variables except you're not actually modifying them? That sounds... reasonable. :p
 
lounge logic
 
I'd be more worried if it allowed you modify variables in a way that actually modified them
 
wait what?
 
9:33 AM
what what?
 
I'm trying to make sense of what you said
what do you mean with "in a way that actually modified them"?
 
He probably meant "values" instead of "variables".
 
How is a variable that's modified not actually modified?
 
@TonyTheLion Ask @Rapptz
 
Because you can't modify the constexpr value.
 
9:34 AM
@Rapptz I just wish we could have function-local static variables in constexpr functions.
:D
 
You can only modify it inside a constexpr function that will produce a constexpr value.
 
@Rapptz is talking about constexpr allowing you to modify variables in a way that doesn't actually modify them
 
If that makes sense.
 
I'm saying that sounds better than if it let you modify them in the conventional sense, where they are actually, you know, modified
(implying that "modifying without modifying is complete nonsense, and the same as not modifying at all)
 
aren't constexpr functions supposed to be const?
 
9:35 AM
@Xeo I see
 
the implicit const got removed from member functions in C++14
 
eh, adding a newline to my PS1 breaks it
bash is so counterintuitive
 
@jalf ?
 
Is coliru down for any of you?
 
yes
 
9:36 AM
:(
 
coliru has been dead for a while
 
3
Q: PS1 command substitution

Steven PennyThis command succeeds $ PS1='$(date +%s) $ ' 1391380852 $ However if I add a newline it fails $ PS1='$(date +%s)\n$ ' bash: command substitution: line 1: syntax error near unexpected token `)' bash: command substitution: line 1: `date +%s)' If I use backticks it works $ PS1='`date +%s`\...

 
@StackedCrooked ^^
 
ughfuck
goddamn bug.
 
In other news, I finally finished this multi-threaded project I've been slaving over for the last month and a half. It works too. Weeee :)
 
9:39 AM
> Got games in your Steam library you're a bit ashamed of? Never fear, you can hide them now. pcgamer.com/2014/08/08/…
awesome, now the world will not be able to see anymore that I spent 300 hours tending to horses in secret of the magic crystals
wait, oh sh-
 
too bad this $'' trick doesn't work for me
oh wait
I had a stray "i"
 
a stray eye?
 
Ell
9:56 AM
@TonyTheLion yay!
 
gratz
 
@Ell :)
I gotta admit, it was hard
but finishing it gave me confidence that I can do it, when I put my mind to it
 
doing it gave you confidence that you could do it? Well, yeah, it would. :p
 
well there was a few places where I thought it wasn't ever going to work, and wanted to give up.
 
anyway, awesome, grats!
 
10:01 AM
@TonyTheLion Congrats!
 
good work, little lion
 
Ell
hmmmmm my lua thing is giving me a 404 when I should get a 302 o.O
 
@Ell looks like a bug
 
what are the copy semantics of optional<T>?
just like a value?
does nothing copy to nothing?
 
yes
 
10:07 AM
@TonyTheLion high 5
 
@BartekBanachewicz :)
 
@TonyTheLion are sure it you? works
 
I am working on this kinda thing
I am not happy with the table yet, just to give you an idea.
 
Ell
@BartekBanachewicz should unique_ptr have nullability? o.O
 
@Ell it's perfectly fine to write unique_ptr<T> p (nullptr);
 
Ell
10:12 AM
Also, shouldn't T* be non-owning pointer?
 
@Ell where?
 
Ell
Modelled role
 
@Ell I wanted to point out that the role is unclear most of the time
 
Ell
Ah kk
 
guys emails asking to get access to a network drive, tell him I don't have control over that, he'll have to go through his manager to get access rights from who ever controls it. So he emails my whole teams asking for it... (╯°□°)╯︵ ┻━┻
 
Ell
10:16 AM
I can't wait to have these cookey work related shenanigans
But I'll never get a job if lua doesn't stop giving me the wrong response code:O
 
@Ell just wanted to ask if you got anything
 
@Ell mmm cookies
 
Ell
@BartekBanachewicz Not yet. One of my scholarship companies declined :( But it's okay
 
eh it's a pity that #pragma once is not standarized
 
Ell
I'm pleased with how far I got anyway
 
10:18 AM
@Ell so what's this Lua thing you're working on now?
 
Ell
They had to choose 2 of 10 people they interviewed (one of which was me )
@BartekBanachewicz Lounge chat :)
(Prosody plug in)
 
Ell
But I think I know the problem. I'm not doing https
I think I did this last time I worked on it too :P
 
@BartekBanachewicz isn't #pragma a standard thing, but none of it's 'uses'?
 
Ell
IIRC #pragma is intended for compiler dependent directives
 
10:22 AM
@thecoshman yes
#pragma is a standardised preprocessor directive
but its behaviour is implementation defined
 
so shouldn't we push for #inc_once (or something to that effects) thus leaving #pragma to be (ab)used as compilers wish
 
@BartekBanachewicz They wanted to, but couldn't decide how it should behave w.r.t symlinks and stuff.
 
doing include guards is easy for me
I have something that generates a snippet for it
 
personally I use #pragma once because although it may not be Standard, everybody I care about accepts it.
 
@thecoshman eh, it's the same
 
Ell
10:27 AM
Does the behaviour of local differ in the repl and a source file with lua5.1?
I should google actually, nvm
 
@Puppy that's dangerous thinking imho
 
meh
 
@BartekBanachewicz not really
 
#pragma once is actually slower in clang and gcc last I saw.
 
it'd be much more dangerous if the alternative was "Undefined behaviour".
 
10:28 AM
altough in this case not having modules is annoying enough to make me not want to cope with #ifdef shenanigans
 
& in Haskell is underrated.
 
the worst that can happen if I ever get a compiler that doesn't support it is that it warns, then the build breaks.
 
not really
in old versions of GCC it launched a game :v
 
what can go wrong?
@Rapptz wut
 
Ell
Ahh having Lua5.2 and Lua5.1 installed is ballsing everything up
 
10:31 AM
is there any "standarized" shortcut for "next camelcase right/left", like Ctrl+left/right?
 
Ell
How is this possibleeee
I've uninstalled lua5.1 and lua5.2
 
Ell
yet lua -v still gives 5.2.3 :'(
 
I've just stumbled on it (IOW I wasn't sure how it will behave)
 
@BartekBanachewicz That's a snippet of code, not a question.
 
10:42 AM
@PolymorphicPotato you are supposed to make a question out of it vOv
anyway this error undefined reference to vtable for SomeClass is weird as hell
 
@Ell: Clearly they weren't terribly convinced and decided they didn't need to obey you.
 
doc
@BartekBanachewicz What would do good - completely new build model. ODR (header/source split) is also ancient. Such things should be automated.
 
@doc IOW modules, yes.
 
doc
@BartekBanachewicz yep
 
10:52 AM
BTW G++ not warning about lack of virtual destructors is a fcking shame
 
doc
@BartekBanachewicz on this I don't agree. Non-virtual dtors are perfectly OK
remember that you can make dtor protected
 
@doc what if a class has other virtual member functions?
 
@doc how does that solve the problem?
 
not warning there is asking for disaster and the warning is trivial to implement
 
doc
@BartekBanachewicz well, then it should robably have virtual dtor unless it is specific
 
10:55 AM
my point exactly.
 
doc
but it depends on case rly
and what one wants to achieve
 
99.9% of the cases if the class has a virtual member fn it needs a virtual dtor
 
doc
@jalf how protected dtor solves problem?
 
@doc how it solves the problem of a base class not having a virtual dtor
 
@doc can you show me a real-world use case of such a thing? (IOW not calling a proper destructor on an object)?
 
doc
10:56 AM
@jalf and what's the problem exactly?
 
because IMHO it's pretty much the same like saying "not writing delete after you wrote new depends on what you want to achieve"
 
@doc you were the one saying to remember you can make the dtor protected, implying that because of that, a warning about a dtor not being virtual is unnecessary
I'm just trying to figure out what you're getting at
 
doc
moment
@jalf Read my answer here stackoverflow.com/a/13881095/205955
+ you can make only destructors protected to make inheritance of class with non-virtual dtors safe.
 
@doc fair enough
 
doc
@BartekBanachewicz aye got to think on other examples.
 
11:01 AM
however, this doesn't really make sense if you have virtual members
 
doc
maybe there are)
 
and that was my point all along
 
doc
@BartekBanachewicz and that's what I should think on. Never asked myself, maybe it does not make sense. dunno
 
making members virtual polymorphism and private inheritance just don't mix
 
doc
maybe you are right
Usually (or always) non-virtual dtors make sense for totally non-virtual class to avoid vtable
Another thing is why c++ does not posses const constructors
Probably we could avoid duplicating classes just for const-correctness (like const_iterator and iterator)
 
Xeo
11:07 AM
Question: Do you find it irritating seeing people use the same tools as you, but (almost) exclusively operating them by mouse, ignoring shortcuts?
 
doc
@BartekBanachewicz indeed, polymorphism does not make any sense with private inheritance
 
@Xeo I am more openminded about that since I've started using a touchpad on my Yoga
touch scrolling and vim sounds like a weird composition, but it works great
 
doc
@Xeo I am liberal so it does not bother me, but I hate this chat interface, because can't reply to message without pointing with mouse :/
 
you can do :messageidtoreplyto here
but it's a lot more troublesome
 
doc
@Rapptz ye ye and write message id..
 
11:10 AM
there are plugins that show you the message ID
45
Q: SE Chat Modifications -- Keyboard navigation and commands for chat

Tim Stone Screenshot Use /command shortcuts to perform common chat tasks: See message history inline: Easily preview replied-to messages: And much, much more... About Legends tell of a prolific Meta Stack Overflow chatter who despised using their mouse above all things. In an effort to keep t...

 
doc
@Rapptz meh this chat isn't vital for me, so too lazy to even check those plugins.
 
Ell
I need a better xmpp server
 
oops
 
just realized I'm giving my scrollwheel the middle finger everyday
well, reverse middle finger
 
@doc we have a rule here: don't complain about an UI thing that you can easily fix with a setting or a plugin.
 
doc
11:19 AM
@BartekBanachewicz O.K. I apologize then
 
bah, don't worry
rules here aren't terribly strict
on a slightly another matter, I need optional implementation
 
Ell
dynamically typed languages can be a nightmare
 
@R.MartinhoFernandes Is wheels/optional production ready? Do you think its interface will differ from what will appear in the std?
@Ell you have to code in them differently, that's for sure.
trying to write code like it was statically checked is always going to fail, sooner or later, because as the project grows you're unable to grasp everything manually
 
doc
@Jefffrey thanks.
:18177413
@Ell true
@Jefffrey much better with plugin)
 
11:24 AM
@doc what's up with the braces
 
doc
@AlexM. It's modern version of smiley :)
 
He is a special kid. Don't ask.
 
@BartekBanachewicz it's pretty trivial to write one- like, 40loc or something, depending on exactly what you need
 
doc
@Jefffrey meh soon everybody will use them
 
@Puppy I'll just take robot's one I suppose
TBF it doesn't look trivial.
(It has a lot of things I'd forget about)
 
11:26 AM
like?
 
optional_base& operator=(optional_base&& that)
            noexcept(noexcept(std::declval<storage&>().assign(std::move(that).get()))
                  && std::is_nothrow_destructible<T>()
                  && meta::is_nothrow_move_placeable<T>()) {
 
doc
@AlexM. in the past leaving nose from :-) was novelty. Language evolves.
 
yeah, the noexcept stuff can get ugly.
I don't really need it because VS doesn't support noexcept properly anyway, I guess
 
I wonder why robot uses his own RemoveReference though
@Puppy :F
 
doc
:-F
 
11:27 AM
ah right it's just Invoke<remove_reference>
I think I'll glue it into a single file if I'm going to use it, to make it more compact
I don't think I'm going to use any other wheels
 
doc
@AlexM. andevenmoreinthepastwhitespacewasanoveltyordotjustlookintoancientscripts
so don't look unfriendly at my smileys)
 
jesus, you really ARE special
 
doc
@AlexM. everyone is special.
 
@doc Yeah no
 
doc
@CatPlusPlus do you use other chat-like software?
IRC for example
@CatPlusPlus it's becoming popular in some communities
Also because it's not the same thing as ordinary smiley.
 
11:39 AM
yeah, there's a whole colon missing!
 
the point of smileys is to resemble facial expressions
 
doc
@Puppy :) And it brings some information! It's like saying a sentence with a bit of smile. It improves expression.
 
your smiley resembles a broken code formatter's output
 
I know this has to have been linked before but WOOT! Support for old versions of Internet Explorer to be dropped—in 2016
 
no more than adding the colon.
 
11:43 AM
@AlexM. ☺
 
doc
@AlexM. haha, so you can add sadness before smily sentence(
 
Xeo
@doc It's not modern, it's stupid :P
 
doc
@Xeo almost every new invention was considered stupid by fools)
;)
 
I'll just plonk this guy
 
doc
@AlexM. :(
 
11:48 AM
ah, much better
 
doc
:)
 
no more unmatched parentheses <3
 
doc
What about < it's umatched
less than 3?
So you see, that it's just thing you must get used to)
 
@Mgetz I already drop support for any IE version.
 
Xeo
@doc No, it's provably stupid: What about smileys embedded in parenthesised sentences (like this one :) )?
 
doc
11:51 AM
@AlexM. I will mix normal smileys with modern ones to make transition smoother :)
 
@PolymorphicPotato I try too not support anything older than IE11
 
@Mgetz Hmm. Shall I use for denoting success and for denoting failure. :D
 
doc
@Xeo interesting problem) Should some organization exist to solve smiley issue)
@PolymorphicPotato First IEs should never existed.
 

« first day (1392 days earlier)      last day (3571 days later) »