« first day (1074 days earlier)      last day (3881 days later) » 

9:00 AM
That's UTF-8 interpreted as Latin-1/Windows-1252.
 
Xeo
mh
so I'd need to convert that before printing it, eh
 
No, the reading is broken.
Read a ByteString and decode yourself.
 
DECODE YOURSELVES!
^ I hate this stuff. Annoying indicator still nagging me
 
Xeo
@R.MartinhoFernandes I noticed when I import Data.ByteString, I get some weird behaviour with string literals
 
@Xeo Since it doesn't compare equal, the String is already bad before printing.
@Xeo Hmm, I thought that extension was off by default.
 
Xeo
9:04 AM
atleast at home I did
I should really try to unify my Haskell dev environment...
 
> The Char8 interface to bytestrings provides an instance of IsString for the ByteString type, enabling you to use string literals, and have them implicitly packed to ByteStrings. Use -XOverloadedStrings to enable this.
That is evil, btw.
 
Xeo
lol
Maybe String should've been a type class, so you get polymorphic string literals? :P
 
It limits your strings to 0-255.
@Xeo That's what -XOverloadedStrings does.
 
'zup 'zup 'zup!
 
Xeo
oh, ok
 
9:07 AM
@Xeo agreed, hate when that happens
 
It's not the extension per se that is evil, but making them ByteStrings is.
 
Xeo
Yeah, ByteString is [Word8], right?
 
@LightnessRacesinOrbit Yay moar indicators
 
user1804599
@Xeo No.
 
9:08 AM
16
Q: Chat prompts me to act on flagged messages, but there are no flagged messages to display

Michael HamptonRecently I gained over 10,000 reputation network-wide. However, now when I am in The Comms Room I receive a notification that there are flags to act on, but when I click on it, there are no flagged messages. To be clear, I have had over 10,000 network-wide reputation for at least a couple of wee...

 
user1804599
It's packed.
 
user1804599
Lazy bytestrings are lists of strict bytestrings.
 
@Xeo It's isomorphic to that. The string literals bits truncate everything to 8 bits. That's so fucking stupid I don't even know why it exists.
 
Xeo
woa
 
Byte strings hold bytes, not text. One day people will understand that and give up on this windmill chase of trying to mix them :(
 
9:12 AM
Hold on. Don't be overly optimistic!
 
user1804599
Erlang stores strings as cons lists of pointers to boxed bigints.
 
Xeo
let without in is cool
 
Reminds me of java's Integer
 
Xeo
@not-rightfold wtf
 
@Xeo Especially if you're not in the mood for visitors
 
Xeo
9:13 AM
lol
 
I'm far too lazy to answer any questions this morning
pending shoot and just chillin by the photographers workstation
 
user1804599
@Xeo [72, 101, 108, 108, 111] =:= "Hello" is true. :D
 
@not-rightfold That's what I call laziness (implementer's laziness, I mean).
 
Xeo
@R.MartinhoFernandes Whee, works! Thanks a lot.
 
user1804599
Elixir uses binaries instead, with UTF-8 encoding.
 
user1804599
9:16 AM
Most OTP APIs accept both, so it's no problem.
 
Xeo
msg' <- io . B.hGetLine =<< asks socket
let msg = init $ T.unpack $ T.decodeUtf8 msg'
 
user1804599
Woohoo.
 
user1804599
Finally got Emmet to work.
 
user1804599
Git submodules are so tenacious.
 
Hmm, if the output was Windows-1252, it would not barf on ß. Latin-1 would. Weird. I would have expected the misinterpretation to be Windows-1252, not Latin-1.
 
9:19 AM
> awk '$1=="BANK"{bank=$2;sub(/:/,"",bank);while(getline>0){if($1=="Serial"&&$2=="Numb‌​er:"){serial_number=$3}else if($1=="Status:"){status=$2};if(serial_number!=""&&status!=""){entries[++e]="{\"‌​Bank\":\""bank"\",\"SerialNumber\":\""serial_number"\",\"Status\":\""status"\"}";‌​break}};bank=serial_number=status=""}END{print "[";if(e>0){printf "%s",entries[1];for(i=2;i<=e;++i){printf ",\n%s",entries[i]};print""};print "]"}' file
 
user1804599
@sehe Ugh.
 
user1804599
Looks like 90% of SQL code.
 
really? Remind me to never use PostgreSql then
 
user1804599
I mean that people put their long SQL queries all on one line.
 
Do they? I never encounter that. And if I do, I make sure the get slapped
 
user1804599
9:21 AM
Look at . :v
 
Now I got an idea for a nice tool I can build on top of ogonek.
 
@not-rightfold Do I look like a moron?
 
user1804599
@R.MartinhoFernandes Tell meh.
 
user1804599
@sehe I don't know; never seen you.
 
@R.MartinhoFernandes Reverse lookup of "fucked up" unicode interpretations? Call it the "unfucker"
 
9:22 AM
> Also, can programming be forgotten? Also, once proficient, do the concept stay forever, or does it require constant practice and reading?
 
Programming can safely be forgotten
(link?)
 
0
Q: "No match for operator+"

user2530836I'm a beginner and getting back to programming after 2 months. Almost forgotten everything. The code I just tried to compile eliminates the second half of the vector usin iterators, if the character I want is found in the first half. Here's the code: #include<iostream> #include<string> #include<...

 
@not-rightfold Your tweet

It was funny!
 
> You definitely don't want to add Begin to End. – Lightness Races in Orbit 1 min ago via SE Android Mobile
@Lightness how much does it suck?
 
<strike>You can safely forget about programming</strike> Sigh. That was too easy. Sorry — sehe 4 secs ago
 
9:29 AM
@sehe tchrist already has the "Unifuck". It generates permutations of strings that are readable as "fuck" using all sorts of characters.
 
Is there any good name for 24 or 12 hour clock ? that I can use for enum values ?
 
@R.MartinhoFernandes yeah, but this would be useful instead!
@NeelBasu clock_24h, clock_12h
 
@R.MartinhoFernandes What's with the answer..?
 
user1804599
@sehe Indeed.
 
You.. can't divide iterators either can you?
 
9:31 AM
@sehe Hmm. I expected a good english name
but didn't find any
 
Xeo
@Rapptz divide before addition
 
Xeo
@NeelBasu "military time" seems to be one for the 24h clock, but that's it
 
@sehe Hmm
@Xeo but no good english term for 12 hour
 
@NeelBasu enum clock { good, bad };
@NeelBasu "bad"
 
Xeo
9:33 AM
I was thinking that at first
 
@Xeo Ah right. My mind injected parentheses.
 
Xeo
but I'm regularly using the "bad" clock in chat because just writing "15:00" looks weird
 
@R.MartinhoFernandes {millitary, general}
 
@Xeo i think that's for 2313 instead of 23:13 or 11:13pm (the latter might be known as regular time?)
 
@NeelBasu enum class clock { military, ampm }; :)
 
9:34 AM
^ win
 
@Rapptz Hmm but do everybody know what military means here ?
 
Xeo
4 mins ago, by sehe
@NeelBasu clock_24h, clock_12h
 
It's common here in 'mericuh and canada
 
Xeo
looks bad, but everybody knows what is meant
 
user1804599
@NeelBasu enum class clock { unambiguous, ambiguous };
 
9:35 AM
@NeelBasu They better would. It's their code! Also, it's clock::militar - this is googleable
@not-rightfold ROFL, you ate too many funny beans today
 
user1804599
@sehe not sure if sarcastic.
 
@not-rightfold Absolutely not!
 
If you make it an enum class clock { } you could do clock::24h and clock::12h which is slightly better.
 
user1804599
@sehe not sure if sarcastic.
 
starting with numbers ?
 
9:36 AM
@not-rightfold still not
 
{h24, h12}
 
user1804599
@sehe good.
 
@A.H. that's been oneboxed enough times now, thank you /cc @not-rightfold
 
Xeo
@Rapptz identifiers don't start with digits
 
@not-rightfold (gullible)
:)
 
user1804599
9:37 AM
enum class clock { rest_of_the_world, american }
 
@Xeo How'd I forget that?
 
Xeo
@not-rightfold Doesn't GB also use 12h format?
 
No
Canada does though
 
user1804599
Canada is part of America for sufficiently broad values of “America.”
 
Following that logic so is South and Central America!
and they use 24h clocks.
 
9:38 AM
@sehe but I came to the party late :<
 
Nobody "uses" 24h clocks. Everyone uses parlance. And translates it to some kind of notation. (Wait, are there really countries that never refer to 18:00 as "the six o'clock news"?!?!?!)
@A.H. So? It's akin to drive-by. If not just drive-by linking
 
fair enough
 
user1804599
@sehe Ik zeg vaak “het is vijftien uur” o.i.d.
 
Echt waar. Ik zeg vaak: ben jij al 18. Maar ja.
 
Different conventions exist around the world for date and time representation, both written and spoken. Differences Differences can exist in: *The calendar that is used. *The order in which the year, month and day are represented. *How weeks are identified. *Whether written months are identified by name, by number (1-12), or by Roman numeral (I-XII). *Whether the 24-hour clock, 12-hour clock or 6-hour clock is used. *The punctuation used to separate elements in all-numeric dates and times. ISO 8601 International standard ISO 8601 (Representation of dates and times) defines unambigu...
 
user1804599
9:40 AM
I’m almost 19!
 
user1804599
inb4 factorial joke
 
Ew. You're too old for me
 
When I'm writing times, I tend to use 5AM and 17.
 
Try !19, or 19!!
 
Because 5 is not clear enough.
 
9:40 AM
That's robot time
 
user1804599
!91 tsomla m’I
 
@R.MartinhoFernandes Interesting choice of examples
 
At work I use military time.
Everyday usage I do am/pm though.
 
user1804599
9:41 AM
 
@R.MartinhoFernandes ... Indeed, if unqualified, most people would have assumed 5PM there
Oh I see. You mean, you don't use PM
 
I am using {military, ampm} looks better
 
TIL there's a 6-hour clock
 
user1804599
{ logical, american }
 
The six-hour clock is a traditional timekeeping system used in Thai and formerly Lao language and Khmer language, alongside the official 24-hour clock. Like the other common systems, it counts twenty-four hours in a day, but divides the day into four quarters, counting six hours in each. The hours in each quarter (with the exception of the sixth hour in each quarter) are told with period-designating words or phrases, which are: *... mong chao (, ) for the first half of daytime (07:00 to 12:59) *Bai ... mong (, ) for the latter half of daytime (13:00 to 18:59) *... thum (, ) for the first ha...
 
9:43 AM
@NeelBasu enum {military, ampm} style; // because http://www.artofmanliness.com/2012/10/11/how-to-tell-time-like-a-soldier/
 
@sehe Right.
 
Hm. I use 00:00 for midnight :s
 
user1804599
Use seconds since 00:00.
 
Civilian Time
got the word for 12 hour clock
enum {military, civilian}
 
@NeelBasu Right. needs citation. I was so making that pun, I don't think it really means that (except maybe for the wrong kind of entitled soldier ("time for sissies"))
 
9:50 AM
I'm reading c++ primer 5th edition. What do you recommend? — user2530836 13 mins ago
Hm.
 
Keep reading!
@MichaGlu I can't help but wonder why you wasted our time asking a question with the wrong code sample. Please make sure to always include code which reproduced the actual error in your future questions. — Angew 6 mins ago
 
@NeelBasu That's sorta wrong.
 
@R.MartinhoFernandes Hmm
also military doesn't match well with ampm
does it ?
two words are not from the same genre
 
{ twelve, twenty_four } :D
 
@Rapptz :)
 
Xeo
10:02 AM
{ _24, _12 }
 
s/Facebook/SO/
hehehe runs away
 
Xeo
assume whatever you want
hm, Coliru still down /cc @StackedCrooked
 
@BartekBanachewicz In your case, no one needs to assume it.
Zing!
 
@Xeo ew
 
Xeo
10:09 AM
Time to get some lunch
 
> Java (8.9%) * Already blocked by default for security reasons.
 
SOMEONE POST A NICE [tag:BOOST-SPIRIT] QUESTION?!?!?!
It's been 14 days now
 
Good night guys.
 
10:25 AM
What's (-1)/5 in C++?
 
@R.MartinhoFernandes I would have to say -1/5 ?
cast to an int
 
That's what I want, but I learned not to guess it.
 
Floored :)
 
yeah its not actual rounding
just fraction is discarded which happens to be floor
 
10:33 AM
@A.H. That's also called rounding towards -∞.
 
^ that'd be so awesome to walk into
 
But floored division is not what I want. I want rounding towards 0 (truncated)
Hmm, this code has way too much protected:.
 
user784668
@R.MartinhoFernandes Because normally in English you can't find such a minimal pair, thanks to /ə/. If somebody claims there is one, it's probably dia- or idiolectal.
 
19 hours ago, by Jerry Coffin
@R.MartinhoFernandes Oh, another one would be "content" - "stuff that's contained" if you stress "con" and "happy" if you stress "tent".
 
Xeo
@sehe Gets pretty wild from 1:40 onwards, eh
 
10:45 AM
@Fanael (I was talking about Portuguese)
 
user784668
@R.MartinhoFernandes Oh.
 
@Xeo It's Rach :) It's not that wild for Rach (I can play this one. Some days)
 
hi all
quick question, I submitted a Defect Report to the LWG, but I didn't get a response, and in today's updated list of issues it doesn't appear in either the active or the closed issues. Are DR limited to committee members somehow?
 
user1804599
Arrgrg.
 
user1804599
10:47 AM
Stupid template API that accepts only string variables.
 
@TemplateRex Wouldn't be the first time they missed something.
 
user784668
@R.MartinhoFernandes But that's exactly what I'm talking about. [kənˈtɛnt] and [ˈkɑntɛnt] differ in pronunciation, thus it's a [ə]-[ɑ] minimal pair.
 
Xeo
@sehe Was that just a random piano standing around or what?
 
user1804599
> To supply these variables to your master template, use CodeIgniter's $this->load->vars() mechanism. Note: Unfortunately, I do not believe the $this->load->vars() function works for most or any parsers.
 
user1804599
Great documentation.
 
10:48 AM
@CatPlusPlus Don't use Rails (it sucks badly).
 
> To play this work in this piano i similar to kill a person with an atomic bomb..
@Xeo I dunno. Apparently it might be "a thing": the street piano at St.Pancras?
 
@Fanael What if no schwa is involved?
 
@R.MartinhoFernandes weird because I sent it to the correct email address, and correctly formatted my message (+ proper subject etc.) You would think they would be more careful
sigh, I'll resend it then
 
Xeo
@TemplateRex You can ask on std-discussion whether they received it
 
user784668
@R.MartinhoFernandes Find me an example first, then I'll worry.
 
10:51 AM
Mawning.
 
@Xeo OK, I'll try that as well then
 
Xeo
3
Q: Branchless way to represent a "ping-pong" value?

Vittorio RomeoI need a changing value that can be manually stepped with step() that goes back and forth a min and a max, moving by speed every step(). This is my current code: template<typename T> struct PingPongValue { T value, min, max, speed, dir{1}; PingPongValue(T mMin, T mMax, T mSpeed...

"branchless" -> don't see anything about "profiling" -> "yeah, screw you"
 
@Fanael Yesterday I found insight /ˈɪnsaɪt/ vs incite /ɪnˈsaɪt/, but, again, I can't tell the difference and have no idea if I distinguish it properly in my speech.
 
user784668
@R.MartinhoFernandes Incidentally, in my idiolect there are no schwas involved ever (almost), I heavily drop them, having lots and lots of syllabic consonants instead.
 
user784668
@R.MartinhoFernandes For me that's [ɪnsaɪt] and [ənsait]. But right, this pair may be a counterexample to my claim.
 
10:57 AM
I'm pretty sure they're both the same in my speech.
 
+1 for me
 
user784668
@R.MartinhoFernandes In which case they're homophones, thus not a minimal pair.
 
...
 
@Fanael My speech is not even native. I was merely pointing out a flaw of mine.
If I am capable of producing a difference in stress between them, I do it randomly and without notice.
 
My love for you guys is like a turning wheel, it's spinning spinning around.
 
11:02 AM
Get out
 
template<class T> auto func(T& t) -> decltype(t.x, void()) { ... } - is valid way to make void return type, right? (and also check for x member)
 
Xeo
ya
 
thanks
that void() just looked kinda weird to me
 
user784668
I wonder how long it'll take the Emacs devs to notice they just broke their OS.
 
user784668
struct Lisp_Vector
  {
    struct vectorlike_header header;
    union {
      /* ...but sometimes there is also a pointer internally used in
	 vector allocation code.  Usually you don't want to touch this.  */
      struct Lisp_Vector *next;

      /* We can't use FLEXIBLE_ARRAY_MEMBER here.  */
      Lisp_Object contents[1];
    } u;
  };
 
user784668
11:08 AM
"Miscompilations" by GCC 4.8+ in 3…2…1…
 
@Jefffrey it's terrible
why would you post that here?
 
Exactly.
 
Xeo
@Fanael Huh?
 
@Jefffrey who the hell listens to such things?
 
not-me
 
user1804599
11:09 AM
Fuck it.
 
user1804599
I’ll use a global.
3
 
use singleton!
 
user784668
@Xeo Lisp_Object contents[1];
 
user784668
Hint: it's not really 1.
 
Xeo
Still confused.
 
11:10 AM
@BartekBanachewicz I closed it as soon as I read the author's name. Didn't even bother plugging the headphones. Seems I did right.
 
@R.MartinhoFernandes my ears still hurt
 
lol
 
user784668
@Xeo Section "More aggressive loop optimizations": gcc.gnu.org/gcc-4.8/porting_to.html
 
user784668
It's not only loops.
 
Xeo
[l]oops
 
user784668
11:12 AM
So GCC 4.8+ will assume that accesses beyond index 0 are out of bounds.
 
user784668
And therefore optimize them out. Or something to that effect.
 
Xeo
Well, they're playing with UB there, so...
 
user784668
@Xeo They weren't before this change.
 
omg. a lot of C code use such trick
 
user784668
11:14 AM
It was FLEXIBLE_ARRAY_MEMBER before they introduced the union.
 
@R.MartinhoFernandes Pretty inspiring movie. Beautiful soundtrack.
 
Xeo
Was it just Lisp_Object contents[]; without a union around before?
Well, sucks for them
 
user784668
@Xeo Lisp_Object contents[FLEXIBLE_ARRAY_MEMBER];, so yeah.
 
@R.MartinhoFernandes wait Kristen Stewart?
 
user784668
@Abyx Yes, a lot of C code is broken. We already knew that, thank you.
 
Xeo
11:17 AM
@TemplateRex: I was wondering who you are for quite a while now, and assumed you to be someone new. Turns out you're not.
 
I recall Lua use such stuff for containers
 
@Xeo I think he went by rhalbersaf,fkfghjkdfghsomething before.
(sorry, memory got corrupted)
 
Xeo
rhalbersma
 
TValue upvalue[1]; /* list of upvalues */ - yeah, it does
 
@BartekBanachewicz What about it?
 
11:22 AM
@Fanael ?
 
> warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith]
Fuck.
 
@R.MartinhoFernandes let's all laugh at him :D
 
you
 
0
A: Aggregating data from file/array C++

seheBecause it's been ridiculously long since the last question was posted in the boost-spirit tag, lemme just take this opportunity to over-kill this answer: #include <boost/fusion/adapted/std_pair.hpp> #include <boost/spirit/include/qi.hpp> #include <boost/spirit/include/karma.hpp> #include <boost...

^ this is what happens when people don't feed me questions
 
11:29 AM
You're sick.
 
bad bear
 
user784668
-1: not everybody has 1000 years to wait for the code to compile. — Fanael 18 secs ago
 
Nested tmux sessions are not as mindbending with a status bar.
 
@BartekBanachewicz rofl. I didn't even click the link. I just said 'Get out'
Glad to see my instincts still working
 
Rule of thumb: reinterpret_cast is wrong. — R. Martinho Fernandes 23 secs ago
 
11:32 AM
> static_cast<std::shared_ptr<A> > -- oh sh...
also note that space - "> >"
 
@Fanael lol, but: time clang++ -std=c++0x test.cpp -o test: real 0m3.320s, user 0m3.105s, sys 0m0.196ssehe 38 secs ago
 
user784668
@sehe How dare you respond to sarcasm?
 
@sehe compare it with a solution without boost.spirit
 
@Fanael I didn't respond to the sarcasm
@Abyx missing the point
 
@sehe probably
 
11:37 AM
Am I the only one that doesn't like Spirit for reasons other than compilation times?
 
user784668
Dunno.
 
hey guys :D
 
I hate it for magicalness. It's just... a mighty weapon to wield iff you already know it
 
user784668
@R.MartinhoFernandes What are your reasons?
 
hello?
 
11:37 AM
@Fanael Dunno. Still have to ask myself that.
@kotAPI Howdy.
 
hello is not question
 
my first day at stackoverflow
 
user784668
@R.MartinhoFernandes Oh. So you're me.
 
Fits? Starts?
 
11:38 AM
maybe he meant hello ? conversation : leave;
 
user784668
@MarcClaesen goto hell;
 
@MarcClaesen hello? void() : throw up;
 
@R.MartinhoFernandes whatsup?
 
hell could not be resolved.
 
lol
 
11:39 AM
@kotAPI the sky. normal language. the works
 
Haha
 
@R.MartinhoFernandes I also don't like both boost.phoenix and C++11 lambdas syntax.
 
how old are you guys?
 
Are you a cop?
 
It varies a lot.
 
11:40 AM
this is a stickup
 
Welcome to the lounge. You will want to read the newbie hints.
We don't like questions (-> [SO]) and also reddit/4chan/9gag language is frowned upon
 
As a whole, we're probably 1200 years old or something.
2
 
user784668
Between 1e52 and 2e52.
 
no wonder its a programmer's lounge :P haha]
i feel lost already
 
Am I being detained or am I free to go?
 
11:41 AM
Assimilation is futile.
 
@Jefffrey try to leave and you'll see if you get caught
 
@Fanael Is that hex? Or are you just happy to see me
 
user784668
@sehe That's scientific.
 
Oooh. I'll have no choice but to accept that, then
 
Or maybe Jerry alone is 1200.
 
11:43 AM
any game developers in the house?
 
user784668
@R.MartinhoFernandes Seems like that's it, judging from how stuck in the medieval he is.
 
You mean the US?
 
user784668
@R.MartinhoFernandes Aren't these the same?
 
zzzzz... ing?
 
@kotAPI I hope you're not German...
 
11:46 AM
6 messages moved to bin
 
daww
 
Let's read the newbie hints again
 
@melak47 Why?
Sep 9 at 16:20, by Cat Plus Plus
Everyone laughing at you? Click here to learn how to make friends and not be hated!* We also have a list of acronyms, but it turns out that linking it here is extremely redundant. (* We reserve the right to laugh at you anyway)
 
Thank you, maestro
 
@sehe I wouldn't expect them to be findable like that.
 
11:48 AM
Yeah, how could I forget to mention cap-lock and general netiquette just now... :( (perhaps I really am sick)
 
@melak47 Speaking of German... don't you live in Berlin? Or was it Spandau? :P
 
@R.MartinhoFernandes well if he is, I'd have to assume he intentionally called himself "excrementAPI"
 
ok I've read the newbie hints
 
@melak47 Oh.
 
xD
 
11:48 AM
@R.MartinhoFernandes yep, Berlin :p
 
Dude, we need to grab a beer.
 
user784668
@melak47 Maybe he's Polish, and it stands for "catAPI".
 
(IOW I want you in my collection of Loungers I met in person)
 
do you now any synonyms to "face to face"
 
In person
 
11:49 AM
"in meatspace"?
 
@R.MartinhoFernandes lol
 
@R.MartinhoFernandes oh you
 
@sehe Thanks!
 
"wetware interaction"?
 
11:50 AM
That one sounds like sex.
 
@Xeo rebooted coliru.
weird crashes..
 
ex silico?
 
@R.MartinhoFernandes sure, anytime I'm not busy failing exams (or perhaps that's exactly the right time?)
 
Oh, is it exam season?
 
Even Coliru didn't die from exhaustion (this time): coliru.stacked-crooked.com/a/59fbff5c25770fffsehe 3 secs ago
 
user1804599
11:55 AM
Yay.
 
user1804599
Implemented a marquee in JavaScript.
 
@R.MartinhoFernandes kind of. I couldn't take any of the regular exams because of the stupid projects, so I had to choose the 2nd dates for all of them
 
@not-rightfold Wow. Patent it
 
user1804599
@sehe I'm not going to patent 7 SLOC.
 

« first day (1074 days earlier)      last day (3881 days later) »