« first day (912 days earlier)      last day (4022 days later) » 

12:01 AM
nooooooooooo :P
gNight
:)
 
12:49 AM
why is it so dead in here
 
It's Sunday.
People are getting ready for the depressing realisation that it's Monday tomorrow.
 
Woohoo, Monday!
 
lol
 
user1357851
Behind every monday, there is always a Friday
 
I feel so wrong in a suit ._.
 
1:28 AM
@DomagojPandža: so I've been reading a bit on deferred rendering/shading. Apparently for transparency you either have to: a) use a lot of memory and be limited to only 2-3 transparent objects in front of opaque ones or b) have a forward rendering pipeline for transparent objects
im sad now :(
 
Borgleader why can't we be friends?
 
@Borgleader Yup, that's the price. Although, we've managed to overcome MSAA problems, but nobody uses MSAA anymore. :Đ
 
There are better techniques than MSAA?
 
When creating a c++ program, do you include a readme file or something that explains how to run it?
 
Imagespace techniques, MLAA and SMAA. Even FXAA with a decent custom resolve filter ( the average box filter is terribru ).
And they operate after post-processing, so there are no aliasing problems there. :D
 
1:33 AM
Can those custom filters be something like a gaussian sampling? like:
1 2 1
2 4 2 * 1/16
1 2 1
 
anyone want to help me out?
 
@JohnMerlino What? You mean a user manual? An installation guide? Generally, yes, though most users know how to use an installer executable.
 
@MartinJames the project consists of cpp and h files
I want to open it in qt
but it appears qt doesnt recognize any of it
 
@Borgleader Yes, Gaussian is one option.
 
That's not running, that's building.
 
1:36 AM
Yes I would like to open the project and make edits to it
 
@DomagojPandža I've had a class last semester on image treatment and restoration and we saw a few of those filters ^.^;
 
Usually for building you provide a makefile.
or whatever build system you like
 
Whatever @Rapptz says. I only deliver stuff that already works, (mostly:).
 
There's always a better solution than a regular expression but the regex one will make you look smarter
 
1:52 AM
Unfortunately I had to come back to this room again.
Does anyone here know Java by any chance?
anyone?
 
Which part of Java?
 
Damn it Pawnguy.
 
paint
 
@Rapptz yes?
 
We're supposed to ignore Java questions!
 
1:55 AM
Oh, wait, this isn't the C# room.
 
We all know Java. How to spell "Java" that is... :)
 
No no. This isn't strictly java question.
Its more of a concept question that both C++ and java have.
 
Which concept, exactly?
 
I overrode the paint method and drew an image over the jwindow, except I can't add any controls to the window now, such as jpanel or labels, buttons etc.
 
He said that last time
 
1:56 AM
I don't see how this is relevant to C++.
 
Have you considered asking on Stack Overflow?
 
No
Should I consider?
 
Yes
 
Yes
 
Yes
 
1:57 AM
Why so?
 
Well... that is its purpose.
 
Because Stack Overflow is literally about asking questions.
 
Am I to believe people use the SO chat without knowing what SO is for?
 
Yes
 
2:07 AM
The only good reason to use ctrl-C ctrl-V while programing is that your keyboard misses some greek letters
 
No, I know what SO is for. But sometimes I get impatient and can't wait for someone to find my question and answer it. Hence, I ask here.
 
@DemCodeLines I dunno where you got the impression that chat is faster than SO proper.
 
yesterday, by Etienne de Martel
@Alex_B This is the most active room on SO. As a result, we got lots of people who rush in here to ask for help thinking they'll get their answer more quickly than on SO. After a while, many regulars got quite jaded, and now the usual reaction is "we won't help you".
 
@Mysticial But its easier for people to know the question and help me than it is to wait for someone to find the question, then answer it, then I go back and look at their answer and if something is wrong, then I have to reply back and it takes a lot of time to get the problem solved.
By the way, your wishes have been granted.
0
Q: JAVA: Overrode Paint method, can't add any control to window

DemCodeLinesI have the following code: import javax.swing.*; import javax.swing.ImageIcon; import javax.swing.JOptionPane; import java.awt.*; import java.awt.Image; import java.awt.Toolkit; import java.awt.image.BufferedImage; import java.awt.image.BufferedImageOp; import java.awt.image.ConvolveOp; import j...

 
@DemCodeLines Oh don't worry about that. Especially in the tag, there are plenty of people just waiting to answer your question.
 
2:10 AM
yesterday, by Etienne de Martel
In sense, it's like you have to earn your "right to ask" here by becoming part of this little community. If you don't have time for that, or don't care for that, then go on SO instead.
I sense some entitlement.
 
@DemCodeLines The problem is, we come here to chat. Not answer questions. When we want to answer questions, we go to SO.
 
@EtiennedeMartel I think in this case, nobody here would be able to help anyway. I don't think any of us know Java swing.
 
Ok my mistake guys. Will try to avoid it.
 
I don't know Java period.
Though I can easily identify things made with Java.
 
And you already got an answer... haha
In about 1/10 of the time you spent here. lol :)
 
2:13 AM
Make that two.
Shit I'm bored.
 
Looool
Someone is copying
their code to their dropbox
 
what if a c++ project has two make files? How you know which one will build it?
 
and it's their sole version of Backing Up their code when they reach important milestones. :3c
0
Q: Project looking in wrong directory for files(streams)

FendorioI've been building a game for the past couple of days. After i've reached certain milestones i'll C&P the project folder into my dropbox folder then create a new one in my visual studio folder. I've run across a problem now however where when i'm trying to read from files the streamreader is try...

Woops, that's the answer...
Better.
 
You can’t trust code that you did not totally create yourself. [Ken Thompson]
 
You can't trust code that you wrote yourself.
 
user1357851
2:21 AM
so you can not trust code, existing or not :x
 
Better reinvent the entire standard library.
 
user1357851
or use it with distrust
 
wait a second, all make does is build a program out of the source files. I want to know how to open up the source files in qt for editing
 
lmao
 
@Rapptz at me?
 
2:23 AM
Make a new project, copy things over to the directory of said project, then select add existing.
 
Not only can you not trust code, sometimes you can't even trust the computer that your code will run on... <-- me
For example:
^^ Forget code... you can't even trust the hardware...
 
Why are you in Japanese code page?
 
@Rapptz Somebody sent it to me.
 
Dat 3 KB validation file.
Mysticial OP: condensed 1 trillion digit pi into 3 KB.
 
The fact that the program managed to recover from not one, but two hardware errors and finish with a correct result was just sheer luck.
@ThePhD lol, the actual digits are in the two large text files above.
 
2:27 AM
hardware errors?
 
@Pawnguy7 Yep. Even computers can be wrong.
 
Like, hardware error as in, say, a driver failure? Or damaged hardware, physically?
 
In this case, it looks like it's an IO error.
The data-link between RAM and HD is unstable.
 
0
Q: How to really delete vectors

JBRPGI am quite new to C++ memory management because unlike C, there are more hurdles to freeing all memory. I am trying to successfully delete a pointer to vector of any type (i.e. vector * data) 1 /* 2 * We test the program in accessing vectors 3 * with dynamic storage 4 */ 5 6 #include <iost...

Why...
 
@Pawnguy7 Hard to say, it could be a driver problem, it could be a bug in the OS's buffering (the guy who sent me that said he has some OS issues). It could be a loose connection on the motherboard, overheating, defective hardware, etc...
The list goes on and on.
And the more hardware you have, the more things can go wrong.
 
2:33 AM
@Rapptz :D
Dat program.
 
I have cmake files, rather than make files
 
I will glEnd you!
 
I don't think he's leaking memory, then again I don't know how to use valgrind.
LEAK SUMMARY:
==2301==    definitely lost: 0 bytes in 0 blocks
==2301==    indirectly lost: 0 bytes in 0 blocks
==2301==      possibly lost: 0 bytes in 0 blocks
What is he losing here?
 
Ah, he's losing nothing.
Fix'd my comments. :D
 
noob
 
2:41 AM
Prototypal OOP should be popularized just for its acronym
 
How often do leaks actually occur in production code?
 
I've played a lot of games with memory leaks.
 
Like... what would one allocate that cannot be enclosed within a standard library collection structure?
 
0
Q: C++11 "auto" to an non C++11 compiler

barfatchenI have download the source from http://matt.eifelle.com/2012/07/17/just-a-small-example-of-numerical-optimization-in-c/ and try to compile in g++ 4.4.6 , which don't know about auto of the follwoing source : auto optimizer = Optimization::Local::build_simplex( fun, Optimization::Local:...

@ThePhD is such a repwhore.
 
I am ot a repwhore!
You linked the question here first. D:
I'm just answering basic questions.
 
2:46 AM
0
Q: Represent 16 bit signed int as a value between 0-100

Yamaha32088I am relatively new to programming and have always been terrible with math. I have a program that takes a 16 bit signed INT -32,768 +32,768 I would like to represent these values as 1-100 on the positive side and -1 - -100 on the negative side so that they are easier to work with. So basically 10...

^^ wut?
 
o.0
Why doesn't he just clamp it or multiply?
 
I'm so confused.
 
Or why doesn't he just use 1 to 100... ?
 
Tell him what an assignment statement is
 
@Mysticial, level 83 Crap Hunter.
 
2:51 AM
me? :)
 
how strong are you guys with calculus?
 
How much more experience do I need to reach level 84?
@JohnMerlino Mathematics
 
What kind of calculus?
 
I just meant as c++ developers how proficient are you with calculus, calculus I and calculus II
 
@CCInc : ^C^V is the lifeblood of the most organization. Honestly, nobody refactors EVERYTHING, to be reusable. If you are working on UX, then it is not even advised..
 
2:54 AM
Pretty good?
 
@JohnMerlino I don't know how to integrate a function. Make of that what you will.
 
Really?
 
but if you want to build graphics software, woudlnt that be a necessity
 
Hm. I ended up answering anyways...
 
2:56 AM
@JohnMerlino For 3D graphics, you need linear algebra, not calculus.
 
@JohnMerlino Yes, it is extremely necessary for anything beyond basic shading pipelines.
 
Well, you might need calculus.
 
@EtiennedeMartel Calculus 3?
 
I wouldn't know.
 
Ironically the one he left out.
i.e. Multivariable Calculus.
 
2:58 AM
The focus is Linear Algebra, though.
If you're doing lighting and other such things, inevitably you'll either be trying to generate your own aesthetics with pure algorithmic thinking -- OR -- you'll be approximiating light phenomena using physics and other such things, which requires a knowledge of Calculus.
However, Linear Algebra is also required because that's how transformations and vectors get rolling down the pipeline.
So the real answer is: both. Sac up and go do 'em. :D
 
do any of you do any embedded development, or linux dev?
 
Also, I, II, III means nothing. One way to interpret the use of calculus within computer graphics, or integration in this case is as a continuous summation where every direction in the hemisphere above the target point leads to a point which can be seen as a light source - and if necessary you might process that one too. Usually, in simple pipelines it's just a discrete summation of the influence of all the (relevant) lights.
 
@Jaigus Embedded or Linux?
 
Gomputer craphics.
 
yeah I meant any kind of embedded dev or just linux dev
 
3:02 AM
That's kinda vague.
Can you give us even less details?
 
what a surprise, a snarky reply.
3
 
Also, people really shouldn't be afraid of calculus, probability theory and signal processing when addressing realtime rendering. It really makes things elegant and beautiful.
 
@Jaigus That requires a star.
 
Two stars. One of them neutron.
 
You smug bastards.
 
3:04 AM
That's how we roll.
 
@DomagojPandža A third, which means there's one, neutron, proton, and one electron.
Can't have an unstable atom.
 
But, but... I meant:
A neutron star is a type of stellar remnant that can result from the gravitational collapse of a massive star during a Type II, Type Ib or Type Ic supernova event. Such stars are composed almost entirely of neutrons, which are subatomic particles without net electrical charge and with slightly larger mass than protons. Neutron stars are very hot and are supported against further collapse by quantum degeneracy pressure due to the Pauli exclusion principle. This principle states that no two neutrons (or any other fermionic particles) can occupy the same place and quantum state simultaneou...
 
@Bartek I made it to 1K, Banyanners. <3
And I did it before he reached 10K !
 
Quick question: if you have a reference to an element inside a vector and that vector resizes, is the reference still valid?
 
3:07 AM
 
@ThePhD Shouldn't be too hard to downvote you back to 9k.
 
@EtiennedeMartel q_q don't do it pls. ;~;
 
> 9k
@ThePhD Why not? His downvotes give you 8k rep.
 
@Rapptz funny, whenever I pass through you're never posting anything that has to do with C++
 
@Rapptz What if his k means only 100? :c
 
3:08 AM
@Jaigus Welcome to the Lounge, kid. We don't really talk about C++ 'round these parts.
 
Apr 5 at 13:12, by Lightness Races in Orbit
This is the Lounge. It's where logic goes to die. Have fun, after reading our handy survival guide!
 
This room has nothing to do with C++ beyond C++ being in the title. We discuss My Little Pony here.
 
@DomagojPandža Yessssssss.
 
@DomagojPandža We do not discuss my little pony, Sugarcube. =[
 
@ThePhD Then the k is a lie.
 
3:08 AM
Speaking of MLP, how's it going @ThePhD?
 
@EtiennedeMartel I don't know what you're talking about. =l
 
How far in are you?
 
I'M NOT IN AT ALL.
 
sure; I guess thats why he down modded me for posting a question about orms, when he was posting bullshit like this
 
Do I get any privileges at 1K?
@Jaigus s/bullshit/hipposhit FTFY
 
3:10 AM
@Jaigus Hey. I don't care.
 
Sorry to bug you, does anyone know the answer to my previous question?
if you have a reference to an element inside a vector and that vector resizes, is the reference still valid?
 
I know
 
@Jaigus You know what the real bullshit is? I can't click on your link because the star/flag/reply box pops up over it when I put my cursor there.
 
It was this video
Apr 12 at 0:23, by Rapptz
 
Well, to be fair, it's totally on topic.
 
3:12 AM
To be honest I'm amazed he went back two days ago.
 
I didn't
 
What's that thing you always say, Rapptz? You must be new here ?
 
Did you bookmark it?
 
@Rapptz Well, he likes Naruto, so I'm not surprised.
 
No, it was in another reply
suprised about what?
 
3:13 AM
Oh.
You're upset over me downvoting you for dumping your link in the chat.
 
@Grapes You shouldn't have a reference to an element of a vector between resizes. You should requery it every time you need it. The vector allocates enough space, but push_backs might require it to resize internally (not to mention resize) and remap to another memory address range which is most definitely not the one your reference targets.
 
thanks @DomagojPandža
was wondering if it worked like a pointer
 
@Grapes A pointer has its own address, a reference does not. You cannot reassign a reference.
Also, use iterators, dammit.
 
(on my machine, the second print statement is random)
 
3:16 AM
Rapttz, that might not reallocate the memory though
in your example
ok, exactly what I thought
@DomagojPandža thanks
 
Yeah.
The idea was there!
 
ok, but is it still ok to use pointers for non-ownership?
example: class A has vector of unique_ptr and class B points to &*unique_ptr item
 
Non-ownership is okay. Basically, everything is okay if you know what you're doing. Most people don't. Or worse, they think they do. :D
 
Thanks... so I shouldn't feel bad for using pointers at times? (Non-ownership)
sometimes when a value can be nullptr, i have to use a pointer
(non-ownership)
 
bad example... it's too simplified
 
It's sad that you can't get the Fanatic badge multiple times.
I finally hit 100 consecutive days for the second time today.
 
@EtiennedeMartel I thought getting a Fanatic badge is sad. :$
 
Silly panda.
 
It's my only gold badge.
 
3:29 AM
Same here.
 
If it weren't for chat I wouldn't have gotten it.
 
Same !here.
 
SO isn't that much fun by itself.
 
It's not.
I definitely don't want to hit the 10K mark.
I mean, when I want to learn Haskell or something
I'll try to answer Haskell questions
And improve my knowledge.
But making it to like
1K was even a pain. =[
Also HAH I beat Bartek to 10K. <3
He made a bet I couldn't do it.
Muaahaahaaa, I win!
 
3:36 AM
Good Guy Rapptz.
Have a gold star.
 
:D
 
Don't mind me, I'm just on the star bandwagon.
 
I've never reached the star giving limit.
 
Me neither.
 
lets make program
 
3:37 AM
Tomalak has, though, I think.
@Crowz s/program/baby with me <3
 
okay. take your clothes off
 
Btw PhD, what's your sexual orientation?
I've always wondered
 
@Rapptz Asexual.
 
Interesting
 
Or maybe it's Pansexual?
Or Bisexual?
Trisexual?~
Cuuuurvesexual~
 
3:39 AM
lol
 
Maybe just plain Rapptzexual. <3
 
@Rapptz Normally I'd assume it's his choice, but since this is the Lounge I'll assume he's asexual by other people's choice :P
 
Pansexual is someone who is attracted to anyone.
 
I'm selfsexual
Only attracted to myself.
 
@Rapptz I've found the term strange because I assumed that's what Bisexual is for.
 
3:40 AM
Bisexual is male and females.
Pansexual includes transgender.
 
... o.0
That doesn't make any sense.
 
C-can I be transgender?
 
Transgender doesn't change if you're male or female.
 
Maybe in your idealistic world.
 
And if you've undergone any operation, all you've afforded yourself is the lost ability to have / make babies.
That doesn't make you any less male or female.
 
3:41 AM
Okay, but that isn't how people see it.
 
True enough. =[
 
what if you have a third 23rd chromosome? What then?
 
Go Blender artists :D :D :D
 
@Crowz Then you have Downs.
@Borgleader I'M CATCTHING UP TO YOU BORG. <333
I'll be at 2K, and you won't even see it coming!!!
Also, guis, what privileges do you get at 1K? :O
 
lol
Vote distribution
 
3:42 AM
I'll be at -12 soon!
 
Vote count?
 
Click on a score to see its vote distribution
 
Like, delete and stuff?
 
@ThePhD Edits are at 2k.
@ThePhD How many* upboated and how many sank boats.
 
@DomagojPandža =[
 
3:44 AM
Close votes are at 3k.
 
Ooh, I get to see the results of SO's gunnery.
 
Then there's nothing interesting til 10k.
 
Damn.
7K's a big hump of no features.
 
At 10k, you get an SO blowjob.
 
@ThePhD You get to tie your own shoes.
 
3:45 AM
WOO! I've always wanted to tie my own shoes!
 
I never tied my own shoes :(
 
@Rapptz I always tied my own shoes, but I did it horribly wrong.
 
Until I started track.
 
People used some weird inner-loop double-knot trick.
I just made a fucking bow.
People tried to teach me the other way but it just never worked in my head.
Nowadays, I never tie my shoes.
 
I do double-knots.
 
3:46 AM
They've been laced for like, 2 years.
Just slip them on and off.
They're all dirty and shit, I really wear shitty clothes. :D
 
I have the problem of laces being too short all the fucking time.
Calling resize doesn't help. Fuck real life.
 
There's no Shoelace Freestore for you to get heap values from. :P
 
ooo dress shoes. I bought a $30 pair of dress shoes. Who looks at them?
 
3:49 AM
I really need to check my supplies. I know that Mondays register a drop in food reserves. Damn people and their weekends off.
 

« first day (912 days earlier)      last day (4022 days later) »