Graph drawing - drawing an arc to and from the same node, how??

Hey everyone
This is probably going to have an easy solution but I really cant figure it out!! The problem is drawing a loop in a state machine, ie a path to and from the same node therefore a loop!
Is there a way to actually do this?
Thanks in advance!

Graphics.drawArc(left, top, width, height, start, span) where start is the start angle in degrees, and span is the number of degrees of arc. Assuming you're like me, you're probably putting in the end angle rather than the span.
Here's one I made earlier- http://www.metamodelling.net/files/ReflexiveArc.java - steps through nine common placements for a circular reflexive arc.
Pete

Similar Messages

  • TS2446 A email account that was used is now not in use and songs that were purchased and added are bound to this old account from the same computer how do I the purchaser of these songs reclaim the authorization to play and use in my new account

    A email account that was used is now not in use and songs that were purchased and added are bound to this old account from the same computer how do I the purchaser of these songs reclaim the authorization to play and use in my new account. even though account name may have been changed.

    Just authorize the computer and retreive them.
    Go here -> https://iforgot.apple.com/cgi-bin/WebObjects/DSiForgot.woa/wa/iforgot .
    FYI: you should have simply updated the AppleID with new info and continued to use it instead of creating a new one.

  • Why do i constantly get 1009 and 100 errors even though i'm updating what i previously downloaded from same country and from the same app store??...its just simply awful

    It has been like a month since i can't update my apps which i downloaded from the App Store...now i keep getting error1009 followed by error100 even though i'm still living in the same country and using the same account and updating from the same App Store...this is getting awful,painful and very frustrating???is there any solution...even if when i try to download from third parties,i just get sent back to the same awful App Store...So WHAT is the Solution??????????

    I would delete the apps that you are trying to update. The MAS should then offer to install the app and it will install the updated version.
    If you are afraid of completely loosing the app then either copy the app to an ext HDD or put it in the Trash, but do not empty the Trash until you are sure that the MAS has installed a new version.

  • HT204266 If I have a play list of various artists and on this list I have two tracks from the same album how can I combine those two tracks to play as one if I am using the shuffle feature?

    An example would be Jackson Browne's "The Load Out" &" Stay".They should play one after the other but in a play
    list on shuffle setting they don't. How do I combine two songs so they play as one in a shuffled playlist

    Friveros wrote:
    When I import my music files to iTunes will I be creating new files for every file I import? If the answer is YES; where are those files going to be stored and how much space will they use?
    To begin with you can't manage FLAC in iTunes. The use of iTunes is at this moment limited to WAV, AIFF, Apple Lossless, AAC and MP3. But that's not a problem because if I understand you correctly you want to organize the MP3-files in iTunes.
    When you import music files you can let iTunes copy all files and put it in an iTunes-media-Folder. You can make the choice in preferences-->tab advanced.
    If you deselect the second blue checkbox (sorry, in Dutch) iTunes won't copy files as you import the files in your library. It will use the files from the place they are on the disk now. So you have a choice. But if you want iTunes to copy them, they will be placed in a folder called iTunesMedia. This is how it placed on your disk.
    All files will be put in one music folder well ordered by artist and albums. If you want to make a backup of all your music you just have to copy the iTunes folder to another disk. You can backup all music at once. How much space they will use depends on the bitrate of the MP3 and whether you add more tagging to it. You can have iTunes add album artwork. That means adding gif or jpg files to your library. Are you using bitrate 320 for your MP3?
    If you tell me I can give you estimates on the disk-space you will need.

  • I have lost  years worth of music  and pictures not all from the same pc how can i get it back

    I have lost years worth of music and pictures from my ipod how can i retrieve them ?

    - If photos were in your iPod Camera Roll, just restoe from backup. If they were synced to the iPOd you have to get them from where you got them the first place
    - For itunes pruchsed music see:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    - For other music you will hae to get it from where you got it the first time.

  • VCS - CPL to block calls routing to and from the same neighbor zone

    Hello all,
    Is there a CPL rule that can be written to block calls originating from a neighbor zone destined to the same neighbor zone?
    We are having issues with calls being sent from CUCM to our VCS, then VCS routes the call back to CUCM, thus resulting in "Too Many Hops". 
    In Example
    Movi user on VCS Control tries to dial CTS endpoint registered to CUCM, but dials incorrectly
    Call does not match search rules for local zone
    Call does not match search rules for VCS Expressway
    Call matches catch all for CUCM (.*)@domain.com
    CUCM does not have a DN or URI for the mis-dialed number and the call gets routed back to VCS Control due to SIP route pattern of *.* on CUCM
    We have to have the catch all to CUCM at the end since we offer PSTN connectivity, as well as our users and phones have alphanumeric URIs assigned to the DNs for Jabber, etc.
    I'm afraid that there really isn't an easy way to do this, as I know since the call hits CPL first, CPL wouldn't know which zone it was destined to.

    It's probably more easily accomomplished with a slight modification to your search rules rather than spraying anthing "@domain" everywhere - something like:
    Direct anything incoming to @domain from the neighbour zone to the local zone (as it's inside your organisation, as if the CUCM hasn't found it and sent it to the VCS it's not going to be on the CUCM, so must be local (or non existant) - and Stop.
    And the opposite of the above - Route anything for @domain from the localzone (as it hasn't been found locally) to the CUCM neighbour - and Stop.
    And do similar for anything that's coming in from other external zones to route to wheverver the endpoints are going to be.  That way, your call shouldn't be bouncing back and forth between the CUCM and VCS and creating the loop you're currently experiencing.
    Of course, if your environmetn is a bit more complex than just the single CUCM and VCSes, this may be a little oversimiplified, but could lead you in the right direction.
    Another thing to consider too - if you put your endpoints in to a directory the users can use - that'll help stopping them from mis-typing stuff :)
    Wayne
    Please remember to rate responses and to mark your question as answered if appropriate.

  • HT201269 How do i transfer my contacts to my iphone from my old phone? How do i transfer my pictures to and from the same?

    Help! New to Iphones

    Hi I suspect if you can get your Photos onto a Window laptop through a USB connection that recognizes your phone as a camera you will eventually be able to move them through iTunes sync to your iPhone.
    Good luck

  • I cannot access firefox. but i can access it if i use another log on name from the same computer. how do i get to my bookmarks from my log on name.

    i can access firefox from a different log on name but not my own. i want to retrieve my bookmarks.

    See if you can boot into the Safe Mode.
    Safe Mode - About
    Safe Mode

  • MPLS - Routing info from the same BGP AS

    Hi everyone,
    I'm working on MPLS - (lab) and I was wondering how is it possible (or command) to pass traffic to and from the same AS?  In my lab I have to specifiy "nei allow-as in" in order to see routes from routers in my AS. I have 5 routers in my lab - One in AS 777 mpls and the other four in AS 6500). Everything in AS 6500 has the bgp sub command neig "ip addy" allow-as in.  This is the only way I can see routes advertised from neighbors.
    Thanks in advance.

    Hi
    Another (and I believe more used) possibility is to configure as-override on the PE towards CE
    router bg MPLS-CORE
    address-family ipv6 vrf test
    neighbour x.x.x.x as-override
    (syntax might be wrong)
    Jon

  • Aren't -180° and 180° the same for a 3D parametric surface graph?

    Hi
    everyone,
    I need to
    plot some results using the 3D parametric surface graph and these 3 matrix :
    First
    matrix “theta” : Each column ranges from -180° to 179°    (180x360)
    Second
    matrix “phi” : Each line ranges from 0° to 89.5° (increasing by 0.5°)   (180x360)
    Third matrix “z” : 180x 360 matrix initialised to 7
    First and
    second matrixes are converted to a polar representation.
    My problem
    is that I reach my goal, a full red circle, only if my matrixes range
    from -180° to 180° and not when they range from -180° to 179°. Aren’t -180° and
    180° the same for this graph? I must be doing something wrong...
    Any help
    would be great,
    Thanks.
    Regards,
    User
    Solved!
    Go to Solution.
    Attachments:
    Forum.vi ‏671 KB
    Pb circle.JPG ‏20 KB

    Seems obvious that you need to have the first and last point the same in order to close the curve.
    A simpler, but equivalent example is a circle on an xy graph, Unless the first and last point coincide, you won't close the loop.
    LabVIEW Champion . Do more with less code and in less time .

  • HT201335 I started playing games on my iPhone 5 and bought the iPad air wand to link phone with iPad so all the information from the game is on my iPad so I don't have to start the game over  I should be able to start from the same place in the game on ei

    I need to link all of my games on my iPhone 5 to my iPad air so I don't have to start all my games over. In the Game Center all the information from my games are there but it's like I have to start the game over on my iPad. I should be able to resume the game from the same place on either device with the same trophies $ coins help help help PLEASE I have a lot of money invested in one game and don't want to start completely over

    Transferring from old to new
    http://support.apple.com/kb/HT2109

  • Upload image to directory and data to database from the same form

    Hello all
    I'm playing at building a shopping cart (never done one
    before) from a tutorial by Gordon Knapp at www.webthang.com.
    I have created the site and it works perfectly. Now I want to
    extend it.
    There is a form that allows the user to add data to the
    database. I would also like to be able to upload an image to a
    directory on the server and add the data to the database at the
    same time from the same form. It would be good if the input field
    "<input name="product_picture" type="text" id="product_picture"
    tabindex="6" size="50" />" could be populated automatically by
    the filename of the image being uploaded, but this isn't a
    neccessity.
    I have looked at various ASP Upload packages and I can upload
    an image alone but none of them make it clear how to upload the
    image and add data to the database at the same time.
    As this is a private project I need any suggestions to by
    free.
    The tutorial shows how to create the site in Ultra Dev but
    worked perfectly well in DW. The page concerned looks like this. It
    is named 'admin_add.asp':
    <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
    <!--#include file="../Connections/con_ecom.asp" -->
    <%
    Dim MM_editAction
    MM_editAction = CStr(Request.ServerVariables("SCRIPT_NAME"))
    If (Request.QueryString <> "") Then
    MM_editAction = MM_editAction & "?" &
    Server.HTMLEncode(Request.QueryString)
    End If
    ' boolean to abort record edit
    Dim MM_abortEdit
    MM_abortEdit = false
    %>
    <%
    ' IIf implementation
    Function MM_IIf(condition, ifTrue, ifFalse)
    If condition = "" Then
    MM_IIf = ifFalse
    Else
    MM_IIf = ifTrue
    End If
    End Function
    %>
    <%
    If (CStr(Request("MM_insert")) = "add_form") Then
    If (Not MM_abortEdit) Then
    ' execute the insert
    Dim MM_editCmd
    Set MM_editCmd = Server.CreateObject ("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_con_ecom_STRING
    MM_editCmd.CommandText = "INSERT INTO products
    (product_category, product_name, product_price, product_briefdesc,
    product_fulldesc, product_picture) VALUES (?, ?, ?, ?, ?, ?)"
    MM_editCmd.Prepared = true
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param1", 202, 1, 50,
    Request.Form("product_category")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param2", 202, 1, 50,
    Request.Form("product_name")) ' adVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param3", 5, 1, -1,
    MM_IIF(Request.Form("product_price"),
    Request.Form("product_price"), null)) ' adDouble
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param4", 203, 1, 536870910,
    Request.Form("product_briefdesc")) ' adLongVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param5", 203, 1, 536870910,
    Request.Form("product_fulldesc")) ' adLongVarWChar
    MM_editCmd.Parameters.Append
    MM_editCmd.CreateParameter("param6", 202, 1, 50,
    Request.Form("product_picture")) ' adVarWChar
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close
    ' append the query string to the redirect URL
    Dim MM_editRedirectUrl
    MM_editRedirectUrl = "admin_control.asp"
    If (Request.QueryString <> "") Then
    If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0)
    Then
    MM_editRedirectUrl = MM_editRedirectUrl & "?" &
    Request.QueryString
    Else
    MM_editRedirectUrl = MM_editRedirectUrl & "&" &
    Request.QueryString
    End If
    End If
    Response.Redirect(MM_editRedirectUrl)
    End If
    End If
    %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Administration - Add Product</title>
    <link href="../scripts/admin.css" rel="stylesheet"
    type="text/css" />
    <script type="text/javascript"
    src="../scripts/ecom.js"></script>
    </head>
    <body onLoad="adminTitle()">
    <div id="wrapper">
    <div id="pageHeading">ADMINISTRATION - ADD
    PRODUCT</div>
    <div id="navBar"><a
    href="admin_control.asp">Control</a> | Add | <a
    href="admin_view.asp">View</a> | <a
    href="admin_update1.asp">Update</a> | <a
    href="admin_delete1.asp">Delete</a> | <a
    href="../Default.asp">Shop</a></div>
    <br />
    <form name="add_form" id="add_form" method="POST"
    action="<%=MM_editAction%>">
    <table border="1" align="center" id="tblArea">
    <tr>
    <td class="tdLabel">Product Category</td>
    <td colspan="2"><input name="product_category"
    type="text" id="product_category" tabindex="1" size="50"
    /></td>
    </tr>
    <tr>
    <td class="tdLabel">Product Name</td>
    <td colspan="2"><input name="product_name"
    type="text" id="product_name" tabindex="2" size="50"
    /></td>
    </tr>
    <tr>
    <td class="tdLabel">Product Price</td>
    <td class="tdContent" colspan="2"><input
    type="text" name="product_price" id="product_price" tabindex="3"
    size="50" /></td>
    </tr>
    <tr>
    <td class="tdLabel">Product Short
    Desciption</td>
    <td class="tdContent" colspan="2"><textarea
    name="product_briefdesc" id="product_briefdesc" cols="47" rows="4"
    tabindex="4"></textarea></td>
    </tr>
    <tr>
    <td class="tdLabel">Product Full
    Description</td>
    <td class="tdContent" colspan="2"><textarea
    name="product_fulldesc" id="product_fulldesc" cols="47" rows="5"
    tabindex="5"></textarea></td>
    </tr>
    <tr>
    <td class="tdLabel">Product Image File Name</td>
    <td class="tdContent" colspan="2"><input
    name="product_picture" type="text" id="product_picture"
    tabindex="6" size="50" /></td>
    </tr>
    <tr>
    <td class="tdLabel"> </td>
    <td align="center"><input type="reset" name="Reset"
    id="Reset" value="Reset Form" /></td>
    <td align="center"><input type="submit"
    name="Submit" id="Submit" value="Add To Shop" /></td>
    </tr>
    </table>
    <input type="hidden" name="MM_insert" value="add_form"
    />
    </form>
    </div>
    </body>
    </html>
    Hope you can help.
    Warm regards
    Martin

    Got it sorted.
    Found an excellent tutorial at Webthang.
    http://www.webthang.co.uk/tuts/tuts_dmx/rob15/rob15.asp

  • HT201272 I have always had and used the same Apple ID, so where are the rest of the songs I bought from itunes? I've bought at least 400 songs and I only am being able to download 178. Where are the rest of my purchases?!

    I have always had and used the same Apple ID. I have changed credit card information on my Apple ID account several times though. Does that make a difference when downloading past purchases? I'm very angry at Apple and Itunes because I have been using itunes since 05/2005 and I do not have even close to the amount of songs and albums that I have purchased from itunes. If the credit card info does make a difference even though the account is the same one then itunes needs to make sure to notify users of this because I am not the only one who is wondering this same thing. I have numerous friends who i've talked to about this and they say the same thing, that they too have songs purchased in the past that have disappeared when trying to download past purchased items. It should not make a difference. $12 is $12. Especially since I have ALWAYS used the same account. If itunes does not change their ways, I will not be purchasing songs or anything else for that matter from them ever again. I will go back to buying CDs where I KNOW that it will always be with me and I don't have to deal with this. I will also make sure to find a better more reliable source to download music from and will make sure everyone I know and come in contact with knows what it is and how much better it is than itunes. There should be no experation date on the music I PURCHASE, nor should there be any other little loop holes that allow itunes to rob us of rightfully purchased products. What's the deal itunes?? 

    mannyace wrote:
    Thanks for the response.
    So I basically won't run into any trouble? I
    There should be no issues. Its designed to work like that.  You don't change Apple IDs just because you get a new device.
    mannyace wrote:
    Thanks for the response.
    Is there any chance that the phones can fall out of sync?
    Unlikely. But nothing is impossible.   Though I don;t see how that would happen. As long as both are signed into the Same Apple ID / iCloud Account they will be N'Sync. (Bad Joke)
    mannyace wrote:
    Thanks for the response.
    If I get a message or buy an app or take a photo on the iPhone 5, how do I get those things onto the iPhone 6?
    If you buy an App, you have 2 ways to get it to the iPhone6: If Automatic Downloads is enabled in Settings->iTunes & App Store, it will automatically download to the iPhone 6 when you buy it on the 5 and vice versa if you buy it on the 6, it will download to the 5.
    Alternatively, you can simply go to the App Store App->Updates->Purchased and look for the App there and download it. Purchased Apps will not require payment again. i.e They'll be free to download to the iPhone 6 once purchased.
    SMS Messages will sync over using Continuity as long as they are on the same Wifi network. Otherwise, restoring the iPhone 5 backup to the iPhone 6 will transfer all messages received up until the backup was made onto the iPhone 6.
    Images, can be transferred either through Photo Stream
    My Photo Stream FAQ - Apple Support
    Or any Cloud service you want such as Dropbox, or One Drive.
    mannyace wrote:
    Also, something i forgot to ask initially: Should I update the iPhone 5 to iOS 8 first or does that not matter?
    If you want the Continuity features as explained above you need to update the iPhone 5 to iOS 8. Otherwise its not all that important.

  • I am using a work laptop and have the same problem. When I try to change the "configure proxy", they only available option is "use this proxy server for all protocols". Could it be that my system administrator blocked me from changing it since they don'

    I am using a work laptop and have the same problem. When I try to change the "configure proxy", they only available option is "use this proxy server for all protocols". Could it be that my system administrator blocked me from changing it since they don't want us to use Firefox.
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.4; FNGP_SYS)

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the ''Safe mode'' start window.
    You have to close and restart Firefox after each change via "File > Exit" (on Mac: "Firefox > Quit")

  • Safari and Firefox on my desktop suddenly stopped combine ting to any website.  IPad and IPhone work fine from the same wifi. Any ideas.

    Safari and Firefox will not connect to website On desktop. IPad and IPhone work fine from the same wifi.

    Restart your router.

Maybe you are looking for