| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Comments:
<0> jottinger the search engine is C++ and some very old (about to be upgraded) C <1> vawjrwrk: do you know anything about bigpharmanews.co.uk? <2> not in the package - i already had them from years ago <0> jottinger not yet <1> vawjrwrk: *nod* <3> ok lots of free sat out there...like red hot 'n' duthch :) <1> it's a news site for pharms, as you might judge <2> nah, the porn on their is crap :-) <4> As far as UI goes I think people use .NET more than MFC now. <0> jottinger they don't have a website using that name <1> vawjrwrk: hmm, I wonder what happened to it <2> dwork, yes as far as advertised jobs go, .net/forms are the most popular thing <0> I tried what you posted and www. <1> hmm, he might have shut it down <1> yeah, I see <1> I used to host it for the guy who ran it
<1> he moved it off and apparently shut it down <5> sounds remarkably like a spam site <2> hmm, have MS ***igned a special meaning to ^ when using C++ with .net? <5> In C++/CLI, yes <5> ^ is a gc reference <5> i.e. a reference to a type on the managed heap <5> I think they call then "handles" <2> hmm, i think i'm going to install VC8 to play with this stuff <5> just to overload that term *even more*, which is surely needs <5> good idea. Come visit us in #c++/cli if you want more info :0 <5> :) <3> the c++/cli is a huge improvement over mc++ <2> I never got round to playing with mc++ either <3> an abomination it was <6> greetings <0> howdies <6> how you doing? <0> well, it looks like i forgot to put some stuff in cvs, so a little distracted <6> ;) <6> could i maybe have a few minutes with you, when you arent? <0> read the topic <6> oh right, sorry. <6> could i pm you tho/ <6> ? <3> wtf do you want? <6> who's talking to you? <3> see topic or go away <0> Guest67184 this is a public help channel, it's presumed that if you have a problem that you'll want as many eyes on it as possible <3> i guess he just wants to have babies with you... <0> not gonna happen <3> its a miracle <6> atleast i wasnt being a ****head...i asked nicely, didnt i? your tone isnt appreciated, bealtine <2> Guest67184, had you "just asked" there wouldn't have been a problem <0> your tone isn't appreaciated either <0> "who's talking to you" isn't exactly polite <0> so you gonna ask something? or post something?? <6> and 'wtf do you want' is? <0> doesn't matter <0> are you gonna get to the ****ing point <3> moron <7> ****ing hurricane out again <7> stupid wind god <7> makes a horrendous noise that i can hear in the master bedroom as the wind p***es through the external exhaust vent of the gas fireplace in the room below <7> has to be gusting 40-50 mph out <3> we had a little beatie last night too... <1> peterhu: where are you, geographically? <7> leesburg, virginia <7> who slashdotted slashdot <8> guys, what's the best way to search for a string in a binary ifstream? <9> >_> <8> >>? <10> Define 'best' <8> faster <8> I need the position of some string <10> Is the string you look for also binary? Or is it ascii? <8> binary <10> Is there anything known about the frequency of occuring values? <8> yes, once <10> of characters I meant. <8> the whole string apears only once in the whole file
<10> If you know nothing special about the data, then there is no trick. <10> just read the file and search for the first character :/, if you find it, check the next character etc. <0> boyer-moore might give you a faster search <8> boyer-moore? <0> do a search <8> ok, thanks <2> sk8ing: http://en.wikipedia.org/wiki/Boyer-Moore_string_search_algorithm <8> to both of you <10> But if for example you look for a long ascii string in a random file, then I'd skip bytes. Say the length is 16 chars, then I'd just check every 16 bytes and only really start to look when I find two ascii values (then look between them too). <8> Run, this is a better solution... but the string is not that long unfortunatly... <8> I'll go with the slower algo <0> sk8ing the longer the string, the faster boyer-moor is <0> err, boyer-moore <0> how long is the "string" ? <8> 6 chars <8> with the ending 0... 7 <10> ending 0?? <10> You said it was binary! <8> it has an ending 0 <10> normally only printable text ends in a 0 <8> I know <10> if it's binary there can be a 0 anywhere, so what use is the terminating 0? <8> I haven't sleep in 30-40 hours a bit.. it's a 7 chars string with an endig 0 <8> *ending <10> Anyway... your main problem is reading the data imho, not searching it. <10> yeah, and next you tell me it's aligned too. <8> do you think I can't read a fstream? come on... <8> I have to search 9999 files for this string <8> and modify it <8> that's the problem <0> getting some sleep sounds like a good idea <8> lol <8> I know <8> :) <0> overall it's likely to take you less time <10> If you really need it video-driver-fast, then you should get the streambuf pointers and use an ***embly instruction to look for the 0 byte, and then test if the string is there. special cases for when that wraps a buffer boundary. Lots and lots of work. <10> But you don't need that speed. Just read the file char by char, test the first char etc. <8> I'll do it this way for now, thanks <11> I am having problems with an Embest JTAG Flash Programming software for my chipset, do you have experience with this? <0> I've only used the AVR programming stuff <10> vawjrwrk: you know spirit a bit? How can I match a RULE zero or one time? <10> zero or more times would be: *RULE <0> yeah, the kleene star goes at the beginning <0> it might need *(RULE) but I don't recall for sure <10> (RULE | nothing_p) ? <0> sorry <0> missed the 0 or 1 <0> I thought they had a special thing for that since it's so common <0> called "optional" iirc <10> docs have no idex :( <2> well it should be ?, but I don't think that can work :-) <10> Ah, found it. <10> !RULE <0> http://www.boost.org/libs/spirit/doc/operators.html <0> yeah, you found it <0> peterhu do you know of a way to "add" some search paths (for includes) for a single solution? <10> I now have this: http://www.rafb.net/paste/results/6zPC3037.html <7> create a project property sheet in the property manager, set the property on it, right click on the solution node and select "add existing property sheet", select the created property sheet <7> should affect all c++ projects <10> I hope that is correct... it would help to have real parsing rules for C++ :) <0> I was lucky when I had a project to use Spirit.. I managed to find an EBNF description of the language (Matlab) <12> is there a way i can change the word length or create my own integer data type to be 256 bytes or anything like that? <0> mltngpot write your own cl*** <7> (btw, you create a new property sheet on a particular project first, store the property sheet in a common path, and then ***ociate the solution with the property sheet) <0> peterhu where's the property manager? <12> vaw: so i basically need to write a whole new math library then? <7> note that as you add new projects, you'll have to ***ociate them with the property sheet <7> View -> Property Manager <7> oh wait, i forgot, there is no solution node <7> you multi-select all the projects <7> sorry <0> ok, thanks <7> to edit the property sheet, double click it's node in the property manager <0> doesn't MS _ever_ think in terms of hierarchical files?
Return to
#c++ or Go to some related
logs:
#MissKitten #linux #networking #linux zimablue
#teens #php sold your ass to the devil mysql Data truncated load #gentoo
|
|