What is the proper account to use for icloud?

Do i use my apple id, or my mobileme account? i tried the apple id first and contacts wouldnt sync to icloud from the phone.then i tried my mobile me account info and everything synced. which are we supposed to use?
mobileme account works fine between devices and pc, but wouldnt this stop icloud from accessing my itunes stuff since im not using my apple id?

Sorry to have to tell you this guys but all of the above are broken.
First of all... you should all take a good look at what the read() method actually does.
http://java.sun.com/j2se/1.3/docs/api/java/io/InputStream.html#read(byte[], int, int)
Pay special attension to this paragraph:
Reads up to len[i] bytes of data from the input stream into an array of bytes. An attempt is made to read as many as len[i] bytes, but a smaller number may be read, possibly zero. The number of bytes actually read is returned as an integer.
In other words... when you use read() and you request say 1024 bytes, you are not guaranteed to get that many bytes. You may get less. You may even get none at all.
Supposing you want to read length bytes from a stream into a byte array, here is how you do it.int bytesRead = 0;
int readLast = 0;
byte[] array = new byte[length];
while(readLast != -1 && bytesRead < length){
  readLast = inputStream.read(array, bytesRead, length - bytesRead);
  if(readLast != -1){
    bytesRead += readLast;
}And then the matter of write()...
http://java.sun.com/j2se/1.3/docs/api/java/io/OutputStream.html#write(byte[])
write(byte[] b) will always attempt to write b.length bytes, no matter how many bytes you actually filled it with. All you C/C++ converts... forget all about null terminated arrays. That doesn't exist here. Even if you only read 2 bytes into a 1024 byte array, write() will output 1024 bytes if you pass that array to it.
You need to keep track of how many bytes you actually filled the array with and if that number is less than the size of the array you'll need pass this as an argument.
I'll make another post about this... once and for all.
/Michael

Similar Messages

  • What are the proper settings to use for Quadro 2100M on WS60 workstation

    Hello,
    I have a WS60 Workstation.  When going through the settings for physix and others I noticed that the Nvidia card has no ports assigned to it.
    How do I ensure that the laptop is indeed using the quadro card?
    Thanks

    For the Optimus structure, NVIDIA graphics is doing the rendering but it's Intel Graphics which is showing the rendered graphics on the screen. This is why you didn't see NVIDIA Graphics is connecting with any displays.
    You can check the power button light, it will light orange when the dedicated graphics is in used.
    (White color shows it's using the integrated graphics)

  • What can I do? I've forgotten my password and dont remember the answers to my sercurity questions, and no longer have access to the email account i used for backup. How do I get my icloud password reset?

    What can I do? I've forgotten my password and dont remember the answers to my sercurity questions, and no longer have access to the email account i used for backup. How do I get my icloud password reset? Please help. Thanks in advance.

    Please see Kappy's User Tip here:
    https://discussions.apple.com/docs/DOC-4551

  • What is the proper way to use the write method?

    What is the proper way to use the OutputStreams write method? I know the flush() method is automatically called after the write but i cant seem to get any output
    to a file. The char array contains characters and upon completion of the for loop the contents of the array is printed out, so there is actually data in the array. But write dosnt seem to do squat no matter what i seem to do. Any suggestions?
    import java.io.*;
    public class X{
    public static void main(String[] args){
    try{      
    FileReader fis = new FileReader("C:\\Java\\Test.txt"); //read chars
    FileWriter fw = new FileWriter("C:\\Java\\Test1.txt"); //read chars
    File f = new File("C:\\Java\\Test.txt");
    char[] charsRead = new char[(int)f.length()];
    while(true){
    int i = fis.read(charsRead);
    if(i == -1) break;
    // fw.write(charsRead); this wont work
    // but there is infact chars in the char Array?
    for(int i = 0; i < charsRead.length -1 ; ++i){
    System.out.print(charRead);
    }catch(Exception e){System.err.println(e);}

    Sorry to have to tell you this guys but all of the above are broken.
    First of all... you should all take a good look at what the read() method actually does.
    http://java.sun.com/j2se/1.3/docs/api/java/io/InputStream.html#read(byte[], int, int)
    Pay special attension to this paragraph:
    Reads up to len[i] bytes of data from the input stream into an array of bytes. An attempt is made to read as many as len[i] bytes, but a smaller number may be read, possibly zero. The number of bytes actually read is returned as an integer.
    In other words... when you use read() and you request say 1024 bytes, you are not guaranteed to get that many bytes. You may get less. You may even get none at all.
    Supposing you want to read length bytes from a stream into a byte array, here is how you do it.int bytesRead = 0;
    int readLast = 0;
    byte[] array = new byte[length];
    while(readLast != -1 && bytesRead < length){
      readLast = inputStream.read(array, bytesRead, length - bytesRead);
      if(readLast != -1){
        bytesRead += readLast;
    }And then the matter of write()...
    http://java.sun.com/j2se/1.3/docs/api/java/io/OutputStream.html#write(byte[])
    write(byte[] b) will always attempt to write b.length bytes, no matter how many bytes you actually filled it with. All you C/C++ converts... forget all about null terminated arrays. That doesn't exist here. Even if you only read 2 bytes into a 1024 byte array, write() will output 1024 bytes if you pass that array to it.
    You need to keep track of how many bytes you actually filled the array with and if that number is less than the size of the array you'll need pass this as an argument.
    I'll make another post about this... once and for all.
    /Michael

  • What are the transaction codes we use for LSMW in MM, SD, PP  & FI/CO gnrly

    Hi all,
    What are the transaction codes we use for LSMW in MM, SD, PP  & FI/CO generally?
    Help will be surely rewarded.
    Thanks and Regards,
    Creasy

    > What are the transaction codes we use for LSMW in MM, SD, PP  & FI/CO generally?
    General threads about LSMW in MM, SD, PP, FICO will be locked and deleted generally.
    > Help will be surely rewarded.
    &********************** Please read "the rules" if found usefull... ************************&
    Cheers,
    Julius

  • What is the logical system name used for in R/3?

    We have a R/3 server. The production client has a logical system name. What is the logical system name used for?
    Tony Tam

    Hi Tony
    Following Links will help you in understanding the concept
    http://benstudycenter.blogspot.com/2008/02/logical-system.html
    http://help.sap.com/saphelp_sm32/helpdata/en/78/217dc151ce11d189570000e829fbbd/frameset.htm
    http://help.sap.com/saphelp_sm32/helpdata/en/78/217dc151ce11d189570000e829fbbd/frameset.htm
    thanks
    Bhudev

  • What's the best flash to use for nighttime sports games?

    What's the best flash to use for nighttime sporting events? I have a rebel XT and I'm pushing it to its limits trying to stop the action. I've tried a speedlite 430 but it didn't have a hook up for an external battery pack and I was told I'd need the extra power. Just tried the 580ex ll on Friday but at the 1/1 setting, it didn't flash for each frame in a burst, even with the external power. I should have backed it down to 1/4 but didn't know at the time. Any thought on a really good flash for night sports? Is the 580 a good choice?

    JUst as Tim_S said. YOu will want a external battery pack. Unforatannly the 430 does not have the option to plug in a external battery pack so will want to pick up a 580 or one of the new 600 series. 
    Then you start looking at the battery packs. I recommend Quantum power packs
    http://qtm.com/index.php/products/2012-05-17-18-18-59/turbos
    5D III, 8-15L, TSE 24L, 24-105L, 85L, 70-200L, EX600 X2

  • What is the initial account and password  for BW IDES 7?

    Hi all:
         what's the initial account and password for BW IDES 7?
    Thank you very much!!

    sap* pass1234 or
    ddic password was set in install.

  • What is the best method to use for revealing the text on a jpg (as though the text is drawing itself?) Thanks.

    What is the best method to use for revealing the text on a jpg (as though the text is drawing itself?) Thanks.

    tacbob wrote:
    Are there any tutorials? I cannot find anything close.
    http://itunes.apple.com/de/podcast/write-on-effects-in-motion/id287113664?i=4883 4057
    The MacBreak Podcasts are an excellent source of info!
    Have a look on the others ..

  • What is the proper way to use Siri dictation with punctuation, on iPad with Retina Display?

    What is the proper way to use Siri dictation with punctuation, on iPad with Retina Display?
    Thank you!

    From the iPad User Manual:
    Also:
    no space on ... no space off—to run a series of words together
    smiley—to insert :-)
    frowny—to insert :-(
    winky—to insert ;-)

  • What is the best software to use for screen capture on a PC for use with FCPX?

    What is the best software to use for screen capture on a PC (windows 7) for use with FCPX? I've tried Camtasia and camstudio however the avi files cannot be imported by FCPX and the mov files produced by these programs are shown as just black screens in FCPX.

    I use to face this issue every now and then (as a freelancer) when I use to cut on FCP7.
    if the material is DV and was captured using Sony VEGAS, Premiere or Edius, the footage generally worked fine. You'll find most people will tell you to convert it regardless, however I found no issues working with them.
    A problem you'll definitely face is HDV material. Most PC editing software write HDV in their own codec, which can't be read in FCP.
    The only thing I can think of is to try converting HDV meaterial to QuickTime using something like MPEG Streamclip, or something similar.
    Good luck

  • I travel between countries often for my work.  What is the best iphone to use for international calling at a reasonable cost?

    I travel between countries often for my work.  What is the best iphone to use for international calling at a reasonable cost?

    All six Uk carriers carry the iPhone officially and micro sims are very common therefore
    PAYG is very common in UK every carrier offers a number of packages but all commitment free
    http://support.apple.com/kb/ht1937
    List of Turkish Carriers within this doc

  • What is the best browser to use for facebook?

    What is the best browser to use for facebook?

    Any browser is supposed to work, provided the rest of the infrastructure (Flash, Java) is up to date.
    However, since FB is so prone to install/modify/alter its settings/cookies/environment, I prefer to keep mine sandboxed and access it only via a dedicated browser used for nothing else, thus minimizing the risk and exposure.  For that, I use the Flock browser, purportedly optimized for social media: http://www.macupdate.com/app/mac/19719/flock

  • What is the best editor to use for JSP/Servlet?

    Hello,
    What is the best editor to use for JSP/Servlet database development.
    I'm looking at Dreamweaver,Java Studio Creator.
    I want some thing fairly easy to use that has database helper wizards like dreamweaver.
    Thanks for the help.
    Frank

    Is it better to have a servlet do the database work and call it from JSP?No, it's better to have persistence objects do the database work. Servlets handle HTTP requests, and JSPs are HTML factories that should be pure view.
    But there are lots of ways to do things. You just have to understand the tradeoffs when you decide.
    I do not want to hammer out code, I want to learn the
    best way to do things from experienced developers. Sorry, sounded like you just wanted to churn stuff.
    "best way" can be subjective. In one app, "best" might be "delivered fastest". For another, "best" might be "most secure" or "most easily modified" or "best performing" or whatever. You won't get a "best" answer, only different choices. And they aren't always so easy to explain or execute.
    I'd recommend that you start by reading about layered applications (3-tier architectures) and MVC separation. Once you've Googled enough about that, look into a framework like Struts or Spring or WebWork. That'll help you figure out where to put each responsibility in your app.
    I can use dreamweaver to create web apps, but I hate
    the arrays used to define fields. It also seems not
    to take advantage of connection pooling.Don't know what you're talking about here, Frank. What do fields have to do with connection pooling?
    %

  • What is the "Ultrabay – hdd / optical" used for? (X230t)

    hi,
    What is the "Ultrabay – hdd / optical" used for? (X230t)
    best regards, tastro

    Ultrabay in the Ultrabase Series 3 can be used for Optical Drive and HDD (placed in a ultrabay enhanced hdd caddy).
    Regards,
    Jin Li
    May this year, be the year of 'DO'!
    I am a volunteer, and not a paid staff of Lenovo or Microsoft

Maybe you are looking for