« first day (685 days earlier)      last day (4264 days later) » 

2:00 PM
Theese lines of code seem to work although i have not included ios::out

fstream binf("h.txt", ios::app);
binf << "hey";
 
@thecoshman it's his new lame-meme attempt; He used this ten times over the last 3 days
@MohamedAhmedNabil erm... docs ?!
 
@sehe sigh... kids
21 hours ago, by Tony The Lion
Hahahah NOT Offensive, NSFW
how NSFW is that?
 
@sehe fineeee..... but so far i cant find anything saying why
 
@MohamedAhmedNabil FYI, we are not a help desk
 
@sehe lame-meme?
 
Xeo
2:06 PM
@thecoshman not at all
room topic changed to Lounge<C++>: The topic wet itself and needs to be changed. [c++] [c++11] [c++-faq] [not-your-helpdesk]
 
@Xeo I feel cheated, so very chated
 
@DeadMG it's not a win meme
 
one person being a dick does not make something a meme
 
@MohamedAhmedNabil me neither. I think it is deferred to the C99 specs:
 
it's not intended to be a meme
 
2:10 PM
^ from § 27.9.1.4 in the standard @MohamedAhmedNabil
 
Xeo
Anybody with up-to-date Clang 3.2 SVN here?
 
@Xeo @home...
 
I wrote a little program to derive logical conclusions based on simple truths
 
Xeo
Well, are you at home? :)
 
If I say Joe is smarter than Sally and Sally is smarter than Susan, it will write that Joe is smarter than Susan
Not sure what I could use it for, but it was fun to program
Also works with container logic "A has B and B has C, so A has C"
Or equality, "A is B and A has C, therefore B has C"
 
2:14 PM
@Xeo Oh. Sorry, no, I meant to imply that :)
 
Xeo
:(
 
@Neil deriving the logic lexically?
 
@Neil prolog FTW. Calls for a DSL using Boost Proto!
 
@Neil: You could extend it with non boolean logic: If A owns 50% of B, and B own 80% of C, A owns 40% of C or something like that.
 
Reminds me of Bayesian
 
2:17 PM
@thecoshman No, I wish
I insert the statements with the equivalent meaning though
 
Xeo
@sehe nvm, there was an error in the snippet :)
 
Perhaps the next pass would be to parse input
@ereOn I like it
 
@sehe: ?- say(prolog). :D
 
@Neil you lazy fecker :P
 
@Neil: Why are you doing it for ? Just for fun ?
 
2:18 PM
Prolog is so fun
 
I want it to derive conclusions based on what you tell it, and then list them, so that hopefully it will make it more evident if you're making a logical fallacy
@ereOn Yeah
I just finished "less than" logic
It's similar to container logic in that you can say A is less than B and B is less than C, therefore A is less than C
 
@Neil I'm not -- because I'm always right.
 
though it takes into consideration "less than or equal to"
 
it's not really a fallacy if fail to see the logical conclusions or some given facts. That's just stupidity
 
So if A is less than or equal to B and B is less than C, it will write that A is less than C
Or A is less than or equal to C if instead I write that B is less than or equal to C
 
2:19 PM
The fallacy would be to stick to your mistaken thoughts despite the proof you where wrong
<cough> creationist
 
@thecoshman Maybe, but perhaps you're trying to wrap your brain around something and you think it sounds right
So you plug in the values and assert that every statement generated by this program is, indeed, correct
 
@Neil I am sure it is a handy tool, especially when you start to plug in huge webs of logical facts
 
If it says A contains C and that's blatantly wrong, then something you entered was wrong too
I think I might make a parser as well, though it'll be tricky
 
@Neil: Do you also plan to support "blur" logic ? (not sure it translates that way)
 
perhaps each new one you enter, it will can you if it 'complies' with all other facts entered so far. if not, which ones does it directly conflict with. And also tell you if they are all connected or can be broken into two pools
 
2:22 PM
I'm taking about logic where A is neither true or false and can be both
 
I'm trying to allow for custom phrases, not just "less than", since you're not always talking about quantity, but maybe you're talking about height or depth or width
 
@ereOn fuzzy?
 
so, if you tell it A > B and C > D it will show them as to disjointed facts, that are not connected in way
 
@sehe: Perhaps. I don't know. Must be that thanks.
 
@ereOn I don't think it would give you an answer to a question, if that's what you mean
Maybe I'll extend it to be able to ask it questions like, "Is A bigger than C?"
 
2:22 PM
@Neil: I haven't really thought about it. I don't know.
 
@thecoshman Right, my program would write A is greater than B and C is greater than D
It doesn't make conclusions it can't make
 
@ereOn 'fuzzy logic' is a thing, so it makes sense that this is what you meant
 
@thecoshman: Yep, indeed.
 
you should be able to say if you are wanting test if A > D or state that it actually is
 
Maybe I'll add something that, given that you specify that a certain statement is wrong, it'll indicate all the other statements that must therefore be wrong as a result
 
2:24 PM
the latter just adds it to the pool of logic, the former will tell you that there is no enough evidence to say if that is true or not
@Neil nice
 
@thecoshman Right now it just generates a big list and shows it to you
Though I could easily adapt that to search for one conclusion, but I'd have to first be able to add code that lets you ask such questions first
 
Completely unrelated but are you aware of a lightweight (preferably one file) free library to parse/produce JSON in C or C++ ?
 
"John" is less than "Sally".
"Joe" is smarter than "Sally".
"Sally" is smarter than "Dolly".
"Joe" is smarter than "Dolly".
latest output from the program
 
@ereOn I'm going to take a guess at a 'JSON.hpp'
 
Verifying that it doesn't write that "John" is smarter/less than "Dolly"
since the "comparison" type is different
It wouldn't know, for instance, that smarter and dumber are opposites
 
2:29 PM
Keep us posted!
 
Xeo
@ereOn Boost.PropertyTree with read_json, but it's slowing down compile time since it's using Boost.Spirit for parsing
 
@Xeo: I was hoping I could avoid this huge "thing" :/
I'm already using boost, but leveraging such a big thing for something that trivial sounds wrong :(
 
not as wrong as reinventing the wheel
 
you cannot reinvent something that has already been invented
because you know, it has already been invented
 
@thecoshman: I certainly do not intent to write my own.
 
2:33 PM
You can only... innovate. <_<
 
FFS, three functions, all names such that they imply they do the same thing, taking the same parameters, returning the same data type, with the same comment saying what they are for. Why? WHY! (╯°□°)╯︵ ┻━┻
 
Because humankind is evil.
I used to leave absolutely useless uncommented unused code in my projects, just to mess with any future devs
 
@jornak I hate you
 
@thecoshman Maybe I work with you D:
 
@jornak where do you work?
 
2:36 PM
Ericsson
 
¬_¬
week troll
 
Bah <_<
You got me. :P
 
weak?
week...
weak...
 
Weak.
 
fuck it, poor troll
 
2:38 PM
Ha.
 
Do I need to slap someone?
 
@thecoshman I actually did do that with my projects though
I'm a bad bad man
 
Arr, R.
 
@jornak you go to hell! you go to hell and die!
@R.MartinhoFernandes afternoon partner
 
2:39 PM
@R.MartinhoFernandes Ohai
 
@R.MartinhoFernandes Mr. Roboto.
 
@thecoshman So in other words go and do desktop support?
 
@jornak huh?
 
I'm pushing ogonek v0.2.0 right now.
 
@thecoshman You told me to go to hell and die.
 
2:40 PM
@R.MartinhoFernandes Oh yeah! What's new in there?
 
text now has basic functionality.
 
@jornak ah, helps if your target your responses
 
@thecoshman @thecoshman Gotcha, new to SE
oh oops
 
I can't wait to look at that source.
 
2:43 PM
@EtiennedeMartel It's not pretty.
 
Now now, it's not going to get any prettier with that attitude.
 
I think most interfaces will remain stable for now, but the implementations certainly won't.
 
I was talking with a colleague about State pattern implementations, and he mentioned one from a book that he couldn't remember the title. He said the book has Russian dolls on the cover. Does anyone know what that book might be?
 
There's a lot of ugly there, and really want to get rid of it.
 
@EmileCormier Russian dolls? How to pick up chicks with C++ in under 365 days?
 
2:45 PM
@EmileCormier State pattern? You mean finite state machines?
 
@EtiennedeMartel nice pattern
 
@EtiennedeMartel : Yes
 
I like how the GoF took something that already existed, renamed it, and then wrote about it in a book like it's fucking brand new or something.
 
^^
It's kind of Apple-nnovative
 
@sehe Oh gawd no. I don't want to give up the ability to fuck up.
 
2:47 PM
Good !
 
@EtiennedeMartel : I think the novely might have been in using polymorphism to implement FSMs.
 
oooh I see the problem with this code. The Author has no idea wtf recursion is!
 
It's a thing!
 
what a fucking idiot, has made the most bull shit solution ever
 
mind to link the code, @pirate?
 
2:49 PM
Please help me find Russian dolls.
2
 
@BartekBanachewicz internal work code, I will bitch about it plenty, but posting it is too far
 
@EmileCormier now that's one of the most weird statements I've ever read here.
@thecoshman ah, ok. I thought it was a question or something
 
@EmileCormier here you go: google.nl/…
 
@BartekBanachewicz oh no, this isn't good enough for a SO question
 
@sehe : Is that link NSFW?
 
2:51 PM
@EmileCormier no. why?
 
Though I also felt my brain melt while reading our (their - I didn't write it, I came later) production code
 
@EmileCormier Got to St. Petersburg. Walk down Nevsky Prospect. If you make it more than 100 yards without seeing at least one absolute doll, you must be blind.
 
@R.MartinhoFernandes now, that's true Linux spirit!
 
@sehe : I thought you might be pulling a rickroll on me.
 
2:52 PM
Looks like ubuntu. And just not very well worded.
 
@Sehe: Ah, nice rickroll. Well done.
 
@sehe s/ubuntu/gnome
 
s/gnome/thingy
 
wait... java is fairly shit, is recursive function calls a new things?
 
@R.MartinhoFernandes I figured out the date of the shutdown notification screenshot. Yay:
 
2:55 PM
lol
@thecoshman No.
 
holy shit, just saw this: throw validation_exception(validation_exception::SUCCESS, "Completed successfully.");
someone is going to get slapped
 
@netcoder I'd go "you fucking fuck" way
Oatmeal made me love that phrase recently
 
Yeah, everyone knows it should be validation_exception::success
 
I use it everywhere I can
 
UPPERCASE is for schmucks.
 
2:56 PM
@netcoder well deserved
 
@netcoder Apparently success is pretty rare... :-)
 
^^
Okey, I just jumped for awhile
 
@R.MartinhoFernandes so there really is no excuse
 
quick poll : what's the shortest in terms of depth desk you could work at?
(going to IKEA)
 
meter
 
2:58 PM
that's a lot
 
ideally meter and half
 
you mean width. I meant depth - how far your screen can be from you
 
@thecoshman It's "new" to the degree that COBOL and FORTRAN didn't (originally) support it, and PL/I (from 1964) required that you explicitly declare recursive functions. On a time scale that includes Java, it's pretty old though.
 
@BartekBanachewicz I know what I mean
 
@BartekBanachewicz wear a VR helmet
 
2:59 PM
But how can you get something that's over a meter from you? lol, cthulhu
 

« first day (685 days earlier)      last day (4264 days later) »