« first day (761 days earlier)      last day (4178 days later) » 

user1804599
10:00 AM
@Telkitty sucks.
 
user1357851
works well for me
 
user1804599
Sublime Text 2 and Vim. <3
 
user1357851
formats VS Xcode code well
 
@Telkitty Never tried notepad++ and I don't think I'd use notepad even if it automatically indented
 
user1357851
vim 2
 
user1357851
10:01 AM
@Neil it is not notepad
 
user1357851
it's very good
 
user1357851
and it is free
 
user1804599
It is not very good. It is terrible.
 
user1357851
have you tried it? If so with that
 
user1804599
I have used it for a month.
 
10:01 AM
@Neil Then I don't see your point about space-space-space-space, backspace-backspace-backspace-backspace. No one I know uses notepad for code.
 
user1357851
I second that
 
Hmmm
 
@R.MartinhoFernandes Just like I don't see your point about using spaces vs tabs for no apparent advantage over tabs
 
Savage Chickens' "random post" always take you to the same post. Hardly random !
Also, hi
 
@Neil I didn't say any of that. I simply challenged your claims of impracticality.
 
10:02 AM
Hey there.
 
Also:
Have decided to start using the Spice Girls in talks about API design. It's not quite as crazy as it sounds.
 
It is as crazy as it sounds. Jon is losing sanity.
 
user1357851
developer @google C# in depth
 
Spicy API, instead of RESTful APIs
 
user1357851
umm
 
10:04 AM
Can't wait to see how this goes. :3c
 
user1357851
wonder he recently changed job from microsoft to google
 
@Telkitty He never worked at Microsoft.
 
user1804599
foldl = (f, z0, xs0) ->
    lgo = (z, xs) ->
        if xs.length is 0 then z
        else lgo(f(z, xs[0]), xs[1..])
    lgo(z0, xs0)
 
user1804599
^ Indentation is good.
 
user1804599
You are freaking annoying.
 
10:05 AM
@Aardvark Seconded.
@ThePhD Stop it.
 
@Telkitty please, use my mirror for a second
@Telkitty Good. You'll now have ~min to self remove these messages, before I flag them.
 
You were under the chat access threshold remember
 
user1804599
You know, my code is actually working. I'm having a wonderful time.
 
Congrats.
 
16 messages moved to bin
 
10:09 AM
My code is exploding on some minor detail about Access writing violation in basic_string
 
user1357851
I went to some meeting/networking event with venture capitalist/angels
 
user1357851
I need to know how to be likeable
 
I think I'm copying something wrong and it's trying to write protected memory.
 
user1804599
# Is this the correct name for the function?
curry = (f, args...) -> (args_...) -> f(args..., args_...)
 
@Telkitty No you don't. Look at the puppy
 
user1357851
10:10 AM
@sehe what about the puppy?
 
user1804599
Or should I rename it to bind?
 
user1804599
Who's the puppy? DeadMG?
 
@Aardvark I think so?
As far as I can tell he's the only one who's ever been referred to as puppy.
And has a doggie avatar.
And has said dogs > cats
 
user1804599
Ok.
 
Oh god the comments on the Melinda Gates article :(
 
10:12 AM
@ThePhD Because it's true.
 
user1804599
/* no comment */
 
Whats wrong with using tabs?
 
user1804599
@Ivan0x32 Everything.
 
user1804599
For example:
 
@Telkitty Don't worry, I haven't seen it yet. You are doing a good job
 
user1804599
10:13 AM
foo(bar,
    baz); // oops, tab is four on my computer, two on yours and everything is fucked up!
 
user1804599
Four-space indentation is readable and maintainable.
 
user1357851
3 spaces
 
user1804599
Wat.
 
user1804599
An odd number of spaces for indentation?
 
user1357851
4 spaces x 3 inside loops would look ugly
 
10:16 AM
i see, never thinked about it in that way though.
 
@Ivan0x32 just the usual... The idea is good, the world is too broken for it
 
Oh look, someone else that doesn't have space for 12 characters on their screen.
Oh look, someone that uses nested loops all over.
 
too many broken editors and different conventions for how wide a tab should be
 
user1804599
loop {
    loop {
        loop {
            // no problem with indentation
        }
    }
}
 
> If God gives you a gift, don't feel guilty. The Africans have free time and don't work. God is just.
 
10:17 AM
Nested loops are silly anyway.
 
> No lives have different values. Bin Laden != Paul Graham
 
user1804599
Loops are silly anyway.
 
user1804599
Recursion!
 
WTF.
 
I'm not nitpicky enough with my alignment to demand exact spacing, so I particularly don't mind.
I like the idea that someone can specify how much tabbing they want in their IDE, so the offsets from the right can fit their screen.
Or at least, that's how I like to think about it.
 
10:18 AM
@Aardvark Actually, even that is fucked up. Some whackos use proportional fonts for code... Go figure.
 
E'rybuddy wins.
 
user1804599
I would never, ever accept a pull request that contains code with inconsistent indentation.
 
5 mins ago, by Aardvark
foo(bar,
    baz); // oops, tab is four on my computer, two on yours and everything is fucked up!
Except when they don't.
 
o_O
Wat.
 
user1804599
newfags can't indent
 
10:19 AM
@R.MartinhoFernandes whats wrong with nested loops? How do you process multi-dimensional arrays then (matricies for example)?
 
I know some people who do that:
 
@Ivan0x32 With algorithms.
@Ivan0x32 With proper ranges.
 
user1804599
@Telkitty your inconsistent brace placement is terrible.
 
Students on russian forums tend to do such "idention"...
 
@R.MartinhoFernandes ???
 
10:20 AM
void x() {
  if(a) {
    for(;;) {
} } }
>:)
 
@Ivan0x32 for(auto a : matrix) { do_stuff(); }?
 
user1804599
void (x) { if (a) {
             for (;;) {
                 }}}
 
// what is wrong with this?
for(int y = 0; y < height; ++y)
for(int x = 0; x < width;  ++x) {

}
 
Too low-level.
 
@R.MartinhoFernandes There's no x/y there though
 
10:20 AM
@R.MartinhoFernandes I'd rather hope that whether bar and baz line up is just a preference of someone's, and not really... necessary?
 
Too many things to get wrong.
 
user1804599
@Pubby It is confusing. Indent the second for loop.
 
How is that low-level?
 
@Pubby It's iterating over integers, not matrix elements.
 
user1804599
@Pubby for i in range(height) :)
 
user1357851
10:21 AM
stop formatting!!!!!!
 
user1804599
@Telkitty stop posting terrible code!!!!!!
 
@R.MartinhoFernandes I'm iterating over rows and columns
 
@Pubby Nope. Over row indices and column indices.
 
here's a question for @sehe
0
Q: How to combine boost::spirit::lex & boost::spirit::qi?

Tobias LangnerI have a lexer and based on that lexer I now want to create a grammar that used the tokens generated by this lexer. I tried adapting some examples that I found and now I have something that compiles and works at least a little bit, but one of my tests that should fail does not. Now I want to know...

 
Same thing
 
user1804599
10:22 AM
Nevermind.
 
@Pubby No, it's not the same thing.
Over rows and columns would be for(auto&& row : matrix) { for(auto&& element : row) or something.
 
That sounds awfully complicated just to iterate over consecutive matrix elements...
 
Maybe matrix.rows() if it's important to provide both a row-based and column-based interface, alongside an interface for iterating over all elements.
 
It seems like a case of being clever for no reason to me
 
@ThePhD Does it look complicated?
 
10:24 AM
auto&& really is the only thing that throws me off. Isn't that move syntax?
 
pastebin.com/aycEFrUf - how can i then transform this code into "right" form?
 
@ThePhD It's universal reference syntax.
 
user1804599
@Telkitty stop posting that code every time. You have posted it thrice already.
 
user1357851
without auto-formatting
 
10:26 AM
1 message moved to bin
 
Universal.. reference format?
Welp, wiki time.
 
Nov 8 at 13:21, by Tony The Lion
If you're new here, read the newbie hints. Thanks!
 
I tend to use such loops oftenly, don't know what to do with them. Altrought with loops which process only one element at the time i'm using for(auto form.
 
@R.MartinhoFernandes If I wanted to get the 2d iterator relative to another iterator how would I do that?
x+4, y -3 for instance
 
@Pubby I'm not sure what you mean by 2d iterator.
 
user1357851
10:27 AM
@R.MartinhoFernandes and?
 
user1357851
stop being a nanny, I am not a kid
 
@R.MartinhoFernandes Using ints it would be matrix[{x+4,y-3}]
 
I looked it up, ran into APA and MLA citation stuff, buahahaha.
Ah, man. I'm so glad I've smoked all my writing requirements.
 
The equivalent of std::advance for row/column iterators
 
College English is the worst.
 
10:28 AM
@Pubby wat?
 
was* the worst, that is.
 
oh.. didn't see curly braces.. stupid
 
@Pubby I don't know. I haven't written such an interface. But I prefer loops that don't require babysitting iteration variables and sizes, so if I was to write a matrix class, I would try and provide it.
 
user1357851
@R.MartinhoFernandes why remove my pic?
 
user1804599
3 mins ago, by Aardvark
@Telkitty stop posting that code every time. You have posted it thrice already.
 
user1357851
10:29 AM
I can't do without formatting it
 
user1357851
otherwise you do not get the point
 
And I prefer algorithms to actual loops in the end.
 
user1357851
I removed it twice after chat auto-format
 
@Telkitty You can learn how to format in the newbie hints and chat help. Not please shut the fuck up.
 
user1357851
@R.MartinhoFernandes which line
 
10:30 AM
You can play with formatting features there without annoying anyone.
 
user1357851
auto-formats
 
user1357851
thus the png
 
user1357851
I did nothing wrong
 
@R.MartinhoFernandes I'll probably try some things out today and so I'll get back to you
 
@Pubby @Ivan have you never messed up by increment the wrong variable in one of the nested loops? I'm sure this has happened to most of us. That's the kind of thing that I don't want to care about.
 
10:32 AM
I think I've done ++x instead of ++y before
 
Aren't loops just a tool to write algorithms? I mean, they're not one-in-the-same, but one can be used for the other. I can't think of any other way to go over a collection of items in sequential memory, whether it's with pointers or indices or that strange range-auto-thingy-mahbobber.
 
@ThePhD recursion?
 
@jalf Oh, that too, yeah.
 
@ThePhD Yes, that's how I see them. Unfortunately, in C++ writing iterators is not always simple :(
 
Iterators are annoying
 
10:34 AM
... Iterators. <____>
 
recursion is bad for performance isn't it?
 
user1357851
if you have small ram, yes
 
@Ivan0x32 depends
 
@Ivan0x32 Not necessarily. Most smart compilers will auto-optomize all kinds of recursive functions for you.
 
I just mentioned it as an alternative, I didn't say it is preferable in C++
 
10:35 AM
@Ivan0x32 performance of what?
 
user1357851
@jalf it is preferable in interview questions though
 
@Pubby Yeah, that's mostly why I still put up with many explicit for loops in C++. In C# I almost only use explicit loops in building blocks, or they are of the while/do-while variety.
 
I feel like there is a greater risk of screwing up the iterator class than the loop itself
 
user1357851
and they are error prone
 
For me, as a personal choice, I usually don't use recursion unless I'm dealing with some kind of tree-like or linked-list-like pointer stuff. Usually, I stick to while loops (I haven't done much do-while)
 
10:37 AM
@Pubby It's a different thing: the iterator is on the library side. The loop is on the client side.
 
user1357851
@ThePhD not if you have a tree with hundreds of millions of records
 
it's because recursion is a very powerful tool that is important to understand
 
Iterator syntax in C++ always feels so.. ... sticky? Weird? I don't know how to call it. It just never feels right.
 
user1357851
can get out of hand soon
 
@R.MartinhoFernandes So you write iterators that you don't use?
 
user1357851
10:39 AM
@ThePhD C++ iterators are cool
 
user1357851
they are like pointers
 
user1357851
safe pointers
 
That and maybe I'm too used to writing

while (h < height) {
while (w < width) { /* ... */ }
}
All the image formats. <____>
 
They aren't much safer than pointers
The benefit is in the uniform interface
 
The idea is I can write code to use one iterator, and then after that I'm done forever for the rest of my life.
The iterator syntax should be applicable anywhere and everywhere forevermore (in C++, anyways)
 
user1357851
10:40 AM
iterators are used all the times with stl
 
And even with different types, because: iterators.
 
user1357851
container can only contain 1 type
 
Is it possible to pass abritrary iterators to a virtual function?
Not being able to template it really sucks
 
user1357851
you still have to do appropriate type conversion if using iterator
 
I still have to write a Characteriterator for my various StringUtf* classes. :c
 
10:41 AM
@LucDanton I don't see how you would think that.
 
I suck at editing. :c
 
I don't rewrite iterators every time I need a loop.
 
user1357851
@Pubby when you call a virtual function it is no longer virtual thus dynamic_cast
 
@R.MartinhoFernandes You write an iterator library side and use an explicit loop client side!
 
@Telkitty dynamic_cast???
 
10:42 AM
@Pubby You need type erasure. Boost has an any_range.
 
Type erasure in C++ is usually achieved by using bytesize descriptions and void*, right?
 
@R.MartinhoFernandes Thanks
 
@R.MartinhoFernandes lol
 
user1357851
cat->eats(/*does iterator stuff*/);
 
@spacecash21 Newbie hints, anyone?
 
user1357851
10:43 AM
dog->eats(/*does iterator stuff*/);
 
0
Q: SO search box goes out of place on Chrome Version 23.0.1271.64 m

TonySince a week or two, on my machine, the following has been happening: As you can see, the search box on SO goes out of place, and then it will seemingly randomly go back in place. I'm guessing this is not supposed to be, so I'm reporting it as a UI bug.

anybody else have this?
 
user1357851
need to type cast to the right animal
 
@spacecash21 Adding a language tag is going to be much much more helpful than posting here
 
@sehe did you see the question I posted for you?
 
10:45 AM
objective-c != C++
 
I'm like, 99% sure I fixed my PNG loader to be less trippy.
 
user1357851
@TonyTheLion table layout issue?
 
But the minute I do my strings start throwing errors all over the place.
Goddangit. :c
 
user1357851
maybe they used table cells of set width
 
user1357851
thus on resize it looks different
 
10:47 AM
@TonyTheLion Nope. Spirit?
@TonyTheLion can't find it. Link?
 
0
A: SO search box goes out of place on Chrome Version 23.0.1271.64 m

thecoshmanUsing browser zooming can confuse the layout of the web site. To reset you browser zoom, at least in chrome, press ctrl+0

I did the good thing, and made it wiki, I don't deserve rep for that :P
 
37 mins ago, by Tony The Lion
0
Q: How to combine boost::spirit::lex & boost::spirit::qi?

Tobias LangnerI have a lexer and based on that lexer I now want to create a grammar that used the tokens generated by this lexer. I tried adapting some examples that I found and now I have something that compiles and works at least a little bit, but one of my tests that should fail does not. Now I want to know...

 
@TonyTheLion "Tobias Langner"?!
I'm having lunch now, maybe later
 
@sehe what about him?
 
TeamViewer is the devil!
It interrupts an important upload to a client pc because I don't have the license and it times out
I put in the license and retry and it happens again for no apparent reason
Die TeamViewer devil-man!
 
11:04 AM
You know when all these access violations started happening?
After I installed all the updates from Windows Update.
 
user1357851
Last time my window's license was missing from my machine at one of my previous work places, the window went dark, it was scary.
 
That's when all this stuff started turning into a nightmare.
Let's see what happens...
 
I updated Vista after a fresh format and Windows got itself into a reboot loop that wouldn't stop
After a few updates of course
I understand they quickly covered that up
 
> do not overheat overexpose the amzer solar charger to direct or indirect sunlight
what the hell?
do not expose this SOLAR CELL to SUNLIGHT?
 
user1357851
overheat/over expose - your solar cell is sensitive
 
11:07 AM
@thecoshman overexpose
 
@thecoshman Or indirect.. in other words, use in a dark cellar with the lights off
 
@R.MartinhoFernandes ah, make all the difference
 
user1357851
reflection
 
user1357851
from mirror
 
You know what's worse than handling paperwork? Handling paperwork in German.
 
11:08 AM
@R.MartinhoFernandes lol, so jobs going good?
 
oh I can imagine
especially if you don't know the language that well
 
There's a five-hour version of nyan cat... youtube.com/watch?v=7XpsnIiJ4Ow
 
@Neil there's a 10hr version too
 
@TonyTheLion wtf?
 
it's a meme
 
user1357851
11:09 AM
All it says is that if you use it in anyway that destroys it it is not manufacturer's fault - way to get out of things legally
 
what do you expect...
people go crazy with that stuff
 
fairly sure there is a way to get youtuve videos to jump to specific point, thus an endless one can be done
 
Memes aren't 5 hours long normally
 
well, repeated memes are
and Nyan cat is one of those that never really has an end
so you can just repeat it forever
there's even a website
 
@TonyTheLion That's tame. There are some much much longer. Measured in days.
 
11:10 AM
Badger, badger, badger.. mushroom mushroom!
 
@R.MartinhoFernandes oh gawd.
 
very low on fucks today
 
user1357851
@R.MartinhoFernandes Oh yes only you would know
 
@ThePhD Most often with virtual functions, actually.
 
>.>
 
11:24 AM
> As Cartman lies on the stage in pain, Butters approaches him meekly. In a surprising show of audacity, Butters farts in Cartman's face, gives him the finger, and mutters "Fuck you, Eric", before walking away himself. - Best Sentence on Wikipedia ever
 
Link or it did not happen.
 
"Christian Rock Hard" is the ninth episode of the seventh season of the American animated series South Park. It originally aired on Comedy Central in the United States on October 23, 2003. In the episode, the kids start a rock band, but concerned with the fact that people will potentially download their music from the Internet illegally, they refuse to play. Meanwhile, Cartman starts his own Christian rock band. The episode satirizes famous artists who have spoken out against copyright infringement, such as Metallica. Christian rock music is also parodied as being identical to love songs,...
 
hahah
 
fucking shitty one box
 
fuckin' dog
had the audacity to wake me up at 8am
 
11:32 AM
Alright, so I've smashed my head against the rocks here. Dx
 
I thought you liked your puppy.
 
@DeadMG dude, we don't want to know
@ThePhD best go to hospital then
 
@DeadMG Also, it's 12:34.
 
@R.MartinhoFernandes probably his latest attempt at a meme, "it's always 8am"
 
Anyone here have experience dealing with Access violation executing location { Really high pointer value, particularly to what I'm guessing is a vfptr }
@thecoshman Neeveeerrrrr.
 
11:34 AM
@ThePhD There's UB somewhere :S
 
@ThePhD is there an instruction at that address?
 
@jalf I'm trying to figure that out. It's erroring on a Stream* that's calling Read(byte* bytes, int count)
Subsequent reads have all succeeded, up until this point.
 
@ThePhD your debugger should be able to tell you which address ranges executables have been loaded into
but there are a couple of possibilities. Either the instruction which is found at that address tries to read/write a garbage address, or the instruction at that address is not marked executable, or there is no instruction there at all
 
53 mins ago, by Tony The Lion
@sehe did you see the question I posted for you?
 
Alright. I have no idea how to figure out if it's part of the correct address range but I'll give it a shot... Um. One moment.
 
11:38 AM
@TonyTheLion I didn't know your name is Tobias?!
 
@sehe silly lion, you are not supposed to post people, or polar bears
 
@sehe I meant by that, a question you could answer. Damnit!
 
@TonyTheLion Oh. No worries. There is little chance I'd miss one. See e.g.
2
A: Using a boost::fusion::map in boost::spirit::karma

seheI think I noticed your question on the [spirit-general] list earlier. It got 14 views there - and I did some fairly deep investigation. Sadly, to the best of my knowledge I don't think Spirit has any support for associate Fusion structures. In fact, outside MSM and Phoenix, there was no place ...

 
@R.MartinhoFernandes Not when she wakes me up at 8am.
 
@TonyTheLion I'm close to stalking there :)
 
user1357851
11:40 AM
My grandma is on the local chinese page - for being 100 years old
 
@R.MartinhoFernandes 11:34 (at the time), scrub, and yes, I went back to bed afterwards.
 
user1357851
@DeadMG get a cat & you will be awaken at 6am
 
-1
Q: Why won't my Celcius to Fahrenhiet program compile in c++

Timothy RebidueIm trying to learn programming, and im reading "C++ For Dummies" because its seems easy enough to understand from my standpoint and its the only book i have. Ironically being a "For Dummies" book the first program is not "Hello World". Its a Celsius to Fahrenheit converter. And im using a multitu...

WTF
 
user1357851
worse than a dummie, GG
 
user1357851
Newspaper*
 
user1357851
11:43 AM
My grandma is such a witch ... maybe I will be a witch too
 
@jalf I haven't been able to figure out how to tell the Address Ranges and all, but I do know the executing location that the program is trying to access (0x4A511A61) is not available to me: when trying to look at the Memory in the Memory 1 window of Visual Studio, the whole area comes up as ??
Which means somehow my reader's Stream* is... accessing or trying to execute a pointer off in.... no man's land or something.
 
@ThePhD yup
 
Now to find out why. @___@
 
@ThePhD sounds like it's not relevant here, but if you open the Modules view in VS, it shows which .exe and .dll files have been loaded, as well as the addresses they're mapped to. Useful in determining which, if any, dll you're calling into
 
@R.MartinhoFernandes lol
 
11:49 AM
C++ for dummies is an ok starting point. Though what with being a boo, it does require you read. — thecoshman 34 secs ago
@thecosh you crazy?
 
@R.MartinhoFernandes with regards to...
 
Furrovine++.dll is where I'm at, with the Address range of: 51040000-5153F000. So it looks like I'm way off base entirely...
 
@ThePhD ?? usually means not mapped to anywhere.
 
//use conversion factor to convert Celsius /into fahrenheit values int fahrenheit; fajeremjeot = factor * celius/100 = 32
"into fahrenheit" lol
(putting the fact it's in comment aside :D)
 
@DeadMG So I've discovered. Now I have to figure out why my Stream's vfptr is pointing it off into a sea of ?? and not at... well. It's actual FileStream* vfptr.
 
11:54 AM
UB
^^
you don't do any shoddy new or delete[] or write your own containers or anyshit like that?
 
@Griwes I like fajeremjeot.
 
That For Dummies guy actually tried to compile that?
 
@DeadMG I'd suspect a write out of bounds.
 
> And im using a multitude of IDE's Notepad++, Visual Studio, Code::Blocks, NetBeans, Dev C++ Eclispe.
 
@DeadMG ... Um. Yeah. About using new ...
 
11:55 AM
@thecoshman To C++ for Dummies being an ok starting point.
 
Multitude of IDE's what?
 
user1357851
I used dev C++
 
I think that Standard Committee should copyright the "C++" word for use in book titles.
 
user1804599
lol Dev-C++
 
user1357851
for accessing linux machine on PC
 
11:56 AM
@ThePhD Well, there's a fail to fix right there.
 
@Griwes I am almost certain what happened was the combination of crappy OCR + copy-paste (with maybe some incompetence thrown in on the copy-paste part)
 
And later block everything with "dummies", "in days" or something in title from publishing.
 
user1804599
I use Sublime Text 2.
 
Goddamnit the compiler keeps optomizing out simple function calls so I can't get things like position or length out of the stream @____@
 
How else could you get fajeremjeot?
 
user1804599
11:57 AM
And Vim for Git commit messages if I use Git outside of ST2.
 
optimization should not make any difference as to the correctness of your program.
 
@R.MartinhoFernandes, :D
 
@ThePhD Debug a debug build?
 
@R.MartinhoFernandes If you mean 'is it a debug build', then yes. It's a debug build, with optomizations turned off.
 
@R.MartinhoFernandes I found it a good starting point. It covers a good bit of the very basic stuff. No idea how out of date it is now though. If you read through that book, you will be aware of most of the features that C++ has so that if you get problems you have an idea of what to look up
 
11:58 AM
That PDF has correct code
 
// declare a variable and set it to 1
long lVariable;
lVariable = 1;
// declare a variable of type double and set it to 1.0
double dVariable;
dVariable = 1.0;
 
@ThePhD Oh well. Then it's The Great Visual Studio debugger that people always mention.
 
BURN IT
 
user1357851
use trace
 
user1804599
DID SOMEBODY FORGET TO INITIALIZE THEIR OBJECTS??!
 
11:59 AM
@Pubby I wouldn't really put it that way.
 

« first day (761 days earlier)      last day (4178 days later) »