Simple simple problem but can't find answer

Hi everyone,
To all java people out there.
Can anyone tell me the MAIN difference between C functions and Java Class?
Java better than C for the garbage collection and the better pointers right?

These articles say much more than I'm willing to write.
http://www.google.com/search?q=c+vs+java
A search will often get you faster, more and better results

Similar Messages

  • Simple task, but can't find answer

    I need to set a variable to a filename up to a delimiting char (_). The filename is REP_MON 6-2-08.idf, and I ONLY need REP (nothing else). The chars before the (_) can vary in length.
    Thanks
    Message was edited by: McMcRickenRacker

    Pierre is completely correct. There are MANY ways in which you can achieve what you are asking, all of which vary upon how you are getting your file name in the first place. Here's another method using *do shell script*...
    <pre style="margin:0px;padding:5px;border:2px dotted green;width:630px; height:auto;color:#ffffff;background-color:#000000;overflow-x:auto;overflow-y:h idden;font-family:Verdana, Monaco, monospace;font-weight:bold;font-size:12px;"
    title="Copy this text and paste it into your Script Editor application.">set theFile to choose file
    set fileName to name of (info for theFile)
    set theText to do shell script "echo " & quoted form of fileName & " | awk -F'_' '{print $1}'"</pre>
    Hopefully we've given you enough examples to get yourself started down the right path.

  • Simple question but can't find an answer anywhere

    This must surely be a very easy question for someone to
    answer (although I can't find an answer from any tutorial or
    forums, despite lots and lots of Google searching).
    I want to create a link from one SWF file to another (when
    these two files are 'stand alonE', not online). How do I it?
    I've managed to use Actionscript to create links to a website
    and another scene within the same SWF, so I'm surprised that this
    is proving so much more difficult.
    The script I have that's not working is:
    lesson1_btn.onRelease = function (){
    gotoAndStop("lessons.swf");
    (BY THE WAY Before you recommend I put everything online,
    this is for coursework and it specifies that the whole thing must
    be stand-alone.)
    Could the problem be with my Flash Player or the way I'm
    vieiwng the SWF? It doesn't work in test mode but neither does it
    work when I open the SWF directly from it's location.

    I'm not sure what you're doing with the
    gotoAndStop("lessons.swf"); command - whether lessons.swf is
    a scene or a frame label. If its a scene, then I think you need a
    frame number as well. (actually I don't know - I don't use this
    function)
    But you
    might want to take a look at the comments at the bottom of
    this page, I think - not sure if its relevant, but it seems like it
    could be :
    http://livedocs.adobe.com/flash/8/main/00001733.html#135769

  • Simple Access SQL problem but can't find any solution

    I have a simple java database connectivity to 3 table database to keep some records everything except one single querry line is not working and I could not figure out why.
    I put the code below I get error message is basically a Too few parameters expected 1 error. Every field name matches the ones database(I'm sure because I have other queries that use same fields in other methods) and it is simple al other queries are working fine except the one that I marked between stars. I put the method's necessary part below.
    Pls help meeeeeeeeeeeeeeee!!!
    int trans_no;
          Class.forName(JDBC_DRIVER);
          Connection DBConnection = DriverManager.getConnection(DATABASE, "admin"," ");
          Statement DBStatement = DBConnection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);
          ResultSet resultSet = DBStatement.executeQuery("SELECT TransactionNo FROM TransTable");
          resultSet.last();
          if(resultSet.getRow() == 0)
              trans_no = 1;
          else
          trans_no = resultSet.getInt(1)+1;
          String exit_time = exit_date.substring(0,8);
          String exit_day = exit_date.substring(11,exit_date.length());
          String receipt_time = receipt_date.substring(0,8);
          String receipt_day = receipt_date.substring(11,receipt_date.length());
             resultSet = DBStatement.executeQuery("SELECT RcptNo FROM RcptTable WHERE ReceiptTime = '"+receipt_time+"'")
             DBStatement.executeUpdate("INSERT INTO TransTable (TransactionNo, RcptNo, RcptDate, RcptTime, ExitDate, ExitTime, TotalAmount, Change) " +
          "VALUES ('"+trans_no+"', '"+"2"+"', '"+receipt_day+"', '"+receipt_time+"', '"+exit_day+"', '"+exit_time+"', '"+Amount+"', '"+Change+"')");//resultSet.getInt(1)

    "SELECT RcptNo FROM RcptTable WHERE ReceiptTime = '"+receipt_time+"'"
    In MS Access, this exception occurs when the column names specified in the query are not correct. Check the table definition and verify the column names.

  • Trying to update to iTunes 10.5, keep getting message "iTunes has an invalid signature. It will not be installed". Others are also posting this problem but can't seem to find any answers

    Trying to update to itunes 10.5, keep getting message "iTunes has an invalid signature. It will not be installed". Others are also posting a similar problem but can't find any answers.

    Please can anyone help on this

  • Please a simple problem but I don't know how to solve it. After installing 16 gb of ram all is good but when I turn on the computer it is a window signaling that all is correct. How is possible to delete once and for all that window? Thank you

    Please a simple problem but I don't know how to solve it. After installing 16 gb of ram all is good but when I turn on the computer it is a window signaling that all is correct. How is possible to delete once and for all that window? Thank you

    Well then maybe you could take a screenshot because the appearance of such a window is news to me.
    Also post your OS X version and what model Mac you have. The more detail, the better. Thanks.
    To take a screenshot hold ⌘ Shift 4 to create a selection crosshair. Click and hold while you drag the crosshair over the area you wish to capture and then release the mouse or trackpad. You will hear a "camera shutter" sound. This will deposit a screenshot on your Desktop.
    If you can't find it on your Desktop look in your Documents or Downloads folder.
    When you post your response, click the "camera" icon above the text field:
    This will display a dialog box which enables you to choose the screenshot file (remember it's on your Desktop) and click the Insert Image button.
    ⌘ Shift 4 and then pressing the space bar captures the frontmost window.
    ⌘ Shift 3 captures the entire screen.
    Drag the screenshot to the Trash after you post your reply.

  • I keep getting a message saying Helper extentsion has encountered a problem and need to close i want to disable it but can't find the file

    Trying to gt my computer to move faster i deleted microsoft internet explorer an in order to get my computer to let me on the internet i had to download firefox when i did this i started receiving a message that said Extentsion helper has encountered a problem and needs to close not knowing this came from firefox i tried to delete firefox but kept receiving the messag i have since re-downloaded firefox but can't find extension helper to deactivate it my computer will not let me do anything i need help resolving this please
    Stacey Featherstone

    Can you run Firefox long enough to display the Add-ons page? Either:
    * Ctrl+Shift+a
    * "3-bar" menu button (or Tools menu) > Add-ons
    In the left column, click Extensions. Then, if in doubt, disable. (Remove also is available for some extensions, but not the ones that Firefox found in a registry scan or shared folder elsewhere on your system.)
    Often a link will appear above at least one disabled extension to restart Firefox. You can complete your work on the tab and click one of the links as the last step.
    Any improvement?
    If you cannot access the Add-ons page, try starting Firefox in Safe Mode, since that deactivates extensions and hopefully will stop that message from coming up long enough to get to the Add-ons page.
    ''If Firefox is not running:'' Hold down the Shift key when starting Firefox.
    ''If Firefox is running:'' You can restart Firefox in Safe Mode using either:
    * "3-bar" menu button > "?" button > Restart with Add-ons Disabled
    * Help menu > Restart with Add-ons Disabled
    A small dialog should appear. Click "Start in Safe Mode" (''not'' Reset).
    Success?

  • I have downloaded 2 rented movies. I can find then in my downloads but can not find then in iTunes. I read the others that have had the same problem an I can't find the rented in iTunes

    I have downloaded 2 rented movies. I can find then in my downloads but can not find then in iTunes. I read the others that have had the same problem an I can't find the rented in iTunes

    Hey rangermikegsm,
    Welcome to Apple Support Communities.
    It sounds like you’re concerned because you don’t see your rentals in iTunes, but they appear to have downloaded. Take a look at the article below and check the Rentals tab in iTunes on your MacBook.
    About renting movies from the iTunes Store - Apple Support
    Find movies you rented previously
    Find your movie on the device you used to rent it.
    On a Mac or PC: Go to the Rentals tab in the Movies section of the iTunes Library.
    On an iOS device: Go to the Rental tab of the Videos app.
    Using Apple TV (2nd or 3rd generation): Look in the top shelf of the main menu.
    Ciao,
    -Jason

  • HT201272 Does anyone know how to get an episode of a tv programme that never downloaded when I bought a subscription. Episode 1 didn't download and I have all other episodes. I looked at the issues through report a problem but I cannot find an answer.

    Does anyone know how to get an episode of a tv programme that never downloaded when I bought a subscription. Episode 1 didn't download and I have all other episodes. I looked at the issues through report a problem but I cannot find an answer.
    I bought a series pass and unfortunately epsiode 1 didn't download at all. I was watching the downloads and restarting once they stopped as I allow multiple downloads at athe same time

    It sounds like you may have hidden it, in which case you should be able to unhide it : iTunes Store: Hiding and unhiding purchases. (You can't turn off the hiding of items.)
    But you should be keeping and maintaining a backup copy of all of your downloads and not relying on being able to redownload them - any item could be removed from the store by the rights-holders at any time, if they do then you won't be able to redownload them (nor will be able to do redownload items if you move countries).

  • My problem is that one of the USB ports and the device does not detect this and inactive but can not find how to reactivate.Help me please! greetings thanks!

    Hello good evening, I have a MacBook Pro and my problem is that one of the USB ports and the device does not detect this and inactive but can not find how to reactivate.
    Help me please! greetings thanks!

    Do you have the Firefox new tab page but the actual sites are missing, or do you have some other page?
    If you have some different page, try the quick fix in Fred McD's reply.
    If the sites are missing, did you use the Reset feature? That will clear the storage associated with the new tab page. I'm not sure it's possible to recover from that; you probably need to rebuild your page from scratch as you browse.
    For possible future reference, here is how to access the hidden setting for the page to display on new tabs:
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box above the list, type or paste '''newtab''' and pause while the list is filtered
    (3) Double-click the '''browser.newtab.url''' preference and enter your preferred page:
    * ''Page thumbnails (default)'' => about:newtab
    * ''Blank tab'' => about:blank
    * ''Built-in Firefox home page'' => about:home
    * ''Any other page'' => full URL to the page
    Press Ctrl+t to open a new tab and verify that it worked. Fixed?
    Some gotchas:
    ''If Firefox won't let you edit this setting:'' you may have something called SearchProtect on your system.
    ''If Firefox lets you save your change but ignores it:'' one of your extensions may be overriding it. You can review, disable, and/or remove extensions on the add-ons page:
    "3-bar" menu button (or Tools menu) > Add-ons > ''in the left column click'' Extensions
    ''If the change works during your session, but at the next startup is back to an unwanted page:'' you might have a user.js file in your personal Firefox settings folder (your Firefox profile folder). This article describes how to track down and remove the file: [[How to fix preferences that won't save]].
    Any luck?

  • We feel it better to have a status bar in firefox.we got it in firefox3 but can't find in firefox4&lettest.its really embarrasing for us not to see the exact status of browsing.is there any solution to browse lettest version with old status bar.pls answer

    we feel it better to have a status bar in firefox.we got it in firefox3 but can't find in firefox4&lettest.its really embarrasing for us not to see the exact status of browsing.is there any solution to browse lettest version with old status bar.please answer or we have to use the old one because its very ugly to see a revolving status.

    I checked the status of the server and hard drive by booting off of the 10.4 installation disk, select utilities and disk utility.
    I know very little about terminal, however I'm pretty good at dos so I can figure some things out if given some commands.
    Anyway, I ran some commands and here are the results:
    megaraid -showstatus
    MEGARAID CLI version 1.0.12
    No cmd argument
    Um, so I think I remebered the command incorrectly and I did -showdevices instead. Sorry.
    megaraid -showdevices
    Physical devices Available = 3
    Drive ID Identification Size(MB) Status
    0 Hitachi HDS722580VLSA80 78529 Failed
    1 Hitachi HDS722580VLSA80 78529 Online
    2 Hitachi HDS722580VLSA80 78529 Online
    diskutil list
    /dev/disk0
    #: type name size identifier
    0: Applepartitionscheme *153.3GB disk0
    1: Applepartitionmap 31.5KB disk0s1
    2: AppleHFSServer HD 153.2GB disk0s3
    /dev/disk1
    #: type name size identifier
    0: Applepartitionscheme *2.6GB disk1
    1: Applepartitionmap 31.5KB disk1s1
    2: AppleDriveATAPI 4.0KB disk1s2
    /dev/disk2
    #: type name size identifier
    0: untitled *467.0KB disk2
    /dev/disk3
    #: type name size identifier
    0: untitled *95.0KB disk3
    /dev/disk4
    #: type name size identifier
    0: untitled *95.0KB disk4
    /dev/disk5
    #: type name size identifier
    0: untitled *95.0KB disk5
    /dev/disk6
    #: type name size identifier
    0: untitled *219.0KB disk6
    megaraid -showconfig
    Logical Drive RAID Level Stripe Size(KB) Size(MB) Status
    0 5 64 156958 Degraded
    megaraid -showapater
    FW Version = A130
    Bios Version = G117
    Product Name = MegaRAID SATA 150-4D
    Cache Size = 64MB
    diskutil checkRAID
    No RAID sets found
    Thank you for your help. I really appreciate it and so do the teachers and the students!

  • HT4623 I have an appt at the leawood, ks office tomorrow at 1:30 I need to cancel due to car problems.  I have rescheduled but can't find where to cancel the thurs appt.  i dropped the ipad and the screen is blue

    I have an appt at the Leawood, KS office tomorrow (thurs at 1:30 pm) I need to cancel due to car trouble.  I rescheduled for friday but can't find how to cancel the appt tomorrow.
    I dropped my ipad and the screen is blue

    These are user forums. You aren't speaking to Apple here. We don't make nor reschedule nor cancel appointments. Call where you made the appointment.

  • HT4623 Can someone offer guidance, can't find answer in FAQ's. Redeemed $10.00 itune gift card but can't purchase game for $9.99.

    First time using this.  Can someone offer guidance, can't find answer in FAQ's.  Redeemed $10.00 iTunes gift card but cant make a purchase for $9.99. Any help would be welcome.

    Thanks very much for all your help. How could I have overlooked taxes? Wishfully thinking I guess.

  • Hi, upgraded to OSX Mavericks..my contacts on my iphone4 and iPad don't appear on my iMac..I've tried always but can't find a way for iCloud to deposit the contacts on my Mac..can anyone help? PAR

                        Hi, upgraded to OSX Mavericks..my contacts on my iphone4 and iPad don't appear on my iMac..I've tried all ways but can't find a way for iCloud to deposit the contacts on my Mac..Contacts on my Mac is blank, so I'm starting from a clean sheet...can anyone help? Thanks PAR236

    I recommend to check www.icloud.com, are your contacts shown there?
    If not -> Something might be not set up correctly on you iOS devices.
    Also.. Simple but maybe occuring: Contacts -> Preferences -> Accounts -> iCloud is enabled? (Should be by default if you have iCloud setup via the system preferences, but you never know..)

  • Problem description: I have ordered a new iMac but my current one seems to be running very slowly.  I believe it to be a memory related problem but can't seem to identify what is causing it.  Help is greatly appreciated.

    Problem description:
    I have ordered a new iMac but my current one seems to be running really slowly.  I believe it to be a memory related problem but can’t seem to identify what is causing it.  Your help is greatly appreciated.
    EtreCheck version: 2.1.8 (121)
    Report generated March 7, 2015 at 4:01:26 PM PST
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        iMac (24-inch, Early 2008) (Verified)
        iMac - model: iMac8,1
        1 2.8 GHz Intel Core 2 Duo CPU: 2-core
        2 GB RAM Upgradeable
            BANK 0/DIMM0
                1 GB DDR2 SDRAM 800 MHz ok
            BANK 1/DIMM1
                1 GB DDR2 SDRAM 800 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
        ATI Radeon HD 2600 Pro - VRAM: 256 MB
            iMac 1920 x 1200
    System Software: ℹ️
        OS X 10.10 (14A389) - Time since boot: 23 days 18:5:35
    Disk Information: ℹ️
        ST3320820AS_Q disk0 : (320.07 GB)
            EFI (disk0s1) <not mounted> : 210 MB
            Macintosh HD (disk0s2) / : 319.21 GB (195.05 GB free)
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
    USB Information: ℹ️
        HP Officejet 6000 E609n
        Apple, Inc. Keyboard Hub
            Primax Electronics Apple Optical USB Mouse
            Apple, Inc Apple Keyboard
        Apple Inc. Built-in iSight
        Western Digital External HDD 500.11 GB
            My Passport (disk1s1) /Volumes/My Passport : 500.11 GB (200.60 GB free)
        Apple Inc. BRCM2046 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple Computer, Inc. IR Receiver
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Kernel Extensions: ℹ️
            /Applications/Popcorn 4/Popcorn.app
        [not loaded]    com.roxio.TDIXController (2.0) [Click for support]
            /System/Library/Extensions
        [not loaded]    com.aliph.driver.jstub (1.1.2 - SDK 10.7) [Click for support]
    Problem System Launch Agents: ℹ️
        [killed]    com.apple.accountsd.plist
        [killed]    com.apple.AirPlayUIAgent.plist
        [killed]    com.apple.bird.plist
        [killed]    com.apple.CalendarAgent.plist
        [killed]    com.apple.CallHistoryPluginHelper.plist
        [killed]    com.apple.CallHistorySyncHelper.plist
        [killed]    com.apple.cloudd.plist
        [killed]    com.apple.cmfsyncagent.plist
        [killed]    com.apple.coreservices.appleid.authentication.plist
        [killed]    com.apple.coreservices.uiagent.plist
        [killed]    com.apple.EscrowSecurityAlert.plist
        [killed]    com.apple.nsurlsessiond.plist
        [killed]    com.apple.pluginkit.pkd.plist
        [killed]    com.apple.printtool.agent.plist
        [killed]    com.apple.rcd.plist
        [killed]    com.apple.recentsd.plist
        [killed]    com.apple.sbd.plist
        [killed]    com.apple.scopedbookmarkagent.xpc.plist
        [killed]    com.apple.secd.plist
        [killed]    com.apple.security.cloudkeychainproxy.plist
        [killed]    com.apple.spindump_agent.plist
        [killed]    com.apple.telephonyutilities.callservicesd.plist
        22 processes killed due to memory pressure
    Problem System Launch Daemons: ℹ️
        [killed]    com.apple.AssetCacheLocatorService.plist
        [killed]    com.apple.awdd.plist
        [killed]    com.apple.ctkd.plist
        [killed]    com.apple.diagnosticd.plist
        [killed]    com.apple.emond.aslmanager.plist
        [killed]    com.apple.GSSCred.plist
        [killed]    com.apple.icloud.findmydeviced.plist
        [killed]    com.apple.ifdreader.plist
        [killed]    com.apple.nehelper.plist
        [killed]    com.apple.nsurlsessiond.plist
        [killed]    com.apple.periodic-daily.plist
        [killed]    com.apple.periodic-monthly.plist
        [killed]    com.apple.periodic-weekly.plist
        [killed]    com.apple.softwareupdate_download_service.plist
        [killed]    com.apple.softwareupdated.plist
        [killed]    com.apple.spindump.plist
        [killed]    com.apple.tccd.system.plist
        [killed]    com.apple.wdhelper.plist
        [killed]    com.apple.xpc.smd.plist
        [killed]    org.cups.cupsd.plist
        20 processes killed due to memory pressure
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [loaded]    com.sonos.smbbump.plist [Click for support]
    User Login Items: ℹ️
        iTunesHelper    UNKNOWN Hidden (missing value)
        Jawbone Updater    Application  (/Applications/Jawbone Updater.app)
        Dropbox    Application  (/Applications/Dropbox.app)
    Internet Plug-ins: ℹ️
        Photo Center Plugin: Version: Photo Center Plugin 1.1.2.2 [Click for support]
        FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        Default Browser: Version: 600 - SDK 10.10
        Flash Player: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        QuickTime Plugin: Version: 7.7.3
        OfficeLiveBrowserPlugin: Version: 12.3.6 [Click for support]
        CitrixICAClientPlugIn: Version: 11.2.0 [Click for support]
        iPhotoPhotocast: Version: 7.0
    3rd Party Preference Panes: ℹ️
        Citrix Online Plug-in  [Click for support]
        Flash Player  [Click for support]
        UE Smart Radio  [Click for support]
    Time Machine: ℹ️
        Auto backup: YES
        Volumes being backed up:
            Macintosh HD: Disk size: 319.21 GB Disk used: 124.16 GB
        Destinations:
            Time Machine Backups [Local]
            Total size: 3.00 TB
            Total number of backups: 98
            Oldest backup: 2013-08-28 05:45:36 +0000
            Last backup: 2014-12-30 19:39:32 +0000
            Size of backup disk: Excellent
                Backup size 3.00 TB > (Disk size 319.21 GB X 3)
    Top Processes by CPU: ℹ️
             5%    com.apple.WebKit.Plugin.64
             3%    WindowServer
             2%    sysmond
             0%    AppleSpell
             0%    com.apple.WebKit.Networking
    Top Processes by Memory: ℹ️
        41 MB    Finder
        41 MB    iTunes
        37 MB    Safari
        32 MB    com.apple.WebKit.Plugin.64
        32 MB    mds
    Virtual Memory Information: ℹ️
        53 MB    Free RAM
        501 MB    Active RAM
        463 MB    Inactive RAM
        398 MB    Wired RAM
        78.46 GB    Page-ins
        3.04 GB    Page-outs
    Diagnostics Information: ℹ️
        Mar 7, 2015, 12:41:34 PM    /Library/Logs/DiagnosticReports/Inkjet4_2015-03-07-124134_[redacted].crash
        Mar 5, 2015, 07:42:29 PM    /Library/Logs/DiagnosticReports/com.apple.WebKit.WebContent_2015-03-05-194229_[ redacted].crash

    That certainly looks like a low memory issue, 2 GB ram is barely enough to run Mac OS X versions from Lion through Yosemite.  The high number of Page Outs and killed processes show very high memory pressure.
    Try adding memory, but be sure it is high quality, Mac certified memory such as that from OWC, http://www.macsales.com or Crucial, http://www.crucial.com

Maybe you are looking for