« first day (649 days earlier)      last day (4317 days later) » 

5:03 PM
0
Q: trying to follow Bucky tutorials

user1555458http://www.youtube.com/watch?v=OVfUq2DPKKg Hi can someone help me please tried to google and search site before asking error line 6 error: expected constructor destructor or type conversion before'(' >#include <iostream> >#include <cmath> >#include <stdlib.h> >#inc...

 
Yeah, I don't think that's going to end up too well.
I was about to post this: "Really? I get error: expected unqualified-id before '>' token"
 
@R.MartinhoFernandes Well, using .data() ;P
 
@ManofOneWay Does vector<bool> have that?
 
Oh, no it didn't :(
 
@R.MartinhoFernandes, Didn't see it in the cppreference list
 
5:06 PM
Right.
 
How come you know everything?
 
Did they have vector<bool>::data in C++03? Maybe that was it.
 
@ManofOneWay He's a robot, they know everything
Anyway, vector<bool> holds its data in bitfields, so it's not possible to let you address the underlying data directly (not as individual bits at least)
 
@chris It's not listed in the breaking changes, so I don't think that was it.
> USEFUL TIP: If you don't want to keep typing "using namespace std;" for all the functions you create, just write it once before (above or outside) the main() function and C++ will know that you want all the functions to have namespace std;
Oh gawd.
2
 
5:12 PM
Why would a vector of doubles throw sigabrt on destruction?
 
Sounds like UB.
 
@R.MartinhoFernandes, Denny what's his face?
Bucky*
 
	Wph	<5 items>	vector<double>
		[0]	10.750281685547618	double
		[1]	0.0053087812248281997	double
		[2]	4.2807534148705719e-08	double
		[3]	5.7427427663508097e-07	double
		[4]	0	double
 
all of the youtube videos related to programming suck
 
This is what GDB is showing me.
 
5:13 PM
except some university lectures i found
 
Ok, Bucky's video tutorials are not only crappy for being in video form, but the content is crap too. (I'm not surprised at all, but I had to check)
And honestly, "18 - The if else Statement" and then "19 - The if else if else Statement"?
 
btw, is there any way to make a .cpp run without a project in MSVS?
 
@chris you mean compile it?
 
That's the main reason I use C::B besides GCC, which I like a lot better now, so I'm wondering if it's possible there.
@Prætorian, Yeah
 
use cl.exe foo.cpp
 
5:15 PM
> [Testing completed. All tests passed (2060 assertions in 15 test cases)]
 
@Prætorian, Thanks, I'll keep that in mind. I hate having to create projects
since I rarely actually have a project compiling
 
Woot! Validation for the three UTF forms is working.
 
if you open up the visual studio command prompt it adds all the environment variables so cl can be found on the path.
 
@R.MartinhoFernandes don't brag
 
Don't have much time to really chat, but I have a new baby boy:
14
 
5:18 PM
@JerryCoffin Oh. Congratulations!
 
@JerryCoffin Congratulations!
 
Gotta feed the older kids lunch, and get them to visit momma and their new baby brother.
 
Thank you!
 
@JerryCoffin I'll have one of those myself in about a month
 
5:19 PM
@R.MartinhoFernandes I'll do my best...
 
lol someone corrected my standard reference, but was still 1 section off
 
Well, a girl, not a boy
 
@Prætorian Oh, cool. My congratulations, if somewhat prematurely.
Later all.
 
Thank you
 
@JerryCoffin Yeah congratulations man
 
5:20 PM
@JerryCoffin Congratulations!
 
@JerryCoffin Congratulations!
 
@JerryCoffin Good looking little guy! Go take care of that family!
 
> We are all very proud of our accomplishment in building this robot. It performs near flawlessly exactly as we intended and is utterly badass.
 
To clarify, this is saying you can't go like this?

union U {
int i;
double d;
};

U u;
u.i = 5;
std::cout << u.d; //here

When a value is stored in a member of an object of union type, the bytes of the object representation that do not correspond to that member but do correspond to other members take unspecified values.
 
You can't do that at least because that's a strict aliasing violation.
 
5:26 PM
btw, I'm trying to relate this to C. That's from the C11 draft
and the result you'd be expecting is the double representation of the int, but is that reference saying you can't?
 
Is this answer reasonable?
1
A: trying to follow Bucky tutorials

ChimeraAs Luchian said, move the function call into a scope .. in this case main. I have some other points. See the following code. #include <iostream> #include <cmath> #include <stdlib.h> #include <time.h> void myfun(int);//using own function void myfu...

 
@chris No, that paragraph says that if double is larger than int, the extra bytes have unspecified values.
 
@R.MartinhoFernandes I think I saw that on Gizmodo the other day
 
@R.MartinhoFernandes, Oh, right. That makes more sense reading it over like that.
 
0
Q: std::vector<double> destruction throws sigabrt

DriseI have a std::vector<double> In which GDB shows it containing these values: Wph <5 items> vector<double> [0] 10.750281685547618 double [1] 0.0053087812248281997 double [2] 4.2807534148705719e-08 double [3] 5.7427427663508097e-07 double [4...

 
5:30 PM
@Drise Told you before: there's UB somewhere. Hard to tell where without code.
 
@R.MartinhoFernandes Alright.
 
Either your vector was corrupted, or the heap was.
Do you have valgrind?
 
Af, stupid HTML scraping.
 
hooray for valgrind.
 
5:38 PM
@Flexo so many void *
 
What is the typical way ( if possible ) to have a constructor return a FAILURE indicator?
For example, I have a class that needs to do load resources in the constructor ( I would like it to do so anyway ) but it's going to be possible that loading the resources could fail. How is this typically handled?
Or should I ask on SO proper?
 
Throw an exception.
 
@CatPlusPlus Thanks Cat. I will look up how to use and throw exceptions.
 
throw, try { } catch, Boost.Exception.
 
@Flexo I want to upvote for effort, but I don't want to upvote that.
 
5:42 PM
Do I need Boost?
 
@R.MartinhoFernandes Yep.
 
@R.MartinhoFernandes Running. What exactly am I looking for?
 
Bugs.
 
Whatever errors valgrind spews.
 
5:44 PM
0
Q: Stupid error messages in C

Lu4I have a problem with compiling C application, the errors that are shown are senseless, I don't know where to start looking for a solution :( Here is the fullscreen screenshot: What might cause such error? Thank you in advance!

Stupid people blaming the compiler for their problems.
 
I see a bunch of invalid reads of size 8.
 
That means you're dereferencing some invalid pointer.
Check the line numbers it gives.
 
@chris Not really. MSVC is to blame for not supporting C99.
 
@Mysticial, touche
 
Can you please quote the reference which says this : "In C89/90 it is illegal to declare variables in the middle of the block". — Nawaz 4 mins ago
ARGH, people and GSQ.
 
5:53 PM
What are the advantages to using a scripting language for a game?
 
I might be getting crazy, for I see repwhores everywhere.
 
Do we lose rep by down voting a question?
 
@EtiennedeMartel Do you prefer being crazy or sad?
I can tell you the truth and make you sad, or lie and make you crazy.
@Chimera No.
 
@R.MartinhoFernandes Dunka
 
Why not just write the whole game in native code, and load the different parts dynamically with LoadLibrary and link them all to some game library?
 
5:54 PM
@R.MartinhoFernandes I think knowing the truth is better. Because I'll get over it eventually.
 
user784668
@R.MartinhoFernandes Tell both.
 
@EtiennedeMartel Well, you're not crazy.
@IDWMaster Ease of change. Simplified modding.
 
@R.MartinhoFernandes Ah. So, is Nawaz a repwhore?
 
@R.MartinhoFernandes Which language would be better for a FPS game? LUA, Javascript, or Python, and why?
JavaScript has comparable performance to LUA with the V8 engine
 
@EtiennedeMartel I'll just say I'm not fond of his antics.
@IDWMaster Oh, that I wouldn't know.
 
user784668
5:57 PM
@EtiennedeMartel Idiot? Yes. Repwhore? Dunno.
 
Also; what about scripting languages makes them easier?
 
@Fanael But how can he be an idiot with that much rep?
 
In terms of modding.
 
user784668
@EtiennedeMartel Ask him, I have no clue.
 
You don't have to bother compiling DLLs.
 
5:58 PM
@R.MartinhoFernandes Ahh. So most gamers have difficulty compiling DLLs?
 
user784668
@IDWMaster Most gamers don't know what "compiling" is.
3
 
Should I go through all of Bucky's tutorials and point out what he does wrong?
That could be fun, but I might get dumber.
 
@Fanael Ahhh.
How will games in Metro and other restricted platforms work?
Because stuff has to be compiled ahead of time for them.
VirtualProtect doesn't work
It's blocked in Metro
The first mention of Metro seems to have really quieted down this chat room.
 
Yep. Metro kills all the things.
 
@IDWMaster Same way that games are made on iOS, I suppose.
Statically link everything together and ship it.
 
6:13 PM
@Cheersandhth.-Alf I thought you knew what SSCCE is, because this acronym was used here for months. In any way, you easily could google it, but of course you didn't, as you didn't a SSCCE for your question, because you are "old dog" or something, and don't care about such silly stuff.
old dog, huh. like age gives you a privilege to be a moron.
 
you may continue chatting, I finished
 
Is it valid to call virtual function in destructor ?
 
yes, if you know that call won't be polymorphic
 
@SamDeHaan Should I even bother with Metro at this point?
If I choose to sell the game (kind of a hobby side-project now), would NOT using Metro make it more difficult to market?
 
No idea. I can't speak for the market.
 
6:21 PM
Nobody cares about Metro.
 
@CatPlusPlus Good.
 
If you want to target mobile, iOS and Android is 99% of the market.
 
@CatPlusPlus Just looking at Desktop platforms for now. Don't care about mobile.
 
Then nobody will ever care about Metro, because Metro is not for desktop.
 
I know a guy who knows a guy who heard a rumor about a guy having a Windows phone.
 
6:23 PM
Metro is part of a half-baked attempt to make an OS that can target both a PC and a tablet.
 
wow, that was weird
improved an edit to put a couple code blocks in
 
Nice to be at the gym at this hour
Not that crowded
 
Any tips for windows driver development??
 
noticed the other person pretty much fixed OP's problem in edit, so undid that, and then the code blocks disappeared too
 
You're chatting in a gym. You should get a medal.
 
6:25 PM
@ErBnAcharya Err, don't fuck up?
2
 
@ErBnAcharya Be VERY careful and use remote debugging when possible
Keep a backup in case you accidentally wipe your hard drive.
Well; depending on what type of driver you're writing.
 
@CatPlusPlus I just got back home
 
@ManofOneWay GOT IT. Look at the bottom at main and myfunc
 
You're not qualified for writing drivers and stop flagging dammit.
 
6:27 PM
@CatPlusPlus Who's flagging?
 
I could make an educated guess.
 
yaa. I cannot understand. I am developing a driver and it ask me to run remotely. I dont have remote desktop .. What to do?? @IDWMaster
 
Now I remember why I plonked that guy.
 
@ErBnAcharya I wasn't talking about Remote Desktop; I was referring to remote debugging.
 
6:28 PM
If you don't know how to use remote debugging yet, you probably shouldn't be writing drivers. (especially if you don't even know what it is)
 
@MooingDuck Sorry what? How is that code related to me?
 
Sorry. I was saying debugging..
 
yesterday, by Er Bn Acharya
I have got array of numbers [binary] and I want to convert to hexadecimal values. How can I do that.. ??
 
Umm, what?
 
6:29 PM
I have to write a callout driver..
 
Nuff said.
 
The video's like 10 seconds btw
 
@ManofOneWay oh, you're not chimera
@ManofOneWay I saw a red logo and jumped the gun
 
@MooingDuck I see :)
 
@ManofOneWay you can see why I lose my mind when people change their avatars :D
 
6:30 PM
@ErBnAcharya Why does it "HAVE" to be a driver?
 
@IDWMaster . I am using Windows Filtering Platform..
 
@ErBnAcharya What version of the Windows Driver Kit are you using?
 
@MooingDuck Well I had to switch to a picture of Scott Meyers. He's my idol
 
Do you know what IRQL is?
 
6:33 PM
@ErBnAcharya So I'm assuming you're using Visual Studio 2012?
 
yup..
 
@ErBnAcharya Did you read the documentation yet? (msdn.microsoft.com/en-us/library/windows/hardware/…)
 
Who reads documentation.
@MooingDuck As if you were not guilty of changing avatars.
 
@R.MartinhoFernandes Anybody who's learning how to write drivers for Windows.
 
Writing drivers using API reference will be a hilarious disaster.
 
6:35 PM
@R.MartinhoFernandes pft, I don't know what you're talking about
 
I have read some of these. But I didnt understood where to start.. [for coding]
 
@Chimera: With the code I gave you, note that to return a unique_ptr from a function, it actually returns a move_unique_ptr instead.
 
@ErBnAcharya If you're new to driver development; maybe rather than starting directly with networking, you should start with this simple tutorial
Unless @CatPlusPlus has a better idea.
 
@R.MartinhoFernandes You got some conversation going on with STL right? You should try to convince him to join the lounge !
 
Stop writing drivers and come back in 5 years.
 
6:37 PM
Woot, Popular Question badge.
24
Q: Why should I buy a barrel of blood?

R. Martinho FernandesI just noticed a dwarven caravan brought about a dozen barrels of blood from various sources, and a few barrels of ichor too. What's the use of this? If there's any, how can I "collect" the blood from my victims?

 
fuck your shit, I do PHP
and wtf was that
 
@ManofOneWay No, not really.
 
If you're intent on writing kernel-mode drivers
make sure that you have at least two computers --- one for development and one for testing.
 
I should start playing Dwarf Fortress. I'll probably suck at first though.
 
@IDWMaster . I tried it and while debugging it says. driver must be deployed on target computer to work... Which means I need 2 computers or I can us Virtual Box.. ??
 
6:40 PM
@ErBnAcharya You could use VirtualBox, just make sure your VM has Windows on it.
And Visual Studio
 
@MooingDuck Wow excellent thank you!
 
@ErBnAcharya Doesn't your company have any dedicated computers for driver testing?
 
@MooingDuck Ok I will figure out how to use this code in my CairoImage class.. :-)
 
Dwarf fortress looks dead boring
 
6:42 PM
Your loss.
 
@ManofOneWay I was a big SimCity 2000 player back when I was a kid. I like boring stuff.
Damn youuuuu.
 
@IDWMaster . I am a graduate student. And I am using this for my minor project.. So I only have one pc with windows..
 
@ErBnAcharya Could you use something like the Wireshark API instead?
Ahhh. WinPCap comes with WireShark.
Has a really nice API for packet interception.
 
I've been thinking about designing some sort of space colony building game. Essentially SimCity IN SPACE.
 
@IDWMaster wireshark api couldnt help. I am trying to create a firewall type app
 
6:44 PM
@EtiennedeMartel Needs link.
 
WireShark is only for packet viewing..
 
@ErBnAcharya You can also transmit packets
Something that isn't well-known about Wireshark
You could theoretically use it as a means of firewalling.
I've used the APIs for ARP spoofing before
 
I think there's a niche in the market for a city building game that is not a freemium Facebook title.
 
Yes. But We cannot destroy packet .. using it..
 
@ErBnAcharya You could interfere with the transmission though, and effectively break the connection if it uses a known protocol like TCP for example.
Send a RESET packet
 
6:46 PM
I tried WinPcap api in c# .. But it couldnt help..
 
@ErBnAcharya Another thing; learn C++ before trying to write a driver. It seems like you're trying to take on way more than what you can handle at your current level of experience.
 
The Humble Music Bundle? What?
 
I have studied c++ in my 2nd year and C in my 1st year.. so I can understand it..
 
@ErBnAcharya Just understand it; or understand it in depth enough to write a driver?
 
and I have already accomplished target without using driver. But I like to learn driver development..
 
6:48 PM
Hello all :-)
// please dont yell i am forced for using TurboC 3.1
and i am wondering how do i passs infinite many arguments in a function without having to declare each and every variable or array
much like printf("Hoha %d %d",i,j); // you can put an number of arguments here
 
@Abhishek Variadic templates. But that's a C++11 feature.
 
google varargs
 
Oh, that as well.
 
Varargs are fucked up, btw. Don't tell you weren't warned.
 
@IDWMaster . I think I have to do more understanding for driver then ever..
 
6:50 PM
don't worry, I'm sure it will work out great.
 
@R.MartinhoFernandes If he's in C, he's already fucked up.
 
I guess nobody was home in the C chat.
 
@ErBnAcharya And for debugging; you will need two computers, one of which could be virtual, but it's usually best to have two physical computers.
 
@EtiennedeMartel thanks
 
You should totally debug the physical machine with a VM. That sounds fun.
 
6:51 PM
Problem to that is I have 2 macs but only one windows.. @IDWMaster ..
 
@R.MartinhoFernandes i am fucked already i am having to use Turbo C
 
@ErBnAcharya Ohhhhh. Bad Apples............
 
3.1 the compiler thats been outdated ages.
 
Good luck and have fun! :)
 
6:52 PM
You might want to consider purchasing another PC
 
@Abhishek Why do you absolutely have to use that?
 
Trying to earn some money for that..
 
He's a masochist. His mistress doubles as his project manager.
 
@EtiennedeMartel A course :P and my college
 
@EtiennedeMartel School.
 
6:53 PM
I think I can manage with my team member.. @IDWMaster
 
What is it with India and crappy outdated compilers?
 
@ErBnAcharya maybe you should look for a cheap junk computer for when you break it.
 
Break what??
 
the computer.
 
@ErBnAcharya You are trying to do something useful, for this you require a proper computer, and a mouse with more than one button. Ask a parent to help you buy one.
 
6:55 PM
How?
ok
 
wow.
 
@Fanael But gamers probably know about compilations ;)
 
@IDWMaster Have you done driver programming.? I want to ask If DriverEntry is the function which is called automatically and at first??
 
@EtiennedeMartel Our education system
Our shit education system
 
@ErBnAcharya Yes, DriverEntry is called automatically when the driver is initialized.
 
6:58 PM
ok
 
they teach C [ not even c99 ] the good old C as industrial training , tell us ASM is still used . and we should learn Java its the best language
 
@Abhishek TurboC 3.1, really? YELL YELL YELL!
 
@FredOverflow If i could i would have undoubtebly used Gcc :P
 
@Abhishek There is no such thing as "the best language".
92
Q: Why can't there be an "ultimate" programming language?

subThere is an uncountable sum of programming languages out there. They obviously all have their pro's and con's - but why can't there be one to "beat them all"? The main part of a programming language is its syntax and what's possible with it. The rest are usually only a bunch of libraries, framew...

 
@FredOverflow i know :P
bt cant debate with my tutors :-(
 
6:59 PM
I can finally talk here. :D
 

« first day (649 days earlier)      last day (4317 days later) »