« first day (684 days earlier)      last day (4254 days later) » 

Ell
12:04 AM
lol, being told "enjoy your wank" when you are interrupted in the middle of the night by a neighbour
 
A neighbor interrupted your wank in the middle of the night?
 
Ell
not interrupted mid-wank, I mean, awoken from your slumber
 
Ah, I see.
 
well obviously, there's no reason to be using a computer in the middle of the night except for wanking
 
coding
 
Ell
12:17 AM
talking to friends on facebook :D
 
wanking seems like a better option in both cases :)
 
Ell
haha
 
at least you don't wake up the next morning thinking "wth did I write last night?"
 
Ell
haha
you wake up thinking...?
 
well after caffeine has kicked in, I mean
I don't think I can be considered awake before then
 
Ell
12:29 AM
i dont drink coffee
 
yeah I know a few people who don't drink coffee, and they live happy lives, beats me
 
Ell
it tastes foul
tea does as well
 
@Ell tasteful, yeah ;-)
 
Ell
haha
 
@Xeo oops, wrong one
afxtempl.h line 203
#define new DEBUG_NEW
and it appears to be unconditionally defined, which is odd. Oh, because DEBUG_NEW is conditionally new or the magic thing
 
Xeo
12:44 AM
Great info talk on asio (imo)
Ugh, nearly 3 am, I need to sleep x_x
g'night
 
Ell
12:56 AM
g'night
 
 
3 hours later…
3:43 AM
posted on August 30, 2012 by vcblog

Hello; I'm James McNellis, and I've recently joined the Visual C++ team as a libraries developer. My first encounter with the C++/CX language extensions was early last year, while implementing some code generation features for the Visual Studio 2012 XAML designer. I started off by hunting for some example code, and it suffices to say that I was a bit surprised with what I first saw. My ini

 
@EtiennedeMartel It can only offend people who also know it's true.
 
Woah... James is at MS now? Has he always been with MS, or did he just transfer departments?
 
4:09 AM
@Mysticial He's been there for a while (a year?). He was working on Expression Blend (if memory serves) but a month ago or so ago transferred so he's now working on Visual Studio.
 
well
Hitler did a lot of bad things, but he did do some things which were very impressive
 
4:38 AM
@EtiennedeMartel where you get that?
 
5:07 AM
So there is C++/CX now as well. And there is a Windows Runtime C++ Template Library?
MS has been busy :)
 
@StackedCrooked Constantly. If only they could get busy doing the right things instead...
2
 
Silverlight comes to mind.
Not as an example of the right thing, but as an example of busyness :)
 
5:41 AM
oh wow... that "-1 not enough Jquery" thing really did exist.
Here's the image that Bobince made:
And here's a question that someone made to copy it: (10k only)
 
Lol, one of the unanswered questions for Obama was What is in Area 51?
 
I love the "You suck" comment on te downvoted answer
 
6:28 AM
Why isn't "meta police" in this list?
222
Q: The Many Memes of Meta

TheTXICatchphrases and concepts that spread from person to person are known as memes, which, courtesy the Internet, can now explode across the Earth like a highly contagious virus (hence "going viral"). As with their real-life counterparts, some infectious diseases are global (pandemic), while others a...

 
6:43 AM
apparently, "meta police" is mostly a Lounge thing
 
6:56 AM
@DeadMG it's an SO thing, and an SO thing that it's apparently only called as such in the lounge
^ When beer is good enough for the US Prezident, then it's good enough for me.
 
@Cheersandhth.-Alf Pfft. I'd be more likely not to drink it if I saw POTUS drinking it.
 
You don't have to drink the same beer he's drinking, especially considering that to do that you'd have to drink it after he drunk it. Don't do that. I would surmise that at that point it's just piss.
2
 
he could piss on a patch of hops and grains and then you could let those plants grow and ferment them again
 
barley
malt
and, reportedly, some honey for the white house beer
 
daww
 
Finally ordered the new Josuttis today :)
 
7:31 AM
morning all
 
Whoa. DDE. Last time I used that was >10 years ago. And it was antiquated even then — sehe 6 mins ago
 
you're ugly
 
My first thought was, "Holy fuck! you can be a ninja panda in WoW"
 
@DeadMG Good morning.
 
@thecoshman I recognize that only because I played Warcraft III
 
7:44 AM
I like how 'not enough jQuery' spawns a lot more discussion than this
 
He was a special hero in one of the campaigns
@sehe Hitler did impressive things? I'll say
That's one way of putting it
 
Lulz
 
@sehe it's foolish to deny that whilst he did and made others do some terrible things, the scale at which they were carried out is impressive.
 
and his economic recovery of Germany was very impressive
 
@Mysticial jQuery arithmetic plugin. Seems legit
 
oh indeed, Germany was in series depression was it not? To wage war on the scale he did, takes some series political skill
 
by the way, this guy would be bad luck brian if he got here stackoverflow.com/users/778587/php-jquery-programmer
 
fuck sake Adobe! just because I updated you does not mean I want short-cuts every where!
 
People, slightly less images? I'm in a very visible spot in the office these days :)
 
Despite the fact that "Seems Legit" is a popular, well-known meme, I couldn't find any good pictures for it anyway.
 
7:58 AM
bin mine if you want
 
If you request, lord.
 
sbi
@DeadMG Actually, it wasn't. I don't know too much about economics, but from what I know about it, he paid for getting out of the depression by borrowed money. If it wasn't for the war dominating the German economics anyway, he would have got Germany into more serious financial trouble. Of course, many in the generation of my grandparents only remember that he provided jobs, not how and why.
 
@sbi Really? I thought he did it in good part because he refused to pay the hideous reparations that the Allies demanded (not unreasonably) and also because, as a dictator, he basically ordered the economy to recover by assigning people jobs and such things.
 
sbi
@DeadMG Cutting reparation payments was another factor. But the jobs people were assigned to were jobs like building autobahns — which was done in preparation for a war — and outright building war machinery. People tend to forget that.
 
ah
well, I have to admit that I also don't know much about how it was done
 
8:04 AM
It is a proper book: it has pages, a title, is sold in bookstores, etc. And no: reading about c++11 isn't a waste of time. If your office doesn't adopt c++11 within a year, staying there would be a waste of your time (in my humble opinion) — sehe 32 secs ago
 
but IMO, refusing to honour debts you can't afford is the right thing to do, and the Western world should have been doing that a while ago
situations like those of Greece are just pointless
 
sbi
@DeadMG So, do you really think? Would you lend money to someone who hadn't paid you back the last time he borrowed from you, because they'd spend it all and hadn't anything left to pay back? Lending money is based on trust — namely, on trust that you will get your money back. Everything else is risk investment.
 
the purpose of interest is to cover that risk
beyond a relatively minute amount
lenders are responsible for not lending too much
 
@DeadMG Loan sharks don't trust so much in the one borrowing money so much as the agency they'd call to hammer the money out of you .
 
I couldn't get a loan for a million dollars
and rightly so
 
8:12 AM
Or worse, the ones that loan money for a title to your car trust the fact that you won't be able to pay it back on time. That is how they make money, in fact.
 
sbi
@DeadMG And when the risk of not getting your money back is approaching 100%, interest is reaching astronomical dimensions.
@DeadMG Yeah, and that's exactly what they're doing right now. And that's why the EU gives money to Greece instead.
 
@sbi Lending always carries the risk of default. Ignoring that risk is irresponsible.
 
@DeadMG what the hell? people don't lend money to be nice, they do it to make money. That is what interest is, it's a way of getting money out of lending money
 
What we're seeing is an evolution of government and state. The government over the last 50 years has spent money they didn't have knowing that in the future, that money would be there. Now the future is now, and the money isn't here because there has been an economical decline.
So spending money like there will be money in the future is folly, but it is the only system that has worked up until now
Hence, countries like Greece are trying to pull up on a 747 going 700 miles per hour heading towards the ground and hoping they can pull up in time
The economical engine of such countries is still moving in the wrong direction, as if by inertia
 
yeah, they have pushed for a very fast economic growth, that has inevitably collapsed. Would we have been better to have a prolonged slow economic growth? That's a big question that is beyond me
 
8:16 AM
sorry guys, I don't intend to bail out, but my borher needs mah help on D3
I'll get back to yuo
 
@DeadMG time for grown up talk :P
So I said to Maybles, I said "If that's the carrots over there, what the devil did I just put in my stew?"
 
sbi
@thecoshman ??
 
@sbi don't worry :P
 
sbi
8:36 AM
That's what a house in Munich looks like after a WWII bomb could neither be disarmed nor carried away, and had to be blown up in place. The blast and the fireball surprised the experts, and damaged 17 houses, one of them badly. The shop visible in the picture just burnt out completely. Most insurance contracts have a clause excluding war damage. Those house and shop owners might never see a penny for their damage.
 
@sbi Nobody did their research?
You'd think you'd establish the damage caused by such a bomb exploding before committing to detonating it
 
sbi
@Neil I said this before: Germans do have a lot of experience disarming bombs.
 
@sbi But this bomb was, despite expertise, packed surpringly well with gunpowder to cause an exceptional explosion?
I find it unlikely
Even if that were the case, I find it hard to believe nothing like it had ever happened before
 
sbi
Those are weapons designed to wreak havoc on a big scale. That thing was a 250kg one, with a long-term chemical detonator, that could have blown up on its own any minute. Everyone in a 1000m radius was evacuated. They said afterwards they found razor-sharp bomb particles as far as 300m from the bomb — so there was quite some security left.
But you cannot blow up a bomb in the middle of a city and not expect severe damage.
@Neil Usually, when bombs cannot be disarmed in place, they are carried away and blown up on special sites designed for that. This one was too risky to carry around, though.
A spokesman of the fire fighters yesterday said the were expecting severe damage.
 
@sbi Then that was unfortunate.
I have heard of stories of children finding mines hiding amongst the rocks and going off, killing the children
 
9:00 AM
I would have thought they could erect some massive concert walls to try to direct the blast up... and away from buildings. may not be that practical though
 
sbi
@Neil Some of those mines are designed for such a purpose, resembling pens or toys.
 
one thing that really baffles me... is mine clearing in Africa... There where tanks developed with a rotating bar with flails attach that can smack the ground to detonate mines, why are they not driving along getting rid of the fuckers?
seems a lot more efficient then using humans to tentatively poke around for them
not to mention more fun
 
char* String::ToCString() { return this->Buffer+'\0'; }
 
9:33 AM
Anyone here know MSVS?
 
@thecoshman For the same reason they use children as soldiers.. because they don't really care about the loss of human life
War is about winning, and that's it.
 
@Neil I am on about the clearing of WW mines in areas that are not at war. AFAIK most of the mine clearing is being performed by 'first world' countries, those responsible for the mines in the first place
 
Why would g++ claim that an array type is default constructible?
 
@thecoshman I think it's because most of the mines have long since been cleared
Though it's impossible to remove every single one.. every now and again they still find them
I think mines should be thrown in the category of weapons that should be atrocities
Like bioweapons or nuclear weapons
 
@Neil AFAIK there are still vast areas with large numbers of mines
 
9:42 AM
@thecoshman Those are well-designated
 
debating the ethics of certain weapons is tricky
@Neil what do you mean? Does that make it ok?
 
@thecoshman No, that makes it acceptable
If it were ok, nobody would have a problem with it
 
@Neil they should be cleared, and with something like a mine clearing tank, can be done so very very quick, with very little cost, both monitory and in life
 
@thecoshman Well I agree with you, but apparently they don't think so
I think in WWII, at a certain point things were so bad that even after the war, energy was better spent rebuilding cities and bridges than destroy minefields
It was easier just to mark it and move on
 
sadly, I fear most minefields where marked after some one discovered them the wrong way
 
9:51 AM
Maybe, though that's how things tend to go
 
10:17 AM
I wrote a program to print random strings. Unfortunately I opened one of the output file in gvim. Now if i use Ctrl+P, I am getting lot of junk. Is there any way to remedy this?
 
¬_¬ turn of the printer?
 
was that joke??
 
Try closing gvim?
 
Excuse me now this chat is giving me trouble. Unable to load posts.
 
10:28 AM
you are excused
 
Seems okay now.
@ecatmur Didn't help :(
 
Your program has overridden core browser code, thus manipulating what you see on your browser chatroom screen
 
Though in seriousness, sounds to me like you're printing non-printable characters
You get into some serious trouble doing that
These random strings should probably be limited from 'A' to 'z'
 
Oh! I must tell that Ctrl+p is for word completion. Not for printing.
 
10:32 AM
Sorry I'm not familiar with gvim, I didn't know that
 
So if i type "st" press ctrl+p, and expect "strchr", i get "stjdhsjkdh"
I assumed a little too much.
 
@VinayakGarg So regenerate your autocomplete data.
 
@ecatmur That's exactly what I am searching on google now
 
10:47 AM
@VinayakGarg :ls to list buffers (hidden as well), :bwipeout # (# is the buffer name or number)
@Neil <clears throat>
@ecatmur errmmm... why does everyone without a clue how vim (completion) works keep suggesting nonsense?
 
@sehe Because why not?
 
@VinayakGarg the problem is you are getting completions from hidden buffers, that contain the output of your program.
@ecatmur Because: waste of time, not helpful and confusing
 
@sehe I was wishing some vim master would help me. Thanks! That solved it!
 
@sehe Vinayak said he'd closed gvim.
When you close gvim that closes all the buffers.
 
@VinayakGarg See also :help `complete`
 
10:51 AM
sure
 
@ecatmur Depends. If you have viminfo/sessions configured...
 
Found this useful link while googling
 
@ecatmur Two messages above yours... :)
 
68
Q: Simple VIM commands you wish you'd known earlier

LinI'm learning new commands in VIM all the time, but I'm sure everyone learns something new once in a while. I just recently learned about this: zz, zt, zb - position cursor at middle, top, or bottom of screen What are some other useful or elegant commands you wish you'd learned ages ago?

 
@sehe Because @thecoshman already assumed ctrl + p meant printing, and since that seems to be pretty much standard across the board, ctrl + p seemed to naturally imply gvim would print as well..
Though what fun would this field be if everything did as expected? We'd be out of a job.
 
10:53 AM
@VinayakGarg There are quite a number of nice "atypical" vim answers on Stack Overflow (in that they actually don't belong here). Further more you have vim.wikia.com/wiki/Vim_Tips_Wiki (Vim Tips wiki)
 
found this as well : for printing use :hardcopy
 
@Neil You were excused. Also, 'printing' has ambiguous meaning. If the program printed binary data to a terminal, that could indeed wreak havoc. CLI utility reset(1) would solve that, however.
 
@sehe I checked wiki before googling. But didn't found something as exact as :ls and :bwipeout #
 
@VinayakGarg I've been in similar situtations :)
Ever tried :args **/*.xml and found now you had 200 xmls loaded? I think I learned to do :%bclose to close them all, IIRC
 
vim has tooo much to explore!
 
10:56 AM
Grant me courage to face what must be fought;
Will to accept what cannot;
And wisdom to know the difference
 
@VinayakGarg I learnt vim in ~2 years before I became proficient. Since then, I added 10 years and I still occasionally learn 'breakthrough' new approaches. A major one has been to use :global and command-line mode pervasively. Works really really well with (implicit) marks.
K, I'll get back to work
 
Thanks
 
11:08 AM
@JamesKanze yeah. Chief among which, if they don't use C++ :) — sehe 10 secs ago
 
11:26 AM
\:D/ first guru badge
 
@LuchianGrigore congrats
 
12:09 PM
man, I seem to attract weird bugs like flies at the moment...
 
@jalf Maybe they are moths?
 
Let's see, the docs for CreateWindowEx says it returns NULL on error, and you should check GetLastError for details. It returns 0 for me, but so does GetLastError. That's real helpful
 
Maybe you forgot to register common controls.
 
Shouldn't be necessary in this case
 
12:18 PM
Grrrr. Bloat wins over conciseness once again :(
 
also, if it was that, GetLastError should still return something
 
19
Q: Defensive programming - what's the purpose of using { ... } for a single line?

ronI'm reading some lecture notes of my C++ lecturer and he wrote the following: Use Indentation // OK Never rely on operator precedence - Always use parentheses // OK Always use a { } block - even for a single line // not OK, why ??? Const object on left side of comparison // OK U...

 
@KonradRudolph Of course. There's more of it. Conciseness is always outnumbered :)
2
 
@jalf AFAIK all that windows shit, NULL is just defined as 0
 
@thecoshman yeah, I know. But when it returns 0/NULL, GetLastError is supposed to return a non-zero error code
and in my case, it doesn't
 
12:20 PM
@jalf oh I see...
 
So an error occurs, and it won't tell me what it is
 
@jalf show teh codes
 
Optional {} is stupid.
 
@CatPlusPlus So you mean languages should do like Go and mandate it?
 
Yes.
If they're silly enough to not use layouted syntax, that is.
 
12:27 PM
I agree, braces should be mandatory
 
ble, waste of space. makes me scroll
 
It takes exactly the same amount of space.
 
I'm not so keen on layout syntax, I prefer my white space to be as insignificant as possible
 
I’m very much in favour of layout syntax but unfortunately I understand the arguments against it very well, and there are some good ones
@CatPlusPlus Uhm, no, it doesn’t.
 
Oookay, it takes one more line.
 
12:29 PM
the braces can be placed on the same lines
if (test) {
do(); }
 
if (sdfsdf) {
    asdfasdf
}
 
exactly almost the same amount of space :)
 
@thecoshman Sure they can, but then everybody will butcher you
 
You don't need to scroll for the closing brace anyway.
 
@CatPlusPlus 1.5 times more space required
 
12:29 PM
@KonradRudolph Which ones?
 
@KonradRudolph not as much as I would butcher them for writing one line if statements
 
@KonradRudolph One line is 1.5 times more?
 
@CatPlusPlus Usually proponents of either bracing style, minus a very few odd people
 
I'm too lazy to calculate silly things like that.
 
@CatPlusPlus Out of three, sure
 
12:30 PM
So terrible.
@KonradRudolph No, I mean what are the good arguments?
 
it's 0.5 more, or 1.5 the number of lines
 
@CatPlusPlus Sorry, I thought that was a different thread of discussion. Okay, the arguments are:
 
The only ones I've seen always boil down to "IT FORCES ME TO INDENT", which I always reply to with "you indent anyway" and then they go "BUT I DON'T HAVE TO".
 
if your block spans more than a screen height (and yes, that does happen even in good code, shutup) it can be hard to track indentation level
 
So then I label them as idiots and move on.
 
12:32 PM
but the better argument is that it breaks copy&paste if you want to just copy part of the blokc
*block
 
@KonradRudolph Same thing with braces.
 
@CatPlusPlus To some extent, yes. But good editors allow you to jump between start and end of blocks by placing a cursor on the brace. I’ve yet to see this for Python blocks (although it’s of course theoretically feasible)
 
@KonradRudolph Never had a problem with that. But then again, I don't use broken editors so. vOv
 
@CatPlusPlus But then it saves you from idiots who given option, wouldn't indent.
 
@CatPlusPlus I have, all the time, and I don’t use a broken editor
and I’d be interested in hearing your solution
 
12:34 PM
Maybe I'm reindenting subconciously.
I don't know.
 
@CatPlusPlus But you have to do it manually, and have to remember where the block starts/ends. If the paste location happens to have the same level of indentation but you want to paste something to be more indented, this becomes difficult
because as soon as you’ve pasted your code you don’t have visual markers about the pasted range any more, so now you need to select it again to indent
 
he he he, on twitter I have 69 followers :P
 
V`]==
Or something like that.
 
actually, this could be solved trivially if editors would simply keep pasted text selected. No idea why this isn’t the case
@CatPlusPlus Doesn’t work
 
eclipse does the indentation automatically
 
12:36 PM
You can reselect the block in vim.
 
@CatPlusPlus Cool, didn’t know that, but = still doesn’t work in Python
 
You just open brackets and hit enter, and it'll put one below the indented line you're currently on..
 
(and cannot work in principle)
@Neil Open bracket? In Python?!
 
Yes it does.
And if it doesn't, you can use >> or <<.
TBH python.vim is a bit broken with the indentation.
 
@CatPlusPlus simply no. It can’t work since indentation is the only hint about how far the block goes, so Vim cannot deduce indentation level without proper indentation
@CatPlusPlus python.vim is totally broken, full stop.
 
@CatPlusPlus Yes, using gv but that doesn’t select the block you just pasted, it selects the location where you’ve yanked from – so it’s useless here
 
@KonradRudolph In eclipse
 
V`] not gv
 
@CatPlusPlus ah, cool
of course
I always forget about bookmarks
okay, that does help a lot. Case solved :)
 
I have it bound to ,v
Stupid Facebook API.
 
12:45 PM
<leader>v?
 
Yeah.
 
While saving file in gVim, 3 out of 10 times I end up with ":W". Is there any way to remedy this?
Or is it just me?
 
Make a :W command that does :w.
 
TIL you can get 90W LEDS :O
 
Or rebind ; to :.
I use ; so I don't have to press Shift needlessly.
 
12:50 PM
@CatPlusPlus Then I would 5 out of 10 times end with ":w" ;)
 
What's the problem, actually?
 
@CatPlusPlus Sounds rather useful. How do I do it?
 
If you define :W, then :w will keep working.
 
@CatPlusPlus Didn't know this!
 
@VinayakGarg nnoremap ; :
 
12:52 PM
In vimrc?
 
while we’re at it, I really need to clean up my [g]vimrc
At the moment I’m maintaining the two files separately. Horrible.
Ideally they should be empty anyway, and use plugins instead
 
Lets share vimrc. Shall we?
 
mine is teh shit
not worth sharing
 
12:53 PM
Though mine one is shamelessly copied and then patched here & there.
@CatPlusPlus Dude where is the vimrc? lol
 
It's modular.
Don't onebox gists.
 
I thought they had fixed that shit by now
 
Haha, chat fixes.
 
my proudest achievement is the font
 
12:57 PM
Mine codepad.org/okOutwPX copied vimrc
 
vim.org <-- you know your English is bad when I can see it's bad
 
okay guys, you should all enable undofile
everything else is no fun
 
I do.
 

« first day (684 days earlier)      last day (4254 days later) »