~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Hehe so why do you think those illegal groups who rip softwares are born..because of the very reason Chaky is stating. I also think that the base or the foundation should be made free or alteast a bit cheap so that each and every person can afford it.

The reason I think MS charges money for OS is that they think if OS were given out free to people they would end up using Open Source replacements for all MS products and they would be like going down.
THe main reason MS succeeds is that most of the people who buy PC's are ignorant of the fact that there is something like *Free* OS -- Linux and free as in beer. Most of the people are afraid to experiment and try out non MS products lest something should go wrong.
THe bottom line is that MS thrives purely due to publicity and excellent marketing and its contacts and more importantly the ignorance of the masses. The momet it will start to dawn on people what exactly Open Source is and there is world beyond MS, MS would have to do some deep thinking.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

My magic number is now 3

Huh whats going on ?

Postaholic

Reminds me of someone I know.....:cheesy:

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

No. http://www.daniweb.com/techtalkforums/thread59169.html

But Miss Dani didnt even reply in that thread. So whats the point in supporting when she didnt comment on your effort ? Maybe she is fed up of too many suggestions or maybe a lot of money has gone into it to change it or maybe the cost or some more hidden reason.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

@sos: I don't know much about this but I remember having seen some common reasons for that are 1.) max number of connections (browser) 2.) max number of connections (TCPIP.SYS) (is yours patched?) or 3.) wrong MTU and I just saw 4.) broken user CSS (whatever that means)

Hey there friend thanks a lot for your reply, but I dont think I have exceeded max connections of browser( I dont mess with default settings). And this problem is only with Daniweb so thats why I dont think a lot. And my CSS works fine for other sites. Dont know about points 2 and 3 but dont think that is the problem otherwise the effect would have been global. i.e. on all pages. Thanks again.

I still have allot to learn about just about everything.

Our entire life is a learning process so just carry on...:D

PS: Signing off now its 3.30 AM here. Bye .

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Java != Javascript

Java -- created by Sun Microsystems
Javascript -- created from EcmaScript and in no way related to Sun.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Edit: quite often I see little icon in my status bar saying "done, but with errors."

Yes, those are javascript errors. Double click on that icon and a window will pop up showing what errors are on that page regardign javascript syntax and all that. If you know Javascript , you would be able to understand most of what it is saying.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I don't know, perhaps you can ask dani to change it?

Naa already have asked alot of things from Miss Dani. Keep bugging here everyday with this and that... One more request and I surely would put her in rage mode.

I have. No support.

Was the suggestion via a PM ? IF so how are we supposed to support you? No thread as such related to C++ color schemes.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Why would you want to modify a memory loactions value that doesnt belong to you ? It would give you a runtime exception or if not then the bhaviour would be undefined.

BTW a workign code which "attempts" to do it and fails at it:

int main (void)
{
    int* p = 0x006587B8 ;
    *(p + 18 ) = 1 ;

     return(0);
}
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

What have you got so far ?

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Heaven knows we don't want any respect flowing around here

Two people wont cause an overflow.

Well, at least we'd get respect from someone!

Hmm.....

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Goto
Start -> Run -> sfc /scannow

Simple.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

"I am the god of hell fire -- and I bring you --- FIRE!"

Home made stuff ?

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Wish it were that intelligent to answer that kind of question.....
Anyways will have to find a quick hack on my own.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Yes you can have NTFS on one partition and FAT32 on another though not a good thing -- go with NTFS only.

Still if your question is that can Win ME and Win XP coexist the answer is yes. You can have both of them on the same HDD.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Is it just me or is dat syntax highlighting really bad. That bright blue is annoying. Yucky.

Ditto here, it makes my eyes hurt. Dont know how this color got approved.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

But why does it happen sometimes.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

1st, IMAO you do not have to post the entire program, just the piece you are trying to fix, as you did.

thanks, I didn't see the point in posting the entire code either but I was trying to be cooperative,

Hmm....

Anyways gettign back to the topic, when you say it doesnt work, why dont you tell us exactly what kind of output are you expecting, what output are you currently getting, what kind of sample data are you supplying to your program. The function on the surface looks fine... just a random thought, try replacing the != 0 with > 0 in the while loop.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I dont know but I get all sort of issues which no one has experienced while browsing Daniweb.

Here is a new one which I am attaching right now. It occurs sometimes not frequently, but nonetheless thought would let you know.

Hope you can find what is causing such things.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

If you use C++ strings your life would be much simpler coz then you can do something like:

#include <string> 
 
const std::string whiteSpaces( " \f\n\r\t\v" ); 
 
void trimRight( std::string& str, 
       const std::string& trimChars = whiteSpaces ) 
 { 
    std::string::size_type pos = str.find_last_not_of( trimChars ); 
    str.erase( pos + 1 ); 
 
} 
 

void trimLeft( std::string& str, 
       const std::string& trimChars = whiteSpaces ) 
 { 
    std::string::size_type pos = str.find_first_not_of( trimChars ); 
    str.erase( 0, pos ); 
 } 
 

void trim( std::string& str, const std::string& trimChars = whiteSpaces ) 
 { 
    trimRight( str, trimChars ); 
    trimLeft( str, trimChars ); 
 }
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

That applies here too for children -- parents teach (or should) children to respect their elders. But after children grow into adulthood they normally drop the Mr because they are considered to be at nearly the same level.

I dont think there is any sort of level as such when you are talking to a man born in 1943 (even before the independence of our country :D )

Greate game from Blizzard -- that is where I picked up my
handle about 10 years ago. I still play it often.

Yeah great game, if you still looking for something like that try Neverwniter Nights (awesome RPG )

as long as its something like "Sir Dragon" and not "Mr Dragon Sir". "Sir Dragon" shounds more royal.

Naa I aint that dumb :p

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

People who are called Mr. usually are the CEO or a company or a manager or supervisor who are preceived by many employees as doing nothing. Afterall, it is the employees that do all the work, while supervisors just stand around watching.

The reason me and Vishesh call you Mr. is because it has a different meaning in our country. Here we use the title Sir or Mr. to a person who is more knowledgable than us or as a means of giving respect.

That one I like

Approved !! BTW the newbies would be in a bit of shock when I start calling you and Mr. WaltP "Sir" :cheesy:

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Please, Please drop the "Mr." Someone told me once a long long time ago "I'm not a Mr. -- I have to work for a living".

I fail to understand what is the logic behind this...:!: BTW how about Sir Dragon ?:D

Yep. True. It is annoying.

Looks like another infraction is on the way....:twisted:

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Actually, it's feof() that's the problem. EOF is a good thing to use, it just has to be used with a function that returns it... which fgets() does not...

Yeah looks like I am desperate need of eyeglasses.

Now back to topic::

Please post your entire code when you update your code.
BTW where have you initialized "fname" variable.

Also if you want to read in entire line from a file, you need to use fgets( ) .

int longest(void)

{
    char line[BUFSIZE] = {'\0'} ;
    int counter=0;
    int longest=0;
    char fname[128];
    FILE *file;
    
    file=fopen( fname,"r" );
    while (fgets( line, BUFSIZE, file )!=0)
    {
// after reading using fgets( ) you need to remove the '\n' at the 
// end of the string or subtract 1 from the strlen( ) result since it will
// always include a '\n'
      counter=strlen(line);
      if(counter>longest)
      {
         longest=counter;
       }
    }
    return longest; 
}
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You mean you liked that evil dragon? I don't think it suits me at all. I may be cranky and absent-minded at times, but never evil.

Naa you are not evil. That avatar just tells us how mature you are in this field. But still it depends on the way you look at things so maybe if you think that the prev one looked evil then....

Wait til they read my profile and find out hold young I really am

Hehe not many beginnners read profiles so there is slick chance they would be cleared of their doubts regarding you :cheesy:

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Maybe tomorrow, k?

Ahem.. I hope you have not forgotten this promise Miss Dani ?

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

As far as why not to use EOF is concerned, simple it reads the data from the file one too many times. For detailed explanation, see an excellent tuts by Mr.WaltP and if possible read all of them , they are good.

And btw, where are you opening the file which is passed to the "longest( ) " function. If you are opening it somewhere else then post the entire code.

If you are not opening the "file" stream, then thats what is causing the crash. Before using the file stream you have to open it like:

FILE* fp = NULL ;
fp = fopen( "hello.txt", "r" ) ;
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

God knows how many hours I've spent on that.....

BTW what is so good about this game. I haven't even seen it but heard that it really is famous game.
Why do people love it so much ?

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Maybe tomorrow, k?

Hmmmmm................

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

The bottom line is that in whichever function you require to access the "round" variable from main( ) you need to pass round to that function.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

If you callign the correct( ) function in main( ) which has the variable "round" you can do something like:

void correct( int i, int round )
{
   // do whatever you want 
}

// In main
correct( i, round ) ;

Though I dont know what you are tryign to achieve here( i havent followed the thread closely) maybe the above thing shoud be helpful to you..

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

EIther you can put this code in main itself or can pass the variable "round" to the function. It says undefined since the variable "round" is out of scope of the function.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I did and it doesn't. New code below

Dont you think you are forgetting something... as in what to ignore.:cheesy:

int main(int argc, char* argv[])
{
    int a;
    cout << "enter something ...";
    cin >> a;
    cout << "you entered " << a << endl;
    std::cin.clear();
// never gets past the next line...coz you didnt specify what to ignore

     std::cin.ignore(std::numeric_limits<streamsize>::max(), '\n' );
    cout << "\nenter something else";
    cin >> a;
    cout << "a = " << a << endl;

    return 0;
}
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Try putting cin.clear( ) before the cin.ignore( ) stmt and see if it works...

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

For getting the address of a process in linux see here

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Hehe funny...

:mrgreen:

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Dont know whether you have seen this already, but the matter here looks good.

http://linuxgazette.net/issue81/sandeep.html
http://www.linuxjournal.com/article/6210

Hope it helped, bye.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

what is this MR-green stuff?
what does it mean

Huh.. what you talking about ?
Who / where is Mr. Green ?

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Just declare an array of characters. I think 512 should suffice for your purpose.

char buffer[BUFSIZ] = {'\0'} ;
fgets( buffer, BUFSIZ, stdin ) ;
// here BUFSIZ is a macro which is defined as 512
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Now that we are talking about icons, don't you like Dragon's old avatar better? The current one is too cute for a dragon.

Yeah it must really be confusing the newbies..

They must be thinking that the person with I think Bam Bam as an avatar would be a 12 year old kid and then would get shocked seeing that this 12 year kid was a moderator...:eek:

BTW Mr. Dragon, your second avatar, the Dragon revamped was much better, it suited you more. :cheesy:

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Yes I know, the one started by Vishesh.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Please post your code so that we can render our help more effectively.

And btw as far as my knowledge goes, arrays are by default passed by reference in C / C++, keeping in mind that passing a huge chunk of data strucutre (array) can result in a greater overhead.

Still post your code and then we will see...

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Oh poo! I was just about to go play The Sims. Do I have to spend today coding a notification via PM script for the code snippets? :) Maybe tomorrow, k?

You do know, btw, that you can easily see all code snippets you've written: http://www.daniweb.com/code/coder85533.html
And you can sort all of your code snippets by the number of comments they have, etc. While I'm at it, I'll add a "recently commented on" sort by link.

Yeah I know all that but still a notification by PM is what I actuallly think would be really nice for me.

PS: Come on there are better games out there:mrgreen: . Why not try the "Painkilller" :twisted:

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Hey I was wondering why isnt there a notification by PM policy whenever someone comments or whenever your code snippet is modified.

This way it would be easier for me to fix bugs if someone comments on my code saying it doesnt work for so and so condition.

Also it will keep the OP of the snippet well aware of what kind of comments his code snippet is getting and make him post more snippets if his code is getting good feedback.

In all I really feel a need for this thing since I recently saw that one of my code snippet has 4 comments and I didnt even know about it.

Your thoughts ?

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

on another note does anyone here know if there is, or will ever be plans for a PDA compatible daniweb? probably not as the small screen may not be able to accomidate the banner adds but anyway, all the java etc runs fine, its just that theres an awlful lot of scrolling involved with the current onw when viewed on PDA's

Hm.. dont know, if you know about this or not but you can change the view of Daniweb by selecting the different options at the right hand corner of the screen which says "DISPLAY MODES".

There are three modes supported -- Linear mode (which you must be having ). Try out the other two -- threaded mode and linear mode which will not display all the enteries but only a single post and you can then click on the post which you want to view.

Makes the viewable area much smaller.

Hope it helped , bye.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Thanks proliant fan for the read.

Our moderators have played a huge role in the development of the site. Without them, I don’t know where we’d be.

I’m so lucky to have such a great team of moderators who take the burden off of constantly keeping up with the community.

Without the dedication and help of our members and moderators, we wouldn’t be where we are today.

Ah... feels so good to know..:D

Anyways great interview Miss Dani, now I have come to know a bit more about you.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Problem with this program is that it creates a temporary matrix C in the function operator+ . This Matrix C calls the destructor before its value can be returned to the matrix, i want to store the result into. Because of this, the program stores random values when matrices are added. I can not remove the destructor because I must release the memory alloted to the temporary matrix C else the total memory is exhausted. I also tried to release the memory in another function but I dont know how & where to call this function. Can somebody please suggest some solution to my problem? :sad:

Post your entire code along with main( ). Also your code doesnt compile properly. First make your code compilable and then post.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Your vision must be very keen indeed;

Thank you. :cheesy:

I wonder why some ppl dream in Black and white?? Is it cause thier subconcious mind doesnt know color??

Naa mine and Wolfpack's subconcious minds are just color blind. :cheesy:

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Wear your glasses to bed then. :rolleyes:

I have a perfect hawk eyed vision :D

I've heard if you dream in color you're insane. Says a lot about the people here. If you only dream in black and white, you should be banned!!!:twisted:

...which I already am. ( my title says it all )

PS: BTW Mr. WaltP you have an excellent and awesome avatar there, unparalled. Kudos to the one who made it ( dont tell me it was you :eek:)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You have Winter in India? :eek:.
Which part of India do you live in?

Err... by winter I actually mean the winter season. BTW I live in Mumbai the financial capital of India. Here there is no such thing like snow like you are thinking. Only the cool wind blowing and the pleasant weather. But in my native place..yes there are hailstorms and it snows a lot.

And Aishwarya Rai. *sigh*

Hmm... looks like you have earned yourself a kick from your girlfriend.:cheesy:

And just to let you know she is getting married to Abishek Bacchan so just sit back, relax and enjoy a cup of tea with your girlie....;)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I We get a lot of tornados that time of year, but I just ignore them. No hurricanes, and only an occasional earth quake (every 10 years or so).

Err... pretty exciting life you have Mr. Dragon, hurricanes, earthquakes..
Looks like mother nature really loves you... :D