Running under simulator

Hi everyone,
Is there a code snippet to tell if the application is running in the simulator or on the actual device?
thanks
tony

Yes, thank you...
I implemented it in this way....
NSString *device = [[UIDevice currentDevice] model];
if ([device isEqualToString:@"iPod touch"])
else
thanks for the direction
take care
tony
Message was edited by: alt-088

Similar Messages

  • SSO to partner application running under IIS

    Hi,
    We have a complete set-up for 9iAS Release2 where some applications are running. In parallell we have an application running under IIS, and would now like to enable the IIS application as a partner application to 9iAS letting the 9iAS SSO server handle the authentication.
    In the documentation of Oracle Proxy Plug-in I read that this proxy plug-in can be used to proxy requests from IIS to Oracle http server (OHS) and also in this way enable SSO.
    My question is if this can be done only for applications running under 9iAS but having IIS as web server, or if it is also possible like in our case to enable SSO via the proxy plug-in to applications runnind under IIS?
    If this is not supported is the only available solution to use the SSO SDK in my IIS application?
    Thanks and regards,
    Rikard

    Here's a DIY answer.
    See Metalink Note 269820.1 which shows you how to use Perl to overwrite the host name in the HTTP header and remove the port number.

  • How to allow access to web service running under ApplicationPoolIdentity

    Hi All,
    I have a WCF web service hosted in IIS 7 (or maybe 7.5, whichever comes with Windows server 2008 R2) using DefaultAppPool running under ApplicationPoolIdentity per Microsoft's recommendation. The web service needs to call a stored procedure to insert data
    to a db. The web server is on a different VM than the database server. The db server is running SQL 2008 R2. Both VMs run Windows server 2008 R2.
    When the web service tries to connect to db, it encounters this exception:
    Exception in InsertToDb()System.Data.SqlClient.SqlException (0x80131904): Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
    Here's the connection string in web.config:
    Application Name=somewebservice;Server=somewebserver;Integrated Security=SSPI;Database=somedatabase;Connection Timeout=60"
    How should I configure SQL security to make this work?
    Thanks in advanced.

    Thanks for the link Dan. Maybe I'm the one who cause the confusion :)
    If I understand you(and Erland) correctly, you suggest using a custom, domain account for application pool identity. However, if we do that, our IT will need to maintain those accounts, and they don't  want that. So I'm choosing a built-in account called
    ApplicationPoolIdentity as the application pool identity, but it's not working. Network Service, on the other hand, works, but my boss wants us to follow MS's best practice.
    What's puzzling is that according to this: http://learn.iis.net/page.aspx/624/application-pool-identities/, both Network Service and ApplicationPoolIdentity uses machine account to access network resource (like db in this case), but in my case, Network Service
    works, but not ApplicationPoolIdentity.
    Hallo Stephen,
    with respect - it seems to me that only idiots are working at your IT ;)... It is absolutely useful to work with "service accounts" created within the domain. That's the only way to manage and control accounts!
    If you want to "pass through" the identity of the web user (SSO) you have to check whether the app pool is set to "allow impersonate". As far as I understand the ApplicationPoolIdentity-function the app pool will create a unique user named as the service.
    I assume that will not work with the connection to the sql server because this user is unknown.
    Local Service will not work because it's restriction is located to the local machine.
    Network Service will work because access to network resources will be available.
    So my recommendation is to use a dedicated service account or impersonation:
    http://msdn.microsoft.com/en-us/library/xh507fc5.aspx
    Uwe Ricken
    MCITP Database Administrator 2005
    MCITP Database Administrator 2008
    MCITS Microsoft SQL Server 2008, Database Development
    db Berater GmbH
    http://www-db-berater.de

  • Global data getting reset when running under IIS?

    We have a scenario using IIS with an ASP.NET web service written in VB.NET. When a call to the web service is made, the web service calls a native dll (written in C, compiled using VS2010) using platform invoke, which in turn calls into our product API:
    VB.NET web service -> native library (p/invoke) -> native API ....
    Web service requests are successfully completed and the system runs without problem for hours. A trace of the native API shows it is being called by multiple processes and multiple threads within those processes.
    The main native API dll contains a static global variable used to detect whether it is the first time it has been called and run initialization logic if it is. This dll is itself linked to a second dll that contains a global variable used to detect if it is
    the first time it has been called.
    After some hours the trace shows that the native API is invoked by an existing process but that the initialization logic is being exercised again, even though the global variable was set to indicate not first time and is never reset.  One theory was that
    the first process has ended and a new process has started almost instantaneously using the same process ID. However this is not the case as existing thread IDs from the same process are seen to write to the trace again after the first time logic has executed
    for the second time, indicating the process has not restarted. The problem occurs regularly.
    It is as though the process's global data has been initialized again and malloc'ed memory freed while the processing is still running. Is there any way this is possible when running under IIS?
    There is an internal thread which waits on a blocking read of a named pipe (via ReadFile), and when the problem occurs, the ReadFile call ends with ERROR_NO_ACCESS, which appears to indicate the malloc'ed buffer is no longer valid, again implying something
    has happened to the memory allocated to the process.

    Suggestting you asking it on:
    http://forums.iis.net/

  • RE: How to have multiple application running under one server

              I have one server
              I have many application
              Question: Is it possible for me to have a weblogic properties file under each
              of this application.
              

    If your question is whether you can run multiple instances of WebLogic
              (or multiple applications) on one server, the answer is yes. The only
              problem is, you must have a unique port for each of the servers to run
              on. I.e., they can not all run under port 80 which has obvious
              internet/network implications.
              This also means you have multiple weblogic.properties files etc. for
              each instance.
              We do this with WL5.1 on a Linux 2.4 kernel in developement to allow
              multiple developers run their own instance on one box.
              Dano
              Mettu Kumar <[email protected]> wrote in message news:<[email protected]>...
              > No if you are running single instance of wls.
              >
              > Kumar.
              >
              > Sonny wrote:
              >
              > > I have one server
              > > I have many application
              > > Question: Is it possible for me to have a weblogic properties file under each
              > > of this application.
              

  • JavaSoundRenderer now running under Windows

    Hello,
    I found out that the JavaSoundRenderer could run under Windows but only if you use Java 6.0 Beta.
    So if you've problems of playing audio in Windows then just install the new Java (6.0) and it will work.
    best regards,
    thomas

    Hi,
    Refer [SAP Note:1337708 - Crystal Reports support of 64 bit Operating Systems|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333333333337333733303338%7D.do] and also have a look at
    [SAP Note:122050-An error has occurred while attempting to load crystal reports on 64bit|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233323330333533303331%7D.do] might be helpful

  • Installing XP, running under VMWare

    I am brand new to a Mac, and have found the Mac Pro I received a week ago was great to upgrade. Adding both memory and a new Caviar Black 1T drive this morning was the quickest/easiest upgrade I've ever done.
    I am currently formatting the new drive I just installed. The Format settings are Mac OS Extended (journaled), and the erase option was set to Zero out the data - I'm assuming this will ensure bad blocks will be marked as they are found - *Out of curiosity, does the disk utility mark bad blocks when found during the Zeroing out process?*
    I'm hoping to avoid problems with the way the drive is set up prior to installing VMWare, XP, and moving files onto the drive.
    Does VMWare Fusion deal with the format differences between what XP expects (NTFS) and the HFS+ format of the new drive? If not, do I need to do anything to handle this issue?
    Secondly, I want to load XP from my MSDN disks - All of the Microsoft operating systems are contained on the MSDN disks. Anybody know if this will cause an issue?
    Should I install XP for both VMWare and Bootcamp? Or can I run fine with a single copy running under VMware?
    Thanks in advance,
    Michael

    Zeroing with OS X Disk Utility seems very iffy and not as good as if you use vendor supplied utility which runs in Windows. I've even done 7-way write in Disk Utility and the drive showed problems.
    I suggest you try something else than DU. MicroMat TechTool Pro seems able to identify weak or bad sectors, does not have means to remap. Intech Speedtools should be able to, and may, but that's another $89.
    LIfeguard from WD, Seatools from Seagate... those are better.

  • Endianness when running under Rosetta?

    Hi all,
    I have a Carbon application which is reading binary data from a file's resource and then has to work with that data. I know the endianness of the data on disk so I used to do a byte-swap when necessary (after using ReadPartialResource() to get the data into my variable).
    I dutifully converted all those unconditional byte-swaps to CFSwapInt32BigToHost() in order to make sure that things work correctly when running on an Intel machine (since the application is not universal, the app is running under Rosetta on Intel machines).
    Today I tested the application on an iMac Intel CoreDuo (in my local Apple Store) - things worked just fine. However, even the old version with unconditional byte-swapping works correctly...
    Does this mean the "Host" on in Intel machine is still big endian? Anybody can corroborate this or point me to documentation of this behaviour?
    Thanks,
    Andreas

    Hi,
    to support the other posters intention: I would not need an emulator, if any code could be run between to processor types. If I have an emulator, it has to give a complete emulation of one processor another. If VirtualPC would have used BigEndians, no wndows would have ever started on those. So the other way round I assume that Rosetta will think Big (in Endianess).
    Volker

  • Dropbox process running under root.

    Hello people i just checked activity monitor for a process and i saw the process "dbfseventsd" and i google it and it came up that it is a dropbox process, and it was running under the root user and it was a 32bit process. Can anyone tell me why that process was there note the process is not always there when i use dropbox.
    Thanks
    Alex

    Hello All
    Since a couple days, in my Home appears DCQd7rmUW9.tmp. It is a temp file produced by dbfseventsd but operated by Java. It is a DropBox process anyway?

  • Managed Client running under root

    Hi
    Can any one of you here tell me what is Managed Client???
    I saw that one in the Activity Monitor and it is running under root account.
    Is this one of the Apple Remote Desktop?
    Or other Application is running.

    Try a google search for *managed client site:apple.com* and peruse the hits.

  • Getting processes running under NT

    Dear all,
    Is it possible for my Java application to check whether some process is running under NT 4.0? For example, can I check whether Word 2000 is currently running on a machine? You can see winword.exe being active in the task manager, how can I catch this from my Java application?
    Thanks in advance,
    Sebastiaan

    Look into NT Resource Kit. You can access commands like 'ps -ef' (it'll give you the list of running processes - just like Unix).
    using Runtime.getRuntime().execute("ps -ef | grep [your_process_name]");
    The trick part would be to capture the output. Right from the top of my head: do Runtime.getRuntime().execute("ps -ef >> output.txt");
    It'll create output.txt with some output in it. Reading in the file, you'll find out if your process is running.
    The NT Resource Kit is a standard utility any nt sysadmin should have.
    Good luck
    AN
    www.bizdisplay.com

  • Background Task running under initiator not under WF-BATCH

    Hi All,
      I am trying to resolve a problem with a Background task running under intiator. Since the initiator does not have authorization to execute the task, it is not working.
    My understanding was, all background tasks will run under WF-BATCH!!. Is it correct?.  in 4.7, it is working this way.
    However in ECC 6.00  the background task before the first dialog work item is executed under 'intiator' in this case.  I have moved the same task after first dialog work item, and it was executed under WF-BATCH.. I cannot move the task after the dialog workitem as the task need to be executed immediatly after the creation of workflow.
    1. How can I run the task in backgroud under WF-BATCH?
    2. Inside the task, I am running a BDC to update a flag in downpayment transaction created using F-47. How can I run the process under batch user to overcome the authorization issue that initiator will not authorization.
    I am running this workflow in SAP ECC 6.0 level 13
    Any help is really appreciated..
    thanks in advance for your help.
    johnson

    This issue can be resolved with triggering the event using the additional flag export parameter 'CREATOR' in function module  ''SWE_EVENT_CREATE_FOR_UPD_TASK' as WF-BATCH. I was not passing this parameter and hence it didn't work in ECC 6.0 as it take who ran the process as creator and ran the background task under that users id.
    Thanks Rachid for your input to resolve this problem.
    johnson zavier

  • JSP's running under Resin server engine???

    I have a JSP application that I am trying to move from running under Tomcat 4.0 to Resin web server engine.
    When trying to run the application, I get this error:
    java.util.MissingResourceException: Can't find bundle for base name AppProperties, locale
    I think the error is happening because I have the AppProperties file in the wrong place under the Resin directory. Could someone please let me know how to properly use a Resource Bundle Properties file using Resin for my JSP's to run???
    Please help...
    Thank you...

    Never mind....I got it....

  • Photoshop CC2014 running under window 8.1.  How do I access mini bridge.  It does not show under FILE or WINDOW-EXTENSIONS.  Works ok with CS6

    Photoshop CC2014 running under window 8.1.  How do I access mini bridge.  It does not show under FILE or WINDOW-EXTENSIONS.  Works ok with CS6

    Photoshop: Spring Cleaning | PHOTOSHOP.COM BLOG

  • Applications running under Managed Account not able to connect to servers

    My kids use a Managed Account on my MacBook (running Lion).  They have two games (Roblox and Minecraft) which can not connect to their particular game servers.  These games work fine when running under the Administrator account.  I believe that the ports that these games are trying to connect to may be blocked when running under a Managed Account.  The firewall is disabled.  Is there a way to open up specific network ports to programs running under Managed Accounts?

    Still don't have an anwer for you, but just a few thoughts... So it would seem that creating a Managed account automatically invokes some user account firewall settings, since the game works under your admin account. I was  able to access the System Prefs under a managed account to see about opening up the port in question, but if this is indeed the problem, the firewall isn't the GUI kind.
    It's possible that there would be a terminal command to do so, but I wouldn't have a clue about how to do that.

Maybe you are looking for

  • Raw files open with adjustments..

    Hello! I am having trouble with RAW files in Lightroom, and also camera RAW. When I import a RAW file into Lightroom (i have the current version, 3.5) Lightroom adds adjustments to the file, for example in the basic section of the develop module expo

  • I've made a fillable form and need javascript assistance

    I've created a fillable form (for internal company use) and would like certain fields to auto fill based on what other field values are. Here is snap shot of the form Here is an explanation of the table. The top fillable row: model = user fill in mod

  • Need desperate help, now sure where to put this

    I have a Zenworks 10.3 server that was running fine...all of a sudden, it says database will not start. I reboot and stopped and started database manually I THINK bu going to CL and typing: /opt/novell/zenworks/bin/novell-zenworks-configure -c Start

  • My 6500 Slide is showing all numbers as "Private N...

    Hi, Although I have updated Software, My 6500 is showing all numbers as private number. Can anyone help me on this stuff ? Regards, Amjad

  • RMI apps will not exit for 60 seconds.

    Yes, I'm sure this has been asked more times than you can fit in a 32 bit int, but how can I get my RMI programs to exit when main() exits. Even seemingly innocent programs like this: import java.rmi.*; import java.rmi.server.*; public class Stuff {