How to program my own UPI and OPI?

Hi,
I just want to know how to program my own UPI and OPI. I want to
add some features into the DBMS. Is there some one can answer my
questions, or tell me where to find information? Thanks!
null

Follow the bouncing example
package mil.army.logsa.sandbox.thread;
import java.util.Observable;
import java.util.Observer;
public class RunnableExample implements Observer {
     public static void main(String[] args){
          RunnableExample e = new RunnableExample() ;
          e.exec() ;
     // This is here because you can't reference (this) in the static context of the main method
     private void exec(){
          System.out.println("Launching RunnableExample") ;
          System.out.println("Creating Thing") ;
          Thing t = new Thing(this) ;
          t.start() ;
          System.out.println("Shutting down RunnableExample") ;
     @Override
     public void update(Observable o, Object arg) {
          System.out.println(arg) ;
class Thing extends Thread {
     private ObservableThing obsThing ;
     public Thing(Observer o){
          super() ;
          obsThing = new ObservableThing() ;
          obsThing.addObserver(o) ;
     public void run(){
          System.out.println("Starting Thing") ;
          for(int i=0; i<100; i++){
               obsThing.notifyObservers(i + " is " + (i%2==0 ? "EVEN" : "ODD")) ;
          System.out.println("Thing is finished") ;
class ObservableThing extends Observable{
     public void notifyObservers(Object o){
          setChanged() ;
          super.notifyObservers(o) ;
}PS.

Similar Messages

  • How to make my own grid and perform a "snap to grid" effect?

    Hi! I am a newbie in flash and I am trying to create a puzzle like game (a chinese puzzle game called tangram). I am wondering what kind of functions should I use to create a "triangular" grid i.e. something similar to this ? http://img40.imageshack.us/img40/2259/triangulargrid.jpg. What should I do to make the movie clips to perform the "snap to grid" effect to this grid?I have tried to draw my own grid and used the "cacheAsBitmap" function to implent it, however it doesnt seems to be working. Is there any suggestions or tutorials to this problem? Thank you very much.

    Well, the project you are taking is not a simple one. It requires quite an experience with AS3. It is not a few lines of code but an understanding of Flash display list model and how objects can interact. In addition, there is no a single solution but rather wide array of possible approaches depending on use case.
    To illustrate, the code below draws a mesh that replicates the image in your first post. Do you think that this is enough from the standpoint of your AS3 knowledge to get you started?
    This code needs Flash 10:
    var side:Number = 400;
    var s:Sprite = new Sprite();
    var g:Graphics = s.graphics;
    g.lineStyle(3);
    //g.beginFill(0xFF8000);
    g.drawTriangles(
         Vector.<Number>([     0, 0, side * .5, 0, side, 0,
         side * .25, side * .25, side * .75, side * .25,
         0, side * .5, side * .5, side * .5, side, side * .5,
         side * .25, side * .75, side * .75, side * .75,
         0, side, side * .5, side, side, side
         Vector.<int>([
              0, 1, 3,
              1, 2, 4,
              0, 3, 5,
              1, 3, 6,
              5, 3, 6,
              1, 2, 4,
              1, 4, 6,
              2, 4, 7,
              6, 4, 7,
              5, 6, 8,
              5, 8, 10,
              6, 8, 11,
              10, 8, 11,
              6, 7, 9,
              6, 9, 11,
              7, 9, 12,
              9, 11, 12
    addChild(s);

  • How to use my own DTD and table using the XML SQL utility.

    Hey,
    Here is my question. I have succesfully installed Oracle XML SQL utility and I had played around on that. Now I have my own DTD that too from Rosettanet(PIP). Tell me how can I use my own table, and my dtd using the existing utility. What are all the changes do I need to do. I am strugling it from past 4 days. I couldn't. Please help me!

    Hi chris,
    Yes, the SQL can be changed only by using Discoverer Administrator.
    Open the report/workbook that is based on the custom SQL that you want to change in Discoverer Plus. Look at the Folder that is being used to select the columns of the report.
    Open up the Discoverer Administrator with the id that has access to the tables referenced in the report. And the custom folder with the same name as in Disc Plus would be listed down in the Business Area (Which Business Area the custom folder belongs to can be determined with the help of disc plus).
    Just open up that folder, and change the SQL in it. You can pasted your new sql in there and click on Validate SQL to validate it for errors. If no errors, then the custom folder is successfully changed.
    In order to have it reflected, close your existing disc plus session and reopen it, and you can go about using the custom folder.
    Hope this helps!
    Thanks.

  • How to get my own EventHandler and EventListener working?

    I´m trying to learn how to write my own EventListener.
    I would do something like the ActionListener.
    import java.util.EventListener;
    import java.util.EventObject;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    public class Main extends JFrame {
        public static void main(String[] args) {
            new Main();
        private MyButton button = new MyButton();
        public Main() {
            this.setSize(200,200);
            this.setVisible(true);
            button.addMyEventListener(new MyEventListener(){
                public void action(MyEventHandler e) {
                    System.out.println("Changed");
            this.add(button);
        class MyButton extends JButton implements MyEventListener {
            private MyEventListener list;
            public void addMyEventListener(MyEventListener list){
                this.list = list;
            public void fireAction(MyEventHandler e){
                list.action(e);
            public void action(MyEventHandler e) {
                fireAction(e);
        interface MyEventListener extends EventListener{
            public void action(MyEventHandler e);
        class MyEventHandler extends EventObject{
            private Object obj;
            public MyEventHandler(Object obj){
                super(obj);
                this.obj = obj;
    }But when I press the button, the action is not performed. What else do I have to do?

    Follow the bouncing example
    package mil.army.logsa.sandbox.thread;
    import java.util.Observable;
    import java.util.Observer;
    public class RunnableExample implements Observer {
         public static void main(String[] args){
              RunnableExample e = new RunnableExample() ;
              e.exec() ;
         // This is here because you can't reference (this) in the static context of the main method
         private void exec(){
              System.out.println("Launching RunnableExample") ;
              System.out.println("Creating Thing") ;
              Thing t = new Thing(this) ;
              t.start() ;
              System.out.println("Shutting down RunnableExample") ;
         @Override
         public void update(Observable o, Object arg) {
              System.out.println(arg) ;
    class Thing extends Thread {
         private ObservableThing obsThing ;
         public Thing(Observer o){
              super() ;
              obsThing = new ObservableThing() ;
              obsThing.addObserver(o) ;
         public void run(){
              System.out.println("Starting Thing") ;
              for(int i=0; i<100; i++){
                   obsThing.notifyObservers(i + " is " + (i%2==0 ? "EVEN" : "ODD")) ;
              System.out.println("Thing is finished") ;
    class ObservableThing extends Observable{
         public void notifyObservers(Object o){
              setChanged() ;
              super.notifyObservers(o) ;
    }PS.

  • How to program both Polled IO and Explicit Messaging simultaneously V2.0.2

    There is an example of Polled IO V2.0.2, which I can connect to 6 devices and read.
    There is an example of Explicit Messaging V 2.0.2.
    How can I Open both connections to all devices to get polled data and explicit data and settings?

    Hello NetworkNocturnal,
    Can you please give a few more details on your application set-up? Are all 6 devices FieldPoint and on the same network? Are they all in the same project and are you currently using just one VI to execute the Polled IO? Have you tried just doing the Explicit Messaging VI on it's own as well?
    Regards,
    Deborah Y.
    LabVIEW Real-Time Product Marketing Manager
    Certified LabVIEW Architect
    National Instruments

  • How to use my own domain and integrate to my Muse Website

    Hello guys, how are you doing?
    First of all, i'm sorry for my english, i hope you understand my words and my questions lol
    Well, i just created my website using Adobe Muse, then, using my 30 trial days, created my blog with Adobe Business Catalyst.
    On my website, i created a page called Blog and used a Widget by MuseGrid, but now i need to link my Blog to my MuseWebsite.
    I also have my own Domain. For example, my domain is www.vittafilms.com, so, when i click in the button Blog, i want it linked directly to my BC blog, but like www.vittafilms.com/blog
    How can i do it? I hope you understand guys,
    Cheers,
    Felipe C.

    Hi Havier,
    Here are the basic steps: http://helpx.adobe.com/business-catalyst/using/change-site-domain.html
    Let me kow if you come across any issues at any point.
    Kind Regards,
    Alex

  • How do i migrate files from a imac to macbook pro using an ethernet cable. the migration program asks for firewire and i don't own a fireWire.  I do own an ethernet cable though

    how do i migrate files from a imac to macbook pro using an ethernet cable. the migration program asks for firewire and i don't own a fireWire.  I do own an ethernet cable though

    A FW cable would be far faster & Easier, but with Ethernet you need a compatible version of Migration Assistant running on both Macs.

  • How do I make my own sounds and put them on a Midi controller?

    I want to be able to make my own sounds and program then into my midi controller.
    Is this possible? If so How do I go about doing it?

    Hey man, am I right in thinking you want to make your own sounds entirely and then map them so that they can be triggered to play by your midi controller? If so, the method I'm thinking is you're going to have to start coding. The program PureData http://puredata.info/ is a good place to start, it's free and there are a lot of online tutorials if you can be bothered looking, but you'll have to put in the effort of learning how to code it properly. This might be worth it if what you are asking is what I'm thinking you're asking. Otherwise, you'll have to make do with the sounds that Logic Express can create, which isn't exactly a limited set... Hope this helps.

  • Is it possible to have your whole family on one apple id or is it better to have each person have there own? If each has their own does each id have to buy their own music and apps? How does find my iphone work with one apple id or two?

    Is it possible to have your whole family on one apple id or is it better to have each person have there own? If each has their own does each id have to buy their own music and apps? How does find my iphone work with one apple id or two? also I am going to be going off to college soon should I make an itunes id for my self and how will I get all the music from the old id?

    Is it possible to have your whole family on one apple id or is it better to have each person have there own?
    Yes, it is possible. 1 apple ID can be associated with up to 10 devices.
    If each has their own does each id have to buy their own music and apps?
    Yes, all purchases are non-transferable.
    How does find my iphone work with one apple id or two?
    Every device associated with one apple ID through Find my iPhone is tied to that Apple ID; Find my iPhone will work in the same way with up to ten devices associated with one apple ID. You cannot enable Find my iPhone for one device across two apple IDs
    I am going to be going off to college soon should I make an itunes id for my self and how will I get all the music from the old id?
    If you have authorized a computer with the old apple ID, you can transfer old media purchased through the old to other devices via iTunes. This doesn't mean the media purchases through the old apple ID it transferred to the new account. If you plan to make future purchases and don't wish to share them with others, make your own apple ID.

  • HT2731 my wife and I share an itune account. we both have our own iphone and ipad. how do i share my contacts and calander information between my iphone and ipad but not own her devices

    my wife and I share an itune account. we both have our own iphone and ipad. how do i share my contacts and calander information between my iphone and ipad but not own her devices

    Have her get her own Apple ID and then set up Family Sharing: Start or join a family group using Family Sharing - Apple Support

  • HT204053 I share an iTunes account with my daughter, I just got an ipad and need to set up with my own I'd for iCloud sync  how can I keep my apps and music?

    I share an iTunes account with my daughter, I just got an ipad and need to set up with my own I'd for iCloud sync  how can I keep my apps and music?

    ColleenMcG wrote:
    You can continue to share the same iTunes account ID with your daughter and set up a separate iCloud account with a different ID.
    => is this a different iCloud account for each device?  I thought iCloud account ID had to match some iTunes account ID, for which we only have one i Tunes account?
    You need to set up a separate iCloud account for each person that does not want to share their iCloud data.  If you share an iCloud account with someone, any data you both sync with the shared account is merged, and you end up with each other's data on your device(s).  If, for example, you owned two devices and someone else in the family also owned two devices, you would both want your own iCloud accounts, and you would each set up your personal iCloud account on the two devices you own.  In other words, you want a separate iCloud account for each person to be used on the devices they own.  Each iCloud account has to have a separate Apple ID.  The ID does not need to be the same as the ID used for iTunes.  Many families perfer to share the same iTunes account/ID, but maintain separate iCloud accounts with different IDs to keep there data separated.
    ColleenMcG wrote:
    It does not need to be the same as the ID used for iCloud.
    => what ID, iTunes?  So I can have a separate iCloud account "only" ID which I also assume must be some [valid] email address?  The children currently do not have email accounts anywhere.
    Yes, I was referring to the iTunes ID not needing to be the same as the ID used for iCloud.  In order to set up an Apple ID your children will need to have a valid email address that can be verified by Apple.  Apple requires this so they have a way of contacting the owner if there is a problem with the account, such as when you may need to reset the password on the account.  When you set up the ID, Apple will send a verification email to this email account and you will need to click on the verificating link in the email to complete the process.  If they don't currently have an email account you can just set one up with gmail or another free email hosting service.  They don't have to use the account but you will need it to set up the ID.

  • I want to share the firefox account with another household member but want my own password and settings how do I do this?

    My husband uses firefox with saved passwords, I want to switch using my own password and saved favorites. How do I add my own personal access to his account.

    Both of you can Save Favorites and Usernames Passwords. Bookmarks (Favorites) don't need Username Password authentication. Username Password authentication is required only for User Accounts on websites.
    go to Tools Menu -> Options -> Security -> place Checkmark on "Remember Passwords for Sites" -> click OK
    '''''Example:''' Both of you want to have User Accounts on Firefox Support Homepage https://support.mozilla.com/en-US/home''
    ''> You enter your Username and Password, Firefox will ask if you want to Remember Password, you click Yes and then you Sign-in. You do some surfing on this forum and then you Sign-out.''
    ''> Your husband loads Firefox Support Homepage site and sees that Your Username appears when he clicks in the Username field to type his Username. He Clears (use Backspaces) your Username and starts to type his own Username and then Firefox Auto-fills his Username and the Password also appears. Now he Signs-in. He surfs the forum and then he Signs-out.''
    That's how you will have to keep Signing-in when both of you will have separate User Accounts on a same Website.
    Hopefully you understood the argument. Check and tell if it works.

  • My dad and I shared an iTunes account for years and now I'm getting my own, how can I keep my music and apps?

    My dad and I shared an iTunes account for years and now I'm getting my own, how can I keep my music and apps? I'm worried that I won't have any ability to access my apps and music. We have our itunes separated on different computers, so I have all of my stuff separated from his, but I don't know how to put them in my new account.

    Well... there really isn't any fully legal way to do this.
    The simplest solution is to continue sharing the same iTunes purchasing acct, but create different ones for iCloud (assuming that's why you needed to do the split).
    Slightly less kosher: Burn AUDIO CD's, of the music then copy them back to your new account.
    BE sure to do this from original acount, To keep the music info, you'll  copy over the CDDB file (in prefs somewhere) - since this maintains the data of CDs that you've had in library.... (it isn't carried over onto a user created CD.)
    There's also

  • My husband and i both have iphones now.. we first had his and i set up an itunes acct.. when he downloads apps now, they appear on my phone !! how do i unsync our phones and set him up with his own acct..??

    my husband and i both have iphones now! i purchased his first and put an apple acct on his phone .. when he downloads apps now, they show up on my phone, but not visa versa.. my question is how do i unsync our phones and get him his own acct.. although, my email addres is on his phone, i was just setting it up without thinking i would ever purchase one !!! please help...apparently it is easy, so i must be missing something !!
    thank you

    You shouldn't be using the same account on phone iphones. Have him setup his own and make sure his iCloud is logged in with that one

  • Everytime i try to add a text box the program crashes.  Why and how do I fix it?

    Since I purchased and installed Adobe Photoshop Elements every time I try to add a text box the program crashes.  Why and how do I fix it?

    TeeKnows wrote:
    Debit cards are accepted in the iTunes store.
    No longer accepted for NEW accounts, however if a debit card were associated with the account BEFORE this change, they can still be used.

Maybe you are looking for

  • How do I use the DBMS_AQADM packages?????

    Hey everyone, Oracle noob needing help with creating and managing an Advanded Queue. Oracle version: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 I have a user that was granted the roles of AQ_ADMINISTRATOR_ROLE and AQ_USER_ROLE. I am tr

  • ITunes 10.6 and iOS 5.1 Don't WORK ON MY COMPUTER FOR MY PHONE DOESN"T SYNC!!!!

    I AM TOTALLY ANGRY & P1SSED!!!! iTunes 10.6.1 BLOWS  AS WELL AS iOS 5.1. NOW THE PHONE DOESN'T GET RECOGNIZED ON iTUNES OR MY WIFI NETWORK. I RESET NETWORK ON PHONE AND DID A REPAIR THROUGH CONTROL PANEL IN ON COMPUTER FOR iTUNES AND BONJOUR. AND NOW

  • Problems Exporting to Excel in Acrobat XI

    I have some problems exporting a PDF to excel in Acrobat Std or Pro XI but not in Acrobat Std or Pro X.  When exporting in X all the columns and rows are created as they should be, but in XI everything is slammed to the left in one column.  Has anyon

  • Airport to Airport Connection

    My brother has an iMac that only has a wired connection to the internet, but his iMac (g4 1 gHz) is airport extreme enabled. So I'm wondering if his ATV can connect to the internet through the airport extreme card in his iMac g4, even though his iMac

  • Localized Data Model Message Bundle

    When you use the Validations in the Entity Objects of a data model and you place text for the text, errors, etc...it creates a MsgBundle for that class. Then for other languages you can create additional message bundle (e.g. MsgBundle_it, for italian