« first day (741 days earlier)      last day (4212 days later) » 

1:01 PM
@TonyTheLion hey, who's been posting naughty pictures again?
 
Ell
stupid bus drivers :'(
 
Xeo
@Cheersandhth.-Alf Erm, range-for doesn't yield iterators, it yields whatever the iterators dereference to. So it's entirely irrelevant that an iterator is not a pointer, since the value of the range is a pointer.
 
@Ell Well, our neighbour was a bus driver and was, indeed, pretty stupid. Not sure about your generalization?
 
@thecoshman Goodness I know nothing of european geography
 
@Cheersandhth.-Alf I'm innocent. :P
> Stack Overflow, I love you. . . but I want a divorce.
 
1:05 PM
@Collin just replayed and got 70975 :D It really helps if you at least know the countries
 
Ell
I got 57234
 
@thecoshman Yeah, I did a lot better on the USA one, since I can at least hit the right state
 
Ell
I apparently don't know where germany or the netherlands are :3
 
it's funny how a slight rotation to the map from what I am used to seeing makes it so much hard to tell where places are relative to each other
 
@Xeo I think of auto as a means to declare variables.
 
1:08 PM
std::map<int, string> m; std::rotate( m );
 
Xeo
@R.MartinhoFernandes heh
 
Can you rotate map?
 
Xeo
2 mins ago, by thecoshman
it's funny how a slight rotation to the map from what I am used to seeing makes it so much hard to tell where places are relative to each other
 
Hmm
 
Xeo
A joke of questionable quality on the quoted text. :P
 
1:09 PM
Where's the limit between gaming and cheating ?
 
The line*
 
What?
 
@kbok Cheating what?
 
Suck at US. I know where the states on the left/right/bottom are, but those Texas/Ohio things in the middle, not at all sure.
 
Well, that deserves an explanation
 
1:10 PM
@MartinJames I know Florida, Alaska and Hawaii.
 
@Xeo as in auto foo = function_that_returns_beastly_type_that_we_don't_cate_about()
 
When you're playing a video game, is saving / loading to improve chances of success cheating ?
 
@R.MartinhoFernandes Michigan looks like a hand
 
@kbok if you are looking up where the places are, you are cheating :P
 
Oh, yeah, Hawaii - can make a stab at that as well :)
 
1:11 PM
What about saving, see what happens next, then replaying ?
 
@kbok I'd say it depends on the game. Save scumming is widely considered cheating on NetHack for example.
 
@kbok oh, you mean about games in general :P
I think it depends on the game
 
What about saving, waiting for a city to be attacked, loading, then camping your battleship in said city ? :p
 
something like a sim game, it is some what cheating if you keep trying a tricky bit and reloading to before hand when it goes wrong until you get it right
 
1:13 PM
@kbok I'd say that's borderline cheating if you did the saving/loading dance on purpose.
 
My friend used to outright cheat at UFO defense - hex editors gives infinite money, ammo, time units
 
@kbok interestingly, it is not beyond reason that the game could detect that and thus not let such tactics work
 
If you loaded for some other reason, I'd forgive you using the knowledge you gained (what has been seen cannot be unseen)
 
I said to him to try to play without cheating, because it makes the game really better
 
@R.MartinhoFernandes giant red cock!
 
1:14 PM
Now that I think about it: if you do the saving/loading dance on purpose, yeah, it's cheating.
 
@R.MartinhoFernandes Though sending a battleship in a completely peaceful city would not be something you'd do normally
 
my first message on caht. yepiiii
*chat
 
@kbok yeah, but lets say you saved the game, but a little bit later it crashes, and you have to go back to that game save. You know what the computer is going to do in the short term, what do you expect the player to do, act like he doesn't know the AI is about to attack him?
 
@kbok But sitting there doing nothing knowing they'll kick your arse is... annoying? Frustrating? (Personally, I'd have no problem with it: I don't mind like losing; but I understand it takes the fun away for some people)
 
yesterday, by sbi
If you are new here, please take a quick look through the newbie hints. Thank you.
 
1:16 PM
I want to compete with his results but I don't want to make up rules. What about reading FAQs ? Having the research tree handy before finishing the game first ? etc.
 
I suggest you read very carefully
 
@R.MartinhoFernandes Actually when it happens you have to retaliate which gives you a strategic and financial handicap compared to camping
 
@kbok Hmm, depends on the game? For most games I'd say that's fine. For games where that discovery is part of the challenge (why am I mentioning NetHack again?) that's cheat-ish.
 
@R.MartinhoFernandes mostly cheating your self
 
@R.MartinhoFernandes It's UFO Defense.
 
1:17 PM
if you don't want to spend the time solving the mysteries of a game, watch a film
 
@kbok Well, my point is that I'd be a lot more forgiving of that because I know how hard it is to dissociate yourself from knowledge you gained through external means accidentally.
 
@kbok be happy in the knowledge his scores mean nothing
 
@thecoshman What ?
 
@kbok googles
 
Also, did I mention this game is extremely fucking hard ?
 
1:20 PM
@kbok he got his high score by cheating, your score, whilst tiny in comparison, was hard earned
 
@thecoshman Yeah, but I convinced him to replay without cheating, so I have to decide what's cheating or not
The funny part is that he didn't succeed in finishing the game even by cheating
 
@kbok I'd say no, it's not cheating to look up tech trees.
 
@MartinJames my PC has a switch on the PSU. Not that I'd need it, because I know martial arts: Alt+SysRQ+o is instant shut-off (or, if you want to be a little bit more conservative: Alt+SysRQ+{s,u,o} which synchs to disk before that
 
My laptop doesn't have a SysRq key. Can't say I miss it. (If I did, I would have never bought it)
 
@sehe Mine too, but I've worked on a LOT of different machines and some of them have no switch.
 
1:32 PM
Hmm, I can I have files named ô and ô in the same directory (first is precomposed; second uses a combining accent). Makes sense, but is very weird.
 
Xeo
wat.
 
> Makes sense
 
Xeo
How do you even get that second one
 
I'm not sure about that.
 
It's Windows, but I bet the same is true for Linux filesystem.
 
1:33 PM
@R.MartinhoFernandes Could you please expand on 'Makes sense'?
 
@Xeo It's U+00F4 vs <U+006F U+0302>.
@MartinJames File name equivalence is not Unicode canonical equivalence.
 
Xeo
O hey, LWS is back
 
Windows won't let you have two different-cased files in the same dir as well. It probably compares using a loose criteria before creation.
 
I assume those files were created by some buggy app of yours?
 
@MartinJames Nope, I created them myself to test.
 
1:35 PM
You have strange hobbies.
 
@R.MartinhoFernandes Oh wait - is this going down some road of 'Embedding index data in the filename'?
 
@kbok chances are, he will do his best to find a way to cheap that you haven't thought of
 
@MartinJames Oh, gawd, no.
 
@Xeo and improved?
 
I'm working on Unicode normalization again and curiosity hit.
I have no use for it other than confusing hapless users.
 
1:38 PM
@R.MartinhoFernandes Well, it's confusing hapless loungers too.
 
@MartinJames Well, it's simple: at the byte level the two names are different. That's why it makes sense.
 
I use filenames with a hex index in the transaction filenames, but only on an embedded system.
 
But that explanation doesn't hold for a and A, though. Windows is weird.
 
@R.MartinhoFernandes windows file names are case insensitive though aint they?
 
IIRC, there used to be an option to turn off/on that case-insensitivity on file searches. Not sure how to do it now.
 
1:42 PM
@thecoshman Yes, but that is the only special casing going on. That I know of.
 
That just looks weird.
 
@MartinJames That's what I said.
:)
 
It's worse when you actually look at it.
 
user142019
I once had two files name Firefox.lnk on my desktop. Weird bug.
 
@MartinJames Sort of realated
 
1:46 PM
@WTP'-- One had an extra space?
 
user142019
@MartinJames I have no idea.
 
AFAIK Windows trims filenames.
At least Windows Explorer does when you type them.
I don't know if that's done at the shell level or deeper down.
 
user142019
It is funny that Windows doesn’t show files if their names contain backslashes.
 
user142019
They just don’t show up. :P
 
@WTP'-- Because Windows does not allow backslashes in file names.
Yes, you can fuck shit up by mounting an NTFS volume in another system, I know.
 
The above I did entirely from Windows. The only "trick" involved is charmap.
 
oh, you can really mess up windows if you use another OS to set a file name to something the windows does not like. It really freaks out
@Cheersandhth.-Alf biased I am sure
I think I need to work on making a MC skin for myself more in keeping with my Grvitar
 
well it's 3 to 4 times faster in internet explorer than in firefox
 
@Cheersandhth.-Alf I am sure it is :P
 
user142019
@Cheersandhth.-Alf 60 FPS, I get.
 
1:53 PM
I get 6 FPS
which admittedly sucks
 
firefox sucks in terms of perfs
 
user142019
lol 6 FPS
 
I'm using Chrome
 
user142019
Mine won’t go over 61 FPS. :(
 
@TonyTheLion yeah, I'm not getting that great either
 
1:54 PM
I get 10 FPS on FF.
 
I get 29FPS on chrome
 
like 9fps
 
user142019
@Cheersandhth.-Alf how much FPS does IE get?
 
i get 12-15 in ff and 46-50 in ie
 
1:55 PM
@R.MartinhoFernandes Makes sense, as I think it is amply documented that NTFS is encoding-agnostic IIRC
 
user142019
 
user142019
:3
 
@ScottW not much I fear... Welcome southern brother
 
this one is my favourite
 
user142019
1:56 PM
@kbok I get 60 FPS.
 
@ScottW Aren't you in Australia these days? If not, where'd I get that from
 
@sehe It's not about encoding.
 
Xeo
@kbok 2 FPS :D
 
The names are different in every possible encoding that can encode them.
 
@R.MartinhoFernandes Is tha point
 
1:57 PM
@sehe It's not.
 
user142019
I guess Safari uses hardware acceleration.
 
@R.MartinhoFernandes Wokay. I'd need to look into that. I missed the point then
 
@kbok that's at 60 fps in firefox
 
@sehe The point is canonical equivalence.
One of those is one codepoint, another two.
I also learned that NTFS will happily accept lone surrogates.
 
60 in chrome
 
1:59 PM
NTFS filenames are null-terminated strings of 16-bit "bytes".
 
hm it's still loading in ie
 
user142019
 
@R.MartinhoFernandes So, yeah, that means I didn't miss the point. You'd expect windows to see them as equivalent (since they even ignore case difference, for crying out loud). However, it's just the UI/presentation layers (~explorer) that present the semblance of Unicode support. The filesystem layer doesn't support any of that.
 
I don't understand why I can't static link into a shared library. Why doesn't pastebin.com/yML9KHfC work?
 
@sehe Basically, there is no such thing as "characters" in NTFS file names. Windows adds a thin layer on top of that that adds the notion of case-insensitivity, but just that.
@sehe Ok. But you did express your understanding of the point wrong :P
 
2:02 PM
Is mah point :)
Lol
 
@WTP'-- Hehe - I tried to make a black hole, but the particles repel too much:(
 
user142019
@MartinJames turn on magnetic repulsion and turn off particle tethers.
 
@WTP'-- reminds me of the winamp vizs
 
@sehe Same in Linux filesystems (other than the messy case insensitivity)?
 
2:04 PM
Oh, so ZFS can indeed make those file names refer to the same file. Neat. Or not. I'm not sure yet.
 
It has 'mixed' casesensitivity mode even, like OSX has (?)
 
Oh yeah! Plenty singularities now!
 
@R.MartinhoFernandes Well defined and well defined features always trump bad assumptions by the OS :)
<A wild wasp appears>
 
Any ideas on the static linking pastebin ?
 
user142019
@sehe HFS+ file systems are either case-sensitive or case-insensitive. You can set that when formatting.
 
2:07 PM
@mantler linking to pastebin +1, not asking on Stack Overflow -1 Neutral
@WTP'-- Derp. You didn't exactly read the ZFS link, did you
 
Sorry. I'll post a question.
 
user142019
@sehe nein.
 
@Xeo Meh. Gimme native mpl::at or GTFO :(
 
Xeo
@R.MartinhoFernandes Sorry, but random-access is O(log N) at best it seems. :(
 
2:09 PM
That's why I asked for native.
 
Xeo
Ah, I overlooked that one
 
@WTP'-- Relevant doc: pastebin.com/zTL8bJrN
casesensitivity = sensitive | insensitive | mixed
normalization =none | formD | formKCf
utf8only =on | off
 
Xeo
Hm, is there a word for "everything but the last"?
 
user142019
@Xeo for lists it’s called init in Haskell. Don’t know of an English term, though.
 
user142019
 
2:12 PM
@Xeo lulz. I didn't know you could have a variadic pack inside a string literal (<troll lit="..."/>)
@WTP'-- Can't make inits or lasts of that
 
@WTP'-- That's from Mario o.O
 
Xeo
@sehe ...
 
user142019
@Rapptz lol maybe. It’s from Learn You a Haskell.
 
Xeo
See, you can even use packs as sarcastic comments!
 
@Xeo E_ELLIPSIS
@Xeo Great. Learning everyday!
 
Xeo
2:13 PM
And always remember, "dah dah dah" vs "ellipsis"
 
user142019
@sehe E_DOT_DOT_DOT_IN_A_DIFFERENT_FONT
 
Yeah it's the big-ass centidepe from the mountain in mario64.
 
user142019
T_PAAMAYIM_NEKUDOTAYIM
 
user142019
@kbok A human centipede!
 
No.
 
2:14 PM
 
user142019
ahw :(
 
user142019
@Rapptz yeah I remember him/her from Galaxy, IIRC.
 
user142019
Knife party. ಠ_ಠ
 
user142019
Let’s knife each other! It’s a party! ಠ_ಠ
 
user142019
2:16 PM
@expose
def show(self, username):
    try:
        user = self.users.find_by_username(username)
        return render_template(u'users/show.html', user=user)
    except EntityNotFound:
        raise NotFound()
 
dude, it's just a band's name
 
user142019
dude, it's just sarcasm
 
user142019
I’m feeling Norwegian today.
 
Uhoh: Maybe Todd Akin might have been referring to this research report:
> women’s bodies can detect “foreign” semen that differs from their long-term or recurrent sexual partner’s signature semen (an evolved system that, Gallup believes, often leads to unsuccessful pregnancies— via greater risk of preeclampsia— because it signals a disinvested male partner who is not as likely to provide for the offspring); here
 
Can't click the link :@
 
user142019
2:18 PM
@kbok buy a better trackpad.
 
@kbok RSI?
 
user142019
sehe stop it you fool.
 
Casing mishAp
 
@sehe No, the buttons hide it
 
user142019
@kbok widen or narrow your browser window.
 
2:19 PM
@kbok Then... Don't hover! In-/decrease font size?
 
Xeo
@R.MartinhoFernandes optional not yet updated for Move semantics? :(
 
That still sucks
 
@kbok Use the freaking keyboard? (It's paid for, alright)
 
user142019
TRACKPAD
 
@Xeo Nope. Sucks donkey cock, as someone here would put it.
 
2:19 PM
@Xeo Nearly nothing in Boost is, IIRC
 
user142019
I used a mouse yesterday for the first time since weeks and it felt weird as fuck. xD
 
 
@WTP'-- Ah come on. You just use touch screens all day. Real programmers use the keyboard
 
user142019
@sehe I haven’t used touch screens since two weeks either. :/
 
 
Xeo
2:21 PM
@R.MartinhoFernandes Dammit. Well, I did mention "in the general case".
 
@kbok Make a bug report rant on meta.
 
CBA
 
user142019
@R.MartinhoFernandes This occurs so rarely that I’m too lazy to fix it. — Mark Gravell ♦
 
@Xeo "General" as in "Not limited in use or application; applicable to the whole or every member of a class or category."?
@WTP'-- That's why it would be a bug rant.
 
Xeo
2:22 PM
@R.MartinhoFernandes "general" as in "most common"
 
@sehe then it's obviously obvious that abortions are pointless, since women can only conceive when they have an invested male around? :p
 
Xeo
Maybe I'm misusing the word "general" here.
 
@Xeo Ah, "usual".
 
Xeo
That sounds better, but my 5 minutes are over. :|
0
A: c++ function that can't return a meaningful value under some conditions

John DiblingSince your question is phrased in generalities, I will also respond in generalities. If you have a function whose job it is to create and return an object, then that is it's job. Now if you want to design this function in such a way so that when certian conditions needed to build the object a...

 
Anyway, I don't think I have to mention that I don't like that question :P
 
Xeo
2:25 PM
heh
 
reStructuredText sucks.
 
user142019
@Xeo you could wrap boost::optional in a class that uses std::swap in the move ctor. It would look weird though.
 
user142019
@Rapptz I disagree.
 
@WTP'-- Wrap it with private inheritance.
 
user142019
Of courze.
 
user142019
2:29 PM
namespace boost {
    class optional_FIXED : private optional {
    public:
        optional_FIXED(optional_FIXED&& other) {
            swap(other, *this); // wut xD
        }
    };
}
 
@melak47 ...
 
@sehe I forgot to mention that rape isn't legitimate, didn't I
 
@WTP'-- Needs a whole bunch of usings and... template.
 
user142019
Oh yeah optional is a template. :/
 
@melak47 well, enjoyable rape is legitimate, unless it's not forcible
 
2:32 PM
@sehe you lost me there
 
yesterday, by R. Martinho Fernandes
user image
Silence please
 
@sehe :o
 
user142019
@R.MartinhoFernandes Except for using, something like this? gist.github.com/f1749aed80eff17f374f
 
Leftists, leftists everywhere...
 
user142019
Maybe I also need to = default copy ctors and copy operator=.
 
user142019
2:36 PM
@Rost Left tits, left tits everywhere…
 
@WTP'-- Right tits are too. And they are much tittiest ;-)
 
@WTP'-- Yes, you do.
 
GOOD MORNING NOT VIETNAM!
 
Put the mic down!
 
@EtiennedeMartel It's night in Vietnam.
 
2:39 PM
@R.MartinhoFernandes I meant we're not Vietnam.
It's a logical not.
 
It's not morning here.
 
Well, it is in America, and America is the center of the world, see?
 
Man, French trains makes you want to commit suicide.
 
@EtiennedeMartel By "here", I meant StackOverflow, which uses UTC.
 
2:40 PM
@R.MartinhoFernandes Sadness and despair.
 
Why a single trip which usually costs 20 EUR suddenly costs 80 EUR ? It's the exact same train at the exact same hour every fucking week and they multiply the price fourfold just because they know people have to buy it.
@EtiennedeMartel Yeah, I saw that, that's hilarious
Seriously, taking the RER is quite an accomplishment
 
@kbok What happened?
 
wow, that takes the piss even more than British Rail
 
@R.MartinhoFernandes There's a holiday next week so many people go back to the countryside to visit family. Nothing changes in the train network except that prices go 4x-5x just because, well, people have to take the train this week end.
 
2:44 PM
So for the price of an Xbox 360 you get two hours of train that you would usually pay 50 bucks for.
Prices rose by nearly 30% this year, so I'm really pissed at the train network right now.
 
Take a plane!
 
Might be time for you to leave France, ya know.
 
There's no planes where I go. This is the countryside, remember :p
 
lol, says the Cananananananadian.
 
@kbok Oh, might be worth looking for a helicopter then.
 
2:46 PM
No, I just think I'll never leave the 15ème ever again.
 
@kbok So they can land anywhere! :P
 
lol
 
I'm looking at the job posting by my employer, and they have "Excellent knowledge of C / C + +" at one point. Fucking HR.
 
lol @ the spacing.
 
@EtiennedeMartel Very bad sign IMO
 
Xeo
2:48 PM
Hm. Does anyone know how I can fill out a PDF if the fields are not marked as "editable"?
 
Worst thing is that it's for a job posting in my team, and I know my boss, he would never do that kind of mistake.
@Xeo Print it, do it by hand.
 
Why don't they ask for knowledge of "C/Objective-C" instead.
 
@Xeo You mean, there are no fields?
@kbok C/C#!
 
Xeo
@EtiennedeMartel I need it digital. :(
 
@kbok who want's that?
 
user142019
2:49 PM
I have seen C++/Java.
 
Xeo
@R.MartinhoFernandes Yep. :P
 
@Xeo ...then scan it!
 
@R.MartinhoFernandes Well C# is not C-compatible.
 
Xeo
No scanner. :(
 
I'm so fast.
 
2:49 PM
@Xeo edit the PDF so that it has editable fields
 
@thecoshman Who wants C/C++ ?
 
@Xeo Then put it on a wooden table and take a picture.
 
Xeo
I'm seriously contemplating to just fill it out on paper and make a photo
 
@kbok the same idiot who wants C/Objective-C I assume
 
@Xeo Use a PDF virtual printer. Yeah, that sucks. I know.
 
2:50 PM
> All the ladies say that Scooter's the fastest ride in town so come on and catch a ri- oh damn I just realized that that's an insult... never mind.
 
user142019
C/Objective-J. Just because you can.
 
@kbok so you can print your PDF to a PDF?
 
@thecoshman PDFception.
 
PDFception.
 
yo dawg
 
2:50 PM
@R.MartinhoFernandes get out of here slow poke!
 
@thecoshman Hey, one second.
 
user142019
@R.MartinhoFernandes You failed the Turing test. You’re not a robot. :(
 
@R.MartinhoFernandes that's billions of operations!
 
@thecoshman Crappy network.
@WTP'-- I think you have the wrong test.
 
user142019
 
2:53 PM
@R.MartinhoFernandes don't blame your self
 
@R.MartinhoFernandes You are really slow today.
 
OMG, I managed to convince an OP that his question was crappy.
 
user142019
 
user142019
LOL
 
2:53 PM
ugh
 
lol
We don't need hot programmers, we need ones that can write code that actually works
 
user142019
Porn-addicted Harmful Psycho
 
@TonyTheLion That's not a selective enough criterion.
 
@TonyTheLion you mean like this
 
2:56 PM
@R.MartinhoFernandes but at least it's better than a PHP programmer
 
user142019
Yahoo! Answers, trolls trolling trolls.
 
In fact, "it works" is one the most insidious bad excuses ever.
 
nothing is more exciting, then setting your Out of Office message
 
@EtiennedeMartel Yahoo answers has to be the biggest joke ever.
@thecoshman lol
@R.MartinhoFernandes good enough when you're writing SQL
 
user142019
I’m gonna order a Python T-shirt soon.
 
user142019
2:57 PM
I love Python.
 
@TonyTheLion yeah, but hots slutty ones who are sexy females have an edge
 
Yes Python rocks
 
@thecoshman "Fuck off"?
 
lol, I'd love that one
 
@TonyTheLion Well, it's an excellent proof that the American school system lacks funding.
 
2:58 PM
@EtiennedeMartel haha, true.
Google is all you need.
 
@R.MartinhoFernandes that can wait for when I leave :P
 
The most useful skills I have I learnt through use of Google
not in school
 
user142019
FreeWear.org y u no real pictures. Y u only drawings of T-shirts.
 
meh, it's 5pm and I'm still hungover
 
2:59 PM
@WTP'-- Yeah, I want to see a busty lady wearing the T-shirt.
 
0
Q: How to have an undordered_map where the value type is the class it's in?

Martin C. MartinThis code gives me an error: class Foo { std::unordered_map<std::string, Foo> x; }; /usr/include/c++/4.7/bits/stl_pair.h:94:11: error: 'std::pair<_T1, _T2>::second' has incomplete type foo.cpp:4:7: error: forward declaration of 'class Foo' However, this code compiles just fine: ...

 

« first day (741 days earlier)      last day (4212 days later) »