« first day (892 days earlier)      last day (4056 days later) » 

user142019
11:00 PM
What about C𝄪? Is that E?
 
b might be Bb depending on notation
 
-1
Q: Read .txt file into C++ program line by line and create strings for each line

Richard Cibuok so I want to read in a .txt file (using ifstream) into my c++ program. However, I have to read it in line by line and display what the files has inside. Afterwards I have to read each line and look for characters to replace. How do i go about that?

 
Or H for that matter
 
vote to close?
 
Xeo
@Zoidberg Ooh, first time I see a hex-box in a while.
 
user142019
11:01 PM
𝄪
 
user142019
Second time.
 
I like how Martinho and Xeo announce they're going to bed two hours before they actually go. :Đ
 
@Zoidberg That double //
 
I believe it's called German Sleep Typing?
 
Xeo
Right
Secret German Skill: Sleep Typing
The robot's getting surprisingly proficient in that one.
 
11:03 PM
His processor has a dedicated thread for the Lounge, regardless what the main thread is doing at the time.
 
@Xeo Go back to reading, Xeo. You'll sleep faster.
 
@DogPlusPlus How do you come up with this stuff? Hahaha
 
by the way
 
I usually think about programming jokes when I'm debugging. Prevents me from debugging the hardware with my foot.
 
any of you useless cockfaces bought BG:EE?
 
user142019
11:05 PM
You?
 
@DeadMG Never heard of it until today.
 
never heard of cockfaces?
 
@DeadMG Yes I did. What is it?
 
baldur's gate: enhanced edition
 
@sehe I just saw cockfaces and just knew I had to get it
 
11:06 PM
@CaptainGiraffe Incorrect. Only enharmonically.
 
Xeo
Really, I shouldn't have bothered with that stupid question. I'm going to see notifications on the multicollider all day tomorrow.
 
@Xeo You made @Mysticial's point then
 
wonderful, ASSIMP refuses to link into vs2012
 
@sehe What translation? H=B ?
 
@DeadMG I know BioWare's not involved with the remake, but after the ME3 ending fiasco I have no intention of supporting hits, old or new.
 
11:07 PM
@metredigm You have the source code to vs2012?!
 
Overhaul Games or something, fitting name.
 
No. B#==C or Cflat==B
(by the way, you can _see_ what message I responded to, hover it or click the arrow link)
 
yeah much better
 
Nice attenuation. ^^
 
@sehe There seems to be lots of translations of musical notation. B#==C is valid as is Cb==B, sometimes the message does not show and I'm lazy.
 
11:09 PM
Direct lighting without shadow mapping really isn't subtle, even with GI solutions.
 
@DogPlusPlus we'll get to that soon.
 
Ways to keep a beginner question from being massively upvoted:
- Post about it on MSO, where dozens of folks who never bother to follow the tag it's in will suddenly see it and use their one semester of Java knowledge to evaluate its worth*.
- Go home and a big slice of lemon meringue pie.

*may not be as effective as advertised.
 
or I should say I will, since I am the only dev :P
 
@CaptainGiraffe No, it is not. There might not be separate keys on a keyboard. There might be temperaments in which the notes are tuned to the same approximate pitch, but conceptually, the notes are simply not the same. End of story.
 
@sehe This is what I read all the time, not what I teach. I see different styles from diferent authors
 
11:11 PM
32 mins ago, by Mysticial
Btw... If anybody was wondering, one of the reasons why I linked that question here was to test the appropriateness of abusing close-votes to deny multicollider visibility to questions that have potential to get an undeserved amount of upvotes.
 
@sehe Yeah, it's more than just a notational variance.
 
@sehe Yes they had in the 19'th century C# was sad Db was introspective
 
@CaptainGiraffe ?! it's not about notation style. It's about definition of scales. You know, facts, not practice
@CaptainGiraffe That's keys, not pitches.
 
@sehe heh... How's that test going so far, @Mysticial?
 
Mumble is so empty. :(
 
11:12 PM
@Shog9 It got messy.
Yes I take the blame for stirring this up.
 
hm, looking at original minecraft, it uses simple ambient occlusion
I mean, really damn simple
 
Xeo
@Shog9: I still think the question is not helpful to anybody.
Even the OP himself thinks so
But whatever
 
@CaptainGiraffe "they" "had" - this is all so touchy feely and irrelevant. FYI if "they" "had" moods in the 19th century, chances are, "we" still have those...
 
@sehe Not sure what you are getting at, I follow that beethoven scale of C# being for whatever and allt that stuff. The opera want the A at 433 now
 
Xeo
I realize I just shouldn't have bothered. Will do better from now on.
 
11:13 PM
That said, I didn't just pick any question. I intentionally picked a "borderline" question to test it on.
 
@BartekBanachewicz Yeah, box-approximation AO is possible with small voxel reg-grids.
 
@Xeo Probably isn't. But then, I wouldn't have asked the question in the first place, so I'm not in a good position to make a fair evaluation of that. This goes for most of the questions I've answered.
 
@CaptainGiraffe "the opera" - you don't reckon that would depend on which opera genre, right? A monteverdi opera will do with A=433Hz, but not "Le Nez" (Shostakovitsj), at the Metropolitan.
 
@sehe I appreciate that. I cant construct from that. But I can surely relate.
 
@Mysticial It's great you are really working on it. Keep it up! :)
 
11:15 PM
@sehe Yes Shostakovits would be closer to ours
 
custom binary mesh formats would save my life right now
 
@CaptainGiraffe Also, there is no "beethoven scale". That would be tuning vs. temperament (well-tempered temperament and a certain reference point for A)
@CaptainGiraffe Anyways, didn't we go over temperaments (starting from Pythagorean) somewhere begin 2011?
 
@sehe I just recall LWB reciting the scales sentiment. I'm sure you have heard of it.
 
@CaptainGiraffe Sorry? LWB?
 
@sehe LvB? Ludvig van Beethoven
In dutch it is wan
 
11:17 PM
"van" - and it isn't dutch, so - relevance?
You heard him reciting? Whoa, you're much older than I thought.
 
@sehe Please dont be that agressive. I have read about Ludwig van Beethoven classifying the different scales from the Welltempered clavier.
 
Bartek, is that being written in directx, or ogl
 
@CaptainGiraffe yes I'm aware of traditional attributions of moods to certain keys. Note that it is really important to distinguish scales from keys, temperament from pitches (and classical notation from execution practice).
The "moods" of keys, really do arise from the natural dispositions of the instruments used
 
it's pretty impressive
 
@CaptainGiraffe See ^^ . Also, the Welltempered clavier is a a body of music (two actually) by JS. Bach
 
11:20 PM
@sehe Yes, this is where I break down on the modulus scale.
 
@CaptainGiraffe hahaha you're doing it on purpose now
 
@sehe No really, I have played for fun most of my life
 
@CaptainGiraffe Yes I think LvB did in fact postulate his thoughts about different keys and their traditional meanings in symphonic music.
 
I appreciate liszt
 
Well, there's a composer who wrote modally in his late works :| (Via Crucis, e.g.)
 
11:22 PM
@sehe I just want him for the stealing of the violin works =)
Or as we prefer nowadays; the creative commons
 
@CaptainGiraffe E-flat sounds heroic in orchestras, because it is the natural key (ground-note) for many "natural" wind instruments (think, horns). Likewise, but inversely, A/D major will sound bright and crisp in relation to that (people actually made "variants" of woodwind instruments to address the keys more evenly, so you'd have Clarinets in Bes/Es and in A. Hence the highly famous Clarinet Concerto in A by Mozart).
 
@sehe Yes, this is precisely it.
 
@CaptainGiraffe What music are you referring to?
 
also wow
this guy has been posting for a few years now
 
11:26 PM
@CaptainGiraffe Yup. And F major is for "pastoral" (also associated with triple meter etc.)
 
and last post was 4 days ago
He is amazing.
 
@sehe I'm sucker for the romantic, so anything up to Berg will do =)
 
@CaptainGiraffe Don't skip on Passacaglia (opus. 2, I think) by Berg! Or his Violin concerto. It counts as romantic for me. But, do skip on the string quartets and stuff :)
 
@Shog9 If I over-stepped the bounds on this. Just tell me up front and I won't do it again. When I linked it here, I only expected it to "maybe get closed". I had no idea that it would lead to a flamewar and escalate all the way to a meta question. So sorry for the mess I made on both the question and on meta.
 
@sehe I'll try and find.
 
11:28 PM
@Mysticial Erm. You're not responsible for other people's actions. But, yeah, we learn :)
@CaptainGiraffe Erm. Simply: do you mean you like works by Liszst for the violin, or you mean you like how Liszt took violin 'themes' and 'stole' them (e.g. for variations)?
 
what's the best programming snack
 
Bacon
 
@Mysticial I don't think you overstepped (I haven't read the transcript either though). The question was borderline - unfortunately, that means any attention you give it is likely to generate a comparable amount of... um... contrasting attention. I actually suspect if someone had popped onto MSO and posted "Please help reopen this question" they'd have gotten a similarly harsh response.
 
Also Florian Bösch is commenting on his posts. Aaaawww
I want to be like them when I grow up.
 
@metredigm Honestly, for me, the best programming snack is "nuttin'" - just the feeling of hunger when you rise from your seat after 6+ hours of solid keyboard time
 
user1357851
11:31 PM
 
http://msdn.microsoft.com/en-us/library/windows/desktop/bb205522%28v=vs.85%29.aspx
What do they mean by "projecting back onto w=1" ?
 
@Shog9 Anyways, the Lizard just twote it :) twitter.com/lizardbill/status/316691384117633024 /cc @Mysticial
 
@BartekBanachewicz Yup, it's really basic. I use the filtered SVO to query AO to an arbitrary precision ( the hemisphere above the point ) and temporally-stable variant (multi-frame-sampled) of the horizon-based AO algorithm with the classic triangle-based approach (tile-based deferred renderer with the possibility of a lattice-based diffuse GI evaluator with RSMs and low-order SHs for encoding).
 
user1357851
Does anyone receive personalized invitations a lot? The ones that says "hey (insert name here)", we would like to invite you. Or even more personalized with some narratives?
 
@DogPlusPlus a lot of hard words there :)
"it's really basic"
 
11:34 PM
I get those who spam me, and then they say "Did you receive my spam email? I didn't get a response from you about my spam".
 
user142019
> Operator == cannot be applied to operands of type T and T
 
user142019
lolwot C# y this no work
 
@BartekBanachewicz The Minecraft one, I mean. It's derived off the naive approach to cast rays in the hemisphere above the point and calculate how many points hit nearby points before cutoff. :D
 
value types?
 
user142019
Oh right.
 
11:36 PM
@DeadMG non reference types
 
@BartekBanachewicz Have you considered SSAO?
 
user1357851
@DeadMG but they are not from random strangers but some networks. Some from my startup network, some from quant finance network. I kind of know the people (they are organizers), I don't think they know me for being an ordinary member.
 
Or you're going for a forward renderer?
 
@DogPlusPlus not yet
I was thinking about deferred rendering
 
eh
 
11:37 PM
Seems easier to make a lot of torches.
 
It's not that expensive in a deferred pipeline since you just need the ready-made normal and depth buffer.
 
@DogPlusPlus sounds nice
 
I'm not the most initiated person, but I don't see the advantages of deferred rendering now, since complex shadows require the complexity to be O(nm) anyway.
 
complex shadows
 
last I checked, complex shadows being basically any shadows at all
 
11:38 PM
Puppy, remember I can take certain optimizations in this game
 
Precisely. And you don't even have to worry about the drawbacks of deferred rendering (a little more trouble with BRDFs, but they are pretty good). And for transparent stuff in Minecraft, just switch to forward rendering for them.
 
@DogPlusPlus that was my idea.
 
from what i've seen of dx11, you HAVE to write shaders for functionality.. is this true
 
@metredigm yup.
 
yep
 
11:39 PM
well crap.
 
@DeadMG That's the point, deferred lights are not shadow casters in games. You have usually a primary light which draws the shadow map and everything else is used for subtle effects.
 
using fixed-function pipeline is dumb anyway
that shit's useless, deprecated and slow
 
and trivial texturing shaders are really simple
 
true, but
shaders
 
11:39 PM
what about them?
 
they just seem and have always seemed to be very complicated and trivial
 
@DogPlusPlus Also vast majority of the scene is "nearly-static" /cc @DeadMG
 
you have to know shaders to do basically anything.
 
> very complicated and trivial
 
this is not new in D3D11.
using FFI even in a pipeline that supports it, like D3D9, is still an incredibly bad idea.
 
11:40 PM
well
i should probably move away from dx9 before getting too involved in it
 
eh
 
@metredigm yea, to OpenGL :)
 
there's nothing too wrong with DX9
neither D3D10 nor D3D11 have big advantages unless you're making the next Crysis.
 
jk. just don't use Fixed-Function Pipeline
 
just don't use the fixed-function rubbish.
 
11:41 PM
actually, i moved from opengl.
 
OpenGL is good... But I'm dying without compute shaders. :(
 
@DogPlusPlus 4.3
@metredigm die. in hell.
 
@BartekBanachewicz I know, but it's 2 years late. And only Nvidia has ~sort of support for it. :(
 
@DogPlusPlus incooomiiinng
 
i was using the ancient opengl functions, glut and all, then looked at the newer versions [4.0+], and they looked awful in terms of simplicity for the programmer
 
11:42 PM
take cover!
 
user142019
return xs.Any() ? Item(xs.First()).Bind(_ => Items(xs.Skip(1)).Bind(__ => xs.ToParser()))
                : NullParser<IEnumerable<char>>();
 
user142019
lololol
 
I've been badgering AMD guys for a 4.3 driver for a long time, too.
 
user142019
I should be doing this in F# instead.
 
@metredigm dude, 3.3+ is much easier than 2.x. 1.x is FFI = crap
and the difference between 3.3 and 4.0 is totally unimportant...
2 mins ago, by DeadMG
neither D3D10 nor D3D11 have big advantages unless you're making the next Crysis.
 
11:44 PM
Yup, D3D10/11 is basically useless if you're not going compute-shader wild and bending the pipeline.
 
Well, there's always tesselation and geometry (4.0)
 
It's a bit more standardized and easier to use ( feature sets are guaranteed over all D3D10+-capable devices, but performance is still a thing).
 
ALSO. when i did use opengl, there was barely any forms for multisampling, based on what i saw
 
@metredigm what
 
I remember puppy's silent suffering after silent failures with D3D9. :D
 
11:46 PM
@metredigm You just said you haven't used shaders, no?
 
never before.
 
@metredigm You don't want multisampling anymore. It doesn't account for postprocessing since it is resolved too early. If anything, push in FXAA.
 
@DogPlusPlus So do I
 
the most smoothing i could find was in setting a GL_LINE_SMOOTH parameter from what i remember
 
@metredigm dude that's FFP still
 
11:48 PM
FFP, not FFI.
 
true.
 
FFI is a foreign function interoperation thing done by languages.
 
I am too tired
 
FFP is a fixed function pipeline for graphics cards.
 
@DeadMG I know, I know
 
11:49 PM
Aw man. Why do all the questions start to suck at around this time every day? I was hoping today would be my first 400 rep day. :(
 
@sftrabbit Isn't it capped* at ~200?
 
user1357851
@DogPlusPlus Oo, it all makes sense now - you changed your name to Dog++ to provide a fatherly figure to the puppy :p
 
i am going to sleep before I say more bs
@DogPlusPlus doesnt include bounties and accepts
 
hm. i migrated to directx for rumors of better API. also the much better debugging system.
but i do think i'll go back to ogl.
 
11:50 PM
sort of.
more like articles.
 
@DogPlusPlus Only vote rep is capped. Accepted answers still count.
 
akhem.
Use both in reasonable versions and then compare.
And pick what you like best.
Or both.
Once you learn how shaders work, the differences are learned easily
 
true.
 
I remember that I wrote my own OGL functionality loader to satisfy my vanity. Nothing like making dummy contexts to sample possible platform-specific extensions which enable me to prepare a proper context. ^^
 
that's still needed
context creation sucks badly.
anyway, good night.
 
11:55 PM
'night.
 
night
 

« first day (892 days earlier)      last day (4056 days later) »