« first day (814 days earlier)      last day (4136 days later) » 

12:00 AM
Well I haven't had to do this personally but some guy showed me how. He had had to debug code without any debug information so he was checking the contents of the registers at a certain break point. And he thought that a certain register (lets say r12) contained the address of a widget
well he could do (Widget*)r12 and MSVC would show the layout of the object as if r12 was a pointer to a Widget
 
Yeah, that's what I know Ell
 
@sehe ah, pope's excrement
 
Ell
A static cast either uses the classes conversion operator
which is written by the programming,er
 
@Ell programming,er? :D
 
Ell
or if its a primitive, there are rules for say float casts or integer casts
hah sorry I'm on my tablet
Const cast removes or adds const
Reinterpret cast says "compiler, I don't care what you think, just trust me, from now on pretend this is an int!" Or whatever type
Reinterpret cast says "compiler, I don't care what you think, just trust me, from now on pretend this is an int!" Or whatever type
ahh this is tpp much to type, I'll do it tokmorow haha
 
12:05 AM
Hello all sorry to trouble you, but this is a general programming question, can anyone be of assistance?
 
Well now I can debug without crash, but I have no clue what's wrong, so I'll ask here: Shouldn't this be adding stuff into the vector? objects is an std::vector<DrawObject>
DrawObject object(name, surfaceFile, xPos, yPos, willMoveVar);
objects.push_back(object);
 
@user1604490 probably not
@GigaBass yup. Your bug then is likely passing vectors by value, instead of reference?
 
Is there any chat for general assistance?
 
it SHOULD be adding, you mean, right?
 
@Cheersandhth.-Alf More impressive than the marching (at least to me) was the fact that the stadium was packed. People actually went to a stadium to watch this? Really?
 
12:05 AM
I really need help
 
@user1604490 Nope. Chat is for chat. SO is for assistance
 
I'm wanting to pass the entire object into the vector though...
but nothing is getting added!
 
ooo...okay
 
@JerryCoffin A lot of cry babies
 
np
peace out
 
12:06 AM
@GigaBass Stack Overflow for you too perhaps. No code -> no clue
 
I was questionbanned yesterday ~_~
Mind if I post abit of code for you to look then? On PB
PasteBin
feel free to refuse, don't worry
 
PiwateBay :)
 
lol
 
@GigaBass it's ok - I'll let you no if it suck too many eggs
 
@sehe Sounds like something Johny Depp would play in
 
12:07 AM
hehe thanks, give me 2mins
 
getting dressed for the occasion? Don your Johnny Depp costume
 
Of course, gotta have my tuxedo looking swell
 
Ell
I wonder why so many drugs are illegal
 
user1182183
Fuck my life, fuck my laptop, I'm dead, I just launched realtek audio manager and my volume JUMPED FROM 1 to 78! everyone's awake... i'm a dead man..
 
12:10 AM
Why? were you watching porn? xD
 
user1182183
@Borgleader really loud music :F
 
user1182183
and with 14 speakers.
 
user1182183
well
 
World.cpp has a vector<Layer> layers; btw.
 
user1182183
12:11 AM
compare it to a jet takeoff
 
user1182183
from 50 meters
 
That would never happen to me
 
man
that's what I like about desktops
 
Ell
Ooh jeez
 
if someshit happens, you can just pull the plug.
 
12:11 AM
:)
 
with a laptop I'd be like ohfuck how do I stop this in the most expedient fashion
@Borgleader Agreed.
 
Ell
@deadmg are you feeling better this night?
 
@GigaBass Are you putting that in the main executable or in a shared library?
 
user1182183
@Borgleader sure, I didn't tell everyone yet that my audio OUT jack is broken? XD I made a custom one xD
 
@sehe
 
12:12 AM
@Ell Well, almost entirely. Still got a smidge of a headache but the paracetamol is fairly effective.
tomorrow I'll get back to Getting Things Doneâ„¢
 
woudl you prefer I post the 3 entire classes? I didn't understand your question. It ain't much code, thoug
 
user1182183
srsly I'm going to sue realtek ;O
 
I only use .cpp + .h's
no libraries, besides SDL, which's code I do not see
 
right
 
user1182183
they write bad software, they should feel bad
 
12:13 AM
firstly
OMGWTF global variable? the goggles, they do nothing.
 
@GigaBass perhaps a zip or at gith. Yeah, nothing wrong with the code shown (except, smelly globals)
 
secondly, comments in a non-English language? not good.
 
Ell
Ahh good
 
@DeadMG I didn't see them. I only look at code
 
I didn't use any global variables, I tried to cram the less code I thought was possible to show you the issue. I'll put a zip with all the .h and .cpp then?
 
12:14 AM
nah
if you didn't really use a global then that's fine.
wait.
char*?
 
char* for strings, yes
 
I smell Rule of Three/Five/Zero violation.
2
 
thewut?
 
@GigaBass Don't.
 
@GigaBass How you know container of objects is empty?
 
12:15 AM
when you push back into the vector, you are making a copy. If your class uses shitty, worthless char* strings, and you did not correctly handle ownership of them, then it will explode when this happens.
 
@DeadMG Me too.
 
Because I'm printing at every display() cycle in my main, how many objects each has
What's the Three Five Zero? Never heard of
googling
 
you'll get more for Rule of Three
it's just that in C++11, it might also be the Rule of Four, or Five, or Zero, depending on who you ask and what you're doing.
but definitely not one or two
 
haha I found out a song's lyrics, interesting.
 
user1182183
I like rule #69
 
12:17 AM
I'll look for rule of three then
 
btw
 
@GigaBass How your container declared, acually?
 
@sbi, did you ever consider attempting to use Clang to compile GCC-compatible object files? You could compile most of your app with Clang 3.1, tasty new C++11 features, and then just link them with your vendor-provided GCC. Clang is explicitly set up for this scenario.
 
My vectors, you mean? Was on it already, Sehe
I use using namespace std;, and vector<Class> objectName;
 
Ell
12:20 AM
Ahh using namespace std, kill it with fire!
 
why? just not in headers/all over please
 
Ell
I don't know, I just see it as unnecessary
 
user1182183
 
user1182183
I deleted the old one
 
user1182183
it was way too bad
 
12:22 AM
@Ell std::vector<std::this<std::that::thing::stuff<std::that::other::thing>>> .... :)
 
wow I can't find where MSCV stored my .cpp's
 
@GigaBass Solution/Project/
 
user1182183
@GigaBass wut, project location?
 
@GamErix I suppose the volume control is discrete, probably at 255 increments. If it is too course for your goal, raise soundcard output gain, and reduce pre-amp/amp gain. That way, you'll get higher volume control resolution
 
Ell
@melak use a typedef :D
 
12:24 AM
@Ell bleh :D
 
@Ell you kill everything you think is unnecessary?
 
user1182183
@sehe reduce pre-amp / amp gain - eh?
 
@GigaBass Container is global? Declared in header file?
 
Yes, as private
oh right, it is global...
to the class. O_o
 
Ell
@sehe haha nah I was just kidding really, representing people which take general statements to the extreme
 
12:26 AM
@GamErix yup. it's classic audio mastering 101: keep the volume as high as possible until you are ready to mix it by reducing levels, gives you more to work with
@Ell no need here, we have plenty of that
 
@sehe I don't think he has an amp, unless I missed like half the discussion or so, which is quite possible :)
 
user1182183
@sehe you mean in equipment/hardware context? or software?
 
I can find PreEmptive Solutions, Solution, SolutionTemplates
 
@melak47 Is perfectly fine.
 
nothing with what I'm looking for... kill it all
 
12:27 AM
@melak47 what does he have then, I belive he just woke his neighbourhood, that's hard to do without the amp
@GamErix both
 
@sehe a subwoofer with stuck volume, or something :)
 
user1182183
@sehe yeah the volume control on my subwoofer is locked at 100% and if I wire a coil to it to lower it the bass is totally gone
 
find new subwoofer
 
where'd you rather have it upploaded @sehe
 
@GamErix you... wire a coil to it?
 
user1182183
12:28 AM
@DeadMG send me one : >
 
@GigaBass what do I care, as long as it is safe
 
wear headphones?
 
user1182183
@sehe yeah a coil has just enough resistance to reduce the signal
 
user1182183
@DeadMG you don't want more pictures of my laptop, do you remember the old ones I sent?
 
12:29 AM
@GamErix ?! a non-capacitive resistance (a.k.a not impedance) would be required
 
no, and why would they be relevant?
 
A capacitor has a tendency of acting as a high/low pass filter depending on the actual capacity.
 
user1182183
@DeadMG because last time you all were like : "SRSLY, GAM? WTF A USB CABLE FOR AUDIO OUTPUT?"
 
you can get USB headphones
 
Ell
@sehe really? Why? Isn't audio AC?
 
12:30 AM
@sehe
 
@GamErix wtf? USB for audio output? whyy
 
user1182183
@DeadMG then sound from my speaker will still play :D if I connect it, and it's custom wiring with custom female wiring too XDD
 
start tracking by main's spam of "addObject", and you can go down from there isntead of looking blindly.. just a suggestion
 
@Ell precisely. And therefore, you'll have to take frequency response into account
 
user1182183
@melak47 I was once mad and smashed my laptop, then the audio jack, and the plastic around it and a piece of the Mobo broke
 
12:31 AM
mad?
that's Hulk mad
smashing your laptop? >_>
 
@GamErix you don't just break stuff while fixing it, you also break it just because? :/
 
user1182183
@melak47 the jack didn't connect properly and when I wanted to hear some relaxing music it just made me mad because I couldn't XD
 
user1182183
every time I moved the laptop a bit I had to correct the jack ;F
 
do you even need a subwoofer? with all those tall speakers, surely some of those are full range?
 
user1182183
@melak47 few big ones, like 3-4 and 10 small 14x14x14 cm speakers
 
12:34 AM
@GigaBass are you using the right layer numbers to retrieve the objects supposedly added?
 
Ell
Why don't you fix the jack?
 
well, I'm iterating over ALL the objects
see Display(SDL_Surface* screen) on world.cpp
 
user1182183
@Ell fixed it but the connector which disabled the main speakers.. is gone from the motherboard
 
user1182183
so I was only left with the audio itself
 
user1182183
from the main speaker
 
12:35 AM
@GigaBass wokay
 
user1182183
so I took apart my laptop
 
user1182183
cut the main speaker cable
 
user1182183
connected a paralell female S-VIdeo plug
 
user1182183
mounted it outside the laptop
 
so happy you don't do my hardware
 
user1182183
12:36 AM
fixed the main speaker
 
user1182183
put everything back together
 
user1182183
and whenether I connect anything to the audio out
 
user1182183
the main speaker from the laptop keeps playing too :P
 
LOL
 
user1182183
but I won't hear that
 
12:37 AM
didn't you see the name of the .zip, @sehe
I said my life's work
 
user1182183
cuz most of the time
 
don't be too rough :<
 
user1182183
the subwoofer plays always louder than the speaker on each volume setting XD
 
ah, nevermind, thought that was directed at me, disregard
 
@GamErix just use your laptop's main speakers as a subwoofer :)
 
12:37 AM
@GigaBass I was addressing Gam
 
yeah I corrected myself, my bad
 
user1182183
@melak47 wtf? ;o
 
Ell
Just buy a new laptop :P
 
user1182183
@Ell oh please I barely can pay everything I need to pay
 
user1182183
if you have any ways to make quick money then okay
 
user1182183
12:39 AM
I can even take a deal and kill someone XD
 
user1182183
nah just kidding
 
user1182183
still wanna have fun time with my GF instead of mastrubating in the jail
 
Ell
Give hand jobs for crack and then sell the crack
 
^future businessman right there
 
@GigaBass why is your getObject returning by value? It's not even a const method
So, yes, your DrawObject is one big RuleOf-N violation
Return by reference, is likely what you wanted.
Fix the class by disabling copy/assignment
 
user1182183
12:51 AM
@sehe instead of money I have a brain, and I use it :P
 
user1182183
well, not always..
 
@GamErix cough
 
user1182183
emotions can disable it completely
 
@GigaBass, oh ahahahahaha. This doesn't work particularly well either:
void DrawObject::setName(char* name)
{
    name = name;
}
And so on for setID and others. What do you think that does? (Hint this->name = name;)
Everybody died? Why is anyone asking questions and then running away
 
I'm reading some blogs, for example, and waiting for interesting posts here.
 
user1182183
12:59 AM
I didn't run away but yes I feel this room is constantly a discussion like one talking others listening
 
@sehe Given my name, I'm almost scared to answer that one... :-)
 

« first day (814 days earlier)      last day (4136 days later) »