« first day (1144 days earlier)      last day (3808 days later) » 

10:00 PM
I need to find a way to pierce the anti-Belgium wall.
 
Please don't tell beginners to write unions. Unions are the fast lane to UB, especially if the user doesn't know what UB is. — sehe 4 secs ago
It's a car brand, right.
Shoiwrelet
@kbok What a nice, non-sensationalist, headline. Oh. The Onion.
 
-3
Q: Getting div id value back in jquery

n asI have several div elements. I am trying to write a simple hover function which returns the id of the div which is being hovered over. How do I get this? I tried a few things, but nothing works. $(this).attr("div"); // this returns undefined $(this).prop("div"); // this returns undefined ...

^^ wow... all downvoted
 
> Sources said the abnormal, visibly blemished creature has been repeatedly passed over for employment opportunities, frequently gawked at and harassed on the street by total strangers, and has faced near constant discrimination for over two decades, all due to the horrific and debilitating birth defect.
Subtle.
 
@EtiennedeMartel Almost as subtle as a fist to the jaw...
 
Oh hey, file://repository works
 
10:06 PM
@user3050705 Yeah. A school project, I gathered. Which is exactly why you need to tell us /what you are trying to achieve/ instead of /how you are trying to achieve it/ (the XY-problem!). Because, you're not going about it the right way :) — sehe 4 secs ago
 
@JerryCoffin Almost.
 
Fuck's sake, I have to figure out everything on my own
I love team projects
 
Get a better team.
 
I see JS chat come up more and more often. Are you guys trying to overtake the C++ Lounge? — Bart 47 secs ago
 
JS chat is as terrible as their language
 
user3010322
10:11 PM
@CatPlusPlus What's the team project?
 
Making a site for a project, and integrating Maven
TABS MIXED WITH SPACES
why
 
Ell
Because it's the best <3
tabs for indent space for align
 
No
Also it's both for indent
Randomly
 
Ell
well... no o.O
Not how I use them :P
 
Pay attention
 
Ell
10:13 PM
to what?
 
Xeo
@Mysticial jQuery-add-image where?
Aw, the meta thread is gone
 
I know
 
Since when did I become a JS interpreter? :P
 
so
 
10:17 PM
Wide's next feature
 
Xeo
Concepts?
 
nah
 
Xeo
I have a concept idea in my head, but don't want to touch Clang to try it out.
 
I have a choice between simple inheritance (no virtual functions or multiple inheritance), horrible unsafe pointer indexing, and constant context.
 
@DeadMG Actually being a real world use case?
 
Ell
10:18 PM
Assimp::IOStream maaan :/
 
Xeo
@DeadMG Throw pointers out, budget's too tight for them.
 
@EtiennedeMartel ew, that's almost as bad as acquiring users.
 
user3010322
Welp. Better get to my Stream API redesign...
 
@Xeo Can't do that. I need unsafe pointer indexing to interface with C APIs and, let's face it, some stuff like memory allocators and implementing higher-level classes/functions.
 
Ell
Don't say I'm going to have to write my own <some 3d format> parser too! I'll be good at writing binary file parsers by the end of this year :3
 
Xeo
10:20 PM
@Mysticial Hahaha, the SO question is also nuked
 
@EtiennedeMartel I reckon that might not be too far away. The real issues are going to be ABI for stuff like virtual functions and exceptions. But once I've conquered them, I think that I can construct some not-too-terrible libraries.
 
I wonder if people will start whining about Wide one day.
 
of course they will.
 
I'm not so sure.
 
there are only two kinds of language: the kind nobody uses and people whine about, and the kind people whine about.
 
10:21 PM
(I see you got the reference)
 
yeah, I think the original quote was "The kind nobody uses, and the kind people complain about", give or take.
 
Yes.
 
obviously my real strategy is to get bought out by Microsoft or Google
:P
 
Whore
 
You're planning to be a sellout?
 
10:25 PM
I was kidding
because let's face it: who'd want to buy Wide.
 
@TonyTheLion You use the YT xbox360 app right?
 
ITT: Google's testing so bad, engineers recruit random chatroom friends to test their applications.
 
@DeadMG That's not entirely incorrect. But I can't really go into details ATM.
:)
 
user3010322
Aww yiss
 
user3010322
Raster fonts. <3
 
user1804599
10:30 PM
Hi.
 
@Mysticial NDAs and such?
 
@EtiennedeMartel Yeah. I'm not authorized to say anything. But what I can say is that a new version of the app came out about 12 hours ago.
 
@Mysticial I see.
 
I was going to ask Tony if the app works.
 
@Mysticial, you changed avatar. Nice one :D
 
10:34 PM
ayeeeeeeeee
 
Ell
Trevor old pal! How long's it been? You sassy devil
 
Oh god. Trying to teach a PHP programmer static typing here:
but how should I refer to the table if its name is not given? I can't do something like this (written in PHP): $table = $_POST['table']; $object->$table so i decided to find the index: int index = findIndexByTableName(table); cout << TAB[index] — user3050705 16 mins ago
@Ell I've only ever seen (very) bad code using Assimp. Is assimp itself actually good?
 
user1804599
Yay.
 
Yay.
 
user1804599
I found a solution to my FFI problem!
 
10:37 PM
FFI?
 
A foreign function interface (FFI) is a mechanism by which a program written in one programming language can call routines or make use of services written in another. The term comes from the specification for Common Lisp, which explicitly refers to the language features for inter-language calls as such; the term is also used officially by the Haskell programming language. Other languages use other terminology (the Ada programming language talks about "language bindings", while Java refers to its FFI as the Java Native Interface, or JNI). Foreign function interface has become generic ter...
 
Ell
@sehe I've not actually used it, but the interface looks horrible. double stars and the like :S
 
@Ell Yup.
 
user1804599
extern use JSON {
    extern stringify(x: dynamic): string;
    extern parse(s: string): dynamic;
}
 
Fast Fucking Institute.
 
user1804599
10:39 PM
Free Foftware Ioundation.
 
Rolls right off the tongue.
 
user1804599
RRRRRRRRRRolls.
 
To be honest, I find the source download from there (modelimport.zip) some of the worst "C"-with classes I've encountered in a long time. — sehe Apr 21 at 18:40
Hehe. I just fixed it up so it compiles on GCC 4.7, 3 files changed, 1174 insertions(+), 1172 deletions(-). (I suggest you might be able to find better samples to learn from?) https://gist.github.com/sehe/0f8f711f44d48b9ecbbfsehe Apr 21 at 18:59
Found the evidence. However, that tutorial site seems to have been eradicated.
3 mins ago, by sehe
Yay.
 
@sehe why would you even do that?
 
Ell
Yeah
 
10:41 PM
hi
 
Ell
It's a shame because it apparently supports a whole load of formats
 
@jalf I wasn't aware when it started.
 
user1804599
@sehe Give up. Just like Tcl is stringly-typed and C is intly-typed, PHP is arrayly-typed.
 
@rightfold I stopped :/
 
PHP is crappily-typed.
 
10:42 PM
FFI = C interface.
 
user1804599
I should try PHP type hints.
 
@Mysticial I do, but I don't have time to try it now
 
@EtiennedeMartel Sadly, that sounds like way to much fun
 
Tomo maybe
 
user1804599
But for completely obvious reasons, they don’t work with string, int and double.
 
10:43 PM
@TonyTheLion Darn. Saving 4 keystrokes now?
 
@R.MartinhoFernandes Lowest common denominator, then.
 
@EtiennedeMartel It's more like commonest denominator.
 
Low low low low low.
 
@TonyTheLion No worries. Was just wondering if something really bad happened when the new version got released.
 
Ell
@sehe aiAnimMesh** mAnimMeshesNOT CURRENTLY IN USE.
^ in the docs :/
 
user1804599
10:47 PM
@Mysticial I like your new avatar.
 
user1804599
I like pink.
 
My avatar in February was even more pink.
 
Xeo
He got a new one again?
Hm, I don't recognize that one
 
user1804599
s/He/She/
 
return isCompleted = true;
 
user1804599
10:49 PM
@Mysticial I can’t recall February.
 
user1804599
@Pawnguy7 eww.
 
Xeo
@Mysticial That was Hina, right?
 
@Xeo yes
 
Xeo
That was more orange, though, because of rage-flames, no?
 
Or red rather.
 
Xeo
10:49 PM
right
 
Holy shit using p2 repos from Maven is slow
 
@rightfold as seen here
 
Xeo
I should also start switching around my avatar once in a while - but I like the Accelerator face way too much
 
user1804599
@Pawnguy7 I like to write my code as if assignment were a statement, not an expression.
 
user1804599
loljava
 
user3010322
10:51 PM
Move Semantics. <3
 
user1804599
Move the semantics.
 
user3010322
Semantics all over my moves.
 
lol, how can a guy with 32 gold badges for questions, almost 9k rep ask such a stupid question?
(hello) ;0
 
user1804599
in Java Sucks, 8 secs ago, by rightfold
1 message moved to PHP
 
user1804599
:F
 
Xeo
10:52 PM
@BartoszKP He got the badges for questions he asked very early in SO's life.
 
My fraud detector went off earlier today:
 
user3010322
Hm.
 
user3010322
I'm doing something wrong by returning a std::unique_ptr.
 
user3010322
I don't have to do it like this. I can do better for myself.
 
Ell
@ThePhD Why?
 
10:54 PM
@BartoszKP Simple: 9K rep means nothing (but then, 900K wouldn't mean anything either).
 
Dude. Where did you get your 8k rep? — sehe 5 secs ago
 
@sehe :D:D
 
user1804599
@sehe 500 questions 18 answers lol.
 
@BartoszKP retracted
 
user3010322
@Ell Because I have move semantics.
 
Ell
10:56 PM
But I mean, why is it wrong?
 
guise i hav question: cell1 A cell2 B cell3 D cell5 -3 -- how to get most banana cell with linq??? plz help!
 
user3010322
Anything that's moveable I should be returning by value, even if it just ends up going in a pointer later anyway.
 
I think I watch way too many cartoons for a 22 year old
 
@BartoszKP Just multiply by mango (or use ADL to get the same effect)
 
user3010322
Because returning by a pointer chops the user's legs off.
 
Ell
10:57 PM
@ThePhD restricts them?
 
@sehe i tried but doesn't work, i get an error you know
 
Ell
@ThePhD Is that true?
 
@BartoszKP Yeah. I get that too. I just added 'ON ERROR RESUME NEXT'. Works like a baby now
 
user3010322
@Ell In most cases, returning by value is the best thing you can do (if it's moveable). The idea here is that if I return something by move, then I can leave it up to the user to control dynamic allocation.
 
:D:D:D
 
10:57 PM
@sehe Member for 5 years and hasn't rep-capped even once. Truly a pure "participation for a long time", not any real recognition of quality.
 
> C'est pour ça que le typage dynamique, c'est du caca, et Python peut bien aller se rentrer un doigt.
 
@JerryCoffin Anyways. I reconsidered my comment. But that was a poor question
 
user3010322
Consider the case of returning a std::unique_ptr<MyResource, my_deleter>: This becomes a problem for someone outside of my library because they need to keep it in that same type (or cart the deleter around) in order for them to know how to properly delete the MyResource.
 
@ThePhD Yeah. What's the problem? Wanna make it convenient, use shared_ptr. Can't have it convenient and efficient.
 
user3010322
Using by-value moves and stack semantics: MyResource gets returned, and if the user desires, they can move it up into a dynamic allocation and do not have to worry about whether or not they're using the right deleter: they do that themselves when they move it into a dynamic allocated spot.
 

« first day (1144 days earlier)      last day (3808 days later) »