@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18



Comments:

<0> hashing only part of the file seems almost pointless
<1> well, im not using it for returning the entire file's hash
<1> it is an integrity type database app
<0> and I suspect it would depend on how much of the file you ARE going to process
<1> i need to process the PE header to start... would it be best to use subsequent ReadFiles calls, reading a chunk at the begining of the exe (to encapsulate the pe header) then getting the entrypoint, reading some more there....
<0> who cares?
<0> just "do it"
<1> hmm... i guess benchmarking it post-implementation would work :)
<1> the win32 api readfile?
<0> I don't use OS specific calls when there are standard ones
<1> well, readfile is faster than the bare C++ ones
<1> when only coding for windows
<0> if you say so
<2> CPPMan.. faster than scanf ? :)
<3> who cares how fast it is



<1> speed matters a lot
<3> why?
<1> when making a memory intensive+disk intensive app.. it is very important
<2> rdragon it seems to me that you never won a programming contest. :)
<3> i've never looked at programming as a sport, flachi
<3> CPPMan - it's only important if its too slow
<1> well, its much better to make highly optimized code than throw together some crap
<0> scanf? geezus
<0> how sues scanf these days
<3> highly optimized code usually looks like crap
<0> CPPMan only if it works
<4> how sues?
<1> well, why would you use unworking code?
<3> that's an odd question
<1> [17:04] <@vawjrwrk> CPPMan only if it works
<2> and it is not a sport... I bet you don't know any cl***ic algorithms or other thinky things like these :)
<0> that it works with your current compiler is not all that intersting
<3> flachi - who cares? programming is my job, I don't care about winning trophies, I care about making a career
<1> well, ill look on MSDN - getting no where here :) ciao!
<0> flachi you'd lose the bet
<0> silly person
<2> I am talking about rdragon not about you vawAFKhome
<2> I am talking about rdragon not about you vawjrwrk
<3> probably a linux junkie, too
<0> I'm talking about rdragon also
<5> how would one limit user input?
<3> Cuumark first you have to describe what 'limit' means
<5> oh sorry
<5> I only want them to enter 9 numbers.
<2> rdragon would never be able to tell what is an AVL Tree for example... I mean... without googleing
<5> and they're stored in one variable
<0> flachi and who cares? std::map womps it
<2> lol
<3> flachi you're right, i haven't a clue
<3> so, what does that prove?
<5> maybe flachi was crushed under the weight of his 'ego'
<2> programming is not simply a writing code job... you should know what you write
<3> I do know what I write
<3> hey vawjrwrk if I end up moving to Seattle I'll be driving past / through WY - so we'll have to catch up for lunch/dinner
<5> anyway, I want the user to only enter 9 numbers, which are stored in one variable. For example: cin >> userInput.limit(9) or something like that
<2> like using the qsort function from stdlib.h (I think)... and you don't even know how is that working... that's the way you know what you are writing ?
<2> or you don't use qsort, a bubble sort is enough for you :))
<3> flachi why would I use something from stdlib.h? i'm not a C programmer
<5> ./kick flachi?
<3> and I have a vague idea about what quicksort is, however I also have an idea that std::sort is generally better performing, and until it's slow, there's no reason for me to reasearch alternates
<3> however I am pretty resourceful and if it's out there, I can find out how it works
<3> like einstein said - "Why should I memorize something when I know where to find it?"
<3> not sure if that's the actual quote
<2> rdragon that is because std::sort is using qsort... you don't have to research for alternates because there are no other better algorithms except HeapSort but they have the same complexity (n*log2(n))
<3> flachi - and how does that information help me develop well designed, maintainable, robust software?
<3> it's an implementation detail that doesn't need to be worried about unless there's a good reason
<6> with recursive functions...a whole new copy is made of the function, right? So no variable values are shared?
<2> does speed and effeciency mean nothing for you
<2> ?
<3> Swidd_Art a function does not get copied when it's called
<5> okay guys, can we stop arguing and actually help someone here?
<3> flachi - sure it does. when it's too slow and it needs to go faster
<0> flachi for one, std::sort beats the **** outta qsort
<3> and dinkumware's std::sort in vc8 looks like it uses quicksort, heapsort, and insertion sort, depending
<6> rdragon, okay, but I can consider all variables inside the recursive functions to be private and byVal at the moment the function is called by itself?
<7> flachi, quicksort is not a stable sort, it can get as bad as O(n^2)



<0> maybe you should leanr stuff about C++ before you stry to show of yoru ancient C knowledge
<2> cn28h yes, when you have the array already sorted
<0> and you're wrong flachi std::sort does NOT use qsort
<5> alright, you guys are of no help what so ever
<7> Cuumark, what was your question?
<3> sorry, guess your question got lost in the shuffle heh
<0> Cuumark you haven't mentioned what you want to limit to 9 digits
<2> then what algorithm does it use ? :)
<0> is ti a real ****ing number? or is it a string
<3> flachi I just told you
<5> yeah i have
<0> gsort is a function in the c library
<5> multiple times
<0> ok, then **** off
<5> just some userinput from a cin statement
<0> just some input
<0> arbitrary characters?
<0> or just digits
<5> for example (and this is psuedo code) cin >> userInput.length(9)
<0> and why are you concerned about 9 of them?
<5> digits
<5> because, it's the max length i'm allowing
<5> if the person goes over it can cause problems later on
<7> cin.getline() might be of interest
<0> well, if you want to make sure they're all digits and at most 9 of them you'll have to do it all yourself
<5> and keep in mind, i'm a very low level programmer.
<5> well, i'll ***ume they're all digits
<0> input a char, make sure it's a digit, count
<0> that's a very bad ***umption
<5> just want to limit the user's input to 9 keys
<5> it's not something that has to be pristine
<0> in what sense limit...there is NO way in standard C++ to make the system "beep" or whatevre when they type the 10th character
<5> i'll look into getline. Was my next gues anyway - thanks cn28h
<0> they can type as much as they want.... you'll have to decide what to do when they press enter
<7> np, mind you that will limite reading to 9 characters, but it woin't top the user from typing more (as vawAFKhome is getting at)
<7> hm
<5> okay
<7> heheh
<5> limit reading will work
<5> aweosme
<8> bye folks
<3> i'm off to cl*** - seeya
<7> later man
<5> bye
<0> you might want to look at what setw(n) does when inputting
<0> Microsoft should be ****ing nuked out of existance for making the vc8 control files the same name as the vc7 ones
<0> how the hell you supposed to migrate stuff
<0> what ****ing "innovation" do they have for sharing source between 7.x and 8.0 ?
<0> it's probably a good thing that Billy boy chickened out of coming here for a vacation, he might never have left
<9> haha you're pretty intense vawjrwrk
<0> I don't like incompetence
<0> and when it gets in my way, I _really_ don't like it
<9> vawjrwrk wasting somebody's time is a personal insult indeed
<0> indeed
<10> http://jewishworldreview.com/michelle/malkin02006.php3
<10> I like the first paragraph
<10> that's as far as I've gotten so far.
<0> it would be nice if she could get her fact straight... it was September
<10> yeah, I suppose that would be nice.
<10> I'll give her the benefit of the doubt and ***ume it was just a simple mistake
<10> but, whatever
<10> I liked the first paragraph
<10> the rest of it, well, it doesn't seem to be anything new.
<10> this whole thing is annoying
<10> I wish they would invade Europe
<0> I think the response to the amb***adors demanding the authors be punished should all be invited to witnes the event, then slap the authors hands, and put a 9mm round between the eyes of allteh ***holes "demanding" punishment
<10> this should be a wake up call
<10> but, I see a lot of people blaming the newspaper
<10> and, of course, the US
<10> our President wussed out on us
<0> nah, we should ****ing SHOOT the ****ers what want the paper censured or the artists punsihed


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #c++
or
Go to some related logs:

suse 10.1 pam_ldap
#skype
#windows
#AllNiteCafe
e2fsdump
_serenne_
tanjiani
canada28m
mili malart
#skype



Home  |  disclaimer  |  contact  |  submit quotes