Some Sorting Related Query I am facing....

I have a class
Period
DateAndTime DT; // DT is a member variable
There can be multiple instances of class Period...I am maintaing
a vector for storing multiple objects...After vector is populated, I have
to sort these Period objects (on DateTime-wise)...(I have to line them
up so that they are in ascending order time-wise)
I want to add the objects in vector in Sorted-way only, so that I don't have
to iterate the Whole vector again.....I don't need to do the comparison of DateAndTime of
Each object with other and then populate the collection again..
How can achieve it.
That when a new object comes, I put it into the right place
depending upon DateAndTime field.....
I am open to use any other Collection object (other than Vector)..
Please give me suggestions...
collection

hi,
I have done the following:-
class Period implements Comparable
Calender startTime;
public int compareTo(Object obj) throws ClassCastException
if (!(obj instanceof Period))
throw new ClassCastException("A Period object expected.");
Period prd = (Period)obj;
if (startTime.before(prd.startTime)
return -1;
else if (startTime.after(prd.startTime)
return 1;
else
return 0;     
ArrayList list = new ArrayList();
addObjectsInList(Period prd)
list.add(prd);
sortObjectsInList()
Collections.sort(list);
My Query is
1) Where should I do handling for ClassCastException..
In my case, no other type of object would come, but still
I have added the check for ClassCastException....
Is it mandatory to have this check or can I leave that
I have seen many examples of CompareTo on threads in forum/as well as net...where no check has been done for ClassCastException...
What should I do....Should the exception handling be done
while I am adding the objects in List or sorting them?
2) Is there anything else, I need to take care while
implementing Comparable interface...

Similar Messages

  • How can I related Query name with Query elements?

    Hello gurus!
    I am working with BI7, content technical, well I need to find out a solution where I can related Query name with query elements (KYF, CKY, Restricted Key Figures, var, etc)
    In master data 0tctquery, exist the query element, but, I can not related with object are from what query...
    Do you know how I can do it??? some solution???
    Best Regards

    "it is impossible to relate both tables" ???
    hmmm... these are exactly the tables the Query Designer uses to "build" up the query... so trust me, they do relate
    now to get this information in an InfoCube is a totally different thing... how do you expect to report on this if you should get it in an InfoCube? let's take a simple example... assume you have a query (QUERY_1) which looks like:
                                      Sales  Sales
    Sales Org Customer    Qty      Value
    1000         ABC           10 PC  500 €
    1000         DEF             5 PC  250 €
    in your Cube you would get:
    QueryName  QueryElement
    QUERY_1    0SALESORG
    QUERY_1    0CUSTOMER
    QUERY_1    ZSLSQTY
    QUERY_1    ZSLSVAL
    if you have free characteristics, you'll add more lines... same for variables, CKFs, RKFs, conditions, ...
    I guess it would be better to create a little ABAP report using the above tables (oh, you'll be needing a lot more tables if you wish more detail)

  • Converting Relational query to XML

    set serveroutput on
    This is the code of a query to convert a relational query to xml. This code runs fine when I place the where condition at the end. e.g. where h.hospital_id=1. however when i place no such condition it begins returning errors such as
    set serveroutput on
    set long 10000000
    set linesize 50000
    set lines 20000
    set pagesize 0
    set pages 5
    set feedback off
    set head off
    SET TRIMSPOOL ON
    set long 200000000
    set linesize 32000
    set pagesize 0
    set pages 0
    set feedback off
    set head off
    Select XMLELEMENT("have:HospitalStatus",XMLAttributes('urn:oasis:names:tc:emergency:EDXL:HAVE:1.0 edxl-have_cs01.xsd' AS
                                      "xsi:schemaLocation",
                                              'urn:oasis:names:tc:emergency:EDXL:HAVE:1.0' AS
                                      "xmlns:have",
                                    'http://www.georss.org/georss' AS
                                      "xmlns:n3",
                                    'http://www.opengis.net/gml' AS
                                      "xmlns:gml",
                                    'http://www.w3.org/2001/XMLSchema-instance' AS
                                      "xmlns:xsi",
                                    'urn:oasis:names:tc:ciq:xal:3' AS
                                      "xmlns:xal",
                                    'urn:oasis:names:tc:ciq:xnl:3' AS
                                      "xmlns:xnl",
                                    'urn:oasis:names:tc:ciq:xpil:3' AS
                                      "xmlns:xpil"                                        
         xmlagg(                    
         xmlelement("have:Hospital",
         xmlforest
              (     h.hospital_id,          
                   xmlforest(
                   xmlforest(
                   h.name,               
                   h.info,          
                   h.addresses     ,          
                   h.contact_numbers) as "OrganizationInformation",     
                   xmlforest(
                   h.geo_location) as "OrganizationGeoLocation",
                   h.comments) as "Organization"
                   xmlelement("have:EmergencyDepartmentStatus",
                   (select xmlagg(
                   xmlforest(
                             eds.date_updated,
                   xmlforest(
                             eds.ems_traffic_status,
                             eds.ems_traffic_reason) as "EMSTraffic",          
                   xmlforest(
                             tcl.url,
                             tc.date_updated,
                             tc.code_value,
                             tc.ems_capacity
                        ) as "EMSCapacity",     
                   xmlforest(
                             tcl.url,
                             tc.date_updated,
                             tc.code_value,
                             tc.ems_census) as "EMSCensus",
                             xmlforest(
                             eds.ems_amb_offload_status,
                             eds.ems_amb_offload_min) as "EMSAmbulanceStatus",
                             xmlforest(
                             eds.ems_air_offload_status,
                             eds.ems_air_offload_min )as "EMSAirTransportStatus"
                   from EmergencyDepartmentStatus eds,TriageCode tc,TriageCodeListURN tcl
                   where eds.hospital_id = h.hospital_id and tc.hospital_id = h.hospital_id and tcl.hospital_id = h.hospital_id)),     
                             xmlelement("have:HospitalBedCapacityStatus",
                   (select xmlagg(xmlelement("have:BedCapacity",
                   xmlforest(
                             mb.date_updated,
                             mb.bed_no,
                             mb.bed_type,
                             xmlforest(
                             mb.capacity_status,
                             mb.available_count,
                             mb.baseline_count,
                             mb.additional_24hr,
                             mb.additional_72hr) as "Capacity",
                             mb.comments
                   from MainBeds mb
                   where mb.hospital_id = h.hospital_id and mb.bed_no NOT IN(select mb.bed_no from MainBeds mb, SubBeds sb where mb.bed_no=sb.bed_no )
                   (select xmlagg(xmlelement("have:BedCapacity",
                   xmlforest(
                             mb.date_updated,
                             mb.bed_no ,
                             mb.bed_type,
                             xmlforest(
                             mb.capacity_status
                                                 ) as "Capacity",
                             mb.comments
                                  ),(select xmlagg(
                   xmlforest(
                                  sb.date_updated,
                                  sb.bed_no,
                                  sb.sub_bed_no,
                                  xmlforest(
                                  sb.capacity_status,
                                  sb.available_count,
                                  sb.baseline_count,
                                  sb.additional_24hr,
                                  sb.additional_72hr) as "Capacity",
                                  sb.comments
                                  )from SubBeds sb  where mb.bed_no = sb.bed_no and sb.bed_no=h.hospital_id )
                   from MainBeds mb
                   where mb.hospital_id = h.hospital_id and mb.bed_no in (select unique mb.bed_no from MainBeds md, SubBeds sb where sb.bed_no=mb.bed_no))
                   xmlelement("have:ServiceCoverageStatus",
                   (select xmlagg(
                   xmlforest(
                             scs.date_updated,
                             scs.burn,
                             xmlelement("CardiologySubType",
                                  xmlforest(scs.cardiology_invasive,
                                  scs.cardiology_non_invasssive)) as "CardiologyIndicator",
                             scs.dialysis,
                             scs.emergency_dept,
                             scs.hyperbaric_chamber,
                             scs.infectious_diseases,
                             scs.neonatology,
                             xmlforest(xmlforest(
                                  scs.neurology_invassive,
                                  scs.neurology_non_invasssive) as "NeurologySubType") as "NeurologyIndicator",
                             xmlforest(xmlforest(
                                  scs.obgyn_with_labor,          
                                  scs.obgyn_without_labor) as "OBGYNSubType")as "OBGYNIndicator",
                             scs.opthalmology,
                             scs.orthopedic,
                             scs.pediatrics,
                             xmlforest(
                                  xmlforest(scs.psychiatry_adult_general,
                                  scs.psychiatry_pediatric) as"PsychiatrySubType")as "PsychiatryIndicator",
                             xmlforest(
                                  xmlforest(
                                  sst.date_updated,
                                  sst.general_ward,
                                  sst.adult_general,
                                  sst.pediatrics,
                                  sst.orthopedics,
                                  sst.nuero_surgery,
                                  sst.facial,
                                  sst.cardio_thoracic,
                                  sst.hand,
                                  sst.reimplantation,
                                  sst.spinal,
                                  sst.vascular,
                                  sst.anesthesia) as "SurgerySubTypes") as "SurgeryIndicator",
                             xmlforest(xmlforest(
                             scs.ambulance_services,
                             scs.air_transport_services) as "TransportServicesSubType") as "TransportServicesIndicator",
                             xmlforest(xmlforest(
                             scs.trauma_service,
                             scs.trauma_service_level) as "TraumaCenterServicesSubType")as "TraumaCenterServicesIndicator"
                   from ServiceCoverageStatus scs, SurgerySubTypes sst
                   where scs.hospital_id = h.hospital_id and sst.hospital_id = h.hospital_id)),
                   xmlelement("have:HospitalFacilityStatus",
                   (select xmlagg(     
                   xmlforest(
                             hfs.date_updated,               
                             hfs.hospital_eoc_status,
                             hfs.hospital_eoc_plan,          
                             hfs.clinical_status,
                             xmlforest(
                                  dc.date_updated,
                                  dc.decon_capacity_status,
                                  dc.amb_patients_capacity,
                                  dc.non_amb_patients_capacity) as "DeconCapacity",
                             xmlforest(
                             mc.date_updated,
                             mc.morgue_capacity_status,
                             mc.morgue_capacity_units) as "MorgueCapacity",
                             hfs.facility_status,               
                             hfs.security_status,     
                             xmlforest(
                                  ah.date_update,
                                  ah.admissions,
                                  ah.discharges,
                                  ah.deaths) as "Activity24hr",
                             hfs.comments,
                             hfs.clinical_operations,     
                             hfs.resources_information
                   from HospitalFacilityStatus hfs,Activity24hr ah,MorgueCapacity mc,DeconCapacity dc
                   where hfs.hospital_id = h.hospital_id and ah.hospital_id = h.hospital_id and mc.hospital_id = h.hospital_id
                   and dc.hospital_id = h.hospital_id)),     
                   xmlelement("have:HospitalResourceStatus",
                   (select xmlagg(
                   xmlforest(
                             hr.date_updated,
                             hr.staffing,
                             hr.facility_operations,
                             hr.clinical_operations,     
                             hr.comments
                   from HospitalResourceStatus hr
                   where hr.hospital_id = h.hospital_id)),
              xmlforest(h.last_update_time) as "UpdateTime"
              ))).extract('/*')
    from hospital h;__________________________________________________________________________________________________________
    ERROR:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00225: end-element tag "HOSPITAL_EOC_STATUS" does not match start-element tag "have:HospitalStatus"
    Error at line 1
    ORA-06512: at "SYS.XMLTYPE", line 111
    Edited by: 872489 on 14-Jul-2011 03:59
    Edited by: 872489 on Jul 14, 2011 9:11 AM
    Apologies for lack of formatting earlier

    Please repost this and use the tag with some decent formatting.
    See the FAQ Posting Guidelines on the main page of this XMLDB OTN Forum                                                                                                                                                                                                                                                                                               

  • Need to sort a query 3 times

    Hi,
    I am writing a query as follows:
    SELECT
    GEM_MST.GEMID,
    GEM_MST.LOTID,
    GEM_MST.ASSORTPKTNO,
    GEM_MST.GEMPACKID,
    GEM_MST.S_SHAPEID,
    CO.COLORNAME,
    CL.CLARITYNAME,
    GEM_MST.S_CARATS,
    SUR_PARAM.PRICECT,
    GEM_MST.S_CARATS * SUR_PARAM.PRICECT S_PRICE,
    MUM_PARAM.M_PRICE,
    CARAT * MUM_PARAM.M_PRICE M_PRICE,
    GEM_MST.FACTORYPRICE,
    TAG.TAGID
    FROM
    GEM_MST GEM_MST,
    TAG_GEM_MAPPING TAG,
    GEM_SURAT_PARAMETER SUR_PARAM,
    GEM_MUMBAI_PARAMETER MUM_PARAM,
    COLOR_MST CO,
    CLARITY_MST CL
    WHERE GEM_MST.GEMID = TAG.GEMID
    AND GEM_MST.GEMID = SUR_PARAM.GEMID
    AND GEM_MST.GEMID = MUM_PARAM.GEMID
    AND GEM_MST.S_COLORID = CO.COLORID
    AND GEM_MST.S_CLARITYID = CL.CLARITYID
    AND GEM_MST.S_COLORID = CO.COLORID
    AND MUM_PARAM.ACTIVEFLAG = 'Y'
    AND TAG.ISACTIVE = 'Y'
    AND TAG.TAGTYPE = 'S'
    AND TAG.TAGID = 2
    ORDER BY GEM_MST.S_CARATS DESC;
    As per requirement, i need to sort this query as first on GEM_MST.S_CARATS DESC,
    On the sorted result sort on co.QUALITYORDER ASC,
    and On the sorted result sort on CL.QUALITYORDER ASC
    I have tried :
    ORDER BY GEM_MST.S_CARATS DESC, co.QUALITYORDER ASC,CL.QUALITYORDER ASC
    But its not giving expected result as i require.
    Please do the need full help.
    Thanks in advance.
    Would appreciate your prompt response.
    Regards,
    Vishal
    Edited by: vishal.p on Sep 22, 2010 7:02 AM

    This forum is meant for discussions related to database installs. Pl re-post in a more appropriate forum such as PL/SQL
    HTH
    Srini

  • Can I automate a VI to test hardware through CAN with some sort of script?

    I am trying to automate some hardware testing over the CAN bus.   I have started a basic VI that I can manually run these tests, but there are testing scripts available to me and I was wondering if there is a way to import some sort of scripts (or similar) into LABView to automatically run my VI to perform the test.  I've done some searches, but looking for scripting only comes up with MathScript that MATLAB related information.
    Thanks for the help.

    stupidlogic wrote:
    Thank you very much for the help.  To be honest, I'm new to LabVIEW development and so I don't have any experience in importing scripts whatsoever.  Assuming I have the script written in the suggested format...
    Do I keep it saved as a .xls?
    What subVI block do I import it into LabVIEW with?
    Also, I haven't looked at every script I'll be dealing with (only a couple) and therefore, I don't know how complex it may get.  Do you know where I can access some resources on learning to use TestStand?  I've never used it before.  Even just answering the basic, what does it do/how does it work would be helpful.
    Once again, I appreciate all the assistance.
    We may be calling it as script,but to the core,you are developing an appication to read excel sheet,your logic should segragate each steps action and you should have LabVIEW code wherever an action is required. If you are planning to do this task in LabVIEW, you need following steps to finish.
    VI to read your excel sheet and format it to a 2-Dimensional array(Format the array to remove unnecesary characters).
    A state machine(code architecture) which will be guided as per the states in your excel sheet.
    A hardware handling loop to generate and acquire data for your main code(state machine).
    Use CAN Channel API in case you have a defined CAN dbc file.
    If no dbc file, go for frame API.
    In case you are using TestStand, you need go for an architecture where your CAN periodic data transmission is taken care using LabVIEW.
    Honestly it's not the task of a novice LabVIEW\TestStand programmer if you have less time ro learn. If you provide your e-mail address, I can send you a scaled down code after removing proprietary stuff. 
    Following link is an introductuction to Teststand:
    http://zone.ni.com/devzone/cda/tut/p/id/6073
    Regarding availability of resources to learn LabVIEW and TestStand,Can any one who is following this thread can suggest any materials ?

  • New G5 Stuck in some sort of loop!

    Everything worked fine for about 3 weeks on my new G5 Quad. Then one day I start up and everything boots normally, but I'm stuck in something that sounds similar to the Finder loop. My desktop looks normal...but I can't open any files and app's...when I try...everything disappears except the wallpaper, and the toolbar at the tops flashes for several seconds...like its in some sort of loop before opening up the finder window. This happens everytime I click on something...effectively making my computer useless.
    It reminds me of some sort of hardware problem...so I took everthing out 1 by 1, until eventually it only had what came stock...512 MB RAM and the 1 hard drive...same problem...so its not peripherals. Did hardware test...everything passed. Reset PRAM and PMU. Same problem.
    Then I tried to boot off of Tiger DVD...system crashed after I selected language...not good. Has done the repeatedly so I can't repair any permission with disk utility...tried to boot in safe mode...didn't work...took me to a blank prompt that was unresponsive.
    I'm at a total loss...Thanks for any help.

    It wouldn't even let me choose disk utility...as soon as I selected my language (1st step)...it shuts down. I do have a second drive...but unplugged it while troubleshooting to put the machine back to its initial state (yeah...like it was 3 weeks ago when it was brand new)...no...this looks like a hardware malfunction...almost like it'll boot up fine but if you require it do any work (i.e computations...like open an app)...it stops itself from goin any further...i'm wondering if this is fan/heat sensor related.
    btw-are there actually any G5's out there that don't crash all the time? If so, does that imply that some just roll off the line bad?

  • I have a mac book pro i got about three months ago i know that it has been compromised with some sort of key loger and there for shur using remote desktop client! ill go in delete a bunch of files thy will repute them back in there and make it so i can re

    im very new to computers but very fast learner and very mechenacal but i cant spell my way out of a wet paper bag! lol i receved this macbook pro runing lion 10.7.5 *** a gift slash i paid for it means the most to me its my babie someone has took it apon themselfs to put a keyloger on it been moving files opening accounts in my name basikly identy theft the did not expect me to catch on this fast when i first got it i dident even now ho to use the  mouse pad but been real fortinat i have to the point i know the operating systems realy good but little things still learning iv overloded this thing twice now and brout it back pluse the last time i shute it down trying to get ride of owes so ever on hear i know it sounds crazy but have figuerd out what apps there useing and can revirbalize it back to some one kinda lol remind you im an idiot on computers lol the changing source cods useing key loger of some sort and remote deskstop conection, and a app to watch and record it on there iphone!last time i had coach reboot it i beged him for the start up disk he works for dell tride to tell him in the begining but dident know unuff to verbilize it to him pluse the terminoligies but i have been consuned buy it need some help to file in dark sposts on knolige and if rebooting my mackbook pro is the way to go got a lot of apps from coach dont want to lose im a poorbaserd thats whuy iv been avioding this at all cost plose i dont know if what i got for start up cd is right i was reading you need i desk please i need a bad *** coputer haker iv done all the simpel stuff some of the hard stuff gotten so close but olmst screwd up funkshons "systems preferences plans and framwork plains trying to get rid of this probelem no im not loosing it thats why i need some one who knows what there doing and is up for a challinge sorry about the spelling its bad i know but im only kinda dump lol pretty smart actully whent from be a compleat dump *** on computers to being abel to show some of my would be computer savey friends some tricks and how to do things, really still dump when it comes to windows but its kinda like appel,got lots of quistins like how afer all i done and coach even reboot ti for me (not useing cd but hard drives to reboot so id have apps that cost lot of money on it but cought him right in the middel of moving and i ended up getting lion 10.7.5 insed of having mountin lion 10.8.5  yes it was a big deference too miss mountin lion so much pretty bumed out that this person has done this to me kinda know who it is but cant prove it plese help ill do whatever....

    Hi
    Level 2 posters and Above can report various posts.
    When they do so they have various options that they can attribute as the issue.
    I have reported your post.
    I found the one block of text very difficult to read.
    9:36 PM      Monday; January 28, 2013
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • TS1369 Tried to restore my ipod classic on a windows computer... there was some sort of failure and it is now stuck in "disk mode."  The ipod is no longer being recognized by itunes.

    Tried to restore my ipod classic on a windows computer... there was some sort of failure and it is now stuck in "disk mode."  The ipod is no longer being recognized by itunes.

    I am having the exact same problem.  My ipod has been stuck in disk mode for over two hours and now itunes is frozen.

  • TS1702 My iPhone 4s didn't do it until the latest update so imnpretty sure it's on the apple server some sort of bug maybe? Not sure. But whatever it is I really would like to download apps. It won't let me download any apps and my phone is brand new

    My iPhone 4s didn't do it until the latest update so imnpretty sure it's on the apple server some sort of bug maybe? Not sure. But whatever it is I really would like to download apps. It won't let me download any apps and my phone is brand new.

    Sorry guysy iPhone says unable to download application at this time and I try all day and it still won't let me download no matter how hard I try.

  • How do I get firefox to display images clearly? I've got Windows 2000 Pro and Firefox 3.6.6. Internet Explorer shows images clearly, so I'm sure I have the correct graphics driver. Do I need a plugin or add-on of some sort? When I go to "updates", it

    When I use Firefox the images and logos don't show up clearly/correctly. I'm using Windows 2000 Pro. and just installed Firefox 3.6.6. I'm sure I have the right graphics driver as I'm able to see the images and logos clearly in Internet Explorer. I only have the "default plugin 1.0.0.15" installed. I'm thinking that I'm missing a plugin or add-on of some sort, but I'm not sure which one(s). When I go to "updates" it says there were no updates available. When I go to "Add-ons" it gives a list of Add-ons but I'm not sure which would help my issue. Any help would be appreciated.:)
    == This happened ==
    Every time Firefox opened
    == I decided to Download and Use Firefox on this computer. I was using IE before, and it works fine. ==
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.99 Safari/533.4

    Firefox works fine on Windows 2000 SP4 for me.
    Any chance you have a dial-up connection that uses a web accelerator to speed the loading of content?

  • TS3276 I have recently had a problem with one of my hotmail accounts, some sort of virus sending random emails to people in my address book. Hotmail advised me to change my password for that account, which I did. Why won't mail recognise the new password?

    I have recently had a problem with one of my hotmail accounts, some sort of virus sending random emails from my address book. Hotmail advised me to delete all contacts and change the password for that account, which I did on my laptop running windows XP. The change was successful and I was able to send and receive emails with no problem. I then had to change the account password on my iPhone 4s, which I did and it too was successful but when I came to change the password on my iMac, running the latest version of Lion it would not recognise the new password. I have tried to remove the account details and re-install but every time I go to add new account my old details are in the box. This is very frustrating as I use my iMac for all my profects and I need to access my email. Please help.

    hi guys,
    I had already deleted all reference to the hotmail account in question from the keychain access app, I have also tried to delete and re-instal the account details from within mail. The icon in the side bar dissapears but when I go to Add Account, the old account details are in the new account box. I then input my new password but am told that the server does not recognise it. If I access hotmail via google on the iMac I can get into my account with no problems. I am thinking there must be some other form of security system within the mac software that is blocking the new password. This is driving me nuts. I have been trying to resolve this for the last two days. Thank you for your advise anyway.

  • I believe that I have a keylogger or some sort of spyware installed on my mac, please help!

    I followed this procedure to check my files:
    Please read this whole message before doing anything.
    The following procedure will help whether your system has been modified. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac.
    These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing.
    Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects.
    Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then either copy or drag it. The headings “Step 1” and so on are not part of the commands.
    Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the page that opens.
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign.
    Step 1
    Copy or drag — do not type — the line below into the Terminal window, then press return:
    kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}'
    Post the lines of output (if any) that appear below what you just entered (the text, please, not a screenshot.) You can omit the final line ending in “$”.
    Step 2
    Repeat with this line:
    sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix)|edu\.mit|org\.(amavis|apache|cups|isc|ntp|postfix|x)/{print $3}' 
    This time, you'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. You don't need to post the warning.
    Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step.
    Step 3
    launchctl list | sed 1d | awk '!/0x|com\.apple|edu\.mit|org\.(x|openbsd)/{print $3}' 
    Step 4
    ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts 2> /dev/null 
    Step 5
    osascript -e 'tell application "System Events" to get name of every login item' 2> /dev/null 
    Remember, steps 1-5 are all drag-and-drop or copy-and-paste, whichever you prefer — no typing, except your password. Also remember to post the output.
    You can then quit Terminal.
    I believe that I have a keylogger or some sort of spyware installed on my mac, please help!
    POST YOUR OUTPUT FOR REVIEW/COMMENT.
    After running these commands, here is the output. Can you please tell me if you see anything here. I would be so grateful.
    com.oxsemi.driver.OxsemiDeviceType00 (1.28.13)
    at.obdev.nke.LittleSnitch (4052)
    Password:
    com.wdc.WDSmartWareServer
    com.wdc.WDDMservice
    com.sierrawireless.SwitchTool
    com.oracle.java.JavaUpdateHelper
    com.oracle.java.Helper-Tool
    com.microsoft.office.licensing.helper
    com.lacie.desktopmanager.service
    com.google.keystone.daemon
    com.adobe.fpsaud
    at.obdev.littlesnitchd
    jp.buffalo.NASPower
    com.oracle.java.Java-Updater
    com.lacie.eventsactions.launcher.agent
    com.hp.messagecenter.launcher
    com.hp.devicemonitor
    com.google.keystone.system.agent
    at.obdev.LittleSnitchUIAgent
    com.nds.pcshow.uninstall
    com.nds.pcshow
    com.facebook.videochat.thomasbrown.updater
    com.adobe.ARM.202f4087f2bbde52e3ac2df389f53a4f123223c9cc56a8fd83a6f7ae
    com.adobe.AAM.Scheduler-1.0
    LaCie DiscRecording/LaCie DiscRecording.pkg:
    Contents
    /Library/Address Book Plug-Ins:
    /Library/Components:
    /Library/Extensions:
    /Library/Frameworks:
    AEProfiling.framework
    AERegistration.framework
    Adobe AIR.framework
    AudioMixEngine.framework
    EWSMac.framework
    HPDeviceModel.framework
    HPPml.framework
    HPScan.framework
    HPServicesInterface.framework
    HPSmartPrint.framework
    HPSmartX.framework
    NyxAudioAnalysis.framework
    PluginManager.framework
    Snapfish.framework
    iLifeFaceRecognition.framework
    iLifeKit.framework
    iLifePageLayout.framework
    iLifeSQLAccess.framework
    iLifeSlideshow.framework
    iTunesLibrary.framework
    /Library/Input Methods:
    /Library/Internet Plug-Ins:
    AdobePDFViewer.plugin
    Flash Player.plugin
    JavaAppletPlugin.plugin
    Quartz Composer.webplugin
    QuickTime Plugin.plugin
    SharePointBrowserPlugin.plugin
    SharePointWebKitPlugin.webplugin
    Silverlight.plugin
    flashplayer.xpt
    googletalkbrowserplugin.plugin
    iPhotoPhotocast.plugin
    npgtpo3dautoplugin.plugin
    nsIQTScriptablePlugin.xpt
    o1dbrowserplugin.plugin
    /Library/Keyboard Layouts:
    /Library/LaunchAgents:
    at.obdev.LittleSnitchUIAgent.plist
    com.adobe.AAM.Updater-1.0.plist
    com.google.keystone.agent.plist
    com.hp.devicemonitor.plist
    com.hp.messagecenter.launcher.plist
    com.lacie.eventsactions.launcher.agent.plist
    com.oracle.java.Java-Updater.plist
    jp.buffalo.NASPower.plist
    jp.buffalo.NASPower_pla.plist
    /Library/LaunchDaemons:
    at.obdev.littlesnitchd.plist
    com.adobe.fpsaud.plist
    com.apple.remotepairtool.plist
    com.google.keystone.daemon.plist
    com.lacie.desktopmanager.service.plist
    com.microsoft.office.licensing.helper.plist
    com.oracle.java.Helper-Tool.plist
    com.oracle.java.JavaUpdateHelper.plist
    com.sierrawireless.SwitchTool.plist
    com.wdc.WDDMservice.plist
    com.wdc.WDSmartWareServer.plist
    /Library/PreferencePanes:
    Flash Player.prefPane
    HP Scanjet.prefPane
    JavaControlPanel.prefPane
    /Library/PrivilegedHelperTools:
    .DS_Store
    NasNavigator2.app
    com.microsoft.office.licensing.helper
    com.oracle.java.JavaUpdateHelper
    /Library/QuickLook:
    GBQLGenerator.qlgenerator
    iWork.qlgenerator
    /Library/QuickTime:
    AppleIntermediateCodec.component
    AppleMPEG2Codec.component
    /Library/ScriptingAdditions:
    /Library/Spotlight:
    GBSpotlightImporter.mdimporter
    Microsoft Entourage.mdimporter
    Microsoft Office.mdimporter
    iWeb.mdimporter
    iWork.mdimporter
    /Library/StartupItems:
    ChmodBPF
    HP IO
    LocSvc
    /etc/mach_init.d:
    /etc/mach_init_per_login_session.d:
    /etc/mach_init_per_user.d:
    Library/Address Book Plug-Ins:
    SkypeABDialer.bundle
    SkypeABSMS.bundle
    Library/Fonts:
    04b-08.suit
    Arial
    Brush Script
    Times New Roman
    Verdana
    Wingdings
    Wingdings 2
    Wingdings 3
    encodings.dir
    fonts.dir
    fonts.list
    fonts.scale
    Library/Frameworks:
    EWSMac.framework
    Library/Internet Plug-Ins:
    FacebookVideoCalling.bundle
    Move-Media-Player.plugin
    PlayerPlugin.bundle
    fbplugin_1_0_3.plugin
    Library/Keyboard Layouts:
    Library/LaunchAgents:
    com.adobe.AAM.Updater-1.0.plist
    com.adobe.ARM.202f4087f2bbde52e3ac2df389f53a4f123223c9cc56a8fd83a6f7ae.plist
    com.facebook.videochat.thomasbrown.plist
    com.nds.pcshow.plist
    com.nds.pcshow.uninstall.plist
    Library/PreferencePanes:
    Opera Preferences
    TomTomHOMERunner, LDMStatusItem, apple-scc-20130209-112927
    thank you much for helping...sincerely. tlenbro.

    I followed this procedure to check my files:
    Please read this whole message before doing anything.
    The following procedure will help whether your system has been modified. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac.
    These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing.
    Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects.
    Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then either copy or drag it. The headings “Step 1” and so on are not part of the commands.
    Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the page that opens.
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign.
    Step 1
    Copy or drag — do not type — the line below into the Terminal window, then press return:
    kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}'
    Post the lines of output (if any) that appear below what you just entered (the text, please, not a screenshot.) You can omit the final line ending in “$”.
    Step 2
    Repeat with this line:
    sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix)|edu\.mit|org\.(amavis|apache|cups|isc|ntp|postfix|x)/{print $3}' 
    This time, you'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. You don't need to post the warning.
    Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step.
    Step 3
    launchctl list | sed 1d | awk '!/0x|com\.apple|edu\.mit|org\.(x|openbsd)/{print $3}' 
    Step 4
    ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts 2> /dev/null 
    Step 5
    osascript -e 'tell application "System Events" to get name of every login item' 2> /dev/null 
    Remember, steps 1-5 are all drag-and-drop or copy-and-paste, whichever you prefer — no typing, except your password. Also remember to post the output.
    You can then quit Terminal.
    I believe that I have a keylogger or some sort of spyware installed on my mac, please help!
    POST YOUR OUTPUT FOR REVIEW/COMMENT.
    After running these commands, here is the output. Can you please tell me if you see anything here. I would be so grateful.
    com.oxsemi.driver.OxsemiDeviceType00 (1.28.13)
    at.obdev.nke.LittleSnitch (4052)
    Password:
    com.wdc.WDSmartWareServer
    com.wdc.WDDMservice
    com.sierrawireless.SwitchTool
    com.oracle.java.JavaUpdateHelper
    com.oracle.java.Helper-Tool
    com.microsoft.office.licensing.helper
    com.lacie.desktopmanager.service
    com.google.keystone.daemon
    com.adobe.fpsaud
    at.obdev.littlesnitchd
    jp.buffalo.NASPower
    com.oracle.java.Java-Updater
    com.lacie.eventsactions.launcher.agent
    com.hp.messagecenter.launcher
    com.hp.devicemonitor
    com.google.keystone.system.agent
    at.obdev.LittleSnitchUIAgent
    com.nds.pcshow.uninstall
    com.nds.pcshow
    com.facebook.videochat.thomasbrown.updater
    com.adobe.ARM.202f4087f2bbde52e3ac2df389f53a4f123223c9cc56a8fd83a6f7ae
    com.adobe.AAM.Scheduler-1.0
    LaCie DiscRecording/LaCie DiscRecording.pkg:
    Contents
    /Library/Address Book Plug-Ins:
    /Library/Components:
    /Library/Extensions:
    /Library/Frameworks:
    AEProfiling.framework
    AERegistration.framework
    Adobe AIR.framework
    AudioMixEngine.framework
    EWSMac.framework
    HPDeviceModel.framework
    HPPml.framework
    HPScan.framework
    HPServicesInterface.framework
    HPSmartPrint.framework
    HPSmartX.framework
    NyxAudioAnalysis.framework
    PluginManager.framework
    Snapfish.framework
    iLifeFaceRecognition.framework
    iLifeKit.framework
    iLifePageLayout.framework
    iLifeSQLAccess.framework
    iLifeSlideshow.framework
    iTunesLibrary.framework
    /Library/Input Methods:
    /Library/Internet Plug-Ins:
    AdobePDFViewer.plugin
    Flash Player.plugin
    JavaAppletPlugin.plugin
    Quartz Composer.webplugin
    QuickTime Plugin.plugin
    SharePointBrowserPlugin.plugin
    SharePointWebKitPlugin.webplugin
    Silverlight.plugin
    flashplayer.xpt
    googletalkbrowserplugin.plugin
    iPhotoPhotocast.plugin
    npgtpo3dautoplugin.plugin
    nsIQTScriptablePlugin.xpt
    o1dbrowserplugin.plugin
    /Library/Keyboard Layouts:
    /Library/LaunchAgents:
    at.obdev.LittleSnitchUIAgent.plist
    com.adobe.AAM.Updater-1.0.plist
    com.google.keystone.agent.plist
    com.hp.devicemonitor.plist
    com.hp.messagecenter.launcher.plist
    com.lacie.eventsactions.launcher.agent.plist
    com.oracle.java.Java-Updater.plist
    jp.buffalo.NASPower.plist
    jp.buffalo.NASPower_pla.plist
    /Library/LaunchDaemons:
    at.obdev.littlesnitchd.plist
    com.adobe.fpsaud.plist
    com.apple.remotepairtool.plist
    com.google.keystone.daemon.plist
    com.lacie.desktopmanager.service.plist
    com.microsoft.office.licensing.helper.plist
    com.oracle.java.Helper-Tool.plist
    com.oracle.java.JavaUpdateHelper.plist
    com.sierrawireless.SwitchTool.plist
    com.wdc.WDDMservice.plist
    com.wdc.WDSmartWareServer.plist
    /Library/PreferencePanes:
    Flash Player.prefPane
    HP Scanjet.prefPane
    JavaControlPanel.prefPane
    /Library/PrivilegedHelperTools:
    .DS_Store
    NasNavigator2.app
    com.microsoft.office.licensing.helper
    com.oracle.java.JavaUpdateHelper
    /Library/QuickLook:
    GBQLGenerator.qlgenerator
    iWork.qlgenerator
    /Library/QuickTime:
    AppleIntermediateCodec.component
    AppleMPEG2Codec.component
    /Library/ScriptingAdditions:
    /Library/Spotlight:
    GBSpotlightImporter.mdimporter
    Microsoft Entourage.mdimporter
    Microsoft Office.mdimporter
    iWeb.mdimporter
    iWork.mdimporter
    /Library/StartupItems:
    ChmodBPF
    HP IO
    LocSvc
    /etc/mach_init.d:
    /etc/mach_init_per_login_session.d:
    /etc/mach_init_per_user.d:
    Library/Address Book Plug-Ins:
    SkypeABDialer.bundle
    SkypeABSMS.bundle
    Library/Fonts:
    04b-08.suit
    Arial
    Brush Script
    Times New Roman
    Verdana
    Wingdings
    Wingdings 2
    Wingdings 3
    encodings.dir
    fonts.dir
    fonts.list
    fonts.scale
    Library/Frameworks:
    EWSMac.framework
    Library/Internet Plug-Ins:
    FacebookVideoCalling.bundle
    Move-Media-Player.plugin
    PlayerPlugin.bundle
    fbplugin_1_0_3.plugin
    Library/Keyboard Layouts:
    Library/LaunchAgents:
    com.adobe.AAM.Updater-1.0.plist
    com.adobe.ARM.202f4087f2bbde52e3ac2df389f53a4f123223c9cc56a8fd83a6f7ae.plist
    com.facebook.videochat.thomasbrown.plist
    com.nds.pcshow.plist
    com.nds.pcshow.uninstall.plist
    Library/PreferencePanes:
    Opera Preferences
    TomTomHOMERunner, LDMStatusItem, apple-scc-20130209-112927
    thank you much for helping...sincerely. tlenbro.

  • I am moving to Alice Springs, Australia, this summer from the U.S. I would like to get the new iPad. How can I found out if I will be able to access all the functionality in Alice? Will I need to purchase a local plan of some sort?

    I am moving to Alice Springs, Australia, this summer from the U.S. I would like to get the new iPad to use while traveling back and forth from the U.S. to Australia, and within Australia. How can I found out if I will be able to access all the functionality of the iPad in Alice? Will I need to purchase a local plan of some sort? I have never owned an Apple product before -- I'm a newby!

    Aside form the limitation of LTE to the 700MHz and 2.1GHz bands (which rules out LTE in Europe I gather, at least as it stands now) the new iPad should let you use a GSM 3g/2g/edge network anywhere.  The CDMA Verizon model will only be able to use it's native CDMA radio band in the USA (that radio will be locked to Verizon), but it's international GSM radio is the same as the AT&T model.
    Keep in mind though that by far the cheapest option when abroad is to take advantage of free wifi as much as possible (well, that is always the cheapest option, since it is free).  I know several people who have taken their wifi-only iPads and iPad2s to Europe and said they did not find the lack of 3G really inconvenient at all as most towns had plenty of free or cheap wifi access all over the place.
    And in 3 years, your iPad will be at least 2-3 generations behind, LTE will have already been replaced by 5G or whatever the next new generation of cellular ends up being named (and the "young" kids will be wondering what the heck 3G even means or meant - dang that stuff was from the olden days!), and you can pitch that ancient piece of technology and start things all over again 

  • I uploaded that new IOS 8.0 and now I cannot open my mail, Safari, or the new "TIPS" app. Does Apple have some sort of help, other than going to a store that is over 40 miles away?

    I uploaded that new IOS 8.0 and now I cannot open my mail, Safari, or the new "TIPS" app. Does Apple have some sort of help, other than going to a store that is over 40 miles away?

    Purplehiddledog wrote:
    I do backup with iCloud.  I can't wait until the new iMac is available so that I can once again have my files in more than 1 location without needing to rely solely on the cloud. 
    I also rely on iTunes and my MacBook and Time Machine as well as backing up to iCloud. I know many users know have gone totally PC free, but I chose to use iCloud merely as my third backup.
    I assume that the restore would result in my ability to open Pages and Numbers and fix the problem with deleting apps, but this would also mean that if my Numbers documents still exist solely within the app and are just not on iCloud for some reason that they would be gone forever.  Is that right?
    In a word, yes. In a little more detail.... When you restore from an iCloud backup, you must erase the device and start all over again. There is no other way to access the backup in iCloud without erasing the device. Consequently, you are starting all over again. Therefore, it would also be my assumption that Pages and Numbers will work again and that the deleting apps issues would be fixed as well.
    If the documents are not in the backup, and you do not have a backup elsewhere, the documents could be gone forever.

  • TS1474 I have missing content in my iTunes library, there is no way to contact support unless you have some sort of serial number.  My computer is not an apple computer but can't call them without it.  Only 256  songs showing up;  I had 8,000 songs on my

    I am so done with this.  8,000 songs on my iTunes app and now I only have 256 songs!!  I purchased a new computer and had backed up all my content onto an external hard drive.  When I downloaded the content onto the new computer, I was unable to access my music for 90 days!!  What a bunch of BS!  $8,000 down the drain, just like that.  This is ludicruis!  I have tried to contact support but they require some sort of serial number, don't have one, this is not an Apple computer.  So their support ***** as they only give you one option to contact them.  I still have my content on the back up but am afraid to re-download in fear I won't have access to the material for another 90 days!  Has anyone else had this problem?  I feel like I've been ripped off!
    Oh, right, in order for me to post this message I had to select a community.  If I don't, it won't post it.  What a bunch of control freaks! I'm just going to select one to get this posted and hopefully, someone can help me.

    Try:                                               
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable       
    - Try on another computer                            
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar                              
    and
    Not Charge
    - See:    
    iPod touch: Hardware troubleshooting
    iPhone and iPod touch: Charging the battery
    - Try another cable. The cable for 5G iPod (lightning connector) seems to be more prone to failure than the older cable.
    - If a 5G iPod      
    Iphone 5 lightning port charging problem - SOLUTION!
    - Try another charging source
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Make an appointment at the Genius Bar of an Apple store.
      Apple Retail Store - Genius Bar
    To fine SN
    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number
    However, Apple will charge you for telephne support since you our not within warranty

Maybe you are looking for

  • Opening Balance differes from closing balance

    Dear Friends, Thanks for your mails but i am unabale to open the below sap note Please see the SAP Note : 402917. How to open the note can anyone guide me ? Please Thanks in advance. With regards Anil

  • The dashboard propmt not showing desired results

    Hi, I have propmt created using this condition.But it is not showing me the desired results.The code seems to be correct.any help plz... case when TimeStampDiff(SQL_TSI_DAY,"TB1".CL1,CURRENT_DATE) between 0 and 30 or TimeStampDiff(SQL_TSI_DAY,"TB1".C

  • Preferred file type for photos in motion

    tying to add motion to photos, friend told me to use tiffs, usually use jpegs (300dpi) for wedding montages, some photos are very small so I have to scale to fit a 1080I video format. 1) Tiff or Jpegs, trying to avoid artifacting 2) Should all color

  • Flash videos on facebook freeze when mouse rolls over

    When I move my mouse pointer onto a flash video on facebook, the video freeze. The audio does not. Mostly noticed with youtube videos posted on facebook. No other sites showing this problem.

  • Eliminating ###'s after hex reconversion to char string

    This is interesting. I was originally required to pass a segment to my subroutine. I had to do so using text literals. The   symbol is not recognizable by text literals. Therefore, I had to convert the entire string to hex. I then passed the hex segm