How to find a sub-set of bytes in sequence of bytes.

I want to know if it's posible to find a sub-set in a sequence of bytes.
Let me explain me:
I have the following sequence of bytes
45 44 43 42 41 00 00 45 44 43 53 44 45 43 42 41 00 00
����������������� ��������������
And I want to know how many times the sub-set "45 44 43 42 41" is at that sequence, of course in this example the answer is two. I know that I can use and automata but I'm trying to find another solution.
-Daniel

zkropotkine wrote:
Hunter, thanks a lot a use my own algorith (an automata but very simple and manteinable one). The problem is that I evaluate your help as useful but at the end of the day your idea help me to resolve the problem. So if you wan't your "dukes" please put a new message in order to give you the dukes (I can't do that in your previous post).
Thanks everyone... again.Ha, I'm glad it was helpful. I'll tell you what, I just need one more point to get my yellow star, so how about you give me one, and split the rest between the other people who helped. :)

Similar Messages

  • How to find the materials set for forecasting in APO..?

    Dear Experts,
    Could anyone please help me out in letting me know how to find the materials set for forecasting in APO, BY either using pegid or by using matid & locid combinations...? Please help me out ASAP as Iam severly stuck at one place.
    Thanks in advance..
    Regards,
    Sanjay.

    Hi Sanjay,
         Please have a look at the table /SAPAPO/PEGKEY.
    If u have any questions in APO goto the APO forum and raise ur doubts.
    Thanks,
    Siva.

  • How to find out the SET PARAMETER ID for FB02 transaction

    hi masters,
    i m working on a alv report and in that i have to make a BELNR field as a interactive field. i m using the 'user command' for this.
    FORM user_command USING ucomm TYPE sy-ucomm
                        selfield TYPE slis_selfield.
      IF selfield-value IS NOT INITIAL.
        CASE selfield-fieldname.
          WHEN 'BELNR'.
            SET PARAMETER ID 'FBAS'  FIELD selfield-value.
            CALL TRANSACTION 'FB03' AND SKIP FIRST SCREEN.
          WHEN OTHERS.
            MESSAGE text-000 TYPE 'W'.
        ENDCASE.
      ENDIF.
    ENDFORM.                    "user_command
    i used this code using this. using this code my program goes to FB03 tc but it don't shows the data of BELNR what i was clicked. it always shows first BELNR no. in the table. plz anyone help me for this..
    the  SET PARAMETER ID 'FBAS'  i m using is right? if not plz suggest me how to find out correct one?

    Hi Vicky,
    To know the Parameter Id of any field in a transaction ,
    you just press F1 onthe particular field then in technical settings under Field data
    you can see the PARMATER ID.
    So if you check like this you can see 'BLN' as parameter id for Document number in FB03
    transaction
    Regards,
    Manoj Kumar P

  • How to find out sub site name from which sub site template is created - in solution gallery

    hi,
     i am having an issue in my "save site as a template". i have created  a subsite few weeks back with doc libs and  splists, disc.forum and  based on the template subsite I have created new subsites. now 
    as  per my new requirement i need to add new  doclibs and few columns in these doc lib. But I am unable to find which sub site was taken as a template.since i have many  subsites with different names, I forgott
    to make meaningful names, i gave some datetime for the templatesubsites,
    like project_27_jul_2pm,project_20_jul_7pm, etc etc.
    So would like to know, is it possible to find out from which subsite I have taken/prepared  the template subsite.
    any APIs are available or any power shell scripts. such that i can find  out from which subsite i have created this  sub site template.

    check this
    http://social.msdn.microsoft.com/Forums/en-US/3c492adb-e7cb-4f5c-8c29-386a21c3498e/how-to-find-out-a-list-of-sites-created-from-a-template?forum=sharepointgeneralprevious

  • How to find which sub-vi is running in highlight execution mode?

    Hi there,
    It sometimes happens that while debugging you program you open a lot of sub-vis put probes in many places turn on highlight execution in dirrerent sub-vis and then forget to turn it off.
    You close all sub-vis and run software and it runs SLOOOOW. Then you need to go and find that sub-vi that runs in highlight execution mode.
    I was just wondering if there is an easy/automatic way find which vi has highlight execution mode turned on?
    Solved!
    Go to Solution.

    Here is a small utility to switch off Execution Highlight mode off all opened subvis. Drop it into the Project subfolder in the LabVIEW application folder, then restart LabVIEW. A new item "Stop Highlight mode..." will appear in the Tools menu. Enjoy !
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Stop Highlight Execution.vi ‏16 KB

  • How to find winddraw sub vi

    i have labveiw 7 and i have installed IMAQ 2.5.7 and found some IMAQ samples and trying to run and see what it does but some files like Winddraw sub vi or Windclose sub VI are missing i would like to see where i could find those sub vi's
    thanks

    Hi Leonitas,
    Thank you for posting on the National Instruments discussion forums.
    I have installed LabVIEW 7.0 on a test machine and attempted to install the NI-IMAQ 2.5 drivers, but these don't appear to be compatible with LabVIEW 7.0, so this may be the issue.  I did find that the NI-IMAQ 2.6 drivers are compatible with LabVIEW 7.0, so I would suggest you install these.  They are available to download here:
    http://joule.ni.com/nidu/cds/view/p/id/766/lang/en
    Please give these a try and post a reply if they do not resolve the issue.  Thanks.
    Rishee B.
    Applications Engineer
    National Instruments

  • How to find iPod in setting on  a 3G iPhone

    I'm trying to watch a movie on net flick by connecting my phone to the tv using RCA   I can't find. Tv seting under setting  

    I think I may have answered you question wrong if I did disregard my first comment.
    But what did you mean by RAC?

  • How to find out the set handler for a particular signal?

    I have an interesting puzzle to solve. l'm investigating problems with someone else's code and I'd like to get the name of the handler that is set for SEGV. psig shows that the process catches SEGV, however I don't have access to the source code for all the libraries it links against and none of the source code I have sets a handler for SEGV. Is there a way to find out the name of the signal handler that is set for a particular signal in a process? I'm sure the source was compiled with cc -g. Solaris 8

    Hello Haritha,
    Please follow the path.
    Go to RSA1 -> Metadata Repository ->DataStore Objects(ODS) -> Find you DSO(ODS) there and click on that, you will get all the details(Queries, Objects - Char, Key figures, update rules,etc..) related to that particular DSO(ODS), same is the case for Cube as well.
    Please assign points.

  • Urgent: How to find out the size in bytes of java object

    Hi Experts,
    We've a requirement that we need to find out the size of a java object at run time, is there a direct java API to get the size of a composite object in memory?
    Here is my requirement: We are adding string objects (which is an xml string of considerable size) into a List. After reaching certain size limit (lets say 5MB) of the list i need to put this data into DB as a CLOB. So every time I add a string object to the list, I need to see if the total size of the list exceeds the limit and if yes, flush the results into DB.
    I am not sure if java has a direct API for this, if not what is the beast way to do it, it s critical requirement for us.
    It would be really great if someone could help us out.
    Thank you,
    -Shibu.

    >
    We've a requirement that we need to find out the size of a java object at run time, is there a direct java API to get the size of a composite object in memory?
    Here is my requirement: We are adding string objects (which is an xml string of considerable size) into a List. After reaching certain size limit (lets say 5MB) of the list i need to put this data into DB as a CLOB. So every time I add a string object to the list, I need to see if the total size of the list exceeds the limit and if yes, flush the results into DB.
    I am not sure if java has a direct API for this, if not what is the beast way to do it, it s critical requirement for us.
    It would be really great if someone could help us out.
    >
    Could you explain your actual requirement a little more fully.
    1. Is each individual string a separate XML string? Or is it just a fragment? Why would you just concatenate them together into a CLOB? That won't produce valid XML and it won't let you easily separate the pieces again later. So provide a simple example showing some strings and how you need to manipulate them.
    2. Are you using these xml strings in Java at all? Or are you just loading them into the database?
    For example if you are just loading them into the database you don't need to create a list. Just create a CLOB in Java and append each string to the CLOB. Before you append each one you can check to see if the new string will put you over your length limit. If it will then you write the CLOB to the database, empty the CLOB and start appending again to the new clob instance.
    If you explain what you are really trying to do we might be able to suggest some better ways to do it.

  • Newbie qs. how to find duration or set position (in time) of a flash movie from Javascript?

    I am trying to control the Flash player browser plugin from
    Javascript.
    - I need to set the start position to play, based on time.
    example, setPosition(10 seconds)
    However I notice that the flash player API is based upon
    number of frames.
    for example, the methods TotalFrames() and GotoFrame() are
    based on frame number.
    How do I convert it to time? I don't see a frame rate
    variable.
    I don't see a call to access this - but the duration of a
    clip is always shown near the slider
    - can I also query the duration from the player?
    - I also need a callback into my Javascript object when an
    event occurs - for example,
    when the player stops playing because it is stopped by the
    user. Should work on earlier versions than Flash 8.
    Any help appreciated.
    thanks,
    Anil

    no replies?

  • How to find Client Character set?

    Hi,
    I need to connect to remote database which is having different character set than the client. Ia there any method to display client character and Database character set from SQL Plus? Could someone please help me.
    Thanks in Advance
    Sree.

    I guess you're using PL/SQL Developer?
    (because I get that warning message too ;) )
    The warning also continues with:
    You can set the client character set thought the NLS_LANG environment variable or the NLS_LANG registry key.
    If I execute some scripts from client (client character set WE8MSWIN1252 and database character set UTF8) will
    it cause any problem?It depends on what kind of data you're loading/importing. (chinese characters for example)
    I never had any problems at all, since I'm not using 'exotic' characters.
    You can find related threads on http://asktom.oracle.com/pls/asktom/asktom.search?p_string=%22UTF8%22
    and more explanations in the Oracle Globalization Guide: http://download.oracle.com/docs/cd/B19306_01/server.102/b14225/toc.htm

  • How to find the most matched values in the set of map?

    Hi friends!
    I have two vectors
    vector<int> V1; vector<int> V2;
    and a map<int, set<int>> M1;
    I want to select common values from both V1 and V2 and check those values with the set in the map M1.
    For example:
    V1 contains;
    2  4  6  8  9
    V2 contains;
    4  5  6  9  10 
    M1 contains;
    1=>1  2  5  9
    2=>4
    3=>5   10
    4=>2  4  8
    5=>4   9
    6=>4   6
    7=>9  12
    When we select the common values of V1 and V2 it is 4, 6, 9.
    And we search for all 4, 6, 9 from the values of M1 which give more appropriate.
    But, no all values in the set of map.
    Then, we delete any value from 4, 6, 9, then remaining values would match any values from the map.
    From the example, if we delete 6, then remaining 4, 9 will match with 5=>4  9, or if we delete 9, then 6=>4   6. Any one of the keys can be selected.
    I know how to select the common values from V1 and V2, but I do not know how to match with the values and select the appropriate key from M1.
    Could anyone help me to solve this?

    This is not the question you asked, except perhaps in the subject. The subject is not the right place to put key features of the question. It is also important to use the body to ask just the question you want
    answered. For example your real question has nothing to do with V1 and V2, just the common vector V (e.g. 4 6 9).
    One way to solve your problem would be to create a new map
    map<int, set<int>> M2;
    with the same keys as M1. Each set of M2 should contain the elements of V that are
    not in the corresponding set of M1.
    Then pick the key of M2 that has the smallest set. If that set is empty, then the whole of V can be used. Otherwise the smallest set tells which elements of V have to be removed, and which is the desired key of M1.
    In your example, key 5 of M2 will contain just 6, so you should remove 6 from V and select key 5.
    Yes fine. I tried the following code and it creates the map M2 (NewMyMap in my code). But how to find the smallest set starting from size 1?
    #include <vector>
    #include <algorithm>
    #include <iostream>
    #include <map>
    #include <set>
    using namespace std;
    typedef vector<int> IntVec;
    typedef set<int> IntSet;
    typedef map<int, IntSet> SetMap;
    bool IsValueNotInSet(int value, IntSet& S);
    SetMap CreatNewSetMap();
    IntVec IVec; //This vector is for selecting certain keys from mySet map.
    IntVec myVec;
    SetMap mySet;
    SetMap NewMyMap;
    int main()
    IVec.push_back(3); IVec.push_back(4); IVec.push_back(5); IVec.push_back(6);
    myVec.push_back(4); myVec.push_back(6); myVec.push_back(9);
    IntSet tempS;
    tempS.insert(1); tempS.insert(2); tempS.insert(5); tempS.insert(9);
    mySet.insert(make_pair(1,tempS));
    tempS.clear();
    tempS.insert(4);
    mySet.insert(make_pair(2,tempS));
    tempS.clear();
    tempS.insert(5); tempS.insert(10);
    mySet.insert(make_pair(3,tempS));
    tempS.clear();
    tempS.insert(2); tempS.insert(4); tempS.insert(8);
    mySet.insert(make_pair(4,tempS));
    tempS.clear();
    tempS.insert(4); tempS.insert(9);
    mySet.insert(make_pair(5,tempS));
    tempS.clear();
    tempS.insert(4); tempS.insert(6);
    mySet.insert(make_pair(6,tempS));
    tempS.clear();
    tempS.insert(9); tempS.insert(12);
    mySet.insert(make_pair(7,tempS));
    cout<<"MYVEC\n";
    cout<<"-------------\n";
    for(IntVec::iterator itv = myVec.begin(); itv != myVec.end(); ++itv)
    cout<<(*itv)<<" ";
    cout<<"\n\n";
    cout<<"\nMYSET\n";
    cout<<"-------------";
    for(map<int,set<int>>::iterator its = mySet.begin(); its != mySet.end(); ++its)
    cout << endl << its->first <<" =>";
    for(IntSet::iterator sit=its->second.begin();sit!=its->second.end();++sit)
    cout<<" "<<(*sit);
    cout<<"\n\n";
    NewMyMap= CreatNewSetMap();
    cout<<"\nNEWMYSET\n";
    cout<<"-------------";
    for(map<int,set<int>>::iterator its1 = NewMyMap.begin(); its1 != NewMyMap.end(); ++its1)
    cout << endl << its1->first <<" =>";
    for(IntSet::iterator sit=its1->second.begin();sit!=its1->second.end();++sit)
    cout<<" "<<(*sit);
    cout<<"\n\n";
    return 0;
    bool IsValueNotInSet(int value, IntSet& S)
    IntSet::iterator it=find (S.begin(), S.end(), value);
    if (it!=S.end())
    return false;
    return true;
    SetMap CreatNewSetMap()
    IntSet TSet;
    for(IntVec::iterator it = IVec.begin(); it != IVec.end(); ++it)
    SetMap::iterator its = mySet.find(*it);
    if (its != mySet.end())
    TSet.clear();
    int key = its->first;
    IntSet& itset = its->second;
    for(IntVec::iterator itv = myVec.begin(); itv != myVec.end(); ++itv)
    if(IsValueNotInSet((*itv), itset))
    TSet.insert(*itv);
    NewMyMap.insert(make_pair(key,TSet));
    return NewMyMap;

  • Just bought Ipad2. Loaded Skype, can see and hear other person but cannot see myself cannot find a video setting for skype on the ipad does anyone know?

    Just bought Ipad2. Loaded Skype, I can see and hear the other person, but They and I cannot see me...just my audio. Does anyone know where or how to find sype video setting on Ipad app?

    Try a Reset [Hold the Home and Sleep/Wake buttons down together for 10 seconds or so (until the Apple logo appears) and then release. When the screen goes blank power On again in the normal way.] It is absolutely/appsolutely safe!

  • Find Database Character Set

    Friends,
    How to find "Database Character Set" of current database?

    Hi,
    SELECT * FROM DATABASE_PROPERTIES WHERE PROPERTY_NAME LIKE '%CHAR%SET%';Yoann.

  • How to find 11i and r12 applications characterset

    Hi,
    How to find 11i and r12 applications characterset not of database only applications,What is IANA characterset asked in rapid install?How to find IANA character set in 11i and r12
    Regards

    Hi,
    How to find 11i and r12 applications characterset not of database only applicationsAs applmgr user, source the application env file and issue "echo $NLS_LANG".
    You can also get it from the application context file (search for <NLS_LANG oa_var="s_nlslang">).
    What is IANA characterset asked in rapid install?How to find IANA character set in 11i and r12This is documented in the installation manual.
    The IANA (Internet Assigned Numbers Authority) character set is the Internet-assigned standard character set name used by the Web server. See http://www.iana.org/assignments/character-sets for more information.
    Regards,
    Hussein

Maybe you are looking for

  • Looking for old functionality from ios6

    When using Safari in ios6, I recall when tapping the address bar, the cursor placed itself at the end of the URL. That used to be a very functional ability alongside showing the whole URL in the address bar instead of how ios7 only shows a general "s

  • EP Installation error while SecureStoreCreate-phase

    Hi, could you please help me to resolve this error? installing EP 7, Java Stack, Sun Solaris-9, Oracle- 10.2.0.2, j2sdk1.4.2_16 failed at create secure store step, while installing. Logs: root@vnudbdr# cat SecureStoreCreate.log Error occurred during

  • Complex

    I have a complex situation here. I have a jsp "main.jsp" which contains 2 jsps (using IFRAME tag) plus some other fields. One of those 2 jsp is "frequency.jsp" which lists frequencies with radio buttons besides it. When user change a selection there,

  • Can Apple tell me where my phone was last? (Before going offline)

    I lost my iPhone 4S last night. When I try going on iCloud.com, it tells me the device is offline. It most certainly has the app installed, as I've used it before, so I figured it just died. Is there anyway I (or Apple) can view the last location tha

  • Upgrading to Lightroom 4.3

    Hi, I have Adobe Lightroom 1 (have been using C1 Pro since) and am considering switching back to Lightroom. I went to Adobe's webpage, and it says that I could just pay the upgrade price to get Lightroom 4.3. At the same time I remember that Adobe ha