Is this possible in if-else loop?

double overall_mark = 80.0
if(overall_mark>70)
grade = 'A';
else grade = 'B';
is it possible to compare?

i wonder if we can use checking
if(80.0>70)
is it right way of coding?
comparing if double value > int value.
I see two different questions here, and I'm not sure which you're really asking:
1) "Can we compare double to int like this?" ("i wonder if we can use checking")
2) "Should we compare double to int like this?" ("is it right way of coding?")
If your question is number 1, then just try it and find out.
If your question is number 2, then it's fine to make those kinds of comparisons, as long as you're aware of promotion rules and the risks of comparing a float or double to zero for equality--that is, there's nothing wrong with it in terms of coding style, but you need to understand what's actually happening so that you're not surprised by the behavior.

Similar Messages

  • I need to transfer a mac iMovie video to the camera roll of my iPad, is this possible?

    I have a MacBook Pro with iMovie, an iPad 3 and a PC.  I took video on the iPad, created a movie on the Mac with iMovie and now I want to save that movie back to the camera roll in the iPad so I can transfer it to the PC and share it with others on PC.  Is this possible?  How else could I get this video on my PC?
    I can not email the file it is too large.
    I am at the office an unable to connect iPad or MacBook to wifi for any cloud sharing.
    Thanks,
    Mike

    When I first read the question I thought, "How can (s)he not know how to do that?"  But before I answered with what I thought would be obvious, I looked at iMovie on my iPad and realized it's not so clear.  So here it is.
    Go out to the home screen and select Projects at the top of the screen,
    Tap on the project you want to export to the Camera Roll,
    Select the icon in the middle which looks like a box with an arrow pointing up [^],
    Save Movie is your next selection,
    Choose which resolution you want to save the movie in,
    You can now find it in your Camera Roll.
    I'm very glad you asked actually because I tried exporting a movie I shot in 1080p in the lowest resolution, 320p, and it still looks great--I mean like YouTube great, not Vimeo great.

  • I have iphone 3g when sending a text ...someone else has added a few words after is this possible??

    I have a iphone 3g When texting someone .....someone else has added to my text is this possible???

    Your profile: iPhone 3G do not have IOS 6.1.4. Is your iPhone hacked/jailbroken?
    Anyway SMS is a carrier feature.

  • I just got my replacement phone from Warranty. The phone was on for just 2 hours and it crashed. I was told that motorola knows about this "possible" issue. I got a new sim, hard reset, If it can be done I did it. They are now sending me the same phone ag

    I just got my replacement phone from Warranty. The phone was on for just 2 hours and it crashed. I was told that motorola knows about this "possible" issue. I got a new sim, hard reset, If it can be done I did it. They are now sending me the same phone again. Number 3. I would hope this one doesn't crash but I rather have a different phone so I can enjoy using my account. The phone's most recent error was today. " Unfortunately, the process com.motorola.widget.circlewidget3d" has stopped. At least the error message works and it's polite. I told tech this and they could not answer my question or help me other then "let's do a hard reset" My warranty replacement is coming on Monday. Let's hope this one works. Anyone else havinbg the same problem. it says "such and such as stop working" on all sorts of stuff! Help! I want my iPhone Back!

    I just did a google search on this issue. OMG, I got a ton of videos on this or similar issues. Each one says in some way to clear the cache, reset the data, etc. Why in the world would this continue to happen and they not do a fix that resloves this without having to lose or stop what your doing. This is a very long and constant issue it seems with Android phones as there must have been pages and pages of what I now call "Unfortunately"  So I am going to pray that Verizon helps me  out and gets me away from this issue and helps me go back to iPhone or try the Samsung.

  • A cycle is detected in the object graph.  This will cause an infinite loop.

    People,
    Looking for a little guidance.  Please point me in the correct direction if I am mistaken.  I am using Jersey 2.11 and generating JAXB definitions from XSD.
    I have a periodic exception that seems to be timing based.  If I change the timing of the message sent in anyway the error does not occur.  The other issue is that the cycle reported in the error changes some times, however, the cycles reported can not occur based on the XSD definition.  I have also dumped the message before sending and it definitely does not contain the cycle reported.
    In this specific scenario, I am sending a message of NotificationType which contains a list of DocumentType, however, DocumentType can never contain NotificationType so the following cycle is not possible:
    net.es.nsi.pce.discovery.jaxb.DocumentType@24d793f3 -> net.es.nsi.pce.discovery.jaxb.NotificationType@7f06bc07 -> net.es.nsi.pce.discovery.jaxb.DocumentType@24d793f3]
    I am wondering if there could be a different reason for receiving the following exception?
    Thank you for the help,
    John
    [code]
    [ERROR] [08/22/2014 11:16:22.307] [NSI-DISCOVERY-akka.actor.default-dispatcher-4] [akka://NSI-DISCOVERY/user/discovery-notificationRouter/$c] HTTP 500 Internal Server Error
    javax.ws.rs.ProcessingException: HTTP 500 Internal Server Error
            at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:255)
            at org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:667)
            at org.glassfish.jersey.client.JerseyInvocation$1.call(JerseyInvocation.java:664)
            at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
            at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
            at org.glassfish.jersey.internal.Errors.process(Errors.java:228)        at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:424)
            at org.glassfish.jersey.client.JerseyInvocation.invoke(JerseyInvocation.java:664)
            at org.glassfish.jersey.client.JerseyInvocation$Builder.method(JerseyInvocation.java:424)
            at org.glassfish.jersey.client.JerseyInvocation$Builder.post(JerseyInvocation.java:333)
            at net.es.nsi.pce.discovery.actors.NotificationActor.onReceive(NotificationActor.java:100)
            at akka.actor.UntypedActor$$anonfun$receive$1.applyOrElse(UntypedActor.scala:167)
            at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
            at akka.actor.UntypedActor.aroundReceive(UntypedActor.scala:97)        at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
            at akka.actor.ActorCell.invoke(ActorCell.scala:487)
            at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)
            at akka.dispatch.Mailbox.run(Mailbox.scala:220)
            at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
            at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
            at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
            at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
            at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
    Caused by: javax.ws.rs.InternalServerErrorException: HTTP 500 Internal Server Error
            at org.glassfish.jersey.message.internal.AbstractJaxbElementProvider.writeTo(AbstractJaxbElementProvider.java:152)
            at org.glassfish.jersey.message.internal.AbstractJaxbElementProvider.writeTo(AbstractJaxbElementProvider.java:85)
            at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.invokeWriteTo(WriterInterceptorExecutor.java:265)
            at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.aroundWriteTo(WriterInterceptorExecutor.java:250)
            at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:162)
            at org.glassfish.jersey.filter.LoggingFilter.aroundWriteTo(LoggingFilter.java:293)
            at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:162)
            at org.glassfish.jersey.message.internal.MessageBodyFactory.writeTo(MessageBodyFactory.java:1154)
            at org.glassfish.jersey.client.ClientRequest.writeEntity(ClientRequest.java:503)
            at org.glassfish.jersey.client.HttpUrlConnector._apply(HttpUrlConnector.java:315)
            at org.glassfish.jersey.client.HttpUrlConnector.apply(HttpUrlConnector.java:227)
            at org.glassfish.jersey.client.ClientRuntime.invoke(ClientRuntime.java:246)
            ... 22 more
    Caused by: javax.xml.bind.MarshalException
    - with linked exception:
    [Exception [EclipseLink-25003] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.XMLMarshalException
    Exception Description: An error occurred marshalling the object
    Internal Exception: Exception [EclipseLink-25037] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.XMLMarshalException
    Exception Description: A cycle is detected in the object graph.  This will cause an infinite loop: net.es.nsi.pce.discovery.jaxb.DocumentType@24d793f3 -> net.es.nsi.pce.discovery.jaxb.NotificationType@7f06bc07 -> net.es.nsi.pce.discovery.jaxb.DocumentType@24d793f3]
            at org.eclipse.persistence.jaxb.JAXBMarshaller.marshal(JAXBMarshaller.java:403)
            at org.glassfish.jersey.message.internal.XmlJaxbElementProvider.writeTo(XmlJaxbElementProvider.java:139)
            at org.glassfish.jersey.message.internal.AbstractJaxbElementProvider.writeTo(AbstractJaxbElementProvider.java:150)
            ... 33 more
    Caused by: Exception [EclipseLink-25003] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.XMLMarshalException
    Exception Description: An error occurred marshalling the object
    Internal Exception: Exception [EclipseLink-25037] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.XMLMarshalException
    Exception Description: A cycle is detected in the object graph.  This will cause an infinite loop: net.es.nsi.pce.discovery.jaxb.DocumentType@24d793f3 -> net.es.nsi.pce.discovery.jaxb.NotificationType@7f06bc07 -> net.es.nsi.pce.discovery.jaxb.DocumentType@24d793f3
            at org.eclipse.persistence.exceptions.XMLMarshalException.marshalException(XMLMarshalException.java:97)
            at org.eclipse.persistence.internal.oxm.XMLMarshaller.marshal(XMLMarshaller.java:911)
            at org.eclipse.persistence.internal.oxm.XMLMarshaller.marshal(XMLMarshaller.java:848)
            at org.eclipse.persistence.jaxb.JAXBMarshaller.marshal(JAXBMarshaller.java:401)
            ... 35 more
    Caused by: Exception [EclipseLink-25037] (Eclipse Persistence Services - 2.5.0.v20130507-3faac2b): org.eclipse.persistence.exceptions.XMLMarshalException
    Exception Description: A cycle is detected in the object graph.  This will cause an infinite loop: net.es.nsi.pce.discovery.jaxb.DocumentType@24d793f3 -> net.es.nsi.pce.discovery.jaxb.NotificationType@7f06bc07 -> net.es.nsi.pce.discovery.jaxb.DocumentType@24d793f3
            at org.eclipse.persistence.exceptions.XMLMarshalException.objectCycleDetected(XMLMarshalException.java:400)
            at org.eclipse.persistence.internal.oxm.XPathObjectBuilder.buildRow(XPathObjectBuilder.java:207)
            at org.eclipse.persistence.internal.oxm.TreeObjectBuilder.buildRow(TreeObjectBuilder.java:118)
            at org.eclipse.persistence.internal.oxm.TreeObjectBuilder.buildRow(TreeObjectBuilder.java:1)
            at org.eclipse.persistence.internal.oxm.XMLCompositeObjectMappingNodeValue.marshalSingleValue(XMLCompositeObjectMappingNodeValue.java:237)
            at org.eclipse.persistence.internal.oxm.XMLCompositeObjectMappingNodeValue.marshal(XMLCompositeObjectMappingNodeValue.java:149)
            at org.eclipse.persistence.internal.oxm.NodeValue.marshal(NodeValue.java:102)
            at org.eclipse.persistence.internal.oxm.record.ObjectMarshalContext.marshal(ObjectMarshalContext.java:59)
            at org.eclipse.persistence.internal.oxm.XPathNode.marshal(XPathNode.java:393)
            at org.eclipse.persistence.internal.oxm.XPathObjectBuilder.buildRow(XPathObjectBuilder.java:238)
            at org.eclipse.persistence.internal.oxm.TreeObjectBuilder.buildRow(TreeObjectBuilder.java:118)
            at org.eclipse.persistence.internal.oxm.TreeObjectBuilder.buildRow(TreeObjectBuilder.java:1)
            at org.eclipse.persistence.internal.oxm.XMLCompositeCollectionMappingNodeValue.marshalSingleValue(XMLCompositeCollectionMappingNodeValue.java:321)
            at org.eclipse.persistence.internal.oxm.XMLCompositeCollectionMappingNodeValue.marshal(XMLCompositeCollectionMappingNodeValue.java:104)
            at org.eclipse.persistence.internal.oxm.NodeValue.marshal(NodeValue.java:149)
            at org.eclipse.persistence.internal.oxm.NodeValue.marshal(NodeValue.java:102)
            at org.eclipse.persistence.internal.oxm.record.ObjectMarshalContext.marshal(ObjectMarshalContext.java:59)
            at org.eclipse.persistence.internal.oxm.XPathNode.marshal(XPathNode.java:393)
            at org.eclipse.persistence.internal.oxm.XPathObjectBuilder.buildRow(XPathObjectBuilder.java:238)
            at org.eclipse.persistence.internal.oxm.TreeObjectBuilder.buildRow(TreeObjectBuilder.java:118)
            at org.eclipse.persistence.internal.oxm.TreeObjectBuilder.buildRow(TreeObjectBuilder.java:1)
            at org.eclipse.persistence.internal.oxm.XMLMarshaller.marshal(XMLMarshaller.java:743)
            at org.eclipse.persistence.internal.oxm.XMLMarshaller.marshal(XMLMarshaller.java:901)
            ... 37 more
    [/code]

    Unfortunately, even this thread is unanswered, i am closing the thread.as it it creating problems for further posting

  • Using Time Machine, is it possible to back up a computer AFTER a specific date. I only want to back up files from AFTER January 2015. Is this possible, and how can I do this?

    Using Time Machine, is it possible to back up a computer AFTER a specific date. I only want to back up files from AFTER January 2015. Is this possible, and how can I do this?

    emilypdunne wrote:
    Using Time Machine, is it possible to back up a computer AFTER a specific date. I only want to back up files from AFTER January 2015. Is this possible, and how can I do this?
    Is what you're saying that you only want backups in TM of the state of your Mac from January 2015 to the current date and nothing before then? I'd think the simplest solution would just be to delete in TM all the backups prior to 1/15 and then let TM do its thing. The ultimate source for all things Time Machine is here. On this page, note the comment that "Time Machine will never delete the backup copy of anything that was on the disk being backed-up at the time of any remaining backup" which I understand to mean that if you delete all the backups in the TM file prior to 1/15, any file that wasn't present on your Mac as of 1/15 will no longer be represented in the TM file. Note that the second link also has instructions for how to delete TM files.
    If you were trying to accomplish something else, then as Emily Litella (Gilda Radner in SNL) used to say, "never mind."

  • My iPhone just called itself randomly..has this happened to anyone else?

    My iPhone just called itself randomly..has this happened to anyone else? when i picked up it said it was some national credit thing and said my debit card has been temporaly block....funny thing is..... i dont have a debit card with that company and i just recently got this new number (3 days from this post)

    its crazy because my new cell number showed up... how is this possible? i for sure knew it was a computer generated call but a computer generated call from my own number????? is odd

  • Is this possible with LOG ERRORS?

    I have a procedure which does a bulk insert/update operation using MERGE (running on Oracle 10gR2). We want to silently log any failed inserts/updates but not rollback the entire batch no matter how many inserts fail. So I am logging the exceptions via LOG ERRORS REJECT LIMIT UNLIMITED. This works fine actually.
    The one other aspect is the procedure is being called from Java and although we want any and all good data to be committed, regardless of how many rows have bad data, we still want to notify the Java front end that not all records were inserted properly. Even something such as '150 rows were not processed.' So I am wondering if there is anyway to still run the entire batch, log the errors, but still raise an error from the stored procedure.
    Here is the working code:
    CREATE TABLE merge_table
        t_id     NUMBER(9,0),
        t_desc   VARCHAR2(100) NOT NULL
    CREATE OR REPLACE TYPE merge_type IS OBJECT
        type_id     NUMBER(9,0),
        type_desc   VARCHAR2(100)
    CREATE OR REPLACE TYPE merge_list IS TABLE OF merge_type;
    -- Create Error Log.
    BEGIN
        DBMS_ERRLOG.CREATE_ERROR_LOG(  
            dml_table_name      => 'MERGE_TABLE',
            err_log_table_name  => 'MERGE_TABLE_ERROR_LOG',     
    END;
    CREATE OR REPLACE PROCEDURE my_merge_proc_bulk(p_records IN merge_list)
    AS
    BEGIN
        MERGE INTO merge_table MT
        USING
            SELECT
                type_id,
                type_desc
            FROM TABLE(p_records)
        ) R           
        ON
            MT.t_id = R.type_id
        WHEN MATCHED THEN UPDATE
        SET
             MT.t_desc = R.type_desc
        WHEN NOT MATCHED THEN INSERT
            MT.t_id,
            MT.t_desc
        VALUES
            R.type_id,
            R.type_desc
        LOG ERRORS INTO MERGE_TABLE_ERROR_LOG ('MERGE') REJECT LIMIT UNLIMITED;
        COMMIT;
    END;
    -- test script to execute procedure
    DECLARE
        l_list       merge_list := merge_list();
        l_size       NUMBER;
        l_start_time NUMBER;
        l_end_time   NUMBER;
    BEGIN
        l_size := 10000;
        DBMS_OUTPUT.PUT_LINE('Row size: ' || l_size || CHR(10));
        l_list.EXTEND(l_size);
        -- Create some test data.
        FOR i IN 1 .. l_size
        LOOP
            l_list(i) := merge_type(i,'desc ' || TO_CHAR(i));
        END LOOP;
        EXECUTE IMMEDIATE 'TRUNCATE TABLE MERGE_TABLE';
        EXECUTE IMMEDIATE 'TRUNCATE TABLE MERGE_TABLE_ERROR_LOG';
        -- Modify some records to simulate bad data/nulls not allowed for desc field  
        l_list(10).type_desc := NULL;
        l_list(11).type_desc := NULL;
        l_list(12).type_desc := NULL;
        l_list(13).type_desc := NULL;
        l_list(14).type_desc := NULL;
        l_start_time := DBMS_UTILITY.GET_TIME;   
        my_merge_proc_bulk(p_records => l_list);
        l_end_time := DBMS_UTILITY.GET_TIME;
        DBMS_OUTPUT.PUT_LINE('Bulk time: ' || TO_CHAR((l_end_time - l_start_time)/100) || ' sec. ' || CHR(10));
    END;
    /I tried this at the end of the procedure, but it does not work, probably because I am not using SAVE EXCEPTIONS:
        IF (SQL%BULK_EXCEPTIONS.COUNT > 0) THEN
            RAISE_APPLICATION_ERROR(-20105, SQL%BULK_EXCEPTIONS.COUNT || ' rows failed for the batch.' );
        END IF;Also the one thing we would like to have is the datetime logged for each failure in the ERROR_LOG table. We may be running several different batches over night. Is this possible to manipulate the table to add this?
    Name                              Null?    Type
    ORA_ERR_NUMBER$                            NUMBER
    ORA_ERR_MESG$                              VARCHAR2(2000)
    ORA_ERR_ROWID$                             ROWID
    ORA_ERR_OPTYP$                             VARCHAR2(2)
    ORA_ERR_TAG$                               VARCHAR2(2000)
    CHANNEL_ID                                 VARCHAR2(4000)
    CHANNEL_DESC                               VARCHAR2(4000)
    CHANNEL_CLASS                              VARCHAR2(4000)Edited by: donovan7800 on Feb 16, 2012 1:14 PM
    Edited by: donovan7800 on Feb 16, 2012 1:17 PM

    Ah yes I remember. The guy needing the TABLE(p_records).
    Re: Merge possible from nested table?
    >
    I tried this at the end of the procedure, but it does not work, probably because I am not using SAVE EXCEPTIONS:
    IF (SQL%BULK_EXCEPTIONS.COUNT > 0) THEN
    RAISE_APPLICATION_ERROR(-20105, SQL%BULK_EXCEPTIONS.COUNT || ' rows failed for the batch.' );
    END IF;
    >
    Correct - you need to use SAVE EXCEPTIONS.
    I know there is the FORALL command, but I figured there was a way to do this with MERGE since the procedure does an update if a match is found instead
    But you can use MERGE with FORALL and add the SAVE EXCEPTIONS to handle your problem.
    I still have a question as to what the source of the PL/SQL table provided by the parameter Is this table being prepared in another PL/SQL procedure, in Java, or how? Are you confident that the number of rows in the table will be small enough to avoid a memory issue?
    If in PL/SQL you could pass a ref cursor and then in this proc use a LOOP with a 'BULK COLLECT into' with a LIMIT clause to do the processing.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Hi, i wanted to resize my windows partion. I was thinking of using the default backup system for windows. Then switching to mac partion, deleting the bootcamp and then restoring a new enlarged partion from the backup. Is this possible?

    hi,
    i wanted to resize my windows partition. I was thinking of using the default backup system for windows. Then switching to mac partion, deleting the bootcamp and then restoring a new enlarged partition from the backup. Is this possible?

    I see youhave gotten recommendatons for using WinClone or CampTune.  I have used both and they both work well.
    You have asked about using the WIndows 7 utility to backup your drive and restor it onto a larger partition.  I will tell you fro experience that this will probably not do what you want, and may do something that you don't want.  You can use the Windows 7 native backup tool to make a backup of your Windows 7 partition.  It will most liekly end-up making a dive image of the whole drive.  When yourestore that backup, it will try to re-create teh partitions of exactly the same size as they were when the backup was taken, so it won't increase your partition size for you.  Worse, since Windows doesn't natively know how to read./write HFS+ volumes, the backup will make a partition for your MacOS (replacing any you may have now), except that the copy restored by WIndows will be totally worthless, and you will not be able to boot MacOS from it, or even read it under MacOS.
    Now I will tell you that I've also had some fairly good success working with the free tool CloneZilla.  Since it hasn't been mentioned yet, and everything else mentioned does cost you money, I thought I would throw it out.  CloneZilla is not as easy to use as the tools mentioned, but it has worked for me int hte past, so it is something to consider.  I tend to use CampTune myself, but that was because I purchased a bundle deal for them and it was included in that deal.

  • Is this possible in flash CS3 or later to resize a movie clip but not its childern

    Hi
    I want to make a movie clip inside another on, and when I
    resize the outer one by code or manually, the inner on should keep
    it size as I created it first?
    If this possible please give me the code for that (AS2.0 and
    AS3.0)
    thanks a lot.

    Hi,
    I am not sure so I will just give some some "ideas" you can
    try:
    1) can you assign a "variable" to the size attribute? like
    mclip.size=myvariable;
    and then changing it?
    2) can you use something to "record" the current size of the
    "inside movie clip" like StoringVariable=this.size;
    and then call it again later?
    3)can you siply not "reassign" the size two times?
    like for one "button click:
    on (release)
    movieclipparent.size=something;
    movieclipinside.size=something else;
    I think its definitely possible...
    Have a look at the Keyword "_parent" or "this" for example...
    or "_root.moviclip.movieclip"

  • Delete the Contact app, how is this possible?

    both  my ios devices show my contacts app as installing, waiting for the download to start. like they were normal apps, not one of apples.
    If I tap and hold on the app, it lets me delete it. I did this on the iPhone after doing a phone restore did not fix the issue. I know everyone says it can't be done because it's an apple app, but I did. I got the warning about deleting this app will delete it's information, etc... I went ahead with it as nothing else has worked up to this point. (and yes, the apps that rely on the data still have access to that data it seems)
    my question is two fold, how is this possible? And how do I get it back?
    thanks
    jason

    Trust me, this is NOT an app downloaded from the App Store. i put all my 'apple' apps together in one folder by group/type. Nothing else goes in those folders. And it had the icon of the contacts app. It was also the only one of those to show a "waiting..." And icon greyed out like the App Store was trying to update it.
    I get no results in a spotlight search. Tried that Before I posted.
    I have had iOS devices for many years, ipad from day 1! so I know this is truly the contacts app from apple and thus I am truly  perplexed that it let me do this.
    any more thoughts or ideas?.
    thanks
    jason
    p.s. Same thing is happening on my iPad, here is the screen shot of the folder with the contacts icon saying waiting. I verified in the iPhone users guide that this definitely the icon for the apple contacts app. Saying waiting, not contacts.

  • Snooped at work -How is this possible?

    The other day at work I discussed my boss has the capability to monitor what I am doing on the internet on my macbook. It is my computer but I use his internet. He does not know my password and I have my security settings set to NO FILESHARING. How is this possible and how do I make it stop?

    Short answer, as long as your data passes through any device owned/controlled by someone else, that someone else has the potential to view your data.
    Read that statement carefully. It doesn't matter whether the 'device' is a firewall in your office controlled by your boss (or by a network admin), or a router at your ISP controlled by your ISP's network folks, or even the wire run into your building and maintained by your local telco. Whoever controls the device has the potential to view the data running through it.
    Now, of course, telcos and ISPs aren't supposed to snoop on your traffic - at least without a court order (can anyone say 'warrantless wiretaps'?), but the possibility remains.
    One partial solution is to encrypt all your communications (e.g. HTTPS vs. HTTP, SSL vs telnet, etc.) and that may help hide the content of your communication but whoever's watching can still determine where you're going (e.g. they can see you're hitting https://your.favoritepr0n.com/ but not necessarily see the.. umm.. artwork), and that may be enough to get you disciplined.
    So the short answer, either don't do things you shouldn't, or find a better boss.

  • I Need to Return Two values or more from Function, Is this possible?

    Below is the offending query, I am trying to pass v_bu and v_po to this function, and after validations then return v_count and v_action is this possible in a function? I am having problem returning two values.
    see below code
    function po_edi_func(v_bu purchase_order.business_unit_id%type,
         v_po purchase_order.purchase_order_number%type)
         return number as pragma autonomous_transaction;
         v_count               number;
         v_ctdel               number;
         v_action          varchar2(1);
    begin
    select count(*)
    into v_count
    from sewn.purchase_order
    where business_unit_id=v_bu
    and purchase_order_number =v_po;
    if v_count > 0 then
         select count(*)
         into v_ctdel
         from sewn.purchase_order
         where business_unit_id=v_bu
    and purchase_order_number =v_po
         and purc_orde_status = 1;
         if v_count <> v_ctdel then -- ALl PO's Cancelled--
         v_action := 'U'; -- - NOT ALL PO DELETED --
         else
         v_action := 'D'; -- DELETED ALL PO--
         end if;
    else
         v_action := 'I';-- New PO INSERT--
    end if;
    commit;
    return v_count;
    end;

    Paul,
    This is becoming a nightmare to me, can you look at the below and tell me where I am having a problem
    This is the Function below
    CREATE OR REPLACE function po_edi_func(v_bu sewn.purchase_order.business_unit_id%type,
         v_po sewn.purchase_order.purchase_order_number%type,v_action_out OUT VARCHAR2)
         return number as pragma autonomous_transaction;
         v_count               number;
         v_ctdel               number;
         v_action          varchar2(1);
    begin
    select count(*)
    into v_count
    from sewn.purchase_order
    where business_unit_id=v_bu
    and purchase_order_number =v_po;
    if v_count > 0 then
         select count(*)
         into v_ctdel
         from sewn.purchase_order
         where business_unit_id=v_bu
    and purchase_order_number =v_po
         and purc_orde_status = 1;
         if v_count <> v_ctdel then -- ALl PO's Cancelled--
         v_action := 'U'; -- - NOT ALL PO DELETED --
         else
         v_action := 'D'; -- DELETED ALL PO--
         end if;
    else
         v_action := 'I';-- New PO INSERT--
    end if;
    commit;
    v_action_out := (lpad(v_count,8,'0')||lpad(v_action,1,' '));
    return v_action_out;
    end;
    and this is how I am calling it from my trigger which has to pass the v_bu and v_po values to be used in extracting data and returning the records
    see below
    if po_edi_func(v_bu,v_po) <> '' then;
    v_count:= (substr(v_action,1,8));
    v_action := substr(v_actione,9,1);
    else
    v_count:=0;
    v_action := 'I';
    end if;
    I need the extracted values of v_count and v_action for my app to reset some values

  • Is this possible with Actionscript 3 events?

    Fairly new to AS3. Studying up on events.
    Is it possible to have a simple value object dispatch an event and have the script inside the MXML respond to that event itself without having to register the event on the value object itself?
    Example of what I'm talking about
    I have a simple value object named Person. Not directly inherited from anything.
    Has one variable.  firstName : String;
    When the firstName variable gets changed, the setter creates a new DispatchEvent object and dispatches a new event. It does this without any runtime errors.  Back in the MXML, I want the MXML's Application to be what registers the event, NOT the Person object. In fact, it can't because I didn't inhert from the DispatchEvent class.
    I've provided both the custom class and the MXML. I've kept it as bare bones and as simplistic as possible to get my intent across.
    =======================================
    MY CUSTOM CLASS DEFINITION
    =======================================
    package myClasses
    import flash.events.Event;
    import flash.events.EventDispatcher;
    public class Person
      private var _firstName : String;
      public function Person( fName : String )
       _firstName = fName;
      [Bindable(event="firstNameChange")]
      public function get firstName():String
       return _firstName;
      public function set firstName(value:String):void
       if( _firstName !== value)
        _firstName = value;
        var d:EventDispatcher = new EventDispatcher( );
        d.dispatchEvent( new Event( "firstNameChange" ) );
    =======================================
    MY MXML
    =======================================
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
          creationComplete="application1_creationCompleteHandler(event)">
    <fx:Script>
      <![CDATA[
       import mx.controls.Alert;
       import mx.events.FlexEvent;
       import myClasses.Person;
       [Bindable]
       protected var myPerson:Person
       protected function application1_creationCompleteHandler(event:FlexEvent):void
         // Want the "application" to be notified when the "firstNameChange" event happens
        addEventListener( "firstNameChange", personChanged );
        myPerson = new Person( "Scoobie Do" );
        // Force a change and HOPE the event triggers
        myPerson.firstName = "Shaggy";
         // This is NOT being ran.
       protected function personChanged( e:Event ) : void
        Alert.show( "triggered" );
      ]]>
    </fx:Script>
    </s:Application>
    All the examples I've seen would have the Person class inherit from the DispatchEvent class, then back in the MXML you'd have something like this
    var p:Person = new Person( "thelma" );
    p.addEventListener( "firstNameChange", someEventHandlerFunction );
    I get that, but not what I'm trying to acheive here. I just want the Person object to dispatch the event and have someone else be able to listen for the "firstNameChange" event.   Is this possible?
    Thanks for the help!!!!

    Ahh, the age-old signals/slots vs Events debate...
    The fact there is even a discussion on the topic gives you an idea of how powerful the language is (compared to other sandboxed client-side instruction sets). Architecturally, anything is possible. Hell, you could even write your own byte code interpreter if you wanted...
    To get back to the original question, what you are looking for is a standardized way to get classes to communicate with each other, yes? This is usually done through a framework, or various design patterns. Pick whichever method your are comfortable with given your past programming experiences.

  • Is this possible? 2 iTunes library 1 on HDD 1 on a NAS?

    At the moment I have all my library video, music, TV shows together and it's becoming too big for my internal iMac HDD.
    What I was thinking was having the video and TV shows in a seperate library on my NAS to save storage space. Is this possible? The NAS is a Buffalo Linkstation live.
    I could then keep all my music which I use most often on interrnal HDD and video seperate for streaming to my Apple TV.
    How can I do this please
    cheers

    the loc-man wrote:
    (hopefully) one last question....
    If I do this splitting and use Time Machine for backup what will it backup? Just the iTunes music on the internal HDD and just the references to the movies/TV shows?
    time machine will back up any drive connected directly to your Mac (firewire, USB). TM will not backup networked drives. click here for information.
    ie I will have to have a manual backup of my movies and TV shows, as these will only be physically on my NAS and no where else?
    call me paranoid but i have double and triple backups of my media files, spread across various drives. all drives fail eventually so better be safe ...
    bottom line, you need to backup manually - unless you want to move your library back from the NAS to a DAS so that TM can include your media files for backup to a TC or perhaps an e.g. 4 TB Drobo.

Maybe you are looking for