Question of filtering Automator

I was wondering if someone could tell me a way to filter holders number you will find on any page of Wikipedia to allow the page to be read aloud by the computer without all the hooks numbered playing with her. My first thought was to filter paragraphs containing automator [or] but which removes whole lines of text as well as the media. My next thought was to have automator get the text of a page, to copy and paste it into a TextEdit document while having preferences set so that TextEdit documents have only 1 character each line of text (which is what automator is estimated only a paragraph) and then filter the paragraphs containing [or]. It seemed that it was going to work but after I get my document of text down to a single word per line and save it. When I try and spend it in automator, none of the formatting is passed with it. It is essentially the same as it was before. Any ideas how I might accomplish this? Perhaps a shell script could filter the characters [and]?

Hello

Use this script in the "run Shell Script" action:

while (<>) {s/\[[^\]]*\]//g; print}

Tags: Mac OS & System Software

Similar Questions

  • question about filters again

    Several filters come with my sx500 the one i put on was the UV lamp and only because I wanted to protect the original goal. Now I'm wondering if since I had to use an adapter to connect the UV filter that it cannot be a good thing. Any comments?

    Hi Nan156,

    Thank you for your response.

    Canon does not offer a filter for the PowerShot SX500 IS adapter.

    If you do not have the PowerShot SX500 IS, I recommend double-checking with your dealer to make sure that the filter adapter is compatible with this model of camera.  If they can provide a manufacturer for the filter, I recommend for assistance in setting up the filter and double adapter control with them.

  • Question on the automation of the decorative pattern

    Hello

    I asked a question on an action I support on the general forum, but a wise guy suggested I ask here instead.

    I'm basically copying and pasting the question here: I'm lazy...

    "

    Hello!

    My name is John, and I'm new here (be gentle with me )

    I would like to create an action when the user is able to choose from a particular set of patterns (created by me) and all the others (who may be present otherwise) out of sight. My action is currently either choose to the entire Organization (using the menu Insert an item in the action), or a single model of my choice. (no items menu Insertion used).

    I want the user to choose my set of model in this particular case, but not others who are currently in the presets.

    I had the idea of making the action temporarily replace the patterns with my game (models to replace the menu drop-down) and then reset or load the game from the user at the end of the action. It made me think that maybe people don't want to get dirty with their presets in action, so basically, I'm looking for another idea.

    I am currently using PSCS4.

    I can use a fresh coat of model or a new 'empty layer' with a pattern overlay (layer style)

    I'm really looking for a spark that will light my Eureka moment.

    Bring ideas, any weird thoughts welcome!

    Thanks for any input.

    "

    Thanks for your time.

    PS: I have no clear idea about the scripts but will begin my trip later, I have no knowledge of programming, so I guess I'm not still there.

    I hope that it will be a start for you.

    The script must be copied in the ExtendScript Toolkit, it is installed with Photoshop.

    The script can be tested in ExtendScript Toolkit, if you wish, or you can save the script in the Applications settings presets/scripts folder and be executed via select File - script - script.

    This example needs to have an open document.

    It will ask you for your template file, and then display a user interface to select the model

    The script will save the existing schemas, load your habits, once a model has been selected it will be used and the owners restored to what they were.

    Good luck...

    #target photoshop
    main();
    function main(){
    if(!documents.length) return;
    var file = File.openDialog("Please select Pat file");
    if(file == null) return;
      file.open("r");
      file.encoding = 'BINARY';
      var str = file.read();
      file.close();
      var patterns=[];
      //Thanks to X for the regex
      var re = /(\x00\w|\x00\d)(\x00\-|\x00\w|\x00\s|\x00\d)+\x00\x00\$[-a-z\d]+/g;
      var parts = str.match(re);
      for (var i = 0; i < parts.length; i++) {
        var p = parts[i];
        var sp = p.replace(/\x00/g, '').split('$');
         patterns.push([[sp[0]], [sp[1]]]);
          }
    //make a backup of existing patterns
    var backup = new File( Folder.temp +"/BackupPatterns.pat" );
    savePatterns(backup);
      //load pattern file
    app.load(file);
    var win = new Window( 'dialog', 'Pat Test' );
    g = win.graphics;
    var myBrush = g.newBrush(g.BrushType.SOLID_COLOR, [0.99, 0.99, 0.99, 1]);
    g.backgroundColor = myBrush;
    win.orientation='stack';
    win.p1= win.add("panel", undefined, undefined, {borderStyle:"black"});
    win.g1 = win.p1.add('group');
    win.g1.orientation = "row";
    win.title = win.g1.add('statictext',undefined,'Pattern Test');
    win.title.alignment="fill";
    var g = win.title.graphics;
    g.font = ScriptUI.newFont("Georgia","BOLDITALIC",22);
    win.g5 =win.p1.add('group');
    win.g5.orientation = "row";
    win.g5.alignment='fill';
    win.g5.spacing=10;
    win.g5.st1 = win.g5.add('statictext',undefined,'Select Pattern');
    win.g5.dd1 = win.g5.add('dropdownlist');
    for(var a in patterns){
        win.g5.dd1.add('item', patterns[a][0].toString());
        }
    win.g5.dd1.selection=0;
    win.g10 =win.p1.add('group');
    win.g10.orientation = "row";
    win.g10.alignment='fill';
    win.g10.bu1 = win.g10.add('button',undefined,'Use Pattern');
    win.g10.bu1.preferredSize=[150,30];
    win.g10.bu2 = win.g10.add('button',undefined,'Cancel');
    win.g10.bu2.preferredSize=[150,30];
    win.g10.bu1.onClick=function(){
    win.close(0);
    var a = win.g5.dd1.selection.index;
    fillPattern(patterns[a][0].toString(),patterns[a][1].toString(),100);
    //Restore original patterns
    restorePatterns(backup);
    //delete backup file
    backup.remove();
        }
    win.g10.bu2.onClick=function(){
    win.close(2);
    restorePatterns(backup);
    //delete backup file
    backup.remove();
    }
    win.center();
    win.show();
    };
    function fillPattern(name, id, opacity) {
        var desc6 = new ActionDescriptor();
        desc6.putEnumerated( charIDToTypeID('Usng'), charIDToTypeID('FlCn'), charIDToTypeID('Ptrn') );
            var desc7 = new ActionDescriptor();
            desc7.putString( charIDToTypeID('Nm  '), name );
            desc7.putString( charIDToTypeID('Idnt'), id);
        desc6.putObject( charIDToTypeID('Ptrn'), charIDToTypeID('Ptrn'), desc7 );
        desc6.putUnitDouble( charIDToTypeID('Opct'), charIDToTypeID('#Prc'), opacity );
        desc6.putEnumerated( charIDToTypeID('Md  '), charIDToTypeID('BlnM'), charIDToTypeID('Nrml') );
        try{executeAction( charIDToTypeID('Fl  '), desc6, DialogModes.NO ); }catch(e){}
    };
    function restorePatterns(file) {
    var desc627 = new ActionDescriptor();
    var ref464 = new ActionReference();
    ref464.putProperty( charIDToTypeID('Prpr'), charIDToTypeID('Ptrn') );
    ref464.putEnumerated( charIDToTypeID('capp'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
    desc627.putReference( charIDToTypeID('null'), ref464 );
    desc627.putPath( charIDToTypeID('T   '), new File( file ) );
    executeAction( charIDToTypeID('setd'), desc627, DialogModes.NO );
    };
    function savePatterns(file) {
    var desc625 = new ActionDescriptor();
    desc625.putPath( charIDToTypeID('null'), new File( file ) );
    var ref462 = new ActionReference();
    ref462.putProperty( charIDToTypeID('Prpr'), charIDToTypeID('Ptrn') );
    ref462.putEnumerated( charIDToTypeID('capp'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
    desc625.putReference( charIDToTypeID('T   '), ref462 );
    executeAction( charIDToTypeID('setd'), desc625, DialogModes.NO );
    };
    
  • A question about filters

    Is it possible to create a filter that will call the method on the object being cached without using reflection?
    Performance wise, when I know the type of the class of the item being cached and you can use a function call classical, it is faster, especially when we have thousends of objects in the cache...

    Hi Reem,

    With most of the filters, you can specify the ValueExtractor that the filter should use to get the value. Many filters have a constructor that takes a method name and it will use a ReflectionExtractor to get the value for the filter. You can of course use any ValueExtractor you like. There is no "out of the box" extractors that you want as obviously none of them know your classes. You have two options:

    1. write your own ValueExtractor that can call the method on your class in its extract method

    2. If you are using POF serialization then you can use a PofExtractor to the filter.

    Of the two options of the second best. If you use a PofExtractor consistency will be able to retrieve the values of data cached without having to deserialize the contents of the cache.

    If you write you own Extractor you needs to think to properly implement equals and hashCode methods of transposition you Extractor.

    If you're embarrassed on the performance you can create indexes on the caches by using the same extractors you use in your filters.

    Kind regards
    JK

  • Question on filtering of commas

    Sorry for the newbie questions.

    I have a simple questions where people can respond
    What flavour of ice cream do you want? and they can select mutiple ones
    < select multiple size = "12" name = "ice" >
    < option value = "Vanilla" selected > vanilla
    < option value = "choco" selected > Choco
    < option value = "mango" selected > mango
    < option value = "coffe" selected > coffe
    < option value = "fudge" selected > fudge
    < / select >

    Now the data stored as a delemeted by commas, for example, vanilla, chocolate, caramel

    I need to allow users to change their choice if they want to.
    So when I interrogate the field from the database the value returned as above (delemeted by commas).
    I can add a CFloop to return each on one line.
    Now my question is how can I let people see what they chose before and the form where they can change their choice. When I added the loop and cfif statement, I get repeated a few times selections.
    If I want to have the adverse selection above with the option SELECTED if the user chose this before flavor.

    Once, I did not program in the course of the years and very rusty with this.
    Any help is appreciated.

    Andy99 wrote:
    >
    > #ListFind (ice, ",") #.
    >

    This isn't a function to find the complete list. He finished at least not enough
    to do what you want. I suspect she's trying to find a value of
    by commas. I'm expecting something that looked like this.

    #listFind (mydb.ice, "chocolate") #.

    OR if you want to be complete.

    #listFind (mydb.ice, "chocolate", ",") #.

    And then your select code should look like this.

  • Filtering in the table to the ADF

    Hi all

    My view object contains a Where Clause in the query:

     <DeclarativeWhereClause
        Name="DeclarativeWhereClause">
        <ViewCriteria
          Name="AccTravelAgentsViewByOwnerWhereCriteria"
          ViewObjectName="vo.AccTravelAgentsView"
          Conjunction="AND"
          Mode="3">
          <ViewCriteriaRow
            Name="AccTravelAgentsViewByOwnerWhereCriteria_row_0"
            UpperColumns="1">
            <ViewCriteriaItem
              Name="AcType"
              ViewAttribute="AcType"
              Operator="="
              Conjunction="AND"
              Value="3"
              Required="Required"/>
          </ViewCriteriaRow>
        </ViewCriteria>
      </DeclarativeWhereClause>
    

    VO data are displayed in the table read-only ADF with filtering and active sort.

    Question:

    Filtering for example by the AcCity parameter table fails with the error message: 'no value specified for parameter 2 '.

    It seems that the value literal '3' for AcType is missing from the sql query:

    <oracle.adf.model> <DCBindingContainer> <validateInputValues> <[989] DCBindingContainer:view_travel_agenciesPageDef validating at level:all> 
    <oracle.adf.model> <ViewRowSetImpl> <doSetWhereClauseParam> <[990] AccTravelAgentsView2 ViewRowSetImpl.doSetWhereClause(0, null, Beijing)> 
    <oracle.adf.model> <ViewRowSetImpl> <doSetWhereClauseParam> <[991] AccTravelAgentsView2 ViewRowSetImpl.doSetWhereClause(0, null, 3)> 
    <oracle.adf.model> <ViewRowSetImpl> <execute> <[992] AccTravelAgentsView2 ViewRowSetImpl.execute caused params to be "un"changed> 
    <oracle.adf.model> <ViewRowSetImpl> <initQueryCollection> <[993] Carrying over CappedRowCount:-1for ViewRowSet:AccTravelAgentsView2> 
    <oracle.adf.model> <QueryCollection> <createColumnList> <[994] Column count: 19> 
    <oracle.adf.model> <ViewRowSetImpl> <setWhereClauseParamsInternal> <[995] AccTravelAgentsView2 ViewRowSetImpl.setWhereClauseParams caused params changed> 
    <oracle.adf.model> <ViewRowSetImpl> <doSetWhereClauseParam> <[996] AccTravelAgentsView2 ViewRowSetImpl.doSetWhereClause(0, null, Beijing)> 
    <oracle.adf.model> <ViewRowSetImpl> <doSetWhereClauseParam> <[997] AccTravelAgentsView2 ViewRowSetImpl.doSetWhereClause(0, null, 3)> 
    <oracle.adf.model> <ViewRowSetImpl> <execute> <[998] executeQueryForCollection ViewObject:AccTravelAgentsView2, RowSet:AccTravelAgentsView2> 
    <oracle.adf.model> <ViewObjectImpl> <processViewCriteriaForRowMatch> <[999] VCs converted to RowMatch:  ( ( (UPPER(AcCity) LIKE UPPER( :vc_temp_2 || '%') ) ) )  AND ( ( (AcType = :vc_temp_1 ) ) ) > 
    <oracle.adf.model> <ViewObjectImpl> <closeStatementsResetRowSet> <[1000] ViewObject: [vo.AccTravelAgentsView]AppModule.AccTravelAgentsView2 close prepared statements...> 
    <oracle.adf.model> <ViewObjectImpl> <getPreparedStatement> <[1001] ViewObject: [vo.AccTravelAgentsView]AppModule.AccTravelAgentsView2 Created new QUERY statement> 
    <oracle.adf.model> <ViewObjectImpl> <processViewCriteriaForRowMatch> <[1002] VCs converted to RowMatch:  ( ( (UPPER(AcCity) LIKE UPPER( :vc_temp_2 || '%') ) ) )  AND ( ( (AcType = :vc_temp_1 ) ) ) > 
    <oracle.adf.model> <ViewObjectImpl> <buildQuery> <[1003] AccTravelAgentsView2>#q computed SQLStmtBufLen: 787, actual=655, storing=685> 
    <oracle.adf.model> <ViewObjectImpl> <buildQuery> <[1004] SELECT Accounts.ac_addressLine1,         Accounts.ac_addressLine2,         Accounts.ac_city,         Accounts.ac_country_id,         Accounts.ac_created_by,         Accounts.ac_created_date,         Accounts.ac_id,         Accounts.ac_modified_by,         Accounts.ac_modified_date,         Accounts.ac_name,         Accounts.ac_owner,         Accounts.ac_phone,         Accounts.ac_postalCode,         Accounts.ac_remark,         Accounts.ac_state,         Accounts.ac_status,         Accounts.ac_type FROM accounts Accounts WHERE ( ( ( (UPPER(Accounts.ac_city) LIKE UPPER( ? || '%') ) ) )  AND ( ( (Accounts.ac_type = ? ) ) ) ) ORDER BY Accounts.ac_name> 
    <oracle.adf.model> <ViewObjectImpl> <bindParametersForCollection> <[1005] Bind params for ViewObject: [vo.AccTravelAgentsView]AppModule.AccTravelAgentsView2> 
    <oracle.adf.model> <BaseSQLBuilderImpl> <bindParamValue> <[1006] Binding param 1: 3> 
    <oracle.adf.model> <ViewObjectImpl> <doFreeStatement> <[1007] ViewObject: [vo.AccTravelAgentsView]AppModule.AccTravelAgentsView2 close single-use prepared statements> 
    <oracle.adf.model> <QueryCollection> <buildResultSet> <[1008] QueryCollection.executeQuery failed...> 
    <oracle.adf.model> <QueryCollection> <buildResultSet> <[1009] java.sql.SQLException: Missing IN or OUT parameter at index:: 2
        at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:2146)
    

    When I remove the Where Clause of the query, I am able to filter the table.

    Any idea what I have wrong?

    Build JDEVADF_12.1.3.0.0_GENERIC_140521.1008.S

    Thanks for the support and best regards,

    Daniel

    This "declarative" when the clause is introduced in 12 c, therefore probably buggy.

    No difference if replace you it with the good old bind variable in sql query? (uncheck "Calculate optimized query at Runtime" and manually put where clause)

    Dario

  • selectoneradio gets not selected while filtering in grid...

    Hello

    Worm 11.1.1.3.0 JDev

    I use view based on entities and a transient variable with the String data type...

    I used this variable as a selectoneradio in the grid. I dragged this attribute as a selectoneradio in the grid, select the element contains values 'Y' and 'n'.

    I get the question on filtering, while filtering the selected values are gets not selected... I want that the values must be supported... (selected)

    How to do this? is there another way to do this...?

    give suggestions...


    Kind regards
    Gopinath J

    Published by: GOP on April 30, 2011 09:48

    If I understand you correctly, you have a update y VO a transitional attribute. You have created a with a filter and the table contains a column with a be changed based on the transient attribute.

    I suppose also that filter in the table is based on a criterion of display with a "database" execution mode (for example, on the criteria of "All the attributes that can be interrogated" by default). If this is the case, whenever you enter a condition in the filter and run the filter, a new database query is executed, lines of VO is rebuilt and you lose the values entered in the transient attribute. To avoid the recreation of the rowset (for example to prevent a new run of the DB query) you must base the filter of the table on one 'in memory' view of criteria rather than the default (which is a "database" one). If the criteria to filter display is an "in memory", a set of lines of the VO is not rebuilt, but all existing lines is filtered in memory and you won't lose the values entered in the interim until attribute.

    (There is a field called 'Query Mode' in the definition of display criteria dialog box, where you can select the run mode of the criteria - "Database", "In memory" or "Both".) Create the necessary conditions and select the "In memory" mode).

    Having in mind the fact that the criteria for marking as "in memory" will not filter the lines to the query of database (which will be executed at the start to load the set of lines), so all lines will be extracted, and then they will be filtered in memory. If this is not desired (for example because the number of all the lines is important), you can combine the filter with a panel of which limits the rows from the rowset, and then the filter will filter them in memory.

    Dimitar

  • Design practice nor 6008 USB DAQ

    Hello

    I have a few question, I'd like to introduce. I need some sort of indication on how to better perform a timed cycle of acquisition driven by WSF.
    I'll send my VI (conceptual, not one currently working one) and ask for explanations.
    The goal

    I need to acquire a battery voltage. Load current consumption is driven by a couple of transistor.  I drive the hollow transistors two digital i/o for USB data acquisition.

    Because I need to have a power for a given time cycle, I need to have some sort of time control on the output.
    So I wrote a simple state machine whose States are updated when a timer reaches zero. Each State has its own queue time.
    Moreover, I differentiate between acquisition and control operations using two all in cycles.
    First question: is this a correct way to a timed WSF of construction?

    and now:

    The problem (s):

    I need to connect and establish a correlation between the input line for the internal of the fsm States. So I madesome digital indicator on the face before of the VI and created a local variable (I know that local variables are BAD, but I had no other idea everything) to pass values for some time to the other.

    I also want to select State sequent of the FMS based on the input value, I get a channel. I can stil use a local variable?

    Are the two related tasks?

    Second question: are local variables, something that I can use for this task?

    Last but not least: I need to filter on the values.
    In this vi I perform a filtering operation and then I get the I use for control of local variables.

    will be this filtering desync the two cycles while? will I run out of control before running the filtering?

    The same question is valid for the purposes of registration: the unfiltered data record, I guess is unnecessary. But based on this 'architecture' I know the country reports and the recorded signals are out of sync (as happens in many game data acquired with this vi).
    Is this a problem of logging (perhaps given by different buffers for data acquisition and internal State or something similar) or the whole WSF will be out of sync, then all acquired data is more useful because it is out of sync?

    Any advice would be much appreciated.

    Best regards

    Luca.

    Luca,

    Question 1: This is a reasonable start but need some things to make it a good WSF. There is no waiting or delay in the loop so it will run as fast as possible. U.S.-6008 outputs digital software timed so that the DAQ Assistant can take a long time, but the amount of time is unknown and not necessarily consistent from iteration to iteration. Since the DAQ Assistant Analog Input in the other races of loop to<= 10="" iterations="" per="" second,="" a="" wait="" of="" 100="" ms="" in="" the="" fsm="" loop="" seems="" like="" a="" good="" starting="" point.="" waiting="" 3000="" ms="" is="" not="" a="" good="" idea="" because="" the="" loop="" becomes="" unresponsive="" to="" the="" stop="" button="" for="" long="">

    Do you need to write on the lines on each iteration, even when the data has not changed? Add a write state that is called only when the data changes.

    The DAQ Assistant has a Stop input and an output of Stopped. When you are ready to stop the loop, the stop signal must be wired to these inputs so that the DAQ Assistant can delete tasks. The output of the order can be connected to a Terminal to stop the loop.

    Problem (s):

    It seems that you want to link the two loops.  Local variables are usually a bad way to do it. The best way is to use queues.  A queue can send the current state of the file loop. (More comments later if that's really what you need). Another line can send data, or better, the commands, the loop of the file to the loop.

    I think you want digital output values rather than the State. Especially if you add a State writing as I suggested above, the current state will not always represent the condition of the power of your test.  To make this work with the additional state Boolean matrix must be moved from one iteration to another via a shift register.

    It seems that you have at least two controls to be sent from the loop of the file to the loop. One is the stop command. The other went to the higher power level control.  You should probably have a command to set off power level which can be used if the battery voltage becomes too low and before stopping.  How your program is currently configured, the last level of power will continue as long as the power of the computer is on and the USB-6008 is always plugged. The cessation program does NOT reset the lines.

    When you use anti-parallel to the queues, you must be careful on the definition of wait times and the timed out case management.

    The benefits of the queues are that it is easy to ensure synchronization at the level you need, the data can be stored according to the needs, and there are good examples. It also avoids the possibilities of race conditions, often introduced by local variables.  This program could be based on a variation of the design producer/consumer model.

    Filter questions: any filter introduces a time delay. In your case when you filter 100 samples 10 times per second, it is likely that the filter will do well until the next data set has arrived. The delay of the filter is not affecting your synchronization. The above lines will solve problems.  Since you are looking at time of cycle seconds and the minimum interval on the order of 100 ms, the exact chronology (to tens of milliseconds level) is probably not too important.

    The real question about filtering boils down to this: does the control work better if the signal is filtered?

    - - - - -

    I'd probably all this a little differently. Given the slow speeds and the small amount of data, a simple loop with an improved state machine is all that is needed. Get rid of the DAQ Assistant and learn how to use DAQmx screws.  States could include: Init THE Init, Init File, Idle, read, write, DO, Analyze, filter, adjust the power, wait, Save, close file, DO, AI Shutdown Shutdown, error and exit.  No variables. No indicator fake just to allow the creation of local variables. Very little code outside the structure State case. None of the queues.

    Lynn

  • Windows Live ID locked out for more than 2 weeks

    Original title: HELP! LOCKED OUT FOR 2 WEEKS! NO CUSTOMER SERVICE HELP!

    I've been locked out of my Windows Live ID for 2 weeks now, I don't remember my security question and the automated password recovery system maintains the drop me! I NEED to get back into that account as its linked to my account xbox live! Help!  What can I do about it?

    PS. I had to create a new hotmail account to post here but I still need access to my normal account as its related with my xbox gamertag

    View all Windows Live and Hotmail questions in the appropriate forum found here:
    http://windowslivehelp.com/

  • BlackBerry smartphones powered work e-mails at work

    I have a BB Curve 9300.  I have two personal and account on the BB email.  Is there a way to not to receive my work email when I'm in my office so that I get them on my PC and BB?  I was expecting basically an on/off switch for the e-mail account that can be used when in my office.

    few things to try:

    Go to your e-mail configuration, go to the account in question, click filters, check the box that says "do not forward messages to the device" set by default if it does not work.

    Else: try to use the blackberry firewall

    http://BTSC.webapps.BlackBerry.com/BTSC/search.do?cmd=displayKC&docType=kc&externalId=KB23877

    I think this may block all emails fine, but you can take a look at the options.

  • REST API issues and in bulk

    Hi all

    I'm just getting started on a new integration between Eloqua and our CRM system. For now, I'm mainly interested in export of Contacts of Eloqua.

    I have 2 questions about the API REST Eloqua:

    1 search Contacts on most of the works of fields very well. However, some fields cause a 500 internal server error. For example, dateCreated and dateModified seem to cause this. I'm doing something wrong, or is this a known problem? I'll try the following:

    GET /Api/rest/1.0/data/contacts?search=C_DateModified%3D1389988359

    2. in the JSON results returned by a search for Contact, it seems that most of the fields are returned in the array "fieldValues can only be". It works well, and I learned how to search the corresponding identification field definitions in the results. However, a dozen of fields returned in a different format to the root level (for example updatedAt, accountName, businessPhone, country, emailAddress, firstName, lastName, etc.). I find that this difference makes it difficult to work with the API constantly. I don't know how these level fields root in correlation with their field definitions. Is it possible to request only * fields all be returned in the array fieldValues can only be?

    I also have a question about filters in the API in bulk:

    3. in the creation of export for export of Contacts, it is possible to specify a filter selection, for example:

    'filter': {'FilterEnsemble': 'valueGreaterThanComparisonValue', 'value': '{{Contact.Field (C_DateModified)}}', "comparisonValue": "2014-02-05 15:36:58"}

    It is possible to specify several filters in this way? (And if so, can we carry out AND / OR operations on them?) Or several selection criteria must be made using a filter of Segment?

    If a Segment filter is needed, I guess I'll have to programmatically create a new for each export to us (and then delete it as well as export) since the dateModified interests us will change each time you export. Doesn't that sounds good, or there at - it a way to create a "reusable" Segment in which I could just move to the date desired by each invocation?

    Edit: I have another question about filters, so I'll add it here:

    4 use the filter question #3 above, I find that Eloqua will return the contacts with a value of C_DateModified 2014-02-05 15:36:58 (note that this is not * superior * 2014-02-05 15:36:58, so I'm not expecting to see these records returned). Is this a bug or expected behavior? My guess is that the Eloqua platform stores internal dates and times with millisecond precision, but delivering or floored in the second round. In this case, the documents in question have no doubt C_DateModified a value slightly greater than 2014-02-05 15:36:58 (for example 15:36:58.342) so the logic is technically correct. Is there a way query/request dates and times to the millisecond precision?


    To give in this context, I am train to the query to export contacts to our CRM system. A process executes periodically and ask all the contacts that have been updated since the last run. I don't want to take the risk of lack of contact updated due to minor timing problems, so my plan was to set up the C_DateModified filter for each series to be larger than the latest value C_DateModified returned from the previous run. This approach is upset about the problem described however. Is there a better way to do this?

    Thanks for any help!

    Post edited by: Lorne McIntosh

    Hi Lorne,

    With regard to some of your questions:

    1. to perform this kind of search, use GET Api/rest/1.0/data/contacts?search='modifiedAt>3/27/2014'

    Research infrastructure will accept generally field research by their internal name, but for certain system-level fields, they are exposed in the top level 'attributes' with specific naming conventions and this is one of them. Company is another example.

    2. This behavior is similar to the above. Some of these root-level or "attribute" fields are there because this end point is designed for use by the application, in which case it must load the most relevant contact on a depth minimum = optimized call fields. There is no way to get all the fields of the table fieldValues can only be because the assumption is that if you do a depth = complete call to get all the data would you duplicate data recovery. If the entire structure of the returned JSON was to change this would just lead to other coding challenges. If it is a major concern, then using Bulk would be your alternative.

    3. this comparison filter only supports the basic queries. No advanced logic or wildcards. You must wear a contact filter and then reference it in your definition of export in bulk, if you want something more complex. They can be reused, but it depends on the logic. If you simply all contacts that have been modified in the last 24 hours and met other criteria, you can let the filter unchanged. If you want to control the precise date time in the query itself and is not in your code that executes the query at the right time (to avoid gaps) then you will need to continually update the filter through REST conditions. If you create a new filter every time rather than update it, then you need to update (or create a new) export definition that the id of the filter will change.

    4. Unfortunately not. Even if you can interview during the time Unix, it is given in seconds not ms (e.g. 1375449678 against 1395776202000). The accuracy of ms would exist in the db level, which explains why the query performs this way for what is expected.

    Hope this helps to clarify,

    Bojan

  • help with a simple script

    We do a manual Dr, and after disabling the replication process and presents the LUN DR ESX server and run a powershell script to save virtual machines, we want to turn on all with the script below.

    It works, but I get 'this VM was copied or moved to issue a' for each I answer "moved" to. Any ideas on how to remove or to answer this question in an automated way?

    $sourceVI = Read-Host "vCenter name.
    $creds = get-credential
    to connect-viserver-Server $sourceVI - Credential $creds
    Import-Csv g:\dr\epicdrstartserverlist.csv | Foreach {Get - VM $_.} Name | {Start-vm-confirm: $false}
    Disconnect-VIServer $sourceVI - confirm: $False
    (the CSV file is just a list of the names of virtual machine I want to turn on).

    You can check the presence of an issue with the cmdlet Get-VMQuestion het and reply with the Set-VMQuestion cmdlet.

  • HBA renumerisations 100% CPU

    Hello

    We have a small problem...

    We have an infrastructure ith 30 or so guests all connected to the same storage Netapp. We have a few new LUNS to add and notice that if we add a - guests rescan automatically their hba. Its a good idea - synchronizes your storage space, but... If you have 30 hosts réanalysant all at the same time, we get a lot of locks and scsi reservation errors and 100% cpu on the host computers.

    My question - is this automated rescan a Netapp feature or a new feature of vmware (I have not noticed before) - and in both cases, how do you change it back - I want to rescan a host at a time...

    TIA

    http://www.yellow-bricks.com/2009/08/04/automatic-rescan-of-your-HBAs/

    Duncan

    VMware communities user moderator | VCP | VCDX

    -

  • SE geometricBounds of a text insertion point [CS5 JavaScript]

    The question arises to automated by placing an image on the exact location of the subsection that retains the reference to this image. The image should * not * be placed online. Even if I have a method to do this, I wonder if there is another cleaner way.

    Text example:

    paragraph of the story.

    IMG001 < tab > this paragraph contains the name of the image and the caption.

    following paragraph of the story.

    I wrote a script that reads the mention of the image (the cursor is inside this paragraph) and the place of the image and the caption in a separate frame on the page.

    To get the location of the paragraph that begins by * img I place a frame temporary small online at the beginning of this paragraph. Then I read the geometric limits of this inline frame, remove it and use these coordinates to place the frame of image on this vertical location.

    The script works very well, but get the insertion of coordinates of the point seems a bit of a detour. Maybe it's the only way, but if anyone has a suggestion for a more orderly approach, I would be interested.

    Insertionpoints have the horizontalOffset properties and the base, which are x, y coordinates.

  • Creation of the OSB with WLST field

    Hello

    I am trying to create a domain using WLST script for version 10.0 on redhat 5.0.
    The WLST script invoked by the ANT, creates a simple field of OSB, with only adminserver, with workshop and bus applications service.

    I understand JMS Reporting provide needs table in the schema for logging and this application is also created in the field, when I create the field.

    Assuming that the schema for the reporting application is not created yet, when I try to start weblogic domain, he complains about file "weblogic_eval$ 1.wal" in the root directory, I know that this file is created if I create a domain by using the configuration wizard and run scripts of creation of OSB scheme during the domain design process , instead I think that he should complain connection due to schema error is not available?

    My Questions:

    1. What is the best way to create a schema for the application in question, during field automated build process that we need to create new areas of the script and be able to start and deploy applications on it. which will also require to have the db for the application schema.

    2. what happens if I create a db schema oracle report or any other database other separately then pointbase so how to avoid the error file ' weblogic_eval$ 1.wal ' to complain? What practice is in place or recommended for my situation necessary?

    Thanks in advance!

    SAL

    My fault. http://download.Oracle.com/docs/CD/E13222_01/WLS/docs90/config_scripting/domains.html#1001249--je mistaken or I don't know how to operate in offline mode.

    Another suggestion is to use templates to create domains (that I tried on my local machine now) and can be easily automated.

    (1) model of domain created (http://download.oracle.com/docs/cd/E13222_01/wls/docs90/config_scripting/reference.html#1029279, http://download.oracle.com/docs/cd/E13222_01/wls/docs90/config_scripting/reference.html#1203320)

    (2) change of the /config/config.xml in the container of the template to remove (Reporting of JMS provider, Message Reporting trap) and other changes

    (3) used the jar model modified to create new areas.

    Maury

    Published by: mneelapu on October 23, 2009 15:45

Maybe you are looking for