Can Anyone Convert this to Coding..

Hi..new to programming. I was just asking a huge favour. Can anyone convert the following sets of instructions to code. I really am struggling in java lately...thanks if anyone has done it for me.
1. read each line from a buffered reader and create a string of the whole file with '\n' and everything.
2. tokenize each line and then each element to determine the dimensions of the grid.
3. create the grid using those dimensions.
4. reinitialize the tokenizers.
5. go through each element assigning it to the proper position on the grid.
6. return the grid

Well lets take these requirements one at a time.
1. read each line from a buffered reader and create a string of the whole file with '\n' and everything.
You are reading the file line by line.
But you are not "creating a string of the whole file with '\n' and everything".
The simple way to do that is to add it line by line
String wholeFile = "";
wholeFile = wholeFile + line + "\n";
The better way would be to use a java.lang.StringBuffer, or a java.io.StringWriter object.
public static String readFile(String layoutFileName) throws IO Exception{
2. tokenize each line and then each element to determine the dimensions of the grid.
You kind of have this already:
StringTokenizer b = new StringTokenizer (fileContents, "\n");
each time you call nextToken() it will return one line.
To split the line:
StringTokenizer colTokens = new StringTokenizer(line);
3. create the grid using those dimensions.
4. reinitialize the tokenizers.
5. go through each element assigning it to the proper position on the grid.
a[row][col] = ??????
6. return the grid
public static int[][] readGridFromString(String fileContents){
so your program would be along the lines of...
String fileContents = readFile(fileName);
int[][] grid = readGridFromString(fileContents);
What is it that separates the tokens on each individual line? Spaces?
Hope this helps some,
evnafets

Similar Messages

  • Can anyone convert this code to java......(urgent)

    hi everybody.....
    can anybody provide me a java code for the following problem......
    i want that if user enters input like this:
    sam,john,undertaker,rock
    the output should be:
    'sam','john','undertaker','rock'
    i.e , is converted to ',' and the string starts with ' and ends with '
    i have a javascript code for this and it is reproduced below to have full view of the problem.........
    <HTML>
    <BODY>
    <script type="text/javascript">
    function CONVERT(){
    var re=/[,]/g
    for (i=0; i<arguments.length; i++)
    arguments.value="'" + arguments[i].value.replace(re, function(m){return replacechar(m)}) + "'"
    function replacechar(match){
    if (match==",")
    return "','"
    </script>
    <form>
    <textarea name="data1" style="width: 400px; height: 100px" ></textarea>
    <input type="button" value="submit" name="button" onclick="CONVERT(this.form.data1)">
    </form>
    </BODY>
    </HTML>
    can anyone do it for me.
    thx in anticipation

    Sunish,
    On your problem, check in the String class documentation the method replaceAll(), you can solve your problem in just one line of code.
    As for why the serious poster(the ones that are here to help, for many year, instead of just disrupting the forum) do not give you code is that they are here to help people learning and not to give free code.
    You help a person to learn, when you provide this person with the tools to research and help the person to think out of his problem, so that in the future the learning person can repeat the process by herself instead of going after finnished solution everytime he needs it.
    May the code be with you.

  • Can anyone convert this *.LIB file? 8.5 will not open it.

    This is getting annoying.  A lot of older VIs are posted here but the latest labview will not open them.  Al l can say to that is ERRRRR!!!!!.
    If anyone could convert this to a revision that LV 8.5 can open i would appreciate it.
    Thanks
    Tim C.
    1:30 Seconds ARRRGHHH!!!! I want my popcorn NOW! Isn't there anything faster than a microwave!
    Attachments:
    labview_browser.llb ‏1192 KB

    Well 9 minutes is not qite microwave speed but that is pretty good!
    Ben
    PS And it much faster than the microwave I have at home now. My wife reported last night "The microwave is on fire!" Well it wasn't exactly under going a chemical reaction with O2 but the sparks sure looked like flames!
    Message Edited by Ben on 12-04-2007 08:03 AM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Can anyone convert this Oracle 11g (RAC?) into a usable Datasource in CF8.0.1 and CF9 Admin?

    Can someone help me convert this into the correct settings for an Oracle datasource in CF8.0.1 and CF9? I would prefer to not use the thin client if that is even possible. "With progress comes great change to connection settings!" -Nate, 2011
    ABCDEPRD = (DESCRIPTION=
       (LOAD_BALANCE=on)
       (FAILOVER=on)
       (ADDRESS_LIST=
          (SOURCE_ROUTE=yes)
          (ADDRESS = (PROTOCOL = TCP)(HOST = dom1.xyz.com)(PORT = 1521))
          (ADDRESS_LIST=
            (LOAD_BALANCE=yes)
            (ADDRESS=
              (PROTOCOL=TCP)
              (HOST=qrsx901.xyz.com)
              (PORT=3200)
            (ADDRESS=
              (PROTOCOL=TCP)
              (HOST=qrsx902.xyz.com)
              (PORT=3200)
        (ADDRESS_LIST=
          (SOURCE_ROUTE=yes)
          (ADDRESS = (PROTOCOL = TCP)(HOST = dom2.xyz.com)(PORT = 1521))
          (ADDRESS_LIST=
            (LOAD_BALANCE=yes)
            (ADDRESS=
              (PROTOCOL=TCP)
              (HOST=qrsx901.xyz.com)
              (PORT=3200)
            (ADDRESS=
              (PROTOCOL=TCP)
              (HOST=qrsx902.xyz.com)
              (PORT=3200)
        (CONNECT_DATA=
          (SERVER=dedicated)
          (SERVICE_NAME=ABCDEPRD_TAF)

    user13016840 wrote:
    By any chacne you have the steps on your blog)?Currently its not there in blog..
    You can refer to :
    http://oraforecast.com/orawiki/index.php/How_to_enable_Dead_Connection_Detection
    http://www.dba-oracle.com/t_sqlnet_expire_time.htm
    How does Dead connection detection work?
    Hope it will help..
    Regards
    Rajesh

  • Can anyone convert this LV 4.0.2 VI to 7.1?

    This VI is part of a driver for a Fluke 2640/2645A (NetDAQ)
    Thanks
    Attachments:
    main.vi ‏73 KB

    I had no problem opening it with 7.1 (short of all the missing subVIs). In any case, here it is.
    Attachments:
    main_7.1.vi ‏61 KB

  • Can you convert this to recursion ?

    Can anyone Convert this to REcursion ?? (dont change the method signature, i have been trying for an hour but i got no luck, please post solutions , thanks !
    public static int binarySearchR(int[] a, int key) {
    int bot = 0, top = a.length;
    while (bot < top) {
    int mid = (bot + top)/2;
    if (key < a[mid])
    top = mid;
    else if (key > a[mid])
    bot = mid + 1;
    else return mid;
    return -1;
    }

    Forums trolls are people who just flame posts for
    attention.I see. So after all these years I've been on the forum and thought I knew what trolls were, all along it was me who was the troll. Thanks for letting me know.
    im looking for any hints how to do it. Not really. Looks to me like you're just looking for it to get done by someone else.
    >
    and its not homework. get your facts right. its a
    exercise from a lab. that has no grading policy.As if that makes a difference.

  • Trying to drag pdf files i have and combine them into one pdf file in the account i just purchased with Adobe. when i drag a pdf file over Adobe doesn't accept it. says it can not convert this type of file. but it is an Adobe file. Do I need to change it?

    Trying to drag pdf files i have and combine them into one pdf file in the account i just purchased with Adobe. when i drag a pdf file over Adobe doesn't accept it. says it can not convert this type of file. but it is an Adobe file. Do I need to change it in some other form befor dragging it?

    Hello djensen1x,
    Could you please let me know what version of Acrobat are you using.
    Also, tell me your workflow of combining those PDF files?
    Please share the screenshot of the error message that you get.
    Hope to get your response.
    Regards,
    Anubha

  • Hi all, I upgraded my MBP to Lion , but on the screen where i need to type my password, click  on my photo and it does not appear the place for me to type my password and it stay stuck there. Can anyone solve this problem for me?

    Hi all, I upgraded my MBP to Lion , but on the screen where i need to type my password, click  on my photo and it does not appear the place for me to type my password and it stay stuck there. Can anyone solve this problem for me?

    Reboot the machine holding Command and r keys down, you'll boot into Lion Recovery Partition
    In there will be Disk Utility, use that to select your Lion OS X Partition and Repair Permissions.
    After that is done reboot the machine and see if you can log in.
    If not repeat the above steps to get into Lion Recovery, get online and reinstall Lion again, it will overwrite the installed version and hopefully after that it wil work.
    Reboot and try again.
    If not follow my steps to create a Snow Leopard Data Recovery drive, then option boot from it and grab a copy of your files off the machine.
    Then reinstall all your programs onto the external drive like setting up a new machine, then use Disk Utility to erase the entire internal boot drive (select the drive media on the far left, not the partiton slightly indented) format Option: GUID , 1 partition OS X Extended and then use Carbon Copy Cloner to clone the external to the newly formatted internal drive. Once that is finished reboot and disconnect the external drive.
    Once you go that, boot into Snow Leopard and update to 10.6.8, use the AppStore and option click on Purchases and download Lion again and install.
    Lots of work, but there is no Lion disks.
    https://discussions.apple.com/message/16276201#16276201

  • Can anyone explain this behavior and tell me how to fix it?

    Using NetBeans 6.5 on Windows, Glassfish v2.1
    I have a JSF application with a page that has a tab set.
    On one of the tabs I have a panel with company information.
    One of the components on the page is an InputText field with the value bound to a session bean variable.
    The tab also has an Add button.
    Here is what the JSP looks like for the input text and button components
       <h:inputText binding="#{MainPage.companyNameTF}" id="companyNameTF" readonly="#{SessionBean1.readOnlyFlag}"
       <h:commandButton action="#{MainPage.mainAddBtn_action}" disabled="#{SessionBean1.disableEdit}" id="mainAddBtn"
            style="font-family: Arial,Helvetica,sans-serif; font-size: 14px; font-weight: bold; left: 425px; top: 380px; position: absolute; width: 75px" value="Add"/>
         This is all plain vanilla stuff and I would expect that when the Add button is pushed, the session bean property would be filled with
    the value entered in the input text field.
    In the java code for the page, I have a method to process the Add button push.
    Originally, it just called a method in the session bean to check that a value was entered in the input text field by checking the bound
    session bean property.
    For some reason, that was not getting filled and I was getting either a null or empty string rather than the value in the text field.
    I added some checking in the method that processes the Add button push so I could check the values in the debugger.
    Here is a sample of that code:
        public String mainAddBtn_action() {
            String s = sb1.getCompanyName();
            s = (String)this.companyNameTF.getValue();
            s = (String)this.companyNameTF.getSubmittedValue();I check this in the debugger and NONE of the variants that I have listed have the value that was entered into the text field.
    The submittedValue is null and the others are empty strings (that is what they were initalized to).
    This is all pertty straight forward stuff and I am at a loss to explain what is happening.
    Can anyone expain this behavior, and, most important, how can I force the values to be present when the Add button is pushed.
    I have never experienced this problem before, and have no clue what is causing it.
    Thanks.

    Basically, the component bindings are just being used in plain vanilla get/set modes.
    I set them to "" when I do a clear for the fields and they are set to a value via the text field.
    No other action other than to read the values via get to insert them into the database.
    And, I always use the get/set methods rather than just setting the value directly.
    This is what is so strange about this behavior - I have created dozens of database add/update/delete pages using this same model and have not had a problem with them - even in a tab context.
    Not a clue why this one is different.
    I did notice that I had an error on the page (in IE7, you get a small triangle warning sign when something is not right).
    I figured that might be the problem - maybe buggering up the rendering process.
    I tracked that down and do not get that anymore (it had to do with the PDF display I was trying to get working a while back), but that did not resolve the problem.
    I don't think there are any tab conflicts - none of the components are shared between tabs, but I will see what happens when I move a couple of the components out of the tab context.
    I noticed that it seems to skip a cycle. Here is what I can do.
    1) Fill in text fields and add a record - works fine the first time.
    2) Clear the text fields
    3) Enter new data in the text fields and push Add
    4) I get an error saying fields are blank from my data check process.
    5) Enter new data and push Add - the record is added with the new data.
    My work around is to not enter data in step 3 and just accept the error message in step 4, then go ahead and enter the real data in step 5.
    Very ugly, but it works every time.

  • Can anyone read this Apple crash report?

    Hi everyone!
    My iMac's been absolutely fine since I bought it. The Lion upgrade was smooth. I upgraded on the first day Lion became available.
    In the past week, I keep getting every other day a progressive gray screen and a warning that the computer needs to restart. I've no idea what's causing the crash... it happens when I have the standard suite of apps running (Mail, iTunes, Safari, etc) so no exotic application.
    Here's a crash report. Can anyone read this and pin point the problem?
    Thanks!
    Interval Since Last Panic Report:  26855 sec
    Panics Since Last Report:          1
    Anonymous UUID:                    2A90D08F-7981-4C26-90A0-88431085705A
    Thu Jan 19 21:02:56 2012
    panic(cpu 1 caller 0xffffff8000570f80): "MCHECK: m_type=12350 m=0xffffff807b9b6500"@/SourceCache/xnu/xnu-1699.24.8/bsd/kern/uipc_mbuf.c:3129
    Backtrace (CPU 1), Frame : Return Address
    0xffffff808045bad0 : 0xffffff8000220702
    0xffffff808045bb50 : 0xffffff8000570f80
    0xffffff808045bb80 : 0xffffff8000572c77
    0xffffff808045bc10 : 0xffffff80005731d6
    0xffffff808045bc30 : 0xffffff8000358c25
    0xffffff808045bd10 : 0xffffff8000353729
    0xffffff808045bd50 : 0xffffff8000580644
    0xffffff808045be40 : 0xffffff8000563973
    0xffffff808045be70 : 0xffffff80005614bf
    0xffffff808045bf00 : 0xffffff8000561612
    0xffffff808045bf50 : 0xffffff80005caa9b
    0xffffff808045bfb0 : 0xffffff80002d8363
    BSD process name corresponding to current thread: IMServicePlugInA
    Mac OS version:
    11C74
    Kernel version:
    Darwin Kernel Version 11.2.0: Tue Aug  9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64
    Kernel UUID: 59275DFA-10C0-30B3-9E26-F7B5DFB1A432
    System model name: iMac12,1 (Mac-942B5BF58194151B)
    System uptime in nanoseconds: 7371663855074
    last loaded kext at 7163667149728: com.trusteer.driver.gakl_driver_2          1 (addr 0xffffff7f8079d000, size 28672)
    last unloaded kext at 7058117348300: com.apple.driver.AppleUSBCDC          4.1.15 (addr 0xffffff7f80799000, size 12288)
    loaded kexts:
    com.trusteer.driver.gakl_driver_2          1
    com.kaspersky.kext.kimul.38          38
    com.parallels.kext.prl_vnic          6.0 12106.692267
    com.parallels.kext.prl_netbridge          6.0 12106.692267
    com.parallels.kext.prl_hid_hook          6.0 12106.692267
    com.parallels.kext.prl_hypervisor          6.0 12106.692267
    com.parallels.kext.prl_usb_connect          6.0 12106.692267
    com.kaspersky.kext.klif          2.2.0d14
    com.apple.driver.AppleHWSensor          1.9.4d0
    com.apple.filesystems.autofs          3.0
    com.apple.driver.AppleBluetoothMultitouch          66.3
    com.apple.driver.AudioAUUC          1.59
    com.apple.driver.AppleMikeyHIDDriver          122
    com.apple.driver.AppleHDA          2.1.3f7
    com.apple.driver.AGPM          100.12.42
    com.apple.driver.AppleMikeyDriver          2.1.3f7
    com.apple.driver.AppleUpstreamUserClient          3.5.9
    com.apple.driver.AppleMCCSControl          1.0.26
    com.apple.kext.ATIFramebuffer          7.1.4
    com.apple.iokit.IOUserEthernet          1.0.0d1
    com.apple.Dont_Steal_Mac_OS_X          7.0.0
    com.apple.driver.AudioIPCDriver          1.2.1
    com.apple.driver.AirPort.Atheros40          501.58.1
    com.apple.driver.ACPI_SMC_PlatformPlugin          4.7.5d4
    com.apple.driver.AppleLPC          1.5.3
    com.apple.driver.AppleBacklight          170.1.9
    com.apple.ATIRadeonX3000          7.1.4
    com.apple.driver.AppleIntelHD3000Graphics          7.1.4
    com.apple.driver.AppleSMCLMU          2.0.1d2
    com.apple.driver.AppleIRController          312
    com.apple.driver.AppleUSBCardReader          3.0.1
    com.apple.iokit.SCSITaskUserClient          3.0.1
    com.apple.driver.Oxford_Semi          3.0.1
    com.apple.AppleFSCompression.AppleFSCompressionTypeDataless          1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib          1.0.0d1
    com.apple.BootCache          33
    com.apple.iokit.IOAHCIBlockStorage          2.0.1
    com.apple.driver.AppleUSBHub          4.5.0
    com.apple.driver.AppleFWOHCI          4.8.9
    com.apple.iokit.AppleBCM5701Ethernet          3.0.8b2
    com.apple.driver.AppleEFINVRAM          1.5.0
    com.apple.driver.AppleAHCIPort          2.2.0
    com.apple.driver.AppleUSBEHCI          4.5.5
    com.apple.driver.AppleACPIButtons          1.4
    com.apple.driver.AppleRTC          1.4
    com.apple.driver.AppleHPET          1.6
    com.apple.driver.AppleSMBIOS          1.7
    com.apple.driver.AppleACPIEC          1.4
    com.apple.driver.AppleAPIC          1.5
    com.apple.driver.AppleIntelCPUPowerManagementClient          167.1.0
    com.apple.nke.applicationfirewall          3.2.30
    com.apple.security.quarantine          1
    com.apple.driver.AppleIntelCPUPowerManagement          167.1.0
    com.apple.driver.AppleBluetoothHIDKeyboard          152.3
    com.apple.driver.AppleHIDKeyboard          152.3
    com.apple.kext.triggers          1.0
    com.apple.driver.AppleMultitouchDriver          220.62.1
    com.apple.driver.IOBluetoothHIDDriver          4.0.1f4
    com.apple.driver.AppleAVBAudio          1.0.0d11
    com.apple.driver.DspFuncLib          2.1.3f7
    com.apple.driver.AppleSMBusController          1.0.10d0
    com.apple.iokit.IOSurface          80.0
    com.apple.iokit.IOFireWireIP          2.2.4
    com.apple.iokit.IOBluetoothSerialManager          4.0.1f4
    com.apple.iokit.IOSerialFamily          10.0.5
    com.apple.iokit.IOAVBFamily          1.0.0d22
    com.apple.iokit.IOAudioFamily          1.8.3fc11
    com.apple.kext.OSvKernDSPLib          1.3
    com.apple.driver.AppleHDAController          2.1.3f7
    com.apple.iokit.IOHDAFamily          2.1.3f7
    com.apple.driver.ApplePolicyControl          3.0.16
    com.apple.iokit.IO80211Family          411.1
    com.apple.driver.IOPlatformPluginFamily          4.7.5d4
    com.apple.driver.AppleSMBusPCI          1.0.10d0
    com.apple.driver.AppleGraphicsControl          3.0.16
    com.apple.driver.AppleBacklightExpert          1.0.3
    com.apple.driver.AppleThunderboltEDMSink          1.1.3
    com.apple.driver.AppleThunderboltEDMSource          1.1.3
    com.apple.kext.ATI6000Controller          7.1.4
    com.apple.kext.ATISupport          7.1.4
    com.apple.iokit.IONDRVSupport          2.3.2
    com.apple.driver.AppleIntelSNBGraphicsFB          7.1.4
    com.apple.driver.AppleSMC          3.1.1d8
    com.apple.iokit.IOGraphicsFamily          2.3.2
    com.apple.driver.BroadcomUSBBluetoothHCIController          4.0.1f4
    com.apple.driver.AppleUSBBluetoothHCIController          4.0.1f4
    com.apple.iokit.IOBluetoothFamily          4.0.1f4
    com.apple.driver.AppleThunderboltDPOutAdapter          1.5.8
    com.apple.driver.AppleThunderboltDPInAdapter          1.5.8
    com.apple.driver.AppleThunderboltDPAdapterFamily          1.5.8
    com.apple.driver.AppleThunderboltPCIDownAdapter          1.2.1
    com.apple.iokit.IOSCSIMultimediaCommandsDevice          3.0.1
    com.apple.iokit.IOBDStorageFamily          1.6
    com.apple.iokit.IODVDStorageFamily          1.7
    com.apple.iokit.IOCDStorageFamily          1.7
    com.apple.iokit.IOUSBHIDDriver          4.4.5
    com.apple.iokit.IOAHCISerialATAPI          2.0.1
    com.apple.iokit.IOUSBMassStorageClass          3.0.0
    com.apple.iokit.IOSCSIBlockCommandsDevice          3.0.1
    com.apple.iokit.IOFireWireSerialBusProtocolTransport          2.1.0
    com.apple.iokit.IOSCSIArchitectureModelFamily          3.0.1
    com.apple.iokit.IOFireWireSBP2          4.2.0
    com.apple.driver.AppleUSBMergeNub          4.5.3
    com.apple.driver.AppleUSBComposite          3.9.0
    com.apple.driver.XsanFilter          403
    com.apple.driver.AppleThunderboltNHI          1.3.2
    com.apple.iokit.IOThunderboltFamily          1.7.4
    com.apple.iokit.IOUSBUserClient          4.5.3
    com.apple.iokit.IOFireWireFamily          4.4.5
    com.apple.iokit.IOEthernetAVBController          1.0.0d5
    com.apple.iokit.IONetworkingFamily          2.0
    com.apple.iokit.IOAHCIFamily          2.0.7
    com.apple.iokit.IOUSBFamily          4.5.5
    com.apple.driver.AppleEFIRuntime          1.5.0
    com.apple.iokit.IOHIDFamily          1.7.1
    com.apple.iokit.IOSMBusFamily          1.1
    com.apple.security.sandbox          165.3
    com.apple.kext.AppleMatch          1.0.0d1
    com.apple.security.TMSafetyNet          7
    com.apple.driver.DiskImages          331
    com.apple.iokit.IOStorageFamily          1.7
    com.apple.driver.AppleKeyStore          28.18
    com.apple.driver.AppleACPIPlatform          1.4
    com.apple.iokit.IOPCIFamily          2.6.7
    com.apple.iokit.IOACPIFamily          1.4
    Unable to gather system configuration information.Model: iMac12,1, BootROM IM121.0047.B1D, 4 processors, Intel Core i5, 2.5 GHz, 4 GB, SMC 1.71f21
    Graphics: AMD Radeon HD 6750M, AMD Radeon HD 6750M, PCIe, 512 MB
    Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80CE, 0x4D34373142353637334648302D4348392020
    Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80CE, 0x4D34373142353637334648302D4348392020
    AirPort: spairport_wireless_card_type_airport_extreme (0x168C, 0x9A), Atheros 9380: 4.0.58.4-P2P
    Bluetooth: Version 4.0.1f4, 2 service, 18 devices, 1 incoming serial ports
    Network Service: AirPort, AirPort, en1
    Serial ATA Device: WDC WD5000AAKS-402AA0, 500.11 GB
    Serial ATA Device: HL-DT-STDVDRW  GA32N
    USB Device: hub_device, 0x0424  (SMSC), 0x2514, 0xfa100000 / 3
    USB Device: iPhone, apple_vendor_id, 0x12a0, 0xfa130000 / 5
    USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0xfa110000 / 4
    USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8215, 0xfa111000 / 6
    USB Device: FaceTime HD Camera (Built-in), apple_vendor_id, 0x850b, 0xfa200000 / 2
    USB Device: hub_device, 0x0424  (SMSC), 0x2514, 0xfd100000 / 2
    USB Device: 7600 Series, 0x043d  (Lexmark International Inc.), 0x0150, 0xfd140000 / 5
    USB Device: IR Receiver, apple_vendor_id, 0x8242, 0xfd120000 / 4
    USB Device: Internal Memory Card Reader, apple_vendor_id, 0x8403, 0xfd110000 / 3
    FireWire Device: eGo HDD, Iomega, 800mbit_speed

    This crash reports says...
    OS: 10.7.2
    Processor: Intel 64-bit
    Computer: iMac 10 generation, lowest-end model
    Interval Since Last Panic Report:  26855 sec
    Panics Since Last Report:          1
    Anonymous UUID:                    2A90D08F-7981-4C26-90A0-88431085705A
    Thu Jan 19 21:02:56 2012
    panic(cpu 1 caller 0xffffff8000570f80): "MCHECK: m_type=12350 m=0xffffff807b9b6500"@/SourceCache/xnu/xnu-1699.24.8/bsd/kern/uipc_mbuf.c:3129
    Backtrace (CPU 1), Frame : Return Address
    0xffffff808045bad0 : 0xffffff8000220702
    0xffffff808045bb50 : 0xffffff8000570f80
    0xffffff808045bb80 : 0xffffff8000572c77
    0xffffff808045bc10 : 0xffffff80005731d6
    0xffffff808045bc30 : 0xffffff8000358c25
    0xffffff808045bd10 : 0xffffff8000353729
    0xffffff808045bd50 : 0xffffff8000580644
    0xffffff808045be40 : 0xffffff8000563973
    0xffffff808045be70 : 0xffffff80005614bf
    0xffffff808045bf00 : 0xffffff8000561612
    0xffffff808045bf50 : 0xffffff80005caa9b
    0xffffff808045bfb0 : 0xffffff80002d8363
    This is a kernel error. Did your screen give you this error? This is well know as the "Black Screen Of Death". Just restart your computer and see what happens.
    Source of picture: http://en.wikipedia.org/wiki/File:Panic10.6.png

  • It seems that the new version of iPhoto will no longer share photos between computers on the same network. Can anyone confirm this?

    It seems that the new version of iPhoto will no longer share photos between computers on the same network. Can anyone confirm this?

    lovinmymac wrote:
    I have "automatically create previews" in the preferences UNCHECKED. Why is Aperture creating previews? For the screen image?
    You might also need to turn Preview generation off for any existing Projects. Select the Project in the Projects pane and use the cog button at the top of the pane to uncheck 'Maintain Previews For Project'.
    Ian

  • I have 13 dollars left on an apple store gift card, how can I convert this into money for my iTunes account?

    I have 13 dollars left on an apple store gift card, how can I convert this into money for my iTunes account?

    You can't.

  • Hello! The question is this. In London, took the Iphone 5 as sim free, flew to Moscow put Simcoe, and he writes me that is locked to the operator O2. Can anyone encountered this problem? What to do? How to remove the Unlock?

    Hello! The question is this. In London, took the Iphone 5 as sim free, flew to Moscow put Simcoe, and he writes me that is locked to the operator O2. Can anyone encountered this problem? What to do? How to remove the Unlock?
    <Edited by Host>

    Look at your receipt. Does it say unlocked? It is possible to purchase both locked "sim free" and unlocked iPhones from Apple.
    ONLY the carrier an iPhone is locked to can legitimately unlock it.
    IF your receipt says that it was supposed to be unlocked, and it is not, call AppleCare. They should be able to straighten it out.

  • The trashcan is not showing up in the upper right-hand corner of my photos, so I can't delete them. Can anyone address this problem?

    The trashcan is not showing up in the right hand corner of my photos on my iPad. So I can't delete pictures. Can anyone solve this problem?

    Where did the photos come from ? Only photos taken with the iPad, copied onto it via the camera connection kit, or saved from emails/websites etc can be deleted directly on the iPad - photos that were synced from your computer are deleted by moving/removing/de-selecting them from where they were synced from on your computer and then re-syncing.

  • Can anyone explain this? ORA-01722

    Hi all,
    Can anyone understand this?
    I have 3 database servers both running on windows 2000 advanced server, they're used by the development team. Also we have our production database.
    The 3 databases are cloned from the production, so database configuration parameters are all equal. Today I've received a query from the development team to run on the production, the query is just simple like this:
    SELECT *
    FROM x
    WHERE x.field_v = 177762522
    I get this error
    ORA-01722: invalid number
    this is a hudge table, and the fiedl_v is a varchar2(9) type.
    The worst thing is that on the others 3 databases this query returns results, except on the production.
    So, can anyone explain me why does the implicit (char to number) conversion occours on the development databases , and fails on the production? What are the main reasons that can influence datatype conversion like this one?
    Both databases have the 9.0.6 patch.
    The 3 development BD's are totally cloned from the production.
    Thanks.

    William:
    There is no guarantee on the order of evaluation of the predicates. Even with your isnum function, the invalid number could arise. The only safe way is to compare strings to strings as in your first example.
    To make the isnum "safe", you would need something more like:
    SELECT *
    FROM (SELECT *
          FROM x
          WHERE isnum(x.field_v) = 'Y' and
                ROWNUM > 0)
    WHERE x.field_v = 177762522;The ROWNUM > 0 predicate in the in-line view will prevent predicate pushing and guarantee that the isnum condition is evaluated first.
    John

Maybe you are looking for