Please help on data "LOCKING"

I am writing a project needs a method to "lock" the data
from a database, which is a binary file. I seldom deal with
threads and can not find out the way. It will be very kind
if anyone can give me a clue or example, thanks

What do you mean when you say your database is a binary file? Are you talking about a database (hierarchical, relational, cube, etc), or are you talking about a file that exists on a file system, and all you want to do is lock and read it. BTW: All files are ultimately binary files. :)

Similar Messages

  • Please Help PI Data Dependent Integration Builder Authorizations NOT Workng

    Dear Friends / Experts,
    I had spend many days and explored all Weblog  and links on this website and implemented all the steps required to acheive Data Dependent Integration Builder Security and I am not successful so far. I am just giving up now - Please Help Me ---
    As I said, I already read all the important Forum Links and SAP Web links and Followed Each and Every Step - service.sap.com/instguidesNW04 ® Installation ® SAP XI
    Security Requirement - Data Dependent/Object Level Authorizations in XI / PI
    In distributed teams or in a shared PI environment it might be necessary to limit authorization for a developer or a group of developers to only one Software Component or objects within a Software Component or to specific Configuration Objects.
    Our Environment - PI 7.0 SP 16
    Created a new role in the Integration Builder Design
    u2013Add Object Types of any Software Component and Namespace
    - Enable usage of Integration Builder roles in Exchange Profile
    Integration Builder u2013Integration Builder RepositoryParameter com.sap.aii.util.server.auth.activation to true
    Assign users to the newly created Integration Builder roles
    u2013Create dummy roles in Web AS ABAP, these roles are then available as groups in Web AS Java
    u2013Assign users to these roles
    u2013Assign the Integration Builder roles to the above groups in Web AS Java
    u2013Assign unrestricted roles to Super Users
    Please help - How to validate whether Data Dependent Authorizations are Activated?
    I am working with XI Developers and Basis Team and we did updated all the Required Exchange profile parameters.
    Per this Document - User Authorizations in Integration Builder Tools - Do we need to update the server.lockauth.activation in Exchange Profile. When We updated, It removed Edit Access from all XI Developers in PI
    In both the Integration Repository and the Integration Directory, you can define more detailed authorizations that restrict access to design and configuration objects.
    In both tools, you define such authorizations by choosing Tools ® User Roles from the menu bar. The authorization for this menu option is provided by role SAP_XI_ADMINISTRATOR_J2EE. Of course, this role should only be granted to a very restricted number of administrators. To activate these more detailed authorizations, you must set exchange profile parameter com.sap.aii.ib.server.lockauth.activation to true.
    The access authorizations themselves can be defined at the object-type level only (possibly restricted by a selection path), where you can specify each access action either individually as Create, Modify, or Delete for each object type, or as an overall access granting all three access actions.
    http://help.sap.com/saphelp_nw04/helpdata/en/f7/c2953fc405330ee10000000a114084/frameset.htm
    I was able to control display and maintain access from ABAP Roles, but completely failed to implement Integration Builder Security?
    Are there any ways to check Whether Data Dependent authorization or J2EE Authorizations are activated?
    Thanks a lot
    Satish

    Hello,
    so to give you status of our issue.
    We were able to export missing business component .
    But we also exported some interfaces after that and we had some return code 8, due  to objects still present in change list on quality system (seems after previous failed transports , the change list was not cleared completley...).
    So now we have checked that no objects is present in the change list of quality system and we plan to export again our devs on quality system.
    Hope after that no more return code 8 during imports and all devs transported correctly on quality system.
    Also recommending to read that, which is pretty good.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/7078566c-72e0-2e10-2b8a-e10fcf8e1a3d?overridelayout=t…
    Thanks all,
    S.N

  • Please help on Date format

    Please go through the following...
    look at my parameters here:
    1 select rtrim(name)||', '||rtrim(value) from v$parameter
    2* where name like 'nls%'
    SQL> /
    RTRIM(NAME)||','||RTRIM(VALUE)
    nls_language, AMERICAN
    nls_territory, AMERICA
    nls_sort,
    nls_date_language,
    nls_date_format,
    nls_currency,
    nls_numeric_characters,
    nls_iso_currency,
    nls_calendar,
    9 rows selected.
    The problem is i am trying to query data as on 15-dec-05 but the result showing of 14th and 15th.. please help me
    1 select
    2 CR_DATE
    3 from audit_payhd
    4 where cr_date = '15-DEC-05'
    5* and nvouch_no = 'JV50655' or ovouch_no = 'JV50655'
    SQL> /
    CR_DATE
    14-DEC-05
    14-DEC-05
    15-DEC-05
    1 select
    2 CR_DATE
    3 from audit_payhd
    4 where TO_char(cr_date,'DD-MON-YY') = TO_CHAR(TO_DATE('15-DEC-05'),'DD-MON-YY')
    5* and nvouch_no = 'JV50655' or ovouch_no = 'JV50655'
    SQL> /
    CR_DATE
    14-DEC-05
    14-DEC-05
    15-DEC-05
    1 select
    2 CR_DATE
    3 from audit_payhd
    4 where TO_char(TRUNC(cr_date),'DD-MON-YY') = TO_CHAR(TO_DATE('15-DEC-05'),'DD-MON-YY')
    5* and nvouch_no = 'JV50655' or ovouch_no = 'JV50655'
    SQL> /
    CR_DATE
    14-DEC-05
    14-DEC-05
    15-DEC-05
    1 select
    2 CR_DATE
    3 from audit_payhd
    4 where TO_DATE(cr_date) = TO_DATE('15-DEC-05','DD-MON-YY')
    5* and nvouch_no = 'JV50655' or ovouch_no = 'JV50655'
    SQL> /
    CR_DATE
    14-DEC-05
    14-DEC-05
    15-DEC-05

    When I need a condition like
    AND    (nvouch_no = 'JV50655' OR ovouch_no = 'JV50655')I sometimes like to write it as
    AND    'JV50655' IN (nvouch_no, ovouch_no)or even I suppose
    AND    'JV50655' = ANY (nvouch_no, ovouch_no)It's the same thing but it saves you repeating the literal, and it avoids the AND/OR bracketing issue.
    SQL> SELECT empno, ename FROM emp WHERE 'KING' = ANY(ename, job)
    SQL> @xplan
    | Id  | Operation            |  Name       | Rows  | Bytes | Cost  |
    |   0 | SELECT STATEMENT     |             |     3 |    45 |     2 |
    |*  1 |  TABLE ACCESS FULL   | EMP         |     3 |    45 |     2 |
    Predicate Information (identified by operation id):
       1 - filter("EMP"."ENAME"='KING' OR "EMP"."JOB"='KING')

  • Please help with data action problems

    Ok, this is driving me nuts, every example I try seems to work half the time...and I can't figure out why.
    I'm using JDeveloper 10g, ADF/UIX/Struts.
    All I want to do is:
    Access the application module for my project in a struts data action.
    a) To manipulate view object where clauses based on request parameters.
    b) Call application module custom methods.
    c) Access request values.
    Sometime the following works after I've been playing around:
    findForward(DataActionContext ctx)
    ViewObject vo = ctx.getBindingContainer().getApplicationModule.findViewObject("myViewObject");
    //whatever with the vo from here
    MOST of the time, I get 500 Server Errors. They state:
    java.lang.NullPointerException
         at mypackage4.DataActi1Action.findForward(DataActi1Action.java:10)
         at oracle.adf.controller.struts.actions.DataAction.findForward(DataAction.java:575)
         at oracle.adf.controller.lifecycle.PageLifecycle.handleLifecycle(PageLifecycle.java:152)
         at oracle.adf.controller.struts.actions.DataAction.handleLifecycle(DataAction.java:233)
         at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:163)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
         at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:509)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    I believe this has to do with there not being a binding container for the Data Action. However, I can drag custom methods and view object methods (create/delete...) from the data control palette onto it all I want, and I still get the same errors. I thought I read that it generates one, from the long document:
    Oracle ADF Data Binding Primer and ADF/Struts Overview
    Basically, I read through and am still confused on how I can access the application module reliably. I have some pages that it's work for, but I can't figure out why it doesn't work for others.
    Could someone clear this up for me please?

    I've tried using getBindingContext, get BindingContainer, and a host of others. I can assign iterators to he UI model, the cpx file, but I still can't seem to figure this out.
    I don't see a comparable example in the ones I've downloaded from otn either. Thanks for any help.

  • Please HELP - huge data recovery issues

    Hello all,
    The hard drive on my MacBook (late 2008 unibody, less than a year old, don't get me started) has gone to ****, and I am trying desperately to get the data off of it before I get a replacement. Got it out of the laptop and into an enclosure, it shows up fine, but when I try to transfer, I keep getting code 36 errors, so it does look like some of the files are messed up.
    So yesterday I bought Disk Warrior, hoping against all hopes that this would help, and I rebuilt the hard drive, but I continue to get the same errors. So then I tried Restore in Disk Utility, no dice. I have Carbon Copy Cloner running right now (I'm out for the day), but given that it got through 200-something MBs of a drive with about 150 GB of data in four hours or so last night, I'm not all that hopeful. I think my last resort is to use ChronoSync to just make it skip the bad files, I mean, I can live with losing them, but it's just driving me crazy that it stops it every time, there's no way I can sit there and keep restarting the copy after every error (I mean, it's literally like every 10-15 files).
    The one thing I am really worried about though is my pictures. The iPhoto library is just one big file, right? So I tried to copy that, same problem. Any thoughts on that specifically? Is it actually multiple files within the library file, so maybe ChronoSync would work for that too?
    I guess my main questions are:
    1) Any suggestions on possible ways to recover this data, as DiskWarrior seems to have failed?
    2) Barring possibility of recovering data, any way to make it keep copying and skip bad files other than ChronoSync?
    Any thoughts would be MUCH appreciated. I am about to go insane here. Thanks so much!!

    I've definitely seen scenarios where Disk Warrior can't resolve the issue but Data Rescue II is able to get more files. It really depends on what's wrong with the hard drive. If it's a mechanic failure then there isn't much of anything in the software category that's going to help you. That's where you get into a place like Drive Savers or OnTrack and it's also where things get very expensive... very quickly.
    If it's a drive partition map or file structure corruption, software would certainly would certainly work in an effort to fix it. From my experience in using Disk Warrior as a solution for friends, co-workers and clients, I've seen about 35-40% success rate. Again, it really depends on what's wrong with the HD.
    The iPhoto Library is actually a package, there are a dozen or so folders within the iPhoto Library and then multiple levels of folder structures within them (containing all of your photos and thumbnails). Data Rescue II, theoretically, should allow you to see the contents of the library and try to extract. The problem, however, is sometimes the application will spit out file types like 0000100142.jpg and then you have to go through every single file and figure out what it is.

  • Please help, my data usage is increasing and i dont know why?

    Hi, Iv had my blackberry for about 3 weeks and all was fine until yesterday.
    The data usage continuously increases even though im not connected to the internet or any applications.
    The only way i can stop the data usage increasing is if I turn the phone off or turn off all my connections to vodafone and wifi...
    I have deleted all the applications on the phone so it cant be them
    I have deleted all email accounts as well
    is there any way that I can find out what is causing my data usage to increase in this way (It even increases whilst im not even using the phone)
    Or is there a customer services number I can call that may be able to help me?
    any help would be greatly appreciated
    Thank you

    If you press and hold the Menu Key, how many applications show open? If there are more then five, select them and press the Menu Key and select Close.
    Then test to see if your data usage is better. If you are still having issues after this contact your wireless provider for further support options.
    Cheers,

  • Please help creating data model where query has & in select

    Below is the actual code of the part of select having a problem.
    When I had '&' instead of chr(36), a window opens up saying 'Please enter values for lexical references in sql then has *&' and empty box and check box then flex field.
    So I replaced '&' with chr(36) below
    After I put the code in, it is asking me the question ====>
    'Do you want to create a bind parameter? : //wwwapps.ups.com/WebTracking/processInputRequest?sort_by
    ,'=HYPERLINK("http://wwwapps.ups.com/WebTracking/processInputRequest?sort_by=status'||CHR(36)||'tracknums_displayed=1'||CHR(36)||'TypeOfInquiryNumber=T'||CHR(36)||'loc=en_US'||CHR(36)||'InquiryNumber1='||mbl.tracking_number||CHR(36)
    ||
    'track.x=0'||CHR(36)||'track.y=0","'||mbl.tracking_number||'")' "Tracking Link (Click to Track)",

    Hi,
    Looks like no more problems creating data models after replacing the '&' and ':' with their chr(x) counterparts. But when they I run the report, it shows the hyperlink code below instead of the hyperlink tracking number they can just click on. Also when I try the query in toad, it works.
    =HYPERLINK("http://wwwapps.ups.com/WebTracking/processInputRequest?sort_by=status&tracknums_displayed=1&TypeOfInquiryNumber=T&loc=en_US&InquiryNumber1=&track.x=0&track.y=0","")

  • PLEASE HELP DISAPPEARING DATA ON ITUNES AND MAC

    Last night i synced my mum's iphone on my laptop to update to the new OS 4.2 - It took about 40 minutes to back up then restored and reset.
    After this is said restore from back up .... with a list.
    The list didn't contain my mums backup only my previous backups on my account and my mums apple account no longer exists not only in itunes but all together.
    I have been through the hard drive on my back and there is no data anywhere which shows the time and backup of my mums iphone.
    The iphone is completely wiped and the apple account no longer exists, can someone help me and tell me if there is a way i can get the data back? i have used the iphone back up extractor and it isn't there - it must be somewhere as it took forever to backup.
    Thanks and i hope this can be fixed as she is so upset !!! and the worst of

    You need to not just
    i find
    your PC music, but also get it back into the iTunes Library. As long as all the songs are in your iTunes, then when you sync the iPod, it will not erase any songs on it.
    Also see: How to keep iTunes from automatically updating your iPod
    Another Easier Alternative:
    While connecting the iPod to the computer, hold down the Shift + Ctrl keys in Windows (CMD + Option keys on a Mac). This will stop the iPod from auto-syncing with iTunes. The iPod will then appear in the iTunes source list. Wait until you are sure the iPod has mounted, and that it will not auto-sync and then you can release the keys. This action may take between 3 and 25 seconds depending on your computer.
    You can then ‘right-click‘ on the iPod icon in iTunes’ source column and select iPod Options, then check the box that says “Manually manage songs and playlists”. You can now manage your library without losing any songs on the iPod.

  • Please help! iPad locked while using it with Apple TV

    If anyone can help me, I'd really appreciate it!
    For some reason, my mom's iPad (first generation) is having an issue with the password. My mom uses her iPad daily, so she certainly didn't forget her 4 digit password, and yet, we can't unlock the iPad. We've tried so many times that we are currently locked out for an hour.
    I have no idea if the following is the reason that the password no longer works, but I might as well descibe what I was doing that may have caused it to stop working.
    I bought a new soundsystem for my mom's television. We also have an Apple TV hooked up to the TV. I was testing out the sound system by trying to Netflix from Apple TV through the new sound system. In what I imagine to be a totally unrelated problem, the sound system wasn't working with the Apple TV unless the sound system is connected directly to Apple TV (via optical cable).
    Anyways, in the midst of trying to figure all of this out, I was using my mom's iPad to control the Apple TV (as opposed to using the remote control that comes with the Apple TV). I was having no issues using the gestures on the iPad to control the Apple TV. Then, after so many minutes of the iPad being idle, I re-awakened the iPad to see that I needed to input the 4 digit password. I asked my mom for her password, tried several times, and it didn't work. Then I had my mom try herself, and the 4 digit pw didn't work. We had to wait several minutes before trying again. We're now at the point where we're having to wait 60 minutes to try an input the 4 digit pw again.
    I'm wondering if there was something happening with the Apple TV that caused the iPad to mess up somehow? Any ideas?!?
    I'm very confused right now. I would hate to have to restore my mom's iPad and have her lose the hundreds of pictures that she saved on there.
    I connected my mom's iPad to my Mac (she doesn't have her own computer) to see if that would work, but my Mac is saying that my mom's iPad is locked.
    I can't remember the last time we synced my mom's iPad to any computer. It's possible that the last time it was synced was with my old Mac Mini that I haven't used since December. Would connecting it to my old Mac Mini yield potentially helpful results??

    I suggest that in addition to waiting out the 60 minute period, try resetting the iPad.  (Do both.)
    Reset it by holding the on/off and home buttons together for about 10 seconds till the Apple logo appears.

  • Please help about data extension socket enquiries

    Hi am new on here and I have tried calling BT to ask them this but he could not understand me what I am thinking of doing is running a data extension socket from the master to another room so the hub can go there to connect to a game console
    I have a few questions about doing this will it reduce my broadband speed?
    Can you run the wire outside?
    Any help would be much appreciated

    It might drop your speed slightly but probably not so much that you'd notice. If you use exterior grade Ethernet cable you can run it outside.

  • TS1363 Please help..  Locked phone, changed password drunk and woke to have no clue to what new combination...

    Hi ..  would highly appreciate some input on how to get into my phone from a forgotten passcode... i was forced to change it last night due to friendly intrusion and hacking..  silly thing is i did it whilst housing a healthy amount of alchohol and once i was to arise i hit my passcode and it didnt work, i then partially remebering going into it to do this but for the life of me cant remeber it.      So now im over it and just wanna fix it..    any ideas or suggestions?
    Cheers...

    Hi Colonel,
    OK, first thing is to make sure that if you are going to be drinking in the future, you separate yourself from your iPhone before the drinking commences.....
    Then, follow the instructions in this previous post, and you will be good as new (at least in terms of your password...can't say about the hangover)
    If you can't remember your iPhone passcode, hitting the restore button in iTunes followed by restoring from your most recent iPhone backup on the last computer the phone was synced with will reset the passcode. If you do not have access to the last computer the phone was synced with, you will have to force the phone into recovery mode & restore as a new device. All data on the phone will be erased.
    Cheers,
    GB

  • Oh My Jesus PLEASE HELP!! Locked my iPad!!!

    Helo
    Ive set a passcode for my ipad and i forgot it now its locked like forever what can i do????

    You must restore your operating system.
    According to the User Guide, page 164-165:
    In iTunes > Preferences select devices (without iPad connected) click delete backup, and confirm.
    Restore iPad from an older backup if it includes everything but the passcode.

  • Please Help ----------in Date format

    Hi , friends,
    iam in very troubles in this problemb from this week
    i have some text fields , where i put dd/MM/yyyy format as a string , and
    then converting it as date saving in a hash table
    later when i want get back from hash table , iam fromatting ]
    by using
        DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT);
    Date newDate =(Date) (list.get(j));
      String dateString =df.format(newDate);where list is a arraylist
    but how to get dd/MM/yyyy format

    Thanks for your reply
    but
    i have another problemb relating to this
    actuallly i am perparing holiday list
    where i put date and details as a string in two text field and save in a file in appending
    later i convert date String as a date object and putiing in a hash table as a key and value later
    i put keys in a array list (list)and sorting it by Collections.sort(list) method
    and now after sorting i put the sorted date and details in another file,
    and deleting the old file and renaming the file as a old file,
    File f1 = new File("d:/bea/wlserver6.1/date1.txt");
                  FileReader fr = new FileReader(f1);
                    File f2 = new File("d:/bea/wlserver6.1/date3.txt");
                    boolean flag;
                    flag = f2.createNewFile();
    boolean flag1;
                         boolean flag2;
                     flag1 =f1.delete();
                         flag2 = f2.renameTo(f1);
                     System.out.println(flag1);
                     System.out.println(flag2);but still error is coming like fileNotFoundException

  • My iPhone 4 was stolen, how do i lock it permanently using a serial number for instance so nobody can use it or access my personal information, knowing that the thief knows my personal passcode.. Please help, Thanx

    My iPhone 4 was stolen, how do i lock it permanently using a serial number for instance so nobody can use it or access my personal information, knowing that the thief knows my personal passcode.. Please help, Thanx

    You cannot lock it by the serial number. Report it to your carrier and the police. You said that the thief knows your pass code. Does that mean that the thief was a personal friend who would be close enough to you to know what your code was? If that is the case, ask your friend to return your phone.

  • I believe that i have malware on my mac, osx 10.9.4. accordingly, i've tried to run clamxav (on my mac HD) but just get a spinning wheel, then have to shut down. any advice on how to stop spinning wheel or get rid of malware? please help. :-).

    i believe that i have malware (possible highjack of safari browser) on my mac, osx 10.9.4. accordingly, i've tried to run clamxav (on my mac HD) but just get a spinning wheel, then have to shut down. any advice on how to stop spinning wheel or get rid of malware? i have symnatic endpoint and, after scanning, it reveals nothing. please help. :-).

    are locked user files or that have incorrect permission a bad thing?
    Yes.
    why am i removing symantec?
    Short answer: Because it's worse than useless and worse than the imaginary "viruses" you're afraid of would be if they really existed. For the long answer, see below.
    1. This is a comment on what you should—and should not—do to protect yourself from malicious software ("malware") that circulates on the Internet and gets onto a computer as an unintended consequence of the user's actions. It does not apply to software, such as keystroke loggers, that may be installed deliberately by an intruder who has hands-on access to the computer, or who has been able to log in to it remotely. That threat is in a different category, and there's no easy way to defend against it.
    The comment is long because the issue is complex. The key points are in sections 5, 6, and 10.
    OS X now implements three layers of built-in protection specifically against malware, not counting runtime protections such as execute disable, sandboxing, system library randomization, and address space layout randomization that may also guard against other kinds of exploits.
    2. All versions of OS X since 10.6.7 have been able to detect known Mac malware in downloaded files, and to block insecure web plugins. This feature is transparent to the user. Internally Apple calls it "XProtect."
    The malware recognition database used by XProtect is automatically updated; however, you shouldn't rely on it, because the attackers are always at least a day ahead of the defenders.
    The following caveats apply to XProtect:
    ☞ It can be bypassed by some third-party networking software, such as BitTorrent clients and Java applets.
    ☞ It only applies to software downloaded from the network. Software installed from a CD or other media is not checked.
    As new versions of OS X are released, it's not clear whether Apple will indefinitely continue to maintain the XProtect database of older versions such as 10.6. The security of obsolete system versions may eventually be degraded. Security updates to the code of obsolete systems will stop being released at some point, and that may leave them open to other kinds of attack besides malware.
    3. Starting with OS X 10.7.5, there has been a second layer of built-in malware protection, designated "Gatekeeper" by Apple. By default, applications and Installer packages downloaded from the network will only run if they're digitally signed by a developer with a certificate issued by Apple. Software certified in this way hasn't necessarily been tested by Apple, but you can be reasonably sure that it hasn't been modified by anyone other than the developer. His identity is known to Apple, so he could be held legally responsible if he distributed malware. That may not mean much if the developer lives in a country with a weak legal system (see below.)
    Gatekeeper doesn't depend on a database of known malware. It has, however, the same limitations as XProtect, and in addition the following:
    ☞ It can easily be disabled or overridden by the user.
    ☞ A malware attacker could get control of a code-signing certificate under false pretenses, or could simply ignore the consequences of distributing codesigned malware.
    ☞ An App Store developer could find a way to bypass Apple's oversight, or the oversight could fail due to human error.
    Apple has so far failed to revoke the codesigning certificates of some known abusers, thereby diluting the value of Gatekeeper and the Developer ID program. These failures don't involve App Store products, however.
    For the reasons given, App Store products, and—to a lesser extent—other applications recognized by Gatekeeper as signed, are safer than others, but they can't be considered absolutely safe. "Sandboxed" applications may prompt for access to private data, such as your contacts, or for access to the network. Think before granting that access. Sandbox security is based on user input. Never click through any request for authorization without thinking.
    4. Starting with OS X 10.8.3, a third layer of protection has been added: a "Malware Removal Tool" (MRT). MRT runs automatically in the background when you update the OS. It checks for, and removes, malware that may have evaded the other protections via a Java exploit (see below.) MRT also runs when you install or update the Apple-supplied Java runtime (but not the Oracle runtime.) Like XProtect, MRT is effective against known threats, but not against unknown ones. It notifies you if it finds malware, but otherwise there's no user interface to MRT.
    5. The built-in security features of OS X reduce the risk of malware attack, but they are not, and never will be, complete protection. Malware is a problem of human behavior, and a technological fix is not going to solve it. Trusting software to protect you will only make you more vulnerable.
    The best defense is always going to be your own intelligence. With the possible exception of Java exploits, all known malware circulating on the Internet that affects a fully-updated installation of OS X 10.6 or later takes the form of so-called "Trojan horses," which can only have an effect if the victim is duped into running them. The threat therefore amounts to a battle of wits between you and the scam artists. If you're smarter than they think you are, you'll win. That means, in practice, that you always stay within a safe harbor of computing practices. How do you know when you're leaving the safe harbor? Below are some warning signs of danger.
    Software from an untrustworthy source
    ☞ Software of any kind is distributed via BitTorrent, or Usenet, or on a website that also distributes pirated music or movies.
    ☞ Software with a corporate brand, such as Adobe Flash Player, doesn't come directly from the developer’s website. Do not trust an alert from any website to update Flash, or your browser, or any other software.
    ☞ Rogue websites such as Softonic and CNET Download distribute free applications that have been packaged in a superfluous "installer."
    ☞ The software is advertised by means of spam or intrusive web ads. Any ad, on any site, that includes a direct link to a download should be ignored.
    Software that is plainly illegal or does something illegal
    ☞ High-priced commercial software such as Photoshop is "cracked" or "free."
    ☞ An application helps you to infringe copyright, for instance by circumventing the copy protection on commercial software, or saving streamed media for reuse without permission.
    Conditional or unsolicited offers from strangers
    ☞ A telephone caller or a web page tells you that you have a “virus” and offers to help you remove it. (Some reputable websites did legitimately warn visitors who were infected with the "DNSChanger" malware. That exception to this rule no longer applies.)
    ☞ A web site offers free content such as video or music, but to use it you must install a “codec,” “plug-in,” "player," "downloader," "extractor," or “certificate” that comes from that same site, or an unknown one.
    ☞ You win a prize in a contest you never entered.
    ☞ Someone on a message board such as this one is eager to help you, but only if you download an application of his choosing.
    ☞ A "FREE WI-FI !!!" network advertises itself in a public place such as an airport, but is not provided by the management.
    ☞ Anything online that you would expect to pay for is "free."
    Unexpected events
    ☞ A file is downloaded automatically when you visit a web page, with no other action on your part. Delete any such file without opening it.
    ☞ You open what you think is a document and get an alert that it's "an application downloaded from the Internet." Click Cancel and delete the file. Even if you don't get the alert, you should still delete any file that isn't what you expected it to be.
    ☞ An application does something you don't expect, such as asking for permission to access your contacts, your location, or the Internet for no obvious reason.
    ☞ Software is attached to email that you didn't request, even if it comes (or seems to come) from someone you trust.
    I don't say that leaving the safe harbor just once will necessarily result in disaster, but making a habit of it will weaken your defenses against malware attack. Any of the above scenarios should, at the very least, make you uncomfortable.
    6. Java on the Web (not to be confused with JavaScript, to which it's not related, despite the similarity of the names) is a weak point in the security of any system. Java is, among other things, a platform for running complex applications in a web page, on the client. That was always a bad idea, and Java's developers have proven themselves incapable of implementing it without also creating a portal for malware to enter. Past Java exploits are the closest thing there has ever been to a Windows-style virus affecting OS X. Merely loading a page with malicious Java content could be harmful.
    Fortunately, client-side Java on the Web is obsolete and mostly extinct. Only a few outmoded sites still use it. Try to hasten the process of extinction by avoiding those sites, if you have a choice. Forget about playing games or other non-essential uses of Java.
    Java is not included in OS X 10.7 and later. Discrete Java installers are distributed by Apple and by Oracle (the developer of Java.) Don't use either one unless you need it. Most people don't. If Java is installed, disable it—not JavaScript—in your browsers.
    Regardless of version, experience has shown that Java on the Web can't be trusted. If you must use a Java applet for a task on a specific site, enable Java only for that site in Safari. Never enable Java for a public website that carries third-party advertising. Use it only on well-known, login-protected, secure websites without ads. In Safari 6 or later, you'll see a lock icon in the address bar with the abbreviation "https" when visiting a secure site.
    Stay within the safe harbor, and you’ll be as safe from malware as you can practically be. The rest of this comment concerns what you should not do to protect yourself.
    7. Never install any commercial "anti-virus" (AV) or "Internet security" products for the Mac, as they are all worse than useless. If you need to be able to detect Windows malware in your files, use one of the free security apps in the Mac App Store—nothing else.
    Why shouldn't you use commercial AV products?
    ☞ To recognize malware, the software depends on a database of known threats, which is always at least a day out of date. This technique is a proven failure, as a major AV software vendor has admitted. Most attacks are "zero-day"—that is, previously unknown. Recognition-based AV does not defend against such attacks, and the enterprise IT industry is coming to the realization that traditional AV software is worthless.
    ☞ Its design is predicated on the nonexistent threat that malware may be injected at any time, anywhere in the file system. Malware is downloaded from the network; it doesn't materialize from nowhere. In order to meet that nonexistent threat, commercial AV software modifies or duplicates low-level functions of the operating system, which is a waste of resources and a common cause of instability, bugs, and poor performance.
    ☞ By modifying the operating system, the software may also create weaknesses that could be exploited by malware attackers.
    ☞ Most importantly, a false sense of security is dangerous.
    8. An AV product from the App Store, such as "ClamXav," has the same drawback as the commercial suites of being always out of date, but it does not inject low-level code into the operating system. That doesn't mean it's entirely harmless. It may report email messages that have "phishing" links in the body, or Windows malware in attachments, as infected files, and offer to delete or move them. Doing so will corrupt the Mail database. The messages should be deleted from within the Mail application.
    An AV app is not needed, and cannot be relied upon, for protection against OS X malware. It's useful, if at all, only for detecting Windows malware, and even for that use it's not really effective, because new Windows malware is emerging much faster than OS X malware.
    Windows malware can't harm you directly (unless, of course, you use Windows.) Just don't pass it on to anyone else. A malicious attachment in email is usually easy to recognize by the name alone. An actual example:
    London Terror Moovie.avi [124 spaces] Checked By Norton Antivirus.exe
    You don't need software to tell you that's a Windows trojan. Software may be able to tell you which trojan it is, but who cares? In practice, there's no reason to use recognition software unless an organizational policy requires it. Windows malware is so widespread that you should assume it's in everyemail attachment until proven otherwise. Nevertheless, ClamXav or a similar product from the App Store may serve a purpose if it satisfies an ill-informed network administrator who says you must run some kind of AV application. It's free and it won't handicap the system.
    The ClamXav developer won't try to "upsell" you to a paid version of the product. Other developers may do that. Don't be upsold. For one thing, you should not pay to protect Windows users from the consequences of their choice of computing platform. For another, a paid upgrade from a free app will probably have all the disadvantages mentioned in section 7.
    9. It seems to be a common belief that the built-in Application Firewall acts as a barrier to infection, or prevents malware from functioning. It does neither. It blocks inbound connections to certain network services you're running, such as file sharing. It's disabled by default and you should leave it that way if you're behind a router on a private home or office network. Activate it only when you're on an untrusted network, for instance a public Wi-Fi hotspot, where you don't want to provide services. Disable any services you don't use in the Sharing preference pane. All are disabled by default.
    10. As a Mac user, you don't have to live in fear that your computer may be infected every time you install software, read email, or visit a web page. But neither can you assume that you will always be safe from exploitation, no matter what you do. Navigating the Internet is like walking the streets of a big city. It's as safe or as dangerous as you choose to make it. The greatest harm done by security software is precisely its selling point: it makes people feel safe. They may then feel safe enough to take risks from which the software doesn't protect them. Nothing can lessen the need for safe computing practices.

Maybe you are looking for

  • How to create a attribute for a table

    I am created a table with four columns. How to create a attribute for each column.........

  • Best Block Size in Raid for Photo files

    I am setting up my two drive striped RAID 0 and came to a screeching halt at the raid block size. This RASID is strictly for photo scans and PS CS2 photo files, mostly high res, some medium JPEGs. Adobe says PS CS2's default block size in 64K, if I c

  • Kernel panic after system restore...

    I have a network TM drive for my MacBook. I wanted to reformat the computer and restore it, so that I could create a new partition for a Boot Camp Ubuntu install (it wouldn't let me before, as my data was all over the place on the drive and it couldn

  • How to use i cloude with out wifi

    How to use icloude with out wifi. I never backed my contacts up in iclode, and now my wifi does not work.

  • How to use Photoshop CS6 when booted from a different partition?

    I have CS6 installed.  I recently created a second partition on my SSD for development in OS X 10.10.  When booted from that drive, I get an error that CS6 was not properly installed and to re-install it. This is a smaller partition, with just the sy