"Scrambling" an integer on the fly: what's it called?

I want to scramble "on the fly" integers (between 0 and 100,000) into some 15-byte Strings or 15-byte numbers (or shorter).
I have no doubt that I could come up with a simple mathematical algorithm, but surely this method must exist already in some library. Because I don't know how to call what I am looking for, I have so far failed to find what I wanted.
Does anyone have references?
Or even just the "official" name of that kind of method would help me in my research!
Criteria:
* it has to be VERY fast, both to scramble and to unscramble.
* it doesn't have to be top level of security
(Background: the original integers are reference IDs and they come as a sequence: ..., 542, 543, 544, ... It's important to prevent someone from gathering the objects sequentially, thus it's important to break any apparent logical continuity in the sequence.)
Message was edited by:
30goldbe

Since you need to be able to invert the value and get
back the original it is called 'encryption'! IThat's why I posted in this forum! ;)
I would be tempted to do the following (but I was hoping there was a faster method):
Let N be the original integer. Let p be a large prime number (around 10 million). Let q be a small integer greater than 1, prime with respect to (p-1).
public Long firstScramble (Long N) {
     return (N^q) % p;
}I could then use the hexadecimal version of the result which would result in the desired string. To unscramble, it's just a matter of finding the integer r such that (r*q) % (p-1) = 1...
(It would be possible to speed the above calculation with a for loop...)
Is there a faster method in one of the cryptography packages?
Message was edited by:
30goldbe
Message was edited by:
30goldbe

Similar Messages

  • Change the text of a button in a form on the fly

    Hi all,
    I have a form that it is called from another form or from a report. I would like to change the text of the Update and Save buttons on the fly depending on who called it. For instance, if this form is called from the form I would like the Update button to say: "Save & Next", however if it is called from the report the button should say: "Save & Back to Report".
    How could I accomplish this if it is possible.
    Thanks

    I've got the problem fixed. For any of you that would like to know the solution is this. I added the following javascript at the end of an unstructured UI template where I have the form:
    <script language="JavaScript1.1">
    var inURL = false;
    for (i = 0; i < document.all.length; i++) {
         if (document.all.name != null) {
         if (document.all[i].name.indexOf("BACK_URL") > 0) {
                   if (document.all[i].value != '') {
                        inURL = true;
              else {
                   if (inURL) {
                        if (document.all[i].name != null) {
                             if (document.all[i].name.indexOf(".UPDATE") > 0 || document.all[i].name.indexOf(".SAVE") > 0) {
                                  var doc = document.all[i];
                                  doc.value = "Save & Back to Report";
    </script>
    The script works in IE 6+, I don't know if it works in any other browser, I haven't test it and I don't think I will.
    I hope this could help somebody

  • Inserting into a table which is created "on the fly" from a trigger

    Hello all,
    I am trying to insert into a table from a trigger in Oracle form. The table name however, is inputted by the user in am item form.
    here is what the insert looks like:
    insert into :table_name
    values (:value1, :value2);
    the problem is that forms does not recognize ::table_name. If I replace :table_name with an actual database table, it works fine. However, I need to insert to a table_name based from oracle form item.
    By the way, the table|_name is built on the fly using a procedure before I try to insert into it.
    Any suggestion on how can I do that? My code in the trigger is:
    declare
    dm_drop_tbl(:table_name,'table) // a call to an external procedure to drop the table
    dm_create_tbl(:table_name,'att1','att2');
    insert into :table_name
    values (:value1, :value2);
    this give me an error:
    encounter "" when the symbol expecting one.....

    Hi ,
    You should use the FORMS_DDL built_in procedure. Read the on-line documentation of forms ...
    Simon

  • Print Module templates layouts do not update on the fly

    Print layouts do not update on the fly when attempting to choose between various Print Module>Template Browser> Lightroom or User templates. This occurs in all three Layout Styles. The very first layout chosen in Single Image/Contact Sheet, Picture Package, or Custom Package is the permanent 'default' and cannot be changed. The Preview will show as expected however any image stays stuck in the very first layout I chose after installing LR4 beta.
    For example, I first chose Template Browser>Lightroom Templates>Maximum Size, and Layout Style>Single Image/Contact Sheet. Clicking through any other Templates (Lightroom or User defined) will alter the preview but not the layout display in the Print window. Same problem in either of the other Layout styles. I have been trying for days to rectify this, but it seems somehow more difficult than LR3. and not what I expect.
    As a comparison, using the same steps in LR3 works perfectly as all print template/layouts can be changed on the fly as expected. I have no problems generating different layouts in LR3 and have been using LR print module since version 1 without this issue.
    Is this a bug or are there any extra steps or workarounds I have not discovered? Any other testers seen this?

    Update with more info. What am I doing wrong, if anything?
    Print layouts do not update on the fly when attempting to choose between various Print Module>Template Browser> Lightroom or User templates. This is not a hang since the layouts do not change after the initial choice no matter how much time elapsed.
    iMac OS 10.6.8. 8GB RAM.Processor Intel Core 2 Duo. NVIDIA GeForce 8800 GS.
    The steps as follows:
    1) Lightroom 3.6 & LR4Beta exist side by side.
    2) LR4 Beta> Print Module;
    3) From filmstrip choose image;
    4) Template Browser> Lightroom4Beta Templates>Maximum Size;
    5) Preview displays as expected;
    6) Layout Styles>Single Image/Contact Sheets
    7) Template Browser> Lightroom4Beta Templates>click through any other templates (Lightroom or User defined);
    8) Image layout in main window does not update;
    9) Previews update;
    10) Layout Style>Picture Package;
    11) Template Browser>Maximum size is then automatically shown, however the template in the main window is actually (1) 7x5, (2) 2.5x3.5;
    12) Any further attempts to change the layouts regardless of Style Layout choices are not successful.
    13) Close LR4Beta>re-open LR4Beta;
    14) Repeat test;
    15) Print Module layouts do not update on the fly as expected;
    16) Close LR4Beta and all applications;
    17) Reboot iMac.
    18) Open LR4Beta only;
    19) LR4Beta>Print Module>Template Browser >Lightroom Templates>Maximum Size;
    20) Image displays in main layout window with Template and Preview display as expected;
    21) Choose different image>Template Browser>Lightroom Templates>Maximum Size;
    22) Click through templates, layouts DO NOT update in main window although previews do automatically update.
    23) CONCLUSION - In Lightroom 4 Beta>Print Module>Template Browser, image layouts do not change after initial choice as expected.
    I posted this on Photoshop.com as a problem.

  • I want to use the Function Generator VI to send command signals through the NI 7344 motion controller. This will be a closed loop servo valve system. I want to be able to change from say a square wave to a sine wave on the fly. Idea's?

    I am going to run tests that require an actuator to move using various types of arbitrary waveforms such as sine or square. The NI 7344 is hooked to the UMI that is going through a driver for a servo valve. The loop is analog and it is closed. I have played with some of the examples but can't get it to work. I have used the function generator VI to generate a signal but I think I am using the wrong input VI to the motion control board. When I use what I have it moves the servo and then stops. It doesn't continually generate the signal.
    I would love to use the controls on the function generator vi to control frequency and amplitude ect. Any help or pointer would be helpful. Thank you in advance.

    Hello,
    I'm not clear on exactly how you want to use the generated data but I'm assuming they will be used as your target points.
    There's a built-in example for motion called 'One-Axis Contour Move.vi'. This example demonstrates how to provide your target points as 1-D array. All you need to do is to replace the input array with the output of the function generator. In order to have it run continuously, use a while loop. You can further program your application so that it'll change the waveform on the fly by monitoring the user interface but this might be little little tricky as you will need to reset the move and load the new generated points while keeping track of your current position.
    I hope this helps. Let me know if you have further questions regarding this
    application.
    Best regards,
    Yusuf C.
    Applications Engineering
    National Instruments

  • JAVA 3D: How to animate "on-the-fly"?

    Hy guys,
    I'm new to Java 3D and I've read a whole bunch of tutorials as well as Selman's book.
    However, as great as Java 3D seems, it seems like I can't get Interpolators to work the way I want them to! Here is my goal:
    Create a simulation where the View is FIXED and the main ANIMATED character (comibnation of objects) MOVE AROUND the universe through the user's keyboard commands.
    I've managed the above by creating all my objects, adding them to a branchgroup, adding that branchgroup to a transformgroup, adding a few interpolator animations to the transformgroup and finally adding a cutom keyboard navigator behavior to the transformgroup.
    The following problem has occurred:
    I can't NICELY move the transformgroup around because I use Transform3D objects to calculate the next position of the transformgroup and I then apply it to the transformgroup by calling the "setTransform" method on that group with the Transform3D object. The result is an instantaneous leap x locale units away with no animation in between the original and final position. :o( This is the only way I got this working. The Java runtime keeps yelling at me that I can't add or remove Interpolators or transformgroups from other transformgroups or branchgroups, so I can't change interpolators on-the-fly (say, when the user wants to move in a different direction)... Can it possibly be that we can only declare and use interpolators at prior to executing a universe?!
    The IDEAL solution I'm looking for (!INSERT YOUR HELP HERE! ;o) ):
    Replace the ugly "setTransform" call by adding a PositionInterpolator or something to the transformgroup object in order to generate a SMOOTH ANIMATION from the original position to the final position. The end result will be must nicer and more professional.

    Ok, I've modified the simple behavior class in order to extend the PositionInterpolator class and be able to get a translation that always begins from the last target position. Eventually, I'd also like to be able to modify the AXIS so I can change direction... Anyway, right now I just want what IWON managed to do in one direction.
    Here's what I got that DOESN'T WORK, can someone please help me, IWON?:
    // Allows an object or group of objects to be moved around SMOOTHLY by the keyboard.
    public class KeyboardControlBehavior extends PositionInterpolator {
    private TransformGroup source;
    public static final float distance = 0.1f;
    public static final long time = 200;
    // create SimpleBehavior
    KeyboardControlBehavior(TransformGroup source, TransformGroup target){
    super(new Alpha(1, Alpha.INCREASING_ENABLE, 0000, 0, time, 0, time, 0, 0, 0), target);
    // initialize the Behavior
    // set initial wakeup condition
    // called when behavior beacomes live
    public void initialize(){
    // set initial wakeup condition
    this.wakeupOn(new WakeupOnAWTEvent(KeyEvent.KEY_PRESSED));
    // behave
    // called by Java 3D when appropriate stimulus occures
    public void processStimulus(Enumeration criteria){
    // Check which direction we're going and adjust the AXIS and endPosition
    // in consequence.
    KeyEvent event = (KeyEvent) ((WakeupOnAWTEvent) criteria.nextElement()).getAWTEvent()[0];
    int c = event.getKeyCode();
    System.out.println("KEY PRESSED = "+c);
    if ( c != KeyEvent.CHAR_UNDEFINED ) {
    if(c == KeyEvent.VK_UP) {
    System.out.println("UP");
    if(c == KeyEvent.VK_DOWN) {
    System.out.println("DOWN");
    if(c == KeyEvent.VK_LEFT) {
    System.out.println("LEFT");
    if(c == KeyEvent.VK_RIGHT) {
    System.out.println("RIGHT");
    // Let the PositionInterpolator animate the translation.
    super.processStimulus(criteria);
    // Adjust the source's position to be at the end position of the
    // animation (same as target).
    Transform3D newPosition = new Transform3D();
    Transform3D oldPosition = new Transform3D();
    source.getTransform(oldPosition);
    target.getTransform(newPosition);
    newPosition.mul(oldPosition);
    source.setTransform(newPosition);
    // Reset the Alpha class since it only executes once.
    super.getAlpha().setStartTime(0);
    // Consume the event.
    event.consume();
    // do what is necessary
    this.wakeupOn(new WakeupOnAWTEvent(KeyEvent.KEY_PRESSED));
    } // end of class SimpleBehavior

  • How to change the frequency of pulse train on the fly using an array of values?

    Hi all!
    First I want to thank U for the great job you are doing for this forum.
    Iam still busy trying to control a stepper motor, by sending pulses from my E-series 6024 to a compumotor s6- stepper Driver. I've managed to get it working. I desperately need to control the motor using the values from an array. I believe we can use two approaches for that:
    1st - I can get an array of the "numbers of pulses". Each element must run for 10 milliseconds. Using that we can calculate the array of frequencies to send the number of pulses within 10 milliseconds for each specific element. Could we use the arrays of "number of pulses" and frequencies in a "finite pulse train " and up
    date with each element every 10 millisecond?
    2nd - Or Could we use of the frequency array in a "continuous pulse train vi" and update it every 10 milliseconds?
    Please note that I must use the values as they are.
    Can someone please built a good example for me? Your help will be appreciated.
    Regards
    Chris
    Attachments:
    number_of_steps.txt ‏17 KB
    frequency.txt ‏15 KB

    Tiano,
    I will try to better explain the paragraph on LabVIEW. The original paragraph reads ...
    "While in a loop for continuous pulse train generation, make two calls to Counter Set Attribute.vi to set the values for "pulse spec 1" (constant 14) and "pulse spec 2" (constant 15). Following these calls you would make a call to Counter Control.vi with the control code set to "switch cycle" (constant 7). The attached LabVIEW programs demonstrate this flow."
    You can make two calls to Counter Set Attribute or you can make a call to Set Pulse Specs which, if you open this VI, you will see that it is just making two calls to Counter Set Attribute. What you are doing with the Counter Set Attribute VIs is setting two registers called "pulse s
    pec 1" and "pulse spec 2". These two registers are used to configure the frequency and duty cycle of your output frequency.
    The example program which is attached to this Knowledge Base demonstrates how to change the frequency of a continuous generation on the fly. Why continuous? Because changing the frequency of a finite train would be easy. When the train completes it's finite generation you would just change the frequency and run a finite train again. You would not care about the time delay due to reconfiguration of the counter.
    If you would like to change the frequency of the pulse train using a knob, this functionality will have to be added in the while loop. The while loop will be continuously checking for the new value of the knob and using the knob value to set the pulse specs.
    LabVIEW is a language, and as with learning all new languages (spoken or programatic) there is a lot of learning to be accomplished. The great thing is that LabVIEW is much easier than mo
    st languages and the learning curve should be much smaller. Don't fret, you'll be an expert before you know it. Especially since you're tackling a challenging first project.
    Regards,
    Justin Britten

  • Can I create a dashboard layout on the fly?

    Hi all, I am trying to create a dashboard layout "on-the-fly"
    (dynamically).
    for example: I can create the following layout using MXML
    very easily:
    [CODE]
    <mx:VBox width="100%" height="100%"
    horizontalAlign="center">
    <mx:Canvas id="dashboardCanvas" width="90%"
    height="90%">
    <mx:HBox width="100%" height="100%">
    <mx:Panel title="panel 1" width="50%" height="100%">
    <mx:VBox width="100%" height="100%"
    borderStyle="solid">
    <myDashboarComp borderStyle="solid" />
    <myDashboarComp borderStyle="solid" />
    <myDashboarComp borderStyle="solid" />
    </mx:VBox>
    </mx:Panel>
    <mx:Panel title="panel 2" width="50%" height="100%">
    <mx:HBox width="100%" height="100%">
    <myDashboarComp borderStyle="solid" />
    <myDashboarComp borderStyle="solid" />
    <myDashboarComp borderStyle="solid" />
    </mx:HBox>
    </mx:Panel>
    </mx:HBox>
    </mx:Canvas>
    </mx:VBox>
    [/CODE]
    You can see that I want to build my dashboard up using
    HBox's, VBox's, Panels and the individual custom components
    (myDashboarComp) - keepinng the layout and structure quite simple.
    The above MXML creates a simple Dashboard consisting of the
    canvas (where it all starts - it constructed from -
    "dashboardCanvas"). the canvas has 2 panels within a HBox (so are
    side by side) called "panel 1" and "panel 2". panel 1 contains a
    VBox containing 3 components (displayed vertically) and panel 2
    contains a HBox containing 3 components (displayed horizontally) -
    so very simple.
    However - I want to control this layout externally e.g.
    passing an object or array (some sort of descriptor) to describe
    the layout to my app.
    I then want to loop through this descriptor item and build my
    dashboard using ActionScript rather than MXML to more control and
    flexibility.
    this is the object I have created and have been experimenting
    with in ActionScript:
    [CODE]
    [Bindable]
    public var descriptorObj:Object =
    {item:"dashboard", children: [
    {item:"vbox", id:"vbox1", percentWidth:100,
    percentHeight:100, children:[
    {item:"panel", id:"panel1", percentWidth:50,
    percentHeight:100, children:[
    {item:"vbox", children: [
    {item:"myDashboarComp"},
    {item:"myDashboarComp"},
    {item:"myDashboarComp"}
    {item:"panel", id:"panel2", percentWidth:50,
    percentHeight:100, children:[
    {item:"hbox", children: [
    {item:"myDashboarComp"},
    {item:"myDashboarComp"},
    {item:"myDashboarComp"}
    [/CODE]
    This is as far as I got as I kept hitting hurdles from here.
    Basically - all I want to do is somehow read / loop through
    this object and build my dashboard.
    First of all I was unsure of the best way to loop through the
    object - as I have to do it in order to get the correct layout...
    i.e. the first 3 "myDashboarComp's" are added to the >
    VBox that is added to > "panel1" that is added to the > HBox
    that is added to the > Canvas.
    This is where I ran into my second problem. I managd to loop
    through and read the elements checking there "item" in the object
    and adding them accordingly.... I could loop though and add each
    item to the canvas ok, e.g:
    [CODE]
    private function initApp():void
    for(var i:int=0; i<descriptorObj.children.length; i++)
    var itemType:String = descriptorObj.children
    .item.toString();
    var percentWidth = descriptorObj.children.percentWidth;
    var percentHeight = descriptorObj.children
    .percentHeight;
    addContainer(itemType, percentWidth, percentHeight);
    private function addContainer(conType:String, pWidth:int,
    pHeight:int):void
    if(conType == "panel")
    addPanel(pWidth, pHeight);
    else if(conType == "vbox")
    addVBox(pWidth, pHeight);
    private var newPanel:Panel;
    private function addPanel(pWidth:int, ptHeight:int):void
    newPanel = new Panel();
    newPanel.percentWidth = percentWidth;
    newPanel.percentHeight = percentHeight;
    newPanel.title = "test panel";
    dashboardCanvas.addChild(newPanel);
    [/CODE]
    in the above actionScript the canvas "dashboardCanvas" is
    already set up in the MXML (but is the only MXML container added as
    the rest should be built using the create object "descriptorObj" in
    AS).
    This is my next problem - when I have added a container,
    e.g. a panel the next items e.g. my "myDashboarComp's" should then
    be added to the previously added panel and not to the canvas
    anymore - I need some way of telling the app to add children to the
    last added container and not to the canvas (and each container can
    change type from a panel to VBox to HBox etc....)
    I hope what I am trying to say makes sense, and any help on
    this one would be greatly appreciated.
    I just need pointing in the right direction and some ideas on
    how to continue would be good - and if my thinking / method / ideas
    are actually possible.
    Kind Regards,
    Jon.

    There are several ways to do this. The third chapter in the
    cookbook is a good place to start.
    All things in ActionScript are based on objects. Constructing
    them with the data needed for the ui information you will need and
    then binding that data to your dashboard objects is basically what
    you are going to be doing.
    For me it makes the most sence to have an idea of what
    different types of objects you will be creating and create some
    extended components for those objects. Then when you recieve your
    data, binary or xml, you can digest the configuration settings from
    the layout and populate the constructor for each of your
    components.
    It sounds like you need to organize your layout structure in
    a heirarchy and from that you can walk each branch and create each
    set of things as you parse your data.
    Without a bit more information as to what you are
    specifically doing that is about as far as I can go minus adding in
    some code along some line that I think might work.
    Hope that helps some.
    -D

  • Can I change the delay or pulse width on a trigered pulse on the fly in DAQmx

    In the old DAQ driver you could not change the a triggered pulse delay or pulse width on the fly of a as there was a problem in the DAQ driver or was this a hardware problem?
    Is this now possible with DAQmx , if not why not as you could do this with the old 16 bit cards in dos by updating the registers.
    This has been a major problem with NI counters timers and one would have thought that by now this problem would be fixed.We need to do this with out stopping and restarting a task.
    Any help here.
    Ta
    Colin

    Hi Colin,
    Please can you try the suggestion in this KB. hopefully it should still work with what you are doing. I can not find any information specifically on what you want to do with a triggered pulse. However this example program might give you some hints as well.
    Regards
    JamesC
    NIUK and Ireland

  • Oracle UCM folder level access on the fly

    Our requirement is like this. We have a folder named Projects.
    One user with Project Manager role will create a new folder within the Projects folder and give access to this new folder to one user from the Project Team Member role. No other member from the Project Team Member role will have access to that folder.
    Hence the access is not based on role or group but to an individual who will be selected on the fly.
    If someone can help me resolve the issue, that would be of immense help.
    Thanks,
    Deep.

    Well thanks again for your support. I saw you have given some detailed steps in another of my post. I have tried the ntk meanwhile in my own way and found something is working but not exactly what I want.
    Let me tell you this is for a demo that needs to shown to the client in a couple of days and I have jumped into this thing shortly to help out but I am not an expert of UCM.
    The requirement is like this -
    There is a virtual folder called Projects.
    The project manager will create another virtual folder under Projects and will give access it's access to only one of the project team members.
    There are two roles PROJECT_MANAGER and PROJECT_TEAM_MEMBER.
    If a user is either of these two roles s/he will see this folder. This works.
    I have installed the ntk component and set SpecialAuthGroups=restricted under the General Configuration.
    Added a new metadata DisclosureQuery.
    In the Content Security Configuration Information page of NTK Administration, under the Read Options section set Yes for both Use Security and Limit Access and in the script area wrote
    <$if isDisclosureQuery(xDocDisclosureQuery)$>
    <$isNTKReadAccess=1$>
    <$endif$>
    Say the user XXX has role PROJECT_MANAGER. He creates a folder say Project X under the folder Projects and mark the security group as Restricted. And in the DisclosureQuery filed wrote
    (UserName like 'ABC')
    Now say there are two users ABC and JKL with role PROJECT_TEAM_MEMBER. They both can see the Projects folder. The ABC can further see the folder Project X under Projects where JKL does not see any folder under Projects folder.
    But when ABC clicks on the Project X folder and tries to go inside it, the error message is thrown "Can not read folder".
    PROJECT_TEAM_MEMBER has RW access on Restricted security group.
    I even tried to put PROJECT_TEAM_MEMBER in the Query Role and Update Role select boxes in the Hit List Roles Configuration Information page. Not sure if I really need this.
    This link helped me a lot - http://selvam2day.blogspot.com/2010/10/sample-step-by-step-implementation.html
    But I am not able to resolve the last part.
    You can help that will be much appreciated.

  • Generating JSP/HTML on the fly

    Hi all,
    The requirement is to be able to generate HTML files (for UI display) on the fly depending on the database table structure. (Consider an EMPLOYEE table for example, an output HTML file needs to be generated based on the fields present in this table).
    To store data (config data) regarding this HTML file (in terms of field names, field types, attributes, etc.) what is suggested is to use an XML file which would have these, then a java file would read these from the XML and give out an other XML which would contain the actual data that will go in to the HTML (such as if the original XML conf. file contained a select statement for a LOV field, then the java file would fetch these and put them inthe final XML file) and so on.. and then have an other XSLT file with the appropriate layout to generate the final HTML.
    Could any one else suggest an alternative technique?
    Thanks and much appreciated.

    read your XML file to a "org.w3c.dom.Document" structure (see the example: http://www.developerfusion.com/show/2064/), then use an XSLT to show the Document in HTML frormat.
    // doc is an instance object of org.w3c.dom.Document
    File stylesheet = new File("style.xsl");
    StreamSource stylesource = new StreamSource(stylesheet);
    File datafile = new File("results.html");
    try {
    // Use a Transformer for output
    TransformerFactory tFactory = TransformerFactory.newInstance();
    Transformer transformer = tFactory.newTransformer(stylesource);
    DOMSource source = new DOMSource(doc);
    StreamResult result = new StreamResult(datafile);
    transformer.transform(source, result);
    catch (TransformerConfigurationException tce) {
    // Error generated by the parser
    System.out.println ("\n** Transformer Factory error");
    System.out.println(" " + tce.getMessage() );
    // Use the contained exception, if any
    Throwable x = tce;
    if (tce.getException() != null)
    x = tce.getException();
    x.printStackTrace();
    catch (TransformerException te) {
    // Error generated by the parser
    System.out.println ("\n** Transformation error");
    System.out.println(" " + te.getMessage() );
    // Use the contained exception, if any
    Throwable x = te;
    if (te.getException() != null)
    x = te.getException();
    x.printStackTrace();

  • Database logging on-the-fly or not?

    Hi,
    I'm not sure which option of data logging to choose and what is the advantage/disadvantage of each one.
    1) Which option to choose and why?
    2) For not on-the-fly option, I noticed that the step 'Log To Database Callback' is activated. I could not figured out what happend when the on-the-fly is selected. The Help indicates that in this case 'Post Result callbacks' is called. Where do I find it?
    3) I have a specific requirent that in 'Run Selected Step Using Single Pass' I like to insert the SN both in the report and in the database. Since the preUUT callback is not called in this mode I overcome it by getting the last UUT SN from within the code of my mainSequence (I read it from a file and have the operator approve it). Th
    en, I added a statment step (in the sequentialModel) right after the MainSequence where I set 'Locals.UUT.SerialNumber'. With this mechanism, the SN is get into the database only if I don't use on-the-fly!!
    My question is: Is it OK to do it the way I described it? Is there a better way?
    Thanks
    Rafi
    TS 3.0

    Hey Rafi,
    I wouldn't suggest adding a parameter to main sequence. Is this something you want to do with every sequence that runs with the single pass entry point (Meaning everytime you select Run Single Pass you want to get the serial number)? If so, then I would suggest modifying the single pass entry point to include this code before the main sequence callback.
    If this change is something you want to make just for a specific sequence then adding it to the client sequence is one way to do it. Another way would be to add an addition callback to the single pass entry point - like the preUUT callback in Test UUTs. You would pass as a parameter to this callback Locals.UUT (just like preUUT). This callback could be empty by default but you could add the callback to your client sequence file and set the serial number from there: Parameters.UUT.SerialNumber = Locals.SerialNumber. You could use the preUUT callback in Test UUTs as a guide.
    If you can't modify the process model then you should be able to set the serial number from the client sequence file. Use the expression RunState.Root.Locals.UUT.SerialNumber to reference the serial number. For example I added a statement step to my main sequence that has the expression: RunState.Root.Locals.UUT.SerialNumber = "myserialnumber". This set the serial number from the client sequence.
    I hope this helps!! Please let me know if you have any additional questions on any of these approaches.
    Regards,
    Sarah Miracle
    National Instruments

  • Dynamically  populate  a  record  group  on  the  fly uisng LOV

    Hi,
    I want to create dynamically populate a record group on the fly uisng LOV.
    1. This is how the RG_BANKNAME Record Group object look like
    Object : Record Group
    Name : RG_BANKNAME
    Record Group Query : SELECT NAME, SHORT_NAME FROM C_BANKS
    2. I create the Push Button and when user click it will popup the LOV.
    DECLARE
         rg_id RecordGroup;
         errcode NUMBER;
         status BOOLEAN;
    BEGIN
         rg_id := Find_Group('RG_BANKNAME');
         IF Id_Null(rg_id) THEN
              Message('No such group: ',ACKNOWLEDGE);
              RAISE Form_Trigger_Failure;
         ELSE
              errcode :=POPULATE_GROUP(rg_id);     
              SET_LOV_PROPERTY('LV_NAME', TITLE, 'My Own LOV');
              SET_LOV_PROPERTY('LV_NAME', GROUP_NAME, rg_id);
              SET_LOV_COLUMN_PROPERTY('LV_NAME', 1 ,Title, 'NAME');
              SET_LOV_COLUMN_PROPERTY('LV_NAME', 1 ,Width, 150);     
              SET_LOV_COLUMN_PROPERTY('LV_NAME', 2 ,Title, 'SHORT NAME');
              SET_LOV_COLUMN_PROPERTY('LV_NAME', 2 ,Width, 100);     
              status := Show_LOV('LV_NAME',10,20);
              IF NOT status THEN
                   Message('You have not selected a value.');
                   Bell;
              END IF;
         END IF;
    END;
    My question is do I need to create the LOV Object name call 'LV_NAME'? since I don't have this
    create on my design times, because I thought it can be done dynamically on the fly.
    The problem is compliant that the Lov Id is not valid.
    Thanks
    David
    Edited by: user445990 on May 24, 2011 9:19 PM

    Hello,
    You request is not clear. Do you need to display the LOV or not ? In other words, what is the goal of your record group ?
    Francois

  • I am missing the add objects section from the fly out menu in Photoshop CS6. 3d workspace

    I am missing the "add objects" section from the fly out menu in Photoshop CS6. I am in the 3D workspace of Photoshop. "Scene" is highlighted and I have clicked on the little fly out menu in the upper right hand corner of that panel. The whole section that should contain, Add objects, delete objects, duplicate objects, all the way through reverse order is missing. The add lights section above and render section below it is there. I am not new to Photoshop, but I am new to the 3D section of Photoshops work space.
    I do know about creating a new layer in the layers tab and merging the objects together trick. But I kind of would like for the program to work correctly as I am sure that doing it that way will cause some sort of problems later in the work process.
    Below are the specs of my system.
    Adobe Photoshop Version: 13.0.1 (13.0.1.3 20131024.r.34 2013/10/24:21:00:00) x64
    Operating System: Windows NT
    Version: 6.2
    System architecture: Intel CPU Family:6, Model:12, Stepping:3 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2, HyperThreading
    Physical processor count: 4
    Logical processor count: 8
    Processor speed: 2394 MHz
    Built-in memory: 32651 MB
    Free memory: 28832 MB
    Memory available to Photoshop: 29606 MB
    Memory used by Photoshop: 89 %
    Image tile size: 128K
    Image cache levels: 4
    OpenGL Drawing: Enabled.
    OpenGL Drawing Mode: Basic
    OpenGL Allow Normal Mode: True.
    OpenGL Allow Advanced Mode: True.
    OpenGL Allow Old GPUs: Not Detected.
    Video Card Vendor: Intel
    Video Card Renderer: Intel(R) HD Graphics 4600
    Display: 3
    I am actually running windows 8. So I am not sure why it is saying windows NT. Anyway...
    Photoshop says that my software is up to date. I use Photoshop daily and everything else works just fine. I have looked through this forum and there is someone else who had the same issue as me but their question was not given a solution. So that is why I choose to post it again.
    Any help will be great. Thank you!
    Mark.

    I've made tests with four different 3rd party tools: OpenGL Extension Viewer, GPU Caps Viewer, Compute4Cash OpenCL Diagnostic Tool and Mudlord's Glide3x wrapper tester. All those tools report no problems with my video card driver and OpenGL/CL.
    I have contacted nVidia and based on reports from the tools and visual tests from GPU Caps Viewer nVidia support doesn't see a problem with my driver.
    I found sniffer_gpu.exe which according to Adobe Help pages is a kind of diagnostic tool and determines whether Photoshop uses the graphic card OpenCL or not. Here is the output:
    Device: 00000000002B1BE8 has video RAM(MB): 1023
    Vendor string:    NVIDIA Corporation
    Renderer string:  GeForce GTX 650/PCIe/SSE2
    Version string:   3.0.0
    OpenGL version as determined by Extensionator...
    OpenGL Version 3.0
    Has NPOT support: TRUE
    Has Framebuffer Object Extension support: TRUE
    OpenGL ok
    OpenCL ok, version=1.1 CUDA 4.2.1
    Return code: 3
    From Adobe GPU Sniffer tool, it looks OK.
    On the other hand, I have your word that there is no problem with Photoshop not recognizing OpenCL for my card and that nVidia driver has problems. Can you justify this somehow? Perhaps you could provide more details on technical level, or another utility to run and extract details, to at least identify the problem Photoshop has and hopefully solve it on either side.
    P.S. During tests there were two things which I noticed, but they are probably not related to the issue:
    1. One tool reports the lack of Windows registry key SOFTWARE/Microsoft/Windows (NT)/CurrentVersion/OpenGLDrivers. But according to your previous statement, Photoshop only uses OS calls, no registry and according to nVidia, this key is not used in Windows 7.
    2. During some tests GPU Caps Viewer reports that "OpenCL CPU not supported on the selected platform". This is not complaining about GPU, only about CPU. But Photoshop is complaining about GPU, so it shouldn't be relevant.

  • Workflow to set a choice field on the fly

    Is it possible for a list workflow to execute on the fly as conditions are met before Save is pressed?
    Example: list has two choice columns. Col1 has choices A, B, C. Col2 has choices 1, 2, 3
    Workflow is created so that if user chooses A in Col1, then Col2 will get automatically set to 1. The problem is that Col2 only gets set to 1 when the user Saves the new item and refreshes the page. I want Col2 to get set to 1 on the fly as soon as
    the user sets Col1 to A. is this possible using workflows? If not, is it possible any other way in SharePoint 2010.
    Thanks... Mike
    Note: Col2 is not a Calculated field because if A is not chosen in Col1, the user needs to be free to choose 2 or 3 in Col2. Thus it needs to be a Choice field.

    SPD workflows consist of actions and triggers. You can combine as many triggers as you need but be aware the default condition is an OR clause, not an AND clause.
    You can also set workflows to trigger on item edit, not just item creation.  You'd want to use a few pause steps to finetune the workflow but what you want to achieve is possible.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

Maybe you are looking for

  • SAME EJB 3.0 Stateful Session bean for different JSP sessions returned

    Forum, I have a strange problem utilizing stateful session beans. Please note, that I am using jdeveloper for the following: 1) Here is a basic stateful session bean: @Stateful(name = "DemoClass") public class DemoClassBean implements DemoClass,     

  • There is a problem connectiong to the specified reporting Server SCCM 2012 SSRS

    hi, I'm Trying to install reporting services point SCCM 2012,  I configured the site system role without problems, but when I tried to configure the report options I get this error: "There is a problem connectiong to the specified reporting, please c

  • PC00_M10_REC

    Hi All - we use this report to reconcile any SUI issues through out the year, We have noticed that when you use the dates: 01/01/2010-12/31/2010 only one employee is reported on, but when we use quarterly dates (10/01/2010-12/31/2010) more data is be

  • Problem with Master collection.

    Hello, i'm a flash animator that has been animating for 5-6 months now. My brother bought adobe master collection and has had it for months because he needs to use Premiere pro. So anyways, as i see a preview of my work, nothing comes up. I tried com

  • Re: My speak volume fades out after a few seconds

    My UK friend has the same fading on his voice when I talk to him. This seems to be a known problem but I have not been able to find the answer