« first day (839 days earlier)      last day (4109 days later) » 

4:00 PM
@NikiC Okay, good. At least there's an actual reason, and not just internet flaming.
 
@NikiC Do you still need to explicitly enable strictness in the newer versions? I thought they had finally made that the default.
 
Now, how hard is it to, say, configure MySQL with UTF-8 support compared to, say, Oracle's SQL server? Or whatever it is in the question.
 
@R.MartinhoFernandes I don't know, I'm not very much interested in MySQL development. Also the lack of strictness never was an issue for me, I just heard other people complain about it.
 
You don't configure Oracle, you hire someone to do it for you
 
@CatPlusPlus Fair point. (Is that included in the tremendous cost?)
 
@CatPlusPlus Oh, so Oracle works like IBM now?
 
@EtiennedeMartel Always did
 
lawl, I actually get the IBM reference...
 
@CatPlusPlus Aaah.
 
@ShotgunNinja Nobody wants to use Oracle crap. If people talk about alternatives to MySQL they mean Postgres ;)
 
4:05 PM
tries to hide young age and lack of experience
 
@ShotgunNinja Yeah, well, IBM makes good stuff, but you really need to hire their consultants to make it work.
 
@NikiC I have to use Oracle crap at work... T~T
 
@EtiennedeMartel Orcale sucks
 
You know I don't even remember what's wrong with MySQL
 
@thecoshman Yeah, but what about Oracle?
 
4:06 PM
@EtiennedeMartel Even historically, though, (maybe not so much recently, however) IBM has been based around providing ridiculous levels of customer service for their products. To the point of sending people across the country to deliver and install machines.
 
I get reminded each time I use this shit though
 
@thecoshman Orca LE?
 
It's like a mental block
 
@EtiennedeMartel Limited Edition.
 
@ShotgunNinja They're the closest thing we got to a "good guy" in the wacky world of corporate IT solutions.
I mean, they get a bunch of patents and actually use them to solve problems rather than, say, troll everyone with it.
 
4:07 PM
@R.MartinhoFernandes they also suck
every body sucks
everything sucks
everywhere sucks
 
@EtiennedeMartel Funny thing is, my high school buddy Rich works for IBM, and he hates it.
 
Are you the cat now?
 
everytime sucks
 
So much sadness in here.
 
you suck
 
4:08 PM
my girlfriend sucks, but in a good way ;3
 
@ShotgunNinja you suck, as does her and her sucking
 
The kind that can only be solved with beer.
@ShotgunNinja Showoff.
 
@EtiennedeMartel :P
@thecoshman, I'm so terribly sorry. Is there anything we can do for you?
 
inb4 stop sucking
 
4:11 PM
He's a pirate, so he needs rum.
 
@EtiennedeMartel and wenches, buxom wenches
 
@thecoshman Well then, I will try my hardest to find you some rum and buxom wenches.
The rum should be easy, but I don't know what kind of women you're into. Or what kind of rum, for that matter...
 
@ShotgunNinja He's into the buxom ones. I thought that was obvious.
 
@ShotgunNinja Tits. Anything else is unimportant.
 
@R.MartinhoFernandes Yeah, but that's only one aspect. Any particular preferences beyond that?
 
4:16 PM
wow C++ is popular, huh?
50% of jobs I just searched are C++
 
@Crowz wtf are you talking about. There's no C++ here, only rum, tears, and wenches.
 
@ShotgunNinja No wenches. And I don't see any rum.
 
I'm a wench .-.
 
@Crowz Then 50% of those jobs are ridiculous and painful experiences.
 
@Crowz No.
 
4:17 PM
Unlike the 100% of ridiculous and painful Java jobs out there...
 
@EtiennedeMartel why not?
I should learn python more... python is pro
 
@Crowz Pics or it's not true.
 
@Crowz "Wenches" are female.
 
user142019
@Crowz Python is one of the few decent languages.
 
@ShotgunNinja buxom women, copious rum. How could that be difficult?
 
4:18 PM
@ShotgunNinja I think the correct wording is "Tits or GTFO".
4
 
@R.MartinhoFernandes He's a polite gentleman.
 
@R.MartinhoFernandes I have a pair of tits to look at after work today, I'm good.
 
@R.MartinhoFernandes calm down grandpa :P
 
@EtiennedeMartel That's why his name includes "Shotgun"
 
@ShotgunNinja Showoff 2.
 
4:20 PM
@ShotgunNinja boring
 
@thecoshman Just wondering if you had any particular preferences, like blond vs. brunette, or Captain vs. Bacardi.
I'm new to drinking as well, so idk what constitutes good vs. shitty rum just yet.
 
@ShotgunNinja Both Captain and Bacardi both taste like rat puke dipped in moose piss.
 
@ShotgunNinja yes, blonde and brunette would make a loverly pair. And dark rum of course, I am pirate not a fairy
 
Got a brand?
 
any hoops, time to head home
 
4:21 PM
@thecoshman lol
 
@ShotgunNinja sadly, the only option I have is Sea Dog, but it does the job
see ya'll!
 
@thecoshman adios
So, is Myers Rum any good?
 
posted on February 01, 2013

If you want to compare two complicated objects, the strategy is to define a function that computes a single number from each object and then compares those numbers.

 
Guuys
using statements, like using std::nullptr_t, last beyond the scope of the header and persist for whatever namespace you declare them in?
 
@EtiennedeMartel I am female
 
4:32 PM
@ThePhD persist in that TU, in the namespace you have them in. that what you mean?
 
@Feeds Epic fail.
 
Why? (I haven't actually clicked through yet)
 
@R.MartinhoFernandes He basically says, "Waaaah, I don't know how to implement a multi-member comparator, so I'm gonna go do some completely random shit, instead of std::tie".
 
@LuchianGrigore Ooh, okay. So I can't use using declarations in headers or classes. =[
Man, why is C++'s using model so fucking bad. ._.
Why is it's compilation model so bad. .___.
 
4:35 PM
C++, WHY U YOU?!
 
@ThePhD I've been known to be wrong on occasion, don't take what I say for granted
 
FWIW "define a function that computes a single number from each object and then compares those numbers." is the UCA.
@ThePhD I honestly don't get this obsession with using.
 
@R.MartinhoFernandes It makes coding a whole lot easier. I don't know why there's no option to control when it gets turned on and off. :c
Or if the rule wasn't "Everything from now until the end of the Translation Unit."
 
"easier" as in "saves a couple characters"?
 
@ThePhD It was a great idea back in 1972.
we simply haven't managed to get rid of it since.
 
4:38 PM
That makes typing easier, yes.
I am not a typist, though.
 
you let other people type for you :)
 
I don't see why I can't be saved a couple characters while doing what I like. ._.
 
Just wait until C++17
 
@chris I'LL BE OLD AND UGLY THEN
Right now I'm young and beautiful; there's only so much time!
 
@ThePhD If you are so hellbent on it, buy a better editor.
 
4:39 PM
Then go hang out by a black hole for a couple days.
 
what are we gonna call it when the next standard doesn't arrive in this century... C++0XX?
 
man
his previous post is WTF, too.
 
> A "UTF-8 character" is an oxymoron, but may be stretched to mean what's technically called a "UTF-8 sequence", which is a byte sequence of one, two, three or four bytes representing one Unicode character. [It is] often used in the sense of "any letter that ain't part of my keyboard" though, which means absolutely nothing.
hehe
 
Applying to a job, if you attach a gist, what kind of stuff do they expect to see?
 
@Crowz "if you attach a gist"...what?
 
4:41 PM
That is what I mean... just a collection of programming
 
If you give them your github...
... They'll see your github.
 
@ThePhD yes, but do they expect to see anything special? Multiple languages?
 
That can only be inferred from the job description, I think.
 
If you're asking "What are they looking for", you simply have to read the job description that they put up.
 
Only looking for any type of internship
 
4:45 PM
It should have something that convinces them you might be worth hiring. That's all that can be said.
 
In general, if its a technical programming company, showing your github or linking to it isn't a bad idea. The worst they can do is not click on it.
The worst you can do, however, is put up something epically bad that makes them not want to hire you.
So clean it up, and make sure its spiffy. :D
 
@ThePhD Alright haha... well I mean, the gridcreator looks pretty terrible (just ugly, but works) and the 3D game is unfinished. They'll think that's bad?
 
You're not the first programmer to have an unfinished project.
Just don't put in the description "THE GREATEST GAME IN THE WORLD", and then make it so that they can't play it.
 
Oh god, I've got a ton of unfinished projects...
 
@Crowz Seriously, if they take the time to look at your page in such a detail that they could find mistakes, you are probably already half-in.
 
4:48 PM
@ThePhD Well, unless they go through the effort of putting it in eclipse, including all the OpenGL libraries, compiling and running... they're not going to see why I am vector-challenged
 
@Crowz Fantastic.
 
Damn it.
 
On my resume, when I get some games up, I'm going to hand-write on my resume:
 
Now I really want to play some Anno 2070 for some reason.
 
"Tired of reading boring qualification crap? Head to the second page for a SMORGASBOARD of links to games and other fun things I've made!"
Then I'm going to ship that to jobs.
 
4:49 PM
@Crowz "vector-challenged"?
 
@ThePhD "smörgåsbord" is more impressive :P
 
@ShotgunNinja The vector normalization of the movements is completely off
So "forward" basically makes you rotate around the floor
 
@Crowz Oh, well, vector normalization is an easy thing to do...
 
@R.MartinhoFernandes I'll be sure to include that in it then. :P
 
Also, we JUST went over this stuff in my Graphics course, finally!
 
4:51 PM
I really want to apply to a games company that makes RPG...
 
We modeled world-to-projection transformations as a sequence of matrix transforms.
Yeah, RPGs would be pretty fun, but I think RTSes would be even cooler.
 
And then handwrite my resume in calligraphy, wax-seal it, and pay someone to wear old-fashioned medieval clothes and deliver it to the company on horseback
4
"here is the resume you requested, milord"
 
@Crowz :D
That concept fills me with Disney magic. I think I just popped a nostalgia-boner.
 
RTSes are cool, I just always want to make a more living, breathing world and that seems the domain of RPGs hah
 
@Crowz One with a farm and an angry farmer and bunnies? :D
 
4:54 PM
@ThePhD I just want Morrowind 2 with better graphics :D
 
To be fair, any game company that didn't completely suck would hire you on the spot if you did something like that.
@Crowz Morrowind... 2? facepalm
 
@ShotgunNinja I'd hire too, buuut only if they actually met the requirements.
 
First gotta get better at C++ syntax and OpenGL/D3D
 
> Queen Beatrix announces that she will abdicate the Dutch throne at the end of April.
 
If you ride in on Horseback but can't program Fizzbuzz, I will be very upset for the Horse that you wasted its time riding it here to suck so much.
 
4:55 PM
Fun times in the Netherlands.
 
@ThePhD Well, if they were going for a designer/storywriter position, I'd hire them on the spot.
 
@ThePhD Well, for a sophomore in college... I think I am at least mediocre
 
@EtiennedeMartel Yaay, a new Queen will arise!
@ShotgunNinja Oh, for that it's insta-hire.
 
@Crowz show us your mediocre fizzbuzz then :p
 
@Crowz Wait until you graduate to pull a stunt like that.
 
4:56 PM
"GET OFF YOUR HORSE AND GET IN HERE."
 
@ThePhD "My resume is now diamonds!"
 
Make sure it's an amazing horse.
 
Fizzbuzz is, if it's divisible by 3, print fizz, if it's divisible by five, print buzz, and if neither, print i?
 
Don't you also print fizzbuzz if both conditions are met?
 
4:59 PM
That's probably not the fastest way to do it... but it works and it's intuitive
 
@ShotgunNinja Yeah, his code does so.
 
@ShotgunNinja Well yeah, because it'd be divisible by 3 and 5 so it'd have to print fizzbuzz
 
My Fizzbuzz is 6 files long.
 
@ShotgunNinja 6 files ?
 
5:00 PM
1 Main class, 1 Dispatcher class, 3 Handler classes.
Oh, and a Printer class.
 
Enterprise Fizzbuzz.
 
I kinda want to implement OpenGL to animate it just to mess with employers
 
Now he'll charge companies 100 Euros to use and look at his Fizzbuzz Implementation.
 
Oh, that's hysterical, @R.
 
Fizzbuzz.BusinessLogic.Core
 
5:02 PM
I was going for an "over-engineered" solution, but that guy one-upped me with an "enterprise" solution.
 
With enough bloat to match any company, to boot.
 
You should notice how, despite all the over-engineering, the values 100, 3, and 5 are still hardcoded as magic values. (I dare you to find them, though :P)
 
Obviously his Fizzbuzz isn't robust enough.
We should add 3 more files.
One for each magic constant and a test file for verification of the magic constant.
 
@R.MartinhoFernandes Just put them into an XML document, and write a parser to extract them.
Oh, and make the XML parser use Regex.
Then write unit tests for the regexes.
 
We have to make sure we use unit tests, because ~modularity~ and ~agility~ in our testing platform and programming and {MANAGERIAL WORDS HERE}
Haha, testing platforming.
Could you imagine if testing code was as easy as playing a platformer? :3c
 
MAXIMIZE e-business relationships.
The worst part is 5/15 bullshit I made I've heard / seen before. =[
 
@ThePhD The bullshit, it's too much...
 
Xeo
@R.MartinhoFernandes OH GAWD MY EYES!
 
> incentivize sexy architectures
 
template <class T>
struct Rgb
{
    T *r, *g, *b;
 
5:08 PM
...
 
Looks great to me. :3c
 
@R.MartinhoFernandes The original: pulsarprofx.com/special/humor/5_Print/Buzz_Phrase_Projector.pdf (older than most people who hang out here).
5
 
@JerryCoffin Neat.
 
I presume their real problem is trying to delegate to another constructor improperly.
 
@chris Or maybe just being dumb.
Rgb<std::deque<double>> a(2, 5, 4); // so it creates 3 deques inside with different sizes lolwut
 
5:10 PM
o_O;
Looks fantastic.
I'd use it.
 
@JerryCoffin The only one I'm concerned about is 6 in the third column...
 
@R.MartinhoFernandes It is. For a while, I worked with a guy who didn't like my reports very well -- so once as joke/sarcastic comment, I used about half a dozen phrases from it. The sad ending: he honestly thought that was a huge improvement!
 
@JerryCoffin ... This actually made me sad. =[
 
> Function to return a character into a while loop
How the fuck does someone come up with this.
 
5:12 PM
@ShotgunNinja A few are starting to show their age -- that fit much better in the 1960's when this was originally invented.
 
Oops, just realized their syntax to call the constructor isn't a compiler error lol
 
@ThePhD His very existence made me sad.
 
Fbx has all these rotations and translations you can apply to a texture..
... I have no idea how to translate that into regular GPU working stuff though.
So I'll just ignore it. :3c
 
@ThePhD Megatexture much?
@R.MartinhoFernandes Wait, where is this from?
 
@ShotgunNinja No idea how to megatexture.
 
5:16 PM
-1
Q: Function to return a character into a while loop

JaroseI'm trying to write a calculation program that, when it has run through once asks the user if they wish to make another calculation. This has the form of a separate function that is called at appropriate points in the main function: char repeatcalc(char y){ cout << "Would you like to ...

 
How does one 'megatexture'...
 
0
A: Function to return a character into a while loop

qPCR4vironvert your funtion to return a bool. For example return y=='y'; This way the funtion

WTF
 
MegaTexture refers to a texture allocation technique facilitating the use of a single extremely large texture rather than repeating multiple smaller textures. It is featured in Splash Damage's game Enemy Territory: Quake Wars and was developed by id Software technical director John Carmack. MegaTexture employs a single large texture space for static terrain. The texture is stored on removable media or a computer's hard drive and streamed as needed, allowing large amounts of detail and variation over a large area with comparatively little RAM usage. Depending on the pixel resolution per sq...
 
Sounds like an idea I'm not ready to implement.
I don't know how to properly stream from the disk.
 
@ThePhD They just keep a file handle open, and seek to different parts of it, lol.
Also, I'm fairly certain they use Targa texture files, due to their uniform storage and indexing properties.
 
5:19 PM
@ShotgunNinja that sounds MegaAdvanced
 
mmaping seems like a better option.
 
@R.MartinhoFernandes aww - while loop guy
 
MemoryMappedFile, I think.
 
@ShotgunNinja How is that different from a texture atlas?
 
Wait that's .NET, lulz.
@JerryCoffin Uh. What is a Texture Atlas?
 
5:22 PM
@ThePhD storing several images in one image so you can save state changes - then using texture coords (for example) to just grab the piece you need
 
@JerryCoffin The main reason is the fact that it's a GIANT texture atlas, and only part of it is selected from disk at a time.
 
@doug65536 Oh, then I've done that before...
What's the advantage of that, though?
 
switching to another texture is very expensive - compared to not switching
 
Um.
But changing an already existing texture is even more expensive.
 
@ThePhD It's at least very similar to what's being described here -- a bunch of small textures crammed together into one large texture that you select only pieces of at a time.
 
5:24 PM
@ThePhD usually you're right. as long as you have some time between changing it and using it, you'll be ok. using it immediately can cause it to drain the render queue
 
If the megatexture is selectively regenerated during loading sequences, you can reduce the overall texture space usage while suffering minimal impact to gameplay.
 
Oh.
So it's for space usage.
Not necessarily for speed.
 
Of course it's not for speed: it uses the disk.
 
Well, now I know.
So you have 2-3 Megatextures, and you use only those for the whole game, forever and ever.
No new textures allowed.
 
Well, the fact of packing everything into one texture means that you don't have to switch between texture selections every frame during rendering, which saves graphics ops per frame.
 
5:27 PM
Atlases are used to optimise batching
 
So it's a self-updating giant texture atlas.
... Now it all makes perfect sense.
 
34
Q: My kids yell a lot when playing games on computer

Leonid VolnitskyMy kids (4 and 5) yell a lot when playing games on computer. I found an effective cure for this. I ssh into game computer and do: chvt 3; sleep 15; chvt 7 when I hear load noises. This will turn off screen for 15 seconds. I've told them that computer don't like loud noses. They totally...

 
@ThePhD as far as my (limited) understanding goes, yes. I could be completely wrong, though.
 
Self-updating?
 
> I've told them that computer don't like loud noses.
Don't sneeze too loud.
 
5:29 PM
@Praetorian oh god...
 
Aww, the robot closed it!
 
Gah I'm exhausted
 
I am a complete noob at this, but isn't this terrible parenting?
 
Probably was a better fit for SU anyway
 
It was surprisingly productive day
 
5:30 PM
@Praetorian It's a "write my program for me" question.
 
@R.MartinhoFernandes Better than sprinkling them with water
 
@R.MartinhoFernandes He did have some initial work to show
 
You might want to take a look at Parenting. :) — Mysticial 27 secs ago
aha, I had to say it
 
Damn, didn't know there was an SE site for that!
 
@CatPlusPlus Well yeah. Based on where you are, select a different portion of the megatexture, based on what level you're in, load a new piece of hte megatexture(s), etc. etc.
 
5:31 PM
I don't know how is this self-updating but okay
 
you can do the same with geometry, using a "mega" vertex array for multiple models for example
 
@R.MartinhoFernandes The clam that the computer dislikes the noise isn't so good. The action seems fine to me. It's ensuring that when they do something undesirable, there's a consequence that discourages their doing it again.
 
@JerryCoffin Yes, I was concerned about the lies, not the actions.
@TonyTheLion Find the porn.
 
ALL THE PORN
 
5:34 PM
@TonyTheLion lol, I don't even use my desktop
 
lol, my comment has 5 upvotes already - despite being at the bottom of the comment thread.
 
@TonyTheLion lol reminds me of that episode of "the website is down" where the guy has all his icons arranged in the shape of a penis.
 
aww, a mod wiped all the comments
 
@Borgleader oh gawd. I'm not going to ask anymore questions about this.
 
5:36 PM
@TonyTheLion It's a short series on youtube. It's really funny, you'd probably enjoy it.
 
@TonyTheLion What the hell... o_O How do they manage to sift through all that?
 
@ThePhD I have no idea.
 
moving things around is my guess
 
@ThePhD Hint: keyboard.
 
Yeah, but the names of all the things are random hashes!
 
5:37 PM
somehow I wouldnt have guessed someone who doesn't understand a folder with an apple OS is going to use the keyboard
 
YOu'd have to be pretty familiar with all the pictures to say "I want megaman: 7xhsj2.jpg [Enter]"
 
some people can work out reverse hash functions in their head? :P
 
WOO!
 
I need an example for a function that has different behaviour depending on some trait that detects validy of an expression, like is_constructible.
 
5:39 PM
lol, massive content dispute on that questions
 
lol, i.imgur is blocked at my workplace, but i.stack.imgur isn't...
 
@TonyTheLion That... artists has a really nice style.
Who are they?
 
no idea
was on Reddit
 
@Mysticial WTF, OP insists on the lousy title.
 
Can't see the image.... T~T
 
5:41 PM
@ShotgunNinja Just for you i.stack.imgur.com/YJwbp.png
 
@R.MartinhoFernandes Stupid people being stupid
 
@R.MartinhoFernandes <3
 
Actually, I think Kendall is afraid that it will become the next sock question.
Because getting rid of the original title will definitely hurt the question - big time.
 
Regex parsing of HTML?
 
@R.MartinhoFernandes The uses_allocator constructors?
One of the criteria of the trait does check some construction expressions.
 
5:43 PM
@LucDanton Hmm, don't get it. :/ (I haven't really explored allocators)
 
Funny story, I've written a regex HTML parser before... It was for machine-generated HTML, so it was uniform enough (despite not being correct HTML due to broken tags) to be parsable. It didn't build a DOM or anything, it just stripped all tags and converted to delimiters, then did a cleanup pass on the information before crunching it into a custom data model.
 
Hmm, nevermind, reading the docs was enough to see it.
I'm off.
 
*oh wow, was reading something else, responded in the wrong chat...
 
Catching undefined behaviour: I think you're doing it wrong
// Catch integer overflow.
  if (size > size+1)
    abort();
4
 
Looks right valid to me.
 
5:47 PM
its true if size+1 wraps around
 
But size + 1 is UB anyway.
It is signed, by the way.
 
@R.MartinhoFernandes Sorry, I thought some constructors were using that trait but I think it's only the scoped allocator that does, so that would make for quite a complicated example with too much irrelevant stuff I think.
 
Even if it was unsigned, it'd still overflow, and that condition would still hold true.
 
Some of the container adapters do though.
 
If it was unsigned, it would be well-defined, though.
 
5:48 PM
However, the handling could probably be done in a more uniform fashion than a simple abort()...
 
@R.MartinhoFernandes Perhaps an example where a throwing move constructor yields a different code path?
 
On there, it's talking more about how the check is optimized out because the compiler's free to assume that size < size + 1 all the time.
 
@chris Hmm... Stupid optimizing compilers...
Could you trick it around that by assigning 1 to a variable v, then checking size > size + v, or would it inline that before doing the optimization?
Also, if you're doing +1, then couldn't you just as easily check size == INT_MAX?
 
@ShotgunNinja probably inline
@ShotgunNinja if (INT_MAX-1 > size) //overflow
 
5:54 PM
@MooingDuck I was writing a different form of this as a second method, lol
 
@ShotgunNinja, if (size == INT_MAX)is their suggested alternative.
 
@chris woot
 
why not if (size >= std::numeric_limits<decltype(size)>::max())
 
@doug65536, Because the article is for C ;)
 
ok then, good answer lol
 
5:55 PM
Wow, I mistyped "because" about 50 times.
 
you suck
 
@ShotgunNinja there's a "trick" where you can give an assumption to the compiler in msvc __assume I believe. I think gcc has something similar
 
@doug65536 Oh cool. Good thing I write Java at work T~T
Also, kill me.
 

« first day (839 days earlier)      last day (4109 days later) »