« first day (739 days earlier)      last day (4221 days later) » 

10:00 PM
Well, maybe he's upset about all that too. Regardless, that doesn't make his point regarding your comment about (a part of) the American population any less legitimate.
 
@Code-Guru It's usually close to instantaneous if you refresh the page.
 
@sbi I was about to mention Dolph Lundgren in The Expendables, but then I realized he's Swedish.
 
@R.MartinhoFernandes My profile on SO updated with a refresh, but the chat didn't.
 
Well, I can already see your new avatar on chat...
May be a browser cache thing.
 
Xeo
ctrl-F5'ing in chat makes it show the new one to me.
 
10:04 PM
Appropriate.
 
Ell
Oktoberfest isn't German?
 
user142019
Who flags a hot chick?
 
@Xeo Same
damn
 
What happened?
 
I need to fix my tutorial page on Unicode Encoding
it's rather embarassing to have an encoding error on such a page
not sure how to fix
 
Ell
10:05 PM
Lol
 
Xeo
And it's neither an animal nor some phantastic thing. How dare you, @Code-Guru?
 
@Xeo okay, it's updated now...
 
@DeadMG Yes, it is.
 
sbi
@Ell No. It's Bavarian. Thinking of it as German is like considering a Scottish accent as "typically British".
 
You suck.
@Xeo It can be said to be fantastic.
 
10:06 PM
but
VS won't tell me what encoding the page is in
 
yep
 
I thought you could pick that when saving.
 
Ell
Hmm never knew
 
and I can't cough out of Chrome what encoding it thinks it's in
 
sbi
10:06 PM
@R.MartinhoFernandes @Code-Guru's avatar was posted in some Java chatroom and flagged for being offensive. Insert stereotype here.
 
@DeadMG FF is picking UTF-8 here.
 
hmm
 
Where is the issue? I don't remember, and can't find it.
 
any way, I'm heading off
 
I thought there was an "encoding" attribute for the <html> tag
 
Ell
10:08 PM
Stereo types are only as good as the information used to construct them
 
sbi
@LucDanton You forgot that we're talking about the guys that are elected by half the country's voters there.
 
see yargh in the mornin'
 
@DeadMG Nope. There's a <meta> tag for it.
 
@sbi That's probably the java chat room where I got the idea for the avatar in the first place...
 
@DeadMG VS saves as codepages by default I think, but in the SaveAs dialog, the Save button itself has a dropdown for saving with an encoding. (No encodings in the "save as type" dropdown.
 
user142019
10:09 PM
@DeadMG <meta charset='UTF-8'> you should use for all of the pages.
 
@sbi Where they're elected it's not half of the country.
 
Also lets you set the line endings
 
Ell
@deadmg isn't there a xml header thing? Not a real element? First line? Xmlns
 
If they are elected at all.
 
@Code-Guru I can't recall who you were before the name/pic change...
 
sbi
10:09 PM
@LucDanton Current guesstimates for Romney/Obama are 50/50, if German news got this right.
 
Ell
Isn't Romney against gay marriage?
 
the file is definitely saved as UTF-8
and I declared the pages to be in UTF8
but Chrome still shows the error
 
user142019
Romney is a fool.
 
@Cheersandhth.-Alf For specific cases, yes, probably. One problem is that a court does't usually give a clean separation between "not rape", and "may have been rape, but we can't prove it." Either would (or at least should) result in a "not guilty" verdict on a rape charge.
 
user142019
@DeadMG maybe the HTTP header is wrong.
 
Ell
10:12 PM
Maybe its a bug in chrome?
 
@MooingDuck This is the same name I've used on SO for a while now. Maybe the pic makes me less forgettable...
 
@sbi That's not an office!
Playful '!', not outraged '!'.
 
sbi
@LucDanton I have no idea what to make of that statement.
 
@DeadMG What is sent over the wire isn't UTF-8.
 
@MooingDuck I just started chatting more regularly in the last week or two even though I've been a regular SO member for several months.
 
10:13 PM
@R.MartinhoFernandes Hmm. I checked that the file was saved as UTF-8.
 
user142019
@DeadMG what HTTP headers does the server return?
 
Maybe VS created the master pages as non-UTF8 and then pasted the UTF-8 content in without doing a proper conversion?
 
Ell
@codingguru is it really true that you are a coding guru?
 
@sbi As in, elected to an office.
 
sbi
Has @Fred already wanked about this video?
 
10:14 PM
@DeadMG Just use HTML entities.
 
@R.MartinhoFernandes hm?
 
&blah; instead of the actual character.
 
@sbi They're reasonably close to even on electoral votes. That does not, however, represent a 50/50 split of people. Just for example, in 2000, there's no question that Al Gore got a clear majority of the popular vote -- the only question was about electoral votes.
 
sbi
@LucDanton Boy, what are you on about?! I never said he was elected into office, all I said is that about half of the active voters favor him. Is that really that hard to get?
 
6 mins ago, by sbi
@LucDanton You forgot that we're talking about the guys that are elected by half the country's voters there.
 
10:15 PM
@R.MartinhoFernandes I could do, but wouldn't that just defer the problem?
 
@DeadMG &szlig;
 
sbi
@JerryCoffin So? Shrug.
 
I think there's a misunderstanding from the tenses/aspects whatever.
"the guys that would be elected" or "that are to be elected" is perhaps what you meant.
 
eh
 
@DeadMG Nope, because there are only safe-ish characters in &szlig;.
 
10:16 PM
deferred problem > current problem
 
sbi
@LucDanton I can elect @Dead to be my favorite Lounge puppy. That doesn't necessarily mean he'd be in office, does it?. "To elect" is a verb that's used for less formal statements, I'd like to think.
(And, yes, I know I just plinked the insect.)
 
@sbi No, you didn't. She came back to life recently.
 
Xeo
@sbi No you didn't
 
sbi
Oh. Quite mercurial, the girl.
 
@sbi ...or is she a git?
 
10:19 PM
Woa.
So many puns in here.
 
@sbi You can certainly elect him to be your favorite puppy. That would not, however, make him elected to anything, I would think.
 
sbi
@JerryCoffin Ouch.
 
It's an apuncalypse.
 
sbi
@LucDanton Now you're making my point against your arguments? What's this?
 
daisy wants chips
 
sbi
10:20 PM
Anyway, past midnight here, and, as I wrote, I gotta get up at 5:45. Good night.
 
@sbi No.
 
@sbi G'night.
 
daisy likes chin scratchings
 
user142019
@JerryCoffin as long as she doesn’t subvert us, it’s all fine.
 
user142019
10:21 PM
That dog is world-famous, not even realizing it.
 
@DeadMG Derp face on that.
 
lol
@DeadMG Pity that one got blessed with crap quality.
@WTP'-- That's a bit of a stretch.
 
@R.MartinhoFernandes Yeah. I took several but she kept moving, so I only had that one picture in the right place.
 
Just to set things straight, Lounge<C++> != world.
2
 
user142019
But it’s close to dominating the world, at least.
 
10:24 PM
damn
now all my pages have random gunk at the bottom :(
that never used to happenj
</html>​
don't get that on the live site
ah, solved
 
user142019
I’m bored.
 
apparently ASP.NET won't play nice if you're UTF-8 without "signature", which I presume means BOM
oh well
soon time to delete VS2010 and upgrade to VS2012
you know
I should really disable google analytics on my website if it's the dev version
else I'mma get 9999 false hits
 
@EtiennedeMartel You know, I think I was a bit petty with one of those incidents. I actually deleted a helpful answer to spite the OP. I'm sad now :(
 
@WTP'-- We shall, Perforce, persevere.
@WTP'-- "locally world famous"
 
@R.MartinhoFernandes Eh.
I have a solution for that problem.
 
10:29 PM
:)
 
You can probably guess what it is.
 
Then get to it.
 
Exciting news: The African scammers have progressed from email to phone solicitation: I just got a call from somebody in Dijbouti who's now my new bestest friend in the whole wide world!
 
Well damn.
I hope it dit not just cost you an arm and leg for that call.
 
10:31 PM
@JerryCoffin isn't that kind of an expensive call?
 
@R.MartinhoFernandes Yep.
 
@melak47 Dunno -- I'd guess they're using some VoIP system to do it relatively cheaply. From +253-82-0308, in case anybody cares.
 
I never really made it a secret, ya know.
 
@EtiennedeMartel I'm pretty sure I'm supposed to be warned when/if I receive a call that will cost me anything (on my land-line, which is where this came in).
 
10:36 PM
Hey, I was doing projecteuler.net/problem=23, and had a question. Can the number 28123 be written as the sum of two abundant numbers?
 
@Link Wait. You're new here, right?
 
Well i use the chat sometimes
not alot
 
I mean this chatroom.
 
I guess?
 
Anyway, we got a rule that any newcomer should read this.
 
10:39 PM
.okay, got it.
 
Listen!
Hey!
 
@Cicada Sssshhhh.
 
Ell
I get it!
 
Navi was an annoying little bitch.
 
Hey!
 
10:41 PM
@Cicada lol'ed
 
damn, so habitual to type std::unique_ptr<int>
and MSVC kindly inserts </int> for me :P
 
lol
are you serious?
 
yep
 
Ell
Hah
 
@EtiennedeMartel Fits me well.
 
10:46 PM
@Cicada If you say so.
 
@thecoshman you around?
 
@R.MartinhoFernandes Hey I didn't see you comment on my super duper tuple shuffling, assuming you got those messages at all.
 
@DeadMG lol, what
 
@LucDanton I still have a tab with it open, but I have not been in the mood to check it out yet :S
 
Oh well.
 
user142019
10:50 PM
@DeadMG shouldn’t it be std::unique_ptr&lt;int> anyway?
 
@WTP'-- Yep.
hence the "habit" part
also, you forgot &gt;
 
> how can a country that thinks a rape can be 'legitimate' be allowed to have a military force?

Nobody in the U.S. actually believes a rape can be legitimate. It's just jack ass politicians saying stupid shit.
 
user142019
@DeadMG &gt; is not required.
 
oh didn't know that
 
> what
 
user142019
10:50 PM
The only characters you have to escape are < and & to &lt; and &amp;.
 
> crap
 
user142019
Inside attribute quotes you also have to escape quotes.
 
> sucks
 
user142019
@DeadMG > would never make any ambiguities.
 
user142019
< would.
 
user142019
10:52 PM
But yeah, I always do &gt; because of this:
 
user142019
 
)
 
user142019
But > instead of (. :P
 
user142019
XML and HTML are terrible.
 
user142019
I always use Haml & Co. or Blaze instead of HTML directly.
 
user142019
10:54 PM
It’s like.
 
user142019
%html
  %head
    %meta{ charset: "UTF-8" }
    %title Hello
  %body
    %h1 foo
    #mydiv
      %p#copyright © 2012 Radek Slupik
 
Going to sleep. Good night.
 
user142019
Nop well.
 
if I was gonna do that, I'd roll a trivially simple format and then parse it with a homemade Python script
night night
 
user142019
What about Markdown? :P
 
user142019
10:57 PM
There is certainly a C# implementation of Markdown.
 
jesus, even worse than HTML
 
user142019
lol
 
in fact, I just finished struggling with a Python script to get rid of my Markdown sources and convert to HTML
 
user142019
oh xD
 
user142019
Man.
 
user142019
10:59 PM
I think I’m just gonna write my pawn site with Ruby on Rails.
 
user142019
Fuck doing things manually. (Pun not intended.)
 
hmm, an IOstreams question just went up. I wish there was a way to ping Dietmar on it :/
 
user142019
I’m really considering Rails vs Flask now.
 
user142019
And I think I’ll force the user to put their uploaded material under a CC license. :P
 
Xeo
@MooingDuck Your pinging won't work, his name is "Dietmar Kühl", so DietmarKühl
 
user142019
11:05 PM
@Xe I always thought this worked. :/
 
user142019
I like bacon.
 
Xeo
1
A: Creating an input stream from constant memory

Dietmar KühlThe way to do this is to create a suitable stream buffer. This can, e.g., be done like this: #include <streambuf> #include <istream> struct membuf: std::streambuf { membuf(char const* base, size_t size) { char* p(const_cast<char*>(base)); this->setg(p, p...

:D
And I just wanted to write exactly that as an answer. :(
 
user142019
Oh God. Ruby on Rails has really become a mess since 3.2.
 
@Xeo I copied "dietmar-kuhl" from his profile URL. I guessed wrong apperently. I didn't think I could ping him anyway.
 
Xeo
@MooingDuck Yeah, copying from the URL doesn't help.
 
11:17 PM
hmmm
to prefix every reference to Standard classes with std::?
 
user142019
@DeadMG yes.
 
user142019
It makes things more clear and prevents noobs from doing using namespace std;.
 
I never mentioned that
 
user142019
Oh.
 
user142019
Then I think I misunderstood you.
 
Xeo
11:26 PM
I think he meant when he mentiones a standard type, function or variable
 
user142019
@Xeo I meant that too.
 
user142019
 
yeah
I never mentioned using namespace so anyone following my tutorials won't have a problem
 
user142019
In that case…
 
all I'm saying is that it looks a bit odd to see std:: a dozen times in a paragraph
 
11:29 PM
@WTP'-- what.
 
@DeadMG I'd say yes in code, no in paragraph.
 
user142019
 
oh right
fitting indeed
i have no idea what i'm doing here
 
I have resumed writing that 'say no to std::function' essay-rant, on which I had started a little over a week ago. Sure is taxing.
 
user142019
@Cicada We all haven’t got an idea what we’re doing here.
 
11:32 PM
I'm running into the character limit on my profile. Soon I'll have to start removing compliments :(
 
Xeo
@Mooing, you really like Dietmahr, eh? :P
 
user142019
// LOL
#define CONT(x) std::begin(x), std::end(x)
std::find_if(CONT(my_vector), is_odd);
 
user142019
I’m feeling so evil today.
 
Why'd you name that macro like that? You're a cont.
 
user142019
CONTAINER
 
11:33 PM
@WTP'-- std::find_if(CONT(std::vector(data, data+size)), is_odd);
 
user142019
I want like,
 
@MooingDuck lol
 
@Xeo he knows stuff, like a magician! Stuff that nobody else knows!
 
You want boost::find_if(my_vector, is_odd) or even my_vector | boost::adaptors::filtered(is_odd).
 
Xeo
@MooingDuck lol, you sure?
 
11:35 PM
@Xeo no
 
user142019
std::find_if(std::begin(vec), std::end(vec), (== 0) . (% 2));
 
user142019
Wait.
 
user142019
That can be done with std::bind and a compose function.
 
my_vector | filtered(arg1 % 2 == 0)
 
user142019
// LOL
compose(
    std::bind(operator==, std::_1, 0),
    std::bind(operator%, std::_1, 2)
);
 
11:36 PM
Works with find_if as well of course.
 
Xeo
@MooingDuck: last week I learned that we are targetting C++ 2014 at the moment! That is, complete proposals, ready to go into the working paper, would be required in April - I don't see this happening although it is a small and actually useful feature. One stumbling block is that whenever anything is brought up for IOStreams there is this major moan "can't we have something better?" but nobody comes forward with something better... — Dietmar Kühl 55 secs ago
 
Beyond the obvious issues, nested bind expressions don't work like that. Placeholders always refer to the top-level parameter.
 
Xeo
Woah, 2014!
 
user142019
C++ y u no decent currying and function composition.
 
@Xeo I think the 2014 is reserved for little things, and 2017 is the target for big things. IIRC.
 
11:38 PM
So, std::bind(std::equal_to<int> {}, std::bind(std::modulus<int> {}, _1, 2), 0) if you actually care about that.
 
user142019
C++ y u no LINQ. :P
 
Xeo
@WTP'-- Boost.Range, close enough :P
 
3 mins ago, by Luc Danton
my_vector | filtered(arg1 % 2 == 0)
 
user142019
Microsoft is working on LINQ for C++11.
 
Told you already.
 
Xeo
11:38 PM
And there are so many linq implementations...
 
user142019
Oh yeah. xD
 
user142019
Does Boost have list comprehensions?
 
No.
 
@WTP'-- Sure. MS Did C++ for .NET too that was beautiful. Beautiful I tell you!
 
I'm not sure how to make a compelling argument to not use type-erasure if you have a non-type-erasure solution available. I don't want to write a silly micro-benchmark.
Guess I can compare to abuse of boost::any? I'm not sure.
 
user142019
11:42 PM
template<class T, class F, template <class> Container, class... Predicates>
std::vector<T> list_comprehension(F const& f, Container g, Predicates const&... preds);
 
user142019
Meh.
 
@LucDanton A benchmark of a type_erased iterator makes an incredible example.
 
I've produced a solution where you could do e.g. (_x + _y)[_x <<= foo, _y <<= bar] except that it iterated wrong.
 
Does boost have a deque-like class that I can use to replace MSVC's std::deque?
 
@MooingDuck I don't know, I feel that micro-benchmark arguments need to show the code, compiler and compiler flags used. That's a lot of work for so little.
@MooingDuck Check out Boost.Containers.
 
11:45 PM
@LucDanton oh hey, look at that
 
If you'd asked just some months before today, I wouldn't have been able to suggest it lol.
 
user142019
template<class T, class U>
extern "Haskell" std::list<U> map(T (*)(T const&), std::list<T> const&);
 
user142019
Would be cool.
 
r | transformed(foo)
 
user142019
No I mean the extern "Haskell" part. :P
 
user142019
11:47 PM
But yeah, it’s gonna be impossible since,
 
user142019
you can’t have extern templates.
 
wot
 
user142019
template<class T>
extern "C++" T foo(); // does that work?
 
no
@WTP'-- std::function, nub.
 
Has to be a block.
 
user142019
11:49 PM
@DeadMG I know. :P
 
@DeadMG No!
 
@LucDanton The principle is the same- it can't be a function pointer, as those are stateless.
 
user142019
extern "PHP" void suck(void);
 
@DeadMG It's night and day between a proper function template parameter and std::function.
 
user142019
PHP is Perl’s retarded cousin.
 
11:51 PM
As in obscure errors deep inside your template instantiation stack.
With proper care, you can have acceptable errors deep(er) inside your template instantiation stack. Obviously better.
 
user142019
 
I'll have to look what it looks like when properly formatted but I feel like that essay-rant is going to be a multi-parter.
 
@LucDanton excellent! blocks of 512 bytes instead of 16. Sad that there's no configuration for it though
 
@MooingDuck I dunno, I've never checked that part of Boost.
 
user142019
11:56 PM
I need to come up with some good ideas for mah pawn site.
 
user142019
@MooingDuck Hardcoded? Didn’t expect that from Boost.
 
@WTP'-- srsly, I expected it to be configurable at least via a macro or something. Maybe even runtime parameter!
 
user142019
Why isn’t it a template argument?
 
I wonder if other people use the Boost license.
 
I've seen it for unrelated projects.
 
user142019
11:58 PM
@MooingDuck I think template<class T, class Allocator, std::size_t BlockSize> class deque; would be good enough.
 
@LucDanton Earlier in the morning we were discussing about your name being a pun for "in your ass" in French.
 
template<typename T, typename Allocator, typename Options = sensible_default> for extensibility!
 
@WTP'-- no, I definitely like the runtime idea. More flexible, and there's virtually no overhead as long as you set it before adding data.
 
@Rapptz 'Up yours' is a better, less literal translation.
 
user142019
@MooingDuck or or or, JIT-compilation. :D
 
11:59 PM
@WTP'-- ...
 

« first day (739 days earlier)      last day (4221 days later) »