« first day (1373 days earlier)      last day (3801 days later) » 

19:00
@Xeo cool :D I'll try Sakasama no Patema this week
I'll probably download it now and watch it tomorrow
Xeo
Xeo
Since it's just a 90mins movie, it's a nice "snack".
does anyone know if there is a way to test out iPhone apps without a mac?
@Xeo snack is more appropriate than you think since I was planning to watch it after I make some shawarmas lol
Xeo
Xeo
heh
bought fish, cucumbers and potatoes to fry today for it
Xeo
Xeo
19:03
my food is late ;_;
hi guys
@Xeo no, you are hungry early
user784668
@Borgleader Hey, that's victim blaming!
He's not a victim D:
Thor Girl aka Tarene is a superheroine appearing in comic books published by Marvel Comics. Created by writer Dan Jurgens and artist John Romita, Jr., she first appeared in Thor "Tears of the Gods" Vol. 2, #22 (April 2000). Publication history Created by writer Dan Jurgens and artist John Romita, Jr., Tarene first appeared in Thor "Tears of the Gods" Vol. 2, #22 (April 2000). Thor Girl was one of the feature characters in the 2011 six-issue limited series Fear Itself: Youth in Revolt. Fictional character biography In the beginning of time, alien sorcerer X'Hoss foretells the creation o...
holy shit that's hot
also lol at the dog's reaction at the end (gif) i.imgur.com/IpUfGgN.gif
19:16
hi erbuddy
Xeo
Xeo
daaaang. Watching Aldnoah.Zero Ep 1 right now
That's some mean shit
Hi @KiddBubu @redaa
so. If you have a phone app and a web app, and you want them to use the same db and login, how is that usually achieved?
user1804599
Expose a REST API.
guys if someone can figure out how to get function's name out of a c++ file;
i'm planing on using regex but it's too hard wwith a c++ file ; any suggestions ?
@rightfold My brain,s REST API is borked. Sleep always returns early, so I'm always tired =/
user1804599
@redaa Use libclang.
@rightfold so like this? This is what I have... I can just make the request and check for the success flag in my web app and... that's it?
@EtiennedeMartel needs more traditional (see above)
19:22
@rightfold No the right response is "why do you need to do that" :P
Xeo
Xeo
FFFF
@AlexM. Fun fact: Japan has a pretty large math rock scene.
Xeo
Xeo
So, I called the place I ordered online at - "yeah, our internet has been broken today, we didn't get around to fixing it so we haven't been receiving any online orders".
Fuckers.
@EtiennedeMartel s/rock// :P
many to many relationships in databases still confuse me :\
19:28
@EtiennedeMartel first thing that came to mind was this guy screaming something like "SECOND ORDER DERIVATIIIIIVE" at a mic
user1804599
Why?
user1804599
In an RDBMS?
user1804599
You create a relation of which tuples represent relationships.
aren't many to many relationships meant to be broken?
user1804599
It’s pretty simple.
user1804599
19:29
@AlexM. Uh no?
@AlexM. no they,re meant to do orgies :P
you can't have a NF with m-to-m relationships
user1804599
What do you do if your relationships are inherently many-to-many?
I'm just saying
you add a table between them
breaking m-to-m relationships leads to 1st or 2nd NF, fuck if I remember
I mean it is a requirement of one of them
user1804599
Consider the relationship itself an entity, problem solved. :P
19:32
I mean. I'm thinking like a question on stackoverflow. It can have multiple tags, and you can filter by tags. I'm trying to implement THAT
50 secs ago, by rightfold
Consider the relationship itself an entity, problem solved. :P
i.e. add a table between them
as I said
question: ID, other stuff...
user1804599
create table questions ( id integer primary key, title text not null );
create table tags ( id integer primary key, name text not null );
create table taggings (
    question_id integer references questions(id) on delete cascade,
    tag_id integer references tags(id) on delete cascade,
    primary key (question_id, tag_id)
);
tag assignment: question id, tag id both foreign keys
tags: tag id, name
oooooh, that makes sense actually thanks Rightfold and Alex
user1804599
19:34
Gerund is awesome.
I like ORMs, they make SQL much easier
user1804599
ORMs are abominations.
user1804599
Most complicated crap after overload resolution in C++.
eh, I just like being able to do some tasks on model creation
user1804599
IMO ActiveRecord is the very worst.
19:40
SQLAlchemy is good
user1804599
The non-ORM part, yes.
user784668
0
Q: c++ hooking functions gets noticed by the game

BoyenI'm trying to hook a game (don't think it's relevant which game, I can assure you it's singleplayer though) This is how I call my hook function : PlaceJMP((BYTE*)ammoAddy, (DWORD)InfiniteAmmo, 6); PlaceJMP function : void PlaceJMP(BYTE *Address, DWORD jumpTo, DWORD length) { DWORD dwOldP...

user784668
Why do I have the feeling that it's not a SP game?
that code would make carmack happy
Would you guys recommend using for(char c: string) {} or
for(i=0;i<string.size(),i++){}
I know in c++11 I can do the first. but it seems like that can be harder to read?
What do y'all think?
user784668
19:47
0. I wouldn't recommend C++.
user784668
1. for(auto&& x : xs)
That seems like it's really simple and small but for readability purposes do you really think that is a good idea?
user1804599
std::for_each(string.begin(), string.end(), [] (auto c) {

});
But why would i use that over a normal for()
I'm really going for the proper style and correctness. as if, If i was going to hand it over to you guys or some random person
user784668
19:50
for is worse than goto, I thought everyone knows that.
who doesn't know everything about it.
What is wrong with for?
@AlexM. I wouldn't pretend to know what would make him happy.
:| I think I broke sublime text
user1804599
@user2372903 Just use range-based for loop.
user1804599
for (char c : string) is totally fine.
user1804599
19:52
Preferably for (char const c : string) because mutable variables suck.
std::string TokenProcessor(std::vector<string> users_pattern_split) {
std::string users_converted_pattern;
pcrecpp::RE re("%{(.)*}");

users_converted_pattern.append("("); // worked tomorrow. look

for (int i = 0; i < users_pattern_split.size(); i++) {
if (re.PartialMatch(users_pattern_split[i])) {
users_converted_pattern.append(TokenToRegex(users_pattern_split[i]) + " ");
} else {
users_converted_pattern.append(users_pattern_split[i] + " ");
}
}
users_converted_pattern.erase(users_converted_pattern.find_last_not_of(" \n\r\t")+1);
better than splurging const everywhere
user784668
@Crow How dare you use a non-Free-Software editor?
gtfo test dump
That's what i have now.
user784668
19:53
@Puppy can you bin it?
I was told range based for's are better practice.
user1804599
Nice unindented mess.
user1804599
@user2372903 They are.
@Fanael it's not free? Then how did I get it for free? I guess I inadvertently pirated something. Now I'm a pirate, time to sail the seven seas
@Fanael Hes no longer a room owner (notice the lack of italics on his name)
user1804599
19:53
They are much higher level than i++ and i < ….size() crap and it’s much harder to get something wrong when using them.
the indenting was killed when i c/p
you're moms an unindented mess
Till i came by and left an indention
user1804599
@Fanael he is no room owner, noob.
user784668
@Crow It's free, and it's probably even free, but think of the Stallmans
user1804599
Use Emacs.
user1804599
Or IntelliJ.
user784668
19:54
@rightfold What happened?
user1804599
Or Vim.
@Borgleader it's okay, he can't hear me
user1804599
@Fanael go to Meta Stack Overflow and search for “vagina.”
user784668
@rightfold Vim is not GPL and therefore evil.
19:55
It seems I am stuck in c++98
wtf
user784668
Oh, and I'm not actually kidding, Stallman recently said that Clang is evil for this very reason.
lol stallman
I like vim, but only on mac :\ I need a mac. I miss my mac. The good times we had together...
user1804599
Stallwoman doesn’t exist.
@Crow shift + cmd + n?
user784668
19:58
@rightfold That's sexist.
@Jefffrey what's that do?
@Crow You don't know what that does on Chrome?
You are not male, are you?
user1804599
@Jefffrey Nope.
oh, you mean... THAT button... very nnnaughty
user784668
@Jefffrey He's foldr.
20:04
right
so, another database question. Let's say you have something like meetup.com where many people can rsvp to an event. Is the event in a table, the user in a table, and a many-to-many relationship established with an intermediate table?
I have a question for you
why do you always hang out here asking random questions that nobody answers?
user784668
0
Q: Ranged based for loop with pointers and a terminating null

user238149char charArray[10]; char* pArray = charArray; for(int i = 0; i < 10; i++) { *pArray = '\0'; pArray++; } From this fragment, what does the *pArray = '\0'; mean? I cannot understand this.

user784668
what
screw it
0
A: Ranged based for loop with pointers and a terminating null

PuppyIt means that the author did not understand C++ in the slightest.

today's just a grumpy day.
user784668
20:08
Why is it even a question.
@Puppy lol
user784668
The OP already says he cannot understand it.
upvoted with no shame
user784668
@Puppy the correct answer
let's see how long it takes to be deleted
3
user784668
20:14
lol +7
i use kdevelop
:(
or vim in terminals
user1804599
Oh this is awesome.
user1804599
Polymorphic functions.
-1 just to counter the +1 made just to counter. — Griwes 25 secs ago
user784668
±0 to counter you all. — Fanael 58 secs ago
user784668
20:19
Lol +9.
user784668
Oh Vlad.
user1804599
Can you do this in Haskell?
user1804599
pairApply :: ([?] -> Option ?) -> (Option Int, Option Char)
pairApply f = (f [1, 2, 3], f ['a', 'b', 'c'])
I think I'll downvote Vlad just to downvote him.
std::string RegexConverter(std::string user_specified_pattern) {

return TokenProcessor(PatternProcessor(user_specified_pattern));
}

Should i even use this function?
Ugh why did it kill the indents. oh well.
user1804599
20:22
@user2372903 Because you didn’t read the rules.
user1804599
Jul 10 at 0:19, by Cat Plus Plus
Hi. Rules. Read 'em. Obey 'em.
So yes?
You would also want to illustrate something worth illustrating. I could also write code that illustrates the shape of my anus, but you wouldn't want to see or use it. Unless you have a thing for fat men, I guess. But even in that case, a simple picture would be better. — Puppy 2 mins ago
what?
Yes. @Puppy has won twice under that question.
user1804599
20:24
@Jefffrey LOL
@Jefffrey LMAO
Oh, it's down to 7 :D
@Puppy Just storing that here, for posterity.
user784668
@Griwes Six.
:D
+12/-7.
:D
20:25
5
Xeo
Xeo
Soo, food is finally here. And of course they forgot a) some of the order b) didn't slice the pizza
user1804599
Ah. I think it is:
user1804599
pairApply :: (forall a. [a] -> Option a) -> (Option Int, Option Char)
pairApply f = (f [1, 2, 3], f ['a', 'b', 'c'])
Xeo
Xeo
c) it costed more than they said it would
FFS
I think I'll get myself some pizza as soon as I come back to some civilization.
Actually I'm not sure if that'll be pizza or some burgers :/
That's a tough choice.
Xeo
Xeo
20:27
At least the pizza is hot
That's something, I guess
yeah
now the downvotes are starting to rack up
I'm still at +104 net rep for that.
I want pizza
I had to throw out my hotpockets because of the mad cow....
Ok what the fuck, how do i change my name.
Idk what to do about this account though. A long time ago I asked a stupid question on this account on stack overflow.
And now i can't ask questions.
aaaaand deleted
well that explains a lot.
20:30
Well, yeah it does, that was allong time ago though.
user1804599
scala> (23, "foo", true).drop(1)
res3: (String, Boolean) = ("foo", true)
user1804599
lolhuh
I have another account on stack exchange that has normal stats and thigns
I guess I can just sue that,
aaaand vlad just overtook puppy
screw this
I'm gonna move to github
user784668
20:30
@user2372903 Yeah, sue yourself.
@Jefffrey It got deleted, so
Let's just lounge Vlad down :(
and puppy is out of the race
@Fanael Don't think i won't
20:31
vlad crosses the finish line
user784668
@user2372903 So, you think you will?
VLAD WINS
user784668
@Jefffrey Vlad yourself.
it amused me and that's what really counts.
@juanchopanza: you mean that "<language feature> is literally Hitler" circlejerks are just circlejerks? I never would've thought. — Fanael 11 mins ago
lol
user1804599
20:34
Vlad Putin
Vlad Poutine
@Griwes I will not comment such a stupidy. — Vlad from Moscow 19 secs ago
I am amazed!
20:41
You start a rollback war because you prefer to use a 3-letter abbreviation of a 4-letter word.
Well done.
@R.MartinhoFernandes yeah
but I prefer keeping original text if it's possible.
the only reason I even edited it is because I wanted to reverse my downvote.
lolwut?
well yeah... SO is such an SO.
user784668
SO should rename to PITA.
20:44
> adding objects
abort: git remote error: refs/heads/master failed to update
great, thanks, that's so useful.
@Puppy Sounds like a connection error.
@R.MartinhoFernandes Probably because I'm trying to use that convert hg repo to git thing.
and the instructions are less than stellar.
user784668
@Griwes It seems that my answer to the question is also very useful for you. Now you will know that the mentioned above construction is not a valid C construction C does not allow an empty initializer list.:) — Vlad from Moscow 5 mins ago
user784668
lol Vlad > Griwes
20:52
pwned
Xeo
Xeo
@Fanael ahahaha /cc @Griwes
Totally deserved it.
Now Griwes will forever be known as That Guy That Got Owned by Vlad.
10
user784668
How's LLVM support for Windows?
idk what's going on
20:55
@Fanael Not exceptional.
user1804599
@rightfold Passing an rvalue will create a temporary copy and then move that — Nikos Athanasiou 16 secs ago
user784668
@milleniumbug Isn't that only when using the silly MSVC compat layer?
@Rapptz Shitty question got posted, puppy pooped in it and it got cleaned up, and the griwes got owned by vlad
user1804599
What the fuck is he smoking?
@Fanael Fine, really. It depends on exactly what you want support for.
20:57
I got clang to work by miracle once on Windows.
but I could never make it find libstdc++
user784668
Compiling stuff.
Tbh I didn't know you could do char[N] = {}; in C++.
user1804599
@Jefffrey Why the “… in C++11?” The question was already about C++11.
It's not tagged v0v
user1804599
It’s tagged and C++ is C++11. :P
21:00
oh right
user784668
Nope, most C++ is C with classes.
It also had T&&.
@Jefffrey we had && in C++03
what's 401?
unauthorized?
user784668
aye
21:02
@Abyx we had?
void fun(int bitand arg1, int and arg2) lolz
2
@Jefffrey yeah, definitely. that ^
@Jefffrey no
user784668
@Jefffrey bool a = b && c;
You could do BOOST_RV_REF(stuff) in C++03
user784668
21:03
> i686-windows-itanium
user784668
So LLVM has separate triples for Windows ABI and Itanium ABI?
@Abyx you are terrible
terrible terrible teeeerible
Abyx The Terrible
sounds good
user784668
Abyx The Slightly Bad.
@Fanael You don't normally have to add "itanium".
user1804599
21:07
@Fanael Most C++ is BCPL with polymorphic classes.
what, exactly, are you trying to do with LLVM/Clang here?
user784668
Feed it some C++ so it excrements a working PE/COFF file.
@Fanael Well it's i686
user1804599
OP y u accept Kerrek’s answer instead of mine. ;_;
@rightfold Because he has more rep.
21:10
Time to fuck up more rice
@Fanael You can pass i686-windows-mingw32 if you're happy to use MinGW's libstdc++ and ld.
user784668
@Puppy I am.
Xeo
Xeo
Gaaaah. "Expected shipping date: 22.07."
@Fanael Make sure that it is not 4.7 or later, because they have an ABI incompatibility.
user784668
How is 64-bit support?
21:12
unfinished.
Xeo
Xeo
Because they're waiting on the PSU and it's expected to arrive on the 22nd. But it was already expected to arrive on the 18th T_T
the exception ABI for x64 exceptions will be finished soon, I believe.
user784668
So, no Windows support then.
to be more accurate, they don't support x64 Windows EH
@Puppy I can't wait :3
21:14
the sooner clang-cl is done, the sooner I don't need VC++ anymore.
user784668
@Puppy You're talking about tehsausage.com/clang-mingw-gcc-4-7 ?
yep
what if I can't load isup.me?
user784668
@Fanael Nope, the SEH patch there is just for Clang. There's a series of LLVM patches for SEH too. The Clang work is basically just "Tell LLVM to use SEH".
21:17
@Jefffrey Spin up a basic VM on DO/AWS/Azure and ping it from there, D'OH
I'll just wait and cry in a corner.
user784668
@Puppy OIC
I did find a list of like, six patches, which was the most recent.
they still had additions/changes as of a week ago, if I recall correctly.
user784668
Link?
21:21
> So it turns out that Haskell is not as “functional” a programming language as I would like it to be. It is inconsistent and cannot do basic math [...] In conclusion, I’m going to stick to Node and Rust until Haskell is further developed and at least out of beta. source
user1804599
@Jefffrey it’s a sarcastic blogpost.
lol
@rightfold Who cares? It's fun.
user1804599
> A type C has a logarithm to base X of P exactly when C ≅ P → X.
user1804599
21:24
TIL
chrome is bad
suddenly it decided I shall not post anything in this textarea
good job chrome
Yes it is
user784668
21:42
@Jefffrey That's laterally Hitler.
Xeo
Xeo
@rightfold Type-algebra?
user1804599
Dunno.
Xeo
Xeo
because P -> X is X^P
user1804599
Oh right.
@Jefffrey Science gives us great things
I think my rice will not be burnt today even
user1804599
21:48
Omg.
user1804599
halfLife3 :: a -> b
user784668
halfLife3 = unsafeCoerce?
Yes HL3 breaks the system
user1804599
halfLife3 ⟺ contradiction

« first day (1373 days earlier)      last day (3801 days later) »