Best way to order dependent objects

I have a Group object which has a List of Monitor objects. A monitor object
has a name. I'd like the monitor objects to be ordered by name. What is
the simplest way to do this? I can't use the setOrdering method because I'm
not using a query when I call the Group's getMonitors() method. I looked at
the ordered extension but I don't understand it. I tried it like this:
<class name="MonitorGroup"
identity-type="datastore"
> <!-- end class tag -->
<field name="monitors"
> <!-- end field tag -->
<collection
element-type="Monitor"
> <!-- end collection tag -->
</collection>
<extension vendor-name="kodo"
key="ordered"
value="true">
</extension>
</field>
</class>
But I still get this warning when I run my application:
WARN MetaData - The field "monitors" in class "MonitorGroup" implements the
java.util.List type, but does not specify an "ordered" metadata extension.
This means that the order of this list will not be maintained. In a future
release of Kodo JDO, fields of List types will be ordered by default.
BTW are Lists ordered in 2.5 or is this scheduled for 3.0?
Thanks,
Michael

Patrick,
In the past I suggested to add Collection Comparator support to JDO.
And I believe you planned to discuss it on JDO spec panel. Did it go
anywhere?
I also use TreeSet and comparable in most cases (just be careful to fully
initialize and never change all collection member fields which are used in
compareTo() or you will have wrong sort order). I would prefer comparators
to implementing comparable because comparable is "global thing" (you want
your comparable interface implementation to be universal and useful outside
of owning collection) while for your collection sorting can be and often is
owner specific
"Michael" <[email protected]> wrote in message
news:b95f6j$5ok$[email protected]..
I have a Group object which has a List of Monitor objects. A monitorobject
has a name. I'd like the monitor objects to be ordered by name. What is
the simplest way to do this? I can't use the setOrdering method becauseI'm
not using a query when I call the Group's getMonitors() method. I lookedat
the ordered extension but I don't understand it. I tried it like this:
<class name="MonitorGroup"
identity-type="datastore"
<!-- end class tag --><field name="monitors"
<!-- end field tag --><collection
element-type="Monitor"
<!-- end collection tag --></collection>
<extension vendor-name="kodo"
key="ordered"
value="true">
</extension>
</field>
</class>
But I still get this warning when I run my application:
WARN MetaData - The field "monitors" in class "MonitorGroup" implementsthe
java.util.List type, but does not specify an "ordered" metadata extension.
This means that the order of this list will not be maintained. In a future
release of Kodo JDO, fields of List types will be ordered by default.
BTW are Lists ordered in 2.5 or is this scheduled for 3.0?
Thanks,
Michael

Similar Messages

  • Best way to do a Object which holds a collection of another object type.

    I'm writing a caching object to store another object. The cache is only valid for a session, so I want a store the data in a nested table.
    I have try to simplify my example down to its core.
    How do I make this work and what is the best to index the index the items stored for fastest retrieval.
    CREATE OR REPLACE TYPE ty_item AS OBJECT (
    id_object VARCHAR2 (18),
    ORDER MEMBER FUNCTION compare (other ty_item)
    RETURN INTEGER
    CREATE OR REPLACE TYPE BODY ty_item
    AS
    ORDER MEMBER FUNCTION compare (other ty_item)
    RETURN INTEGER
    IS
    BEGIN
    IF SELF.id_object < other.id_object
    THEN
    RETURN -1;
    ELSIF SELF.id_object > other.id_object
    THEN
    RETURN 1;
    ELSE
    RETURN 0;
    END IF;
    END;
    END;
    CREATE OR REPLACE TYPE ty_item_store AS TABLE OF ty_item;
    CREATE OR REPLACE TYPE ty_item_holder AS OBJECT (
    CACHE ty_item_store,
    MEMBER FUNCTION get (p_id_object IN VARCHAR2)
    RETURN REF ty_item,
    MEMBER FUNCTION find (p_id_object IN VARCHAR2)
    RETURN REF ty_item,
    MEMBER FUNCTION ADD (p_id_object IN VARCHAR2)
    RETURN REF ty_item
    CREATE OR REPLACE TYPE BODY ty_item_holder
    AS
    MEMBER FUNCTION get (p_id_object IN VARCHAR2)
    RETURN REF ty_item
    IS
    rtn REF ty_item;
    BEGIN
    rtn := find (p_id_object);
    IF rtn IS NULL
    THEN
    rtn := ADD (p_id_object);
    END IF;
    RETURN rtn;
    END;
    MEMBER FUNCTION find (p_id_object IN VARCHAR2)
    RETURN REF ty_item
    IS
    rtn ty_item;
    BEGIN
    SELECT VALUE (ch)
    INTO rtn
    FROM CACHE ch
    WHERE ch.id_object = p_id_object;
    RETURN rtn;
    END;
    MEMBER FUNCTION ADD (p_id_object IN VARCHAR2)
    RETURN REF ty_item
    IS
    item ty_item;
    BEGIN
    item := ty_item (p_id_object);
    INSERT INTO CACHE
    VALUES (item);
    END;
    END;
    /

    Best way to do a Object which holds a collection of another object type. The best place for data in a database is.. no real surprise.. in tables. If that data is temporary of nature, global temporary tables cater for that.
    Storing/caching data using PL/SQL requires very expensive private process memory (PGA) from the server. This does not scale.
    I'm writing a caching object to store another object. Irrespective of how l33t your haxor skillz are, you will not be able to code as a sophisticated, performant and scalable PL/SQL data cache, as what already exists (as the database buffer cache) in Oracle.
    The cache is only valid for a session, so I want a store the data in a nested table.Not sure how you take one (session local data) to mean the other (oh, let's use a nested table).
    Session local data can be done using PL/SQL static variables. Can be done using name-value pairs residing in a context (Oracle namespace). Can be done using a global temporary table.
    The choice is dependent on the requirements that need to be addressed. However, the term +"caching+" has very specific connotations that say that a global temporary table is likely the best suited candidate.

  • Best way to make a object details page

    I have a dataTable, built with a sessionBean List. We have to make a link "show detail" in each row, and redirect to a new jsp showing selected row object details.
    Whats the best way to retrive the object selected?
    a commandLink with param (haschcode value) and search in list isn`t possible because is a sessionBean..
    I have some ideas but not with JSF....
    thanks

    1) Bind h:dataTable to an UIData property in main backing bean.
    2) Add a h:commandButton or h:commandLink to a column and bind it with an action method in main backing bean.
    3) In the main backing bean action method simply retrieve the row object byRowObject selectedRowObject = (RowObject) uiDataProperty.getRowData();and navigate to some display details page.
    4) In the display details page just access the data by #{mainManagedBean.selectedRowObject.someProperty} and so on.
    Detailed examples can be found here: [http://balusc.blogspot.com/2006/06/using-datatables.html].

  • Best way to populate an object

    This is more of a coding convention question. I was wondering what is the best or industry standard way to populate an object.
    If there's a method that returns an object is it better to pass an empty object (just declared) into the method, have the method populate the object and then just use the object
    e.g. Object foo;
    populateObject(foo);
    foo.getProperty();
    or
    have the method return a newly populated object
    e.g. Object foo = populateObject();
    foo.getProperty();
    thanks

    It's better to pass in an object as an argument when performance is important. You can pass in the same object instead of creating new objects for each call to getProperty().
    It's better to return a newly populated object when the caller does not know what class of object will be returned. The getProperty() method could return a subclass of Object.
    As is often the case, the answer is: it depends.

  • Best way to MouseDrag multiple objects around a scene.

    So I am having a little trouble trying to drag 3 Box's in a scene.
    Originally I had it set up where each was relocated to an x,y translated Z and set to a HWD. Then I figured I would, instead of the mouse click on the box itself, be in the root. From there I would look through all of the root.getChildren() then made that see if it contained the x,y position.
    Then from knowing which of my root Children I clicked I did root.getChildren.get(current).setOnDragged to figure out which one was dragged.
    The code itself worked except for finding which box I was on.
    The issue I find is that I onyl have getX, getSceneX, and getScreenX. X, and SceneX produce the same value, and ScreenX is useless. I tried then to do event.getX() - root.getLayoutX() to make the contains function to work, but it wasn't working and would require me to change up more things. getLayoutX() was = 0 since I didn't set the root location, only the locations of the box's.
    From there I kept wondering if there was a better way. Then I thought maybe to loop through every element in my root or in an arrayList(Which is what I used, but realized the root.getchildren should work like the original) but the problem is it keeps only registering the last one in the list, so it just loops and that's it.
    So what I want to know is, what would be the best way to figure out what object I'm in?
    Originally I use the contains(Swing) but Swing is different, and now especially since we can register mouseEvents to each node, shouldn't we know exactly which one we are on, just by looping through each of them? I figure that's easier than having to check every single mouse position contained within, especially if I have 10000 things to check?
    Edited by: KonradZuse on Mar 18, 2013 8:05 PM

    I slightly modified your code for 3D.
    - added a pointlight
    - added a phong material
    - the rectangle changed to a box
    - the circle changed to a sphere
    - add scene.setCamera(new PerspectiveCamera(false));
    Without the last line it is not working.
    I tested it with javafx8.0 build 80 Netbean7.3
    import javafx.application.Application;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.Pane;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.Circle;
    import javafx.scene.shape.Polygon;
    import javafx.scene.shape.Rectangle;
    import javafx.stage.Stage;
    import javafx.event.EventHandler;
    import javafx.scene.Group;
    import javafx.scene.PerspectiveCamera;
    import javafx.scene.PointLight;
    import javafx.scene.paint.PhongMaterial;
    import javafx.scene.shape.Box;
    import javafx.scene.shape.DrawMode;
    import javafx.scene.shape.Sphere;
    public class DraggingShapes3D extends Application {
        @Override
        public void start(Stage primaryStage) {
            PointLight pointLight = new PointLight(Color.ANTIQUEWHITE);    
            pointLight.setTranslateX(800);    
            pointLight.setTranslateY(-100);  
            pointLight.setTranslateZ(-1000);
            PhongMaterial material = new PhongMaterial();
            material.setDiffuseColor(Color.LIGHTGRAY);
            material.setSpecularColor(Color.rgb(30, 30, 30));
            Box box = new Box(200, 200, 200);
            box.setMaterial(material);
            box.setTranslateX(100);
            box.setTranslateY(100);
            box.setDrawMode(DrawMode.FILL);
            box.addEventHandler(MouseEvent.ANY, new DragShapeHandler());
            Group root = new Group();
            Sphere sphere = new Sphere(100);
            sphere.setTranslateX(400);
            sphere.setTranslateY(100);
            sphere.setMaterial(material);
            sphere.addEventHandler(MouseEvent.ANY, new DragShapeHandler());
            root.getChildren().addAll(box, sphere);
             root.getChildren().addAll(pointLight);
            Scene scene = new Scene(root, 800, 800, true);
            scene.setCamera(new PerspectiveCamera(false));
            primaryStage.setScene(scene);
            primaryStage.show();
        public static void main(String[] args) {
            launch(args);
        class DragShapeHandler implements EventHandler<MouseEvent> {
            private double sceneAnchorX;
            private double sceneAnchorY;
            @Override
            public void handle(MouseEvent event) {
                if (event.getEventType() == MouseEvent.MOUSE_PRESSED) {
                    sceneAnchorX = event.getSceneX();
                    sceneAnchorY = event.getSceneY();
                } else if (event.getEventType() == MouseEvent.MOUSE_DRAGGED) {
                    double x = event.getSceneX();
                    double y = event.getSceneY();
                    Node node = (Node) event.getSource();
                    node.setTranslateX(node.getTranslateX() + x - sceneAnchorX);
                    node.setTranslateY(node.getTranslateY() + y - sceneAnchorY);
                    sceneAnchorX = x;
                    sceneAnchorY = y;
    }

  • The best way to delete an object

    hi
    i'm searching for a while for the best method to delete an object
    for example let's say i have this object
    Mycar car = new Mycar("bmw");
    is this a correct way to delete it
    car=null;
    System.gc();

    J2ee_consultant wrote:
    i think that they are the same so what's the good solution to do that?You don't. In C++, for example, explicitly freeing objects is a major cause of runtime errors (double frees, or use of freed objects). In java you simply have to trust the garbage collector.

  • Best way to restore "deleted objects" container's ACLs?

    Hi,
    I haven noticed, when using the the LDP for reading the security description of "Deleted Objects" container that LDP returns to me "Error: Security: No Such Attribute <16>". Should it be readable or not? At least all other environments
    I can read it.
    And if it should be readable, then what is the best way to fix it? Take the ownership, and etc... If I take the ownership, then I assume some ACLs are reseted and installations like Exchange and Lync requires domain preparations, right?
    Petri

    > description of "Deleted Objects" container that LDP returns to me
    > "Error: Security: No Such Attribute <16>". Should it be readable or not?
    AFAIK, deleted objects lose their ACL.
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

  • What is the best way to get another object's method to update my GUI?

    package stuff;
    import java.awt.event.*;
    import javax.swing.*;
    import java.awt.*;
    public class Test extends JFrame{
      private static JButton ProcessButton = new JButton();
      private static JLabel jLabel2 = new JLabel();
      public static void main( String args []){
         Test f = new Test();
         f.setSize(500,500);
         Container c = f.getContentPane();
         ProcessButton.addActionListener( new ActionListener(){
                                     public void actionPerformed(ActionEvent e) {
                                        jLabel2.setText("Connecting to DB");
                                        //Connection connection = Tools.setUpConnectionToDB(url,userName,pwd);
         c.add(ProcessButton, BorderLayout.NORTH);
         jLabel2.setText("My Label");
         c.add(jLabel2, BorderLayout.SOUTH);
         f.setVisible(true);
    {\code]
    The method setUpConnectionToDB can take 1 - 10 mins to complete. By this time a user will prob have quit my app thinking
    it's crashed because it doesn't update the GUI with a progress status. :(
    What is the best way to get this method to update the GUI of the app which calls it?
    Something like  Connection connection = Tools.setUpConnectionToDB(url,userName,pwd, this);
    ie this being a reference to the GUI's JFrame is what I'm trying to use?

    A handy class to know about but not really what I'm after.
    I need the method call
    Tools.setUpConnectionToDB(url,userName,pwd);
    to be able to update a component ( The JLabel ) on the GUI
    Connection connection = Tools.setUpConnectionToDB(url,userName,pwd, this);
    [\code]
    method defn:public static Connection setUpConnectionToDB( String url, String user, String pwd, JFrame f ){
    //Why doesn't this code below modify the GUI on the calling App?
    f.jLabel2.setText("Setting UP DB Connection");
    f.repaint();
    Connection c = null;
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    c = DriverManager.getConnection(url,user,pwd);
    catch(ClassNotFoundException e){
    JOptionPane.showMessageDialog(null , "Error loading DB driver");
    System.exit(0);
    catch(Exception e){
    JOptionPane.showMessageDialog(null , "Error connecting to DB, check config file");
    System.exit(0);
    return c;
    }[\code]

  • Best way to transform an object into a circle?

    Let's say I have a long rectangle I want to warp into a circle, what would be the best way to go about doing this?

    Drag the rectangle into the Brushes palette.
    In the resulting dialog, define an Art Brush.
    Draw a circle.
    Apply the Art Brush to the circle.
    JET

  • Best way to order dust jacket by itself (without book)?

    I just received my first hardcopy book that I ordered through Aperture.  Just my luck, I discovered a typo in my text on the dust jacket, which I missed the 3 times I proofread it on-screen.
    I didn't see a way of ordering the dust jacket by itself.  I suppose I could print to PDF and get it printed locally somewhere, but there doesn't seem to be a way of specifying pages to print (e.g. the first two pages and last two pages).
    Otherwise I'll use white-out?

    >
    Daniel Ruiz wrote:
    > I know what is recommened and whats not. I would like to know WHY such recommendation thou. Not accessing View elements? - Weird, since WDP does not have any sort of OGNL or EL where we could create directly in the UI (View Composer) all the required information for a LinkToAction - we use the wdDoModify in order to access and fill the missing information in the View itself.
    >
    > So, why create all the Context, bind to the UI (when you Bind you are somehow reading your Context and modifying the UI manually) which will do exactly the same thing?
    >
    >
    > Regards,
    > Daniel
    I don't understand your issue. Where do you need code in wdDoModifyView() to configure a LinkToAction? Just create an action with a text/icon, assign it to the "onAction" event and the LinkToAction is complete.
    The usage of context elements for data binding has for example the advantage that you can use the same context element for controlling properties of different UI elements. Using context mapping you can also control UI elements in different views.
    In the given use-case you could for example compose your screen from different views and control the enabled/visibility state with one commen supply function which would be implemented in the component controller or some custom controller. If you would use wdDoModifyView() and direct access to UI elements you had to write code inside each view controller.
    Armin

  • Best way to determine what objects has been selected in a Collection?

    Hi all
    I´m currently developing an application where a user can create a PDF based on the choices made from multiple collections.
    Each collection contatins 10-50 items, and there are about 8 different collections with objects.
    Checkboxes are used to select items from these collections.
    I´m wondering how I would best determine what choices have been made, and if would be good to remove all objects from
    a collection that has NOT been chosen?
    Currently, it looks like this (exemple for one collection, but same solution is used for all collections)
    private Collection<Texture> textureList = new ArrayList<Texture>();
    private ArrayList<Texture> textureResult = new ArrayList<Texture>();
              for (Texture t : textureList) {
                   if (t.isSelected()) {
                        textureResult.add(t);
              }After this iteration, textureResult is used to create the PDF.
    This PDF contains lists with dynamic frames, so I need to now how many
    items was selected before creating the PDF.
    Wondering if this is the best/most efficient way to do this though?
    Maybe it doesn´t matter all that much with lists this small, but I´m still curios :-)
    I guess you could do something like this aswell
              while (textureList.iterator().hasNext()) {
                   Texture t = (Texture) textureList.iterator().next();
                   if (!t.isSelected()) {
                        textureList.iterator().remove();
              }Any suggetions?

    Dallastower wrote:
    I´m wondering how I would best determine what choices have been made,Are you asking how to determine which boxes have been checked? Or do you know how to do that and you're asking how to associate those boxes with items in your Collections? Or do you know how to do that and you're asking how to keep track of those selected items in the Collection?
    I don't do GUIs, so I can't help with the first two, but for the third, you could create a new collection holding just the selected ones, or remove the unselected ones from the original Collection.
    and if would be good to remove all objects from
    a collection that has NOT been chosen?That's entirely up to you. If you create the original Collection when the user makes his selection, and only need it to survive one round of selection, that may be fine. But if you need to get back to the original collection later, and it's expensive to create, then you might want to just create a second collection and add items from the original to it if they're selected.

  • Best way to creat an OBJECT in OM

    Hi All,
    As i know there are multiple options available to create Objects for OM,
    Now what is the best possible way to create number of Objects in OM Out of the following.
    PPOCE
    PPOC_OLD,
    PP01,
    PO03,PO10,PO13
    Please guide.

    You need to understand 3 core things to have good understanding of OM..
    1) Objects
    2) Relationships
    3) Attributes
    Each element of your org. structure is an Object. It is related with another object and it has certain attributes..
    Org. Unit, Position and Person are different examples of objects each of which has its own attributes.. when you link them together it forms your org. strcture..
    To depict very basic structure, you can use "Simple Maintenance" option.
    You can use "Expert Mode" to define attributes of the objects..
    And to do both activities at one place, you can do so through "Org. & Staffing" interface..
    So organizational and Staffing interface is in detailed and coprehensive you may use it for better understandings.
    The following are the detail transaction you may use .
    AREA Mene     T-CODES     List of Activity
         PP70     SAP Easy Access Organizational Management
         PP7S     SAP Easy Access Organizational Management
    Organization and Staffing      T-CODES     List of Activity
         PPOCE      Create
         PPOME      Change
         PPOSE      Display
    General structures           
         PPSC     Create
         PPSM     Change
         PPSS     Display
    Matrix          
         PPME     Change
         PPMS     Display
    Expert mode           
         PO10     Organizational unit
         PO03     Job
         PO13     Position
         PO01     Work center
         PFCT     Task catalog
         PP01     General
    Simple maintenance           
         PPOC_OLD - Create      
         PPOM_OLD - Change      
         PPOS_OLD - Display      
    Regaards
    Barket Ali Zafar
    SAP HCM Consultant
    Siemens Pakistan
    +92-300-5521524

  • Best way to import all objects into work repository located on a new master respository

    Hi,
    We have two separate master repositories, one for all development work repositories (Development, ST, UAT, IAT), and one for Production.
    What would be the best approach to export and import all objects from the Dev Repository into the Prod Work Repository located on the Prod Master Repository.
    Internal Ids of all work repositories are different.
    We have tried putting everything into a solution and exporting that, but that did not work when we tried to import it.
    We successfully exported and imported a single scenario, however this is not very practical as we have over 500 scenarios.
    All suggestions welcome,
    Thanks,
    Nic

    Thanks,
    But we want to keep Dev Work Repositories separate to Prod Work Repositories on their respective Master Repositories.
    So our end result will have:
    1) All Development Work Repositories located in the Development Master Repository on the Development server.
    2) The Production Work Repository located on the Production Master Repository on the Production Server.
    3) The ability to update a Solution or similar in Development with all changes to any objects.
    4) The ability to import the Solution into the Prod Work Repo on the Prod Master Repo and execute via a load plan.
    Is this possible?

  • Best way to add new objects to a Group?

    I have been trying to figure out how to keep things organized in the timeline. Which is very important when you get very complicated.  If I pick a group and then an obj and hit the group tool,  it makes a new group instead of just having it added to the original.  The only work around I have found is to ungroup the first group and then everything is nested in the new group.  That is a pain.......I would love to just select an object with my middle mouse, just drag it into a group in the timeline.  Or is there an easier way?
    Don

    I have been trying to figure out how to keep things organized in the timeline. Which is very important when you get very complicated.  If I pick a group and then an obj and hit the group tool,  it makes a new group instead of just having it added to the original.  The only work around I have found is to ungroup the first group and then everything is nested in the new group.  That is a pain.......I would love to just select an object with my middle mouse, just drag it into a group in the timeline.  Or is there an easier way?
    Don

  • OpenCL: best way to resize memory objects

    I'm a beginner in OpenCL and I have a question about memory management (like 99.99% of noob questions about OpenCL, I guess...). I enqueue the kernel for execution inside a loop in the host code; at each iteration the size of the buffers used for memory objects passed as kernel arguments is different. Currently, I do something like this using the C++ wrapper API (which BTW I find much more easy to use than the C interface, that nevertheless seems to be the most used interface yet):
    // Set platform, kernel, queue etc.
    for (int i = 0; i < nIterations; i++){
    // Set buffer sizes and fill them
    // OpenCL section
    cl::Buffer clBuffer1 = cl::Buffer(context, CL_MEM_READ_ONLY | CL_MEM_USE_HOST_PTR, bufferSize1*typeSize1, (void *) &(buffer1[0]));
    cl::Buffer clBuffer2 = cl::Buffer(context, CL_MEM_USE_HOST_PTR, bufferSize2*typeSize2, (void *) &(buffer2[0]));
    cl::Buffer clBuffer3 = cl::Buffer(context, CL_MEM_WRITE_ONLY | CL_MEM_USE_HOST_PTR, bufferSize3*typeSize3, (void *) &(buffer3[0]));
    kernel.setArg(0, clBuffer1);
    kernel.setArg(0, clBuffer2);
    kernel.setArg(0, clBuffer3);
    queue.enqueueNDRangeKernel(kernel, cl::NullRange, cl::NDRange(someValueForRange), cl::NullRange);
    queue.enqueueMapBuffer(clBuffer2, CL_FALSE, CL_MAP_READ, 0, bufferSize2*typeSize2);
    queue.enqueueMapBuffer(clBuffer3, CL_TRUE, CL_MAP_READ, 0, bufferSize3*typeSize3);
    // Do something with retrieved data
    I'm sure there are thousands of less-than-sub optimal memory access patterns in the code above, but for the moment I'm facing this issue: is there a way to modify the size of the cl::Buffer objects without having to reinstantiate them at each iteration of the loop? I fear that this constinuous create/destroy of cl::Buffer objects causes a full reallocation of memory on the CL device at each loop iteration, potentially degrading the overall performance. I think that also a size modification (a' la STL, to be more clear) could result in some memory reallocation, but hopefully less frequently. Or is it better to statically define oversized buffers outside the loop and play with the size arguments of enqueueMapBuffer inside the loop to transfer only the needed range of data to the GPU at each iteration of the loop?
    Sorry for the possibly confusing question but as I said I'm a noob with OpenCL and this particular kind of problem seems to be not very common. Thanks.
    Last edited by snack (2014-01-08 14:52:31)

    Hi
    First a vector drawing will not work on the web unless you convert it too svg, (only supported on 40% of browsers IE requires a plug-in) or use it within flash. You will have to convert it to gif / jpeg / png. If you convert to png this will retain the transparency for you.
    As to the size, then resizing should be done in illustrator or similar then exported into photoshop or fireworks, and from these use your export for web option, and optimize the image.
    PZ

Maybe you are looking for

  • 865PE Neo2 -FIS2R Problems

    I purchased a brand new MSI 865PE Neo2-FISR along with a P4 2.4C(OEM), a Thermaltake Spark 5c cooler and a Corsair XMS Twinpack(TWINX512-3200C2PT) of DDR400 memory. The install went fine, the system booted and ran very well right out of the box.  I i

  • How can I force pop-ups being opened in a new tab

    We've a new software which always opens a pop-up window when clicking on the Java links. The content of such a re-sizable window perfectly fits into a new tab. I'd like to force those new windows into a new tab. Pop-up blocker is active and that inte

  • E-mail, no subject with acrobat pro 9

    hello, I have following problem. Since I upgraded to acrobat pro 9 no subject is automatically entered when I send a pdf-file with the "attach to e-mail" button. with acrobat 8.0 it worked fine. does anybody has an idea what to change? best regards

  • Error when running unit tests

    Hi, I'm getting the error 'Marker id <num> not found' about 9 times out of 10 when I try to run unit tests in Flash Builder 4.5 Premium. This is happening on a new (2 weeks old) spark + mx project, with the unit test classes created in Flash Builder

  • Backup of redo log files

    Hello, How can I make a backup with redo log files using the following parameters? backup_type = online_cons backup_dev_type =  disk_copy -->archive_function = save_delete (It could be changed. Maybe it is the source of the error) The copy is made, b