Skipping a path using find in user directory

Does anyone know the syntax to search for a filename through the user directory, but skipping at least one (maybe more) paths within that user directory? I have tried this:
find /Users/casdvm \( -name AlbumData.xml \! -path /Users/casdvm/Library/iApps \)
and this:
find /Users/casdvm -name AlbumData.xml \! -path /Users/casdvm/Library/iApps
And the results are the same for each:
/Users/casdvm/Documents/Cathouse/AlbumData.xml
/Users/casdvm/Documents/Family/AlbumData.xml
/Users/casdvm/Library/iApps/iPhoto/AlbumData.xml
/Users/casdvm/Pictures/iPhoto Library/AlbumData.xml
/Users/casdvm/Pictures/Review01/AlbumData.xml
How can I return all the files EXCEPT the one in the /Users/casdvm/Library/iApps path?

Hi casdvm,
   The -path argument only evaluates to true if the argument matches the absolute path to the file being tested exactly, not as a substring. However, it will accept shell wildcards so you could use something like:
find /Users/casdvm -name AlbumData.xml \! -path /Users/casdvm/Library/iApps/\*
or even:
find /Users/casdvm -name AlbumData.xml \! -path /Users/casdvm/Library/\*
Gary
~~~~
   Better to be nouveau than never to have been riche at all.

Similar Messages

  • EPM Provisioning when using an external user directory

    I intend to use an external user directory, probably MSAD.
    Now from what I understand provisioning is done within native directory. How do I get the users which exist in the external user directory to show up in native directory OR how do I go about provisioning users who exist in the external user directory?

    I did see that link, and while I understand what needs to be done to configure the external user directory, my confusion is this:
    Once the external user directory is configured, I will see the users in shared services under the section "OID" or "MSAD" in user directories. That is fine. Now I want to provision and start assigning hyperion roles such as administrator, planner etc to the users. As per the documentation, only users in native directory can be assigned provisioning. However, I seem to be able to right click on a user under MSAD and provision it.
    So my confusion is, it seems that I can provision users listed under the external directory. So why does documentation say provisioning is done to users in Native directory. If that is indeed the case, then how do I get users in external directory into Native directory within Shared Services?

  • Black Berry Messenger, using & finding other users, Does anyone use the B Berry Messenger ?

    Does anyone else USE or have the Black Berry Messenger on their 8330 CURVE model B Berry ? If so, r u social enuf to wanna meet other B Berry users ONLINE and How do I find other Black Berry Messenger users to communicate / chat with directly ? My BlackBerry e-mail address is :[removed personal information] thank U in advance. I have had my phone only about one week or so and am definitely in the "LEARNING CURVE" about it ! Thanks again !      Sincerely                                                                                                                                                    Charles in Norfolk,Va. USA 
    Message Edited by dany_s on 01-26-2009 01:09 PM
    From the Black Berry of Charles W. Merritt
    Solved!
    Go to Solution.

    cwm1955 wrote:
    Dear Mr. XANDREX                                                                                                                                             I have already read alot of the "HELP" documentation on my device. NONE of it covers ANY of my three (3) issues here! My issues are ADVANCED and the HELP documentation is meant for a VERY 101 BASICS beginner. I am really looking for help here, your response did NOT help me ! While I thank U for your valuable time in responding, NO THANK U since U did NOT help me ! I WANT SOMEONE THAT REALLY HAS KNOWLEDGE OF MY ISSUES and how to REALLY HELP ME !People if U cannot REALLY POSITIVELY ASSIST me with REAL ANSWERS to my REAL ISSUES , please DO NOT WASTE MY VALUABLE TIME AND YOURS AS WELL! THANK U ALL IN ADVANCE !                                                                         Sincerely                                                                                                                                                     CHARLES 
    Wait, Sir Charles.
    1. The two of us have offered you very valuable adivce, which you indicate in both cases you wish to ignore.
    2. You have NOT mentioned any issues in your first post here other than you wish to be social, and now in your second post that you don't know how to add contact and wish me to email you directions. I don't give personal service, as a volunteer I answer questions right here in the threads.You'll just have to suffer through asking questions right here. It's a great forum where thousands of users have gotten help. And often, quite speadily as well.
    3. Your last post is quite rude to a user who has spent lots of time helping users out around here, and quite honestly your words are uncalled for. Your ALL CAPS typing is considered yelling on internet forums such as this. No one likes to be yelled at. My mother taught me about gathering flys with honey rather than vinegar. You might try some honey yourself.
    4. Adding BBMessenger contacts. Open BBMessenger > Menu > Add Contacts. Enter either the PIN of the other user you desire to add, or their email address. IF THEY are already on your BB Address Book, you can enter their name there. Follow the prompts you are given.
    Message Edited by JSanders on 01-26-2009 08:30 AM
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How to disable the User directory in Shared Services?

    Hello,
    We need to disable (Not Delete) the User Directory in Hyperion Shared Services. We are using the Hyperion version 9.3.1. Is there a way we can do this?
    Thanks
    S

    From the 9.3.1 docs:
    "If you do not want to use a configured user directory that was used for provisioning, remove it from the search order so that the user directory is not searched for users and groups. This action maintains the integrity of provisioning information. It also enables you to use the user directory at a later time, if needed."
    http://docs.oracle.com/cd/E10530_01/doc/epm.931/html_cas_help/frameset.htm?removesearchord.htm
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • I have a 2nd gen Mac book air with Lion. The hard disk has filled up even though i keep my data , music etc on hard drive . I used disk inspector to find where problem was and it is 20GB in the hidden files under the user directory can i resolve this ?

    I have a 2nd Gen MAc book Air with Lion .  The 60GB hard disc has quickly filled up despite me keeping most of my data on a portable hard drive .  I used disk inspector to locate the problem but found that it was was in 20 GB of hidden files in my user directory .  Is this correct and is there anything i can do about it ? Using disk inspector you can not see individual hudden diretories or files. I did unhide them but there is a mass of diretories etc and so no way i could see if this is one or multiple files using the space. Library System and  Applications are at 4 3 and 3 GB respectvely.  The data I actually keep on there is 9GB    Thanks for any help

    I think the problem is Quick Time Player. I am using OS 10.6.8 by the way.
    I tried it out again.
    I had about 26 GB of space before I played an .avi video.
    After the movie started to play (it was slow to load), I got a warning message that my startup disk was full. I opened Disk Utility and it told me I had no space left (about 20 MB or something like that was left).
    I watched to the end of the movie.
    Then I quit Quicktime Player.
    And I shut down the computer.
    I turned on the computer and checked Disk Utility. I have about 26 GB of space.
    I think for some reason Quicktime Player uses up a lot of the disk space when it runs movies that are problematic. This movie I was watching did not open with vlc.
    I normally use vlc to watch movies.
    Probably it doesn't use up this much space when the movie is OK.
    I think there's a problem with this particular movie. It is about 50 MB so it's not that big a file. I watch .smi subtitles with it. The Quicktime Player automatically loads the subtitle file in this case because the subtitle file has the same name as the movie file.
    I watched about 10 movie files from the same series that I downloaded together and did not have any problem watching them. I watched them on vlc. But this latest movie had problems I think (as I repeat). It did not load on vlc even though I waited for a minute, and normally movies load instantly on vlc. 
    So I think that movie file caused problems. It made QT player use up a lot of hard disk space.
    I had better avoid watching that movie in the future. I don't want it to wreck my hard drive.
    So to sum up, everything is back to normal. I have the hard disk space that I should have. However, I am scared of damaging my hard drive due to shonky movie files that eat up all the space when they are played using QT player, and so I will not watch those files in the future, as I do not know why the files do that.

  • How to use External Drive for Users Directory

    I just did a clean install on my Mac Mini - I have over 4 TB of storage attached, but the main drive (160 GB) keeps filling up. What is the best way to have the Users directory located on an external drive?
    Thanks for your help,
    Chris

    Think about it for a second. What would happen if that external drive wasn't connected for some reason? Maybe it died the night before, as external drives have a habit of doing. How are you going to log into the system?
    If the main drive is filling up, it says that you aren't making effective use of the attached storage. There's nothing saying you have to keep video files in the Movies folder, and music in the Music folder, etc. Find some things, that aren't your user profile, and move them to your external storage. Or consider putting in a larger internal drive.
    < Edited by Host >

  • Could not find agent library on the library path or in the local directory

    Hi all,
    I'm trying to write a jvmti agent that write any information in a mysql db. I've written a simple agent that work correctly and now I'll try to insert the mysqlpp library in my agent:
    1) I've added #include <mysql++.h>
    2) and I've added mysqlpp::Connection      conn(false); (global variable)
    I've modify my Makefile and the compiler and linker work correctly but when I test the agent the VM says "Could not find agent library on the library path or in the local directory"
    Below the code:
    -- analizer.cpp --
    #include <iostream>
    #include <stdlib.h>
    #include <jni.h>
    #include <string.h>
    #include <jvmti.h>
    #include <mysql++.h>
    #include "ClassDetail.cpp"
    #define CFN(ptr) checkForNull(ptr, __FILE__, __LINE__);
    static void checkForNull(void *ptr, const char* file, int line) {
        if(ptr == NULL) {
            std::cerr << "ERROR : NullPointerException in " << file <<":"<< line<<"\n";
            abort();
    static char* getErrorName(jvmtiEnv *jvmti, jvmtiError err) {
        jvmtiError errNum;
        char *name;
        errNum = jvmti->GetErrorName(err, &name);
        if( errNum != JVMTI_ERROR_NONE) {
            std::cerr << "ERROR : errore nel reprire l'error name " << errNum;
            abort();
        return name;
    #define CJVMTIE(jvmti, err) checkJvmtiError(jvmti, err, __FILE__, __LINE__);
    static void checkJvmtiError(jvmtiEnv *jvmti, jvmtiError err, const char* file, int line) {
        if(err != JVMTI_ERROR_NONE) {
            char *name = getErrorName(jvmti, err);
            std::cout << "ERROR : JVMTI error " << err << "("<<name<<") in "<<file<<":"<<line;
            abort();
    static void vmInit(jvmtiEnv *jvmti_env, JNIEnv *jni, jthread thread);
    static void startGCEvent(jvmtiEnv *jvmti_env);
    static void finishGCEvent(jvmtiEnv *jvmti_env);
    static jvmtiIterationControl JNICALL heapObject(jlong tag, jlong size, jlong* tag_ptr, void* userData);
    jrawMonitorID           lock;
    int                     gc_count;
    long                    heapSize = 0;
    bool                    heapCheck = false;
    mysqlpp::Connection      conn(false);
    JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM *vm, char *options, void *reserved) {
        std::cout<<"OnLoad\n";
        jint                rc;
        jvmtiEnv            *jvmti = NULL;
        jvmtiError          err;
        jvmtiCapabilities   capabilities;
        jvmtiEventCallbacks callbacks;
        rc = vm->GetEnv((void **)&jvmti, JVMTI_VERSION);
        if( rc != JNI_OK) {
            std::cout << "ERROR : Errore nell'ottenere 'environment rc = " << rc;
            return -1;
        CFN(jvmti);
        err = jvmti->GetCapabilities(&capabilities);
        CJVMTIE(jvmti, err);
        CFN(&capabilities);
        capabilities.can_generate_garbage_collection_events = true;
        capabilities.can_tag_objects = true;
        CJVMTIE(jvmti, jvmti->AddCapabilities(&capabilities));
        CJVMTIE(jvmti, jvmti->CreateRawMonitor("agent lock", &lock));
        callbacks.VMInit = &vmInit;
        callbacks.GarbageCollectionStart = &startGCEvent;
        callbacks.GarbageCollectionFinish = &finishGCEvent;
        CJVMTIE(jvmti, jvmti->SetEventCallbacks(&callbacks, sizeof(callbacks)));
        jvmti->SetEventNotificationMode(JVMTI_ENABLE, JVMTI_EVENT_VM_INIT, NULL);
        jvmti->SetEventNotificationMode(JVMTI_ENABLE, JVMTI_EVENT_GARBAGE_COLLECTION_START, NULL);
        jvmti->SetEventNotificationMode(JVMTI_ENABLE, JVMTI_EVENT_GARBAGE_COLLECTION_FINISH, NULL);
        return 0;
    JNIEXPORT void JNICALL Agent_OnUnload(JavaVM *vm)
        std::cout<<"OnUnload\n";
    static void JNICALL worker(jvmtiEnv *jvmti, JNIEnv *jni, void *p) {
        std::cout << "worker";
        for (;;) {
            CJVMTIE(jvmti, jvmti->RawMonitorEnter(lock));
            while (gc_count == 0) {
                CJVMTIE(jvmti, jvmti->RawMonitorWait(lock, 0));
                jvmti->RawMonitorExit(lock);
            gc_count = 0;
            jvmti->RawMonitorExit(lock);
            /* Perform arbitrary JVMTI/JNI work here to do post-GC cleanup */
            if(!heapCheck) {
                heapCheck = true;
                jint        count;
                jclass    *classes;
                CJVMTIE(jvmti, jvmti->GetLoadedClasses(&count, &classes));
                ClassDetail *details = (ClassDetail*)calloc(sizeof(ClassDetail), count);
                for(int i = 0; i < count; i++) {
                    char *sig;
                    CJVMTIE(jvmti, jvmti->GetClassSignature(classes, &sig, NULL));
    CFN(sig);
    details[i] = ClassDetail(strdup(sig));
    CJVMTIE(jvmti, jvmti->SetTag(classes[i], (jlong)(ptrdiff_t)(void*) (&details[i])));
    heapSize = 0;
    CJVMTIE(jvmti, jvmti->IterateOverHeap(JVMTI_HEAP_OBJECT_EITHER, &heapObject, NULL));
    std::cout << "Heap Memory : " << heapSize<<'\n';
    heapCheck = false;
    static void vmInit(jvmtiEnv jvmti, JNIEnv jni, jthread thread) {
    jclass clazz = jni->FindClass("java/lang/Thread");
    jmethodID mid = jni->GetMethodID(clazz, "<init>", "()V");
    jthread _thread = jni->NewObject(clazz, mid);
    CJVMTIE(jvmti, jvmti->RunAgentThread(_thread, &worker, NULL, JVMTI_THREAD_MAX_PRIORITY));
    static void startGCEvent(jvmtiEnv *jvmti) {
    static void finishGCEvent(jvmtiEnv *jvmti) {
    std::cout << "****************************************************************** <<<<<<<<<<<< Finito gc\n";
    gc_count++;
    CJVMTIE(jvmti,jvmti->RawMonitorEnter(lock));
    CJVMTIE(jvmti,jvmti->RawMonitorNotify(lock));
    CJVMTIE(jvmti,jvmti->RawMonitorExit(lock));
    static jvmtiIterationControl JNICALL heapObject(jlong tag, jlong size, jlong* tag_ptr, void* userData) {
    if(tag != (jlong) 0) {
    std::cout << "Tag : " << tag<< '\n';
    ClassDetail detail = (ClassDetail) (void*) (ptrdiff_t) tag;
    char *sig = detail->getSignature();
    std::cout << "Class " << sig << " size : " << size<<'\n';
    heapSize += size;
    return JVMTI_ITERATION_CONTINUE;
    -- ClassDetail.cpp --class ClassDetail {
    private:
    char* signature;
    public:
    ClassDetail(char* signature){
    this->signature = signature;
    char* getSignature() { return this->signature;}
    --Makefile--########################################################################
    # Sample GNU Makefile for building JVMTI Demo waiters
    # Example uses:
    # gnumake JDK=<java_home> OSNAME=solaris [OPT=true] [LIBARCH=sparc]
    # gnumake JDK=<java_home> OSNAME=solaris [OPT=true] [LIBARCH=sparcv9]
    # gnumake JDK=<java_home> OSNAME=linux [OPT=true]
    # gnumake JDK=<java_home> OSNAME=win32 [OPT=true]
    # Source lists
    LIBNAME=analizer
    SOURCES=analizer.cpp
    MYSQLPP_LIB_PATH=/home/claudio/Desktop/Scaricati2/mysql++-3.0.6/mysqlpp_lib/lib/
    MYSQLPP_HEADER_PATH=/home/claudio/Desktop/Scaricati2/mysql++-3.0.6/mysqlpp_lib/include/mysql++
    MYSQL_PATH=/opt/mysql-5.0.51a-linux-i686-icc-glibc23
    # Solaris Sun C Compiler Version 5.5
    ifeq ($(OSNAME), solaris)
    # Tell gnumake which compilers to use
    CC=cc
    CXX=CC
    # Sun Solaris Compiler options needed
    COMMON_FLAGS=-mt -KPIC
    # Check LIBARCH for any special compiler options
    LIBARCH=$(shell uname -p)
    ifeq ($(LIBARCH), sparc)
    COMMON_FLAGS+=-xarch=v8 -xregs=no%appl
    endif
    ifeq ($(LIBARCH), sparcv9)
    COMMON_FLAGS+=-xarch=v9 -xregs=no%appl
    endif
    ifeq ($(OPT), true)
    CXXFLAGS=-xO2 $(COMMON_FLAGS)
    else
    CXXFLAGS=-g $(COMMON_FLAGS)
    endif
    # Object files needed to create library
    OBJECTS=$(SOURCES:%.cpp=%.o)
    # Library name and options needed to build it
    LIBRARY=lib$(LIBNAME).so
    LDFLAGS=-z defs -ztext
    # Libraries we are dependent on
    LIBRARIES= -lc
    # Building a shared library
    LINK_SHARED=$(LINK.cc) -G -o $@
    endif
    # Linux GNU C Compiler
    ifeq ($(OSNAME), linux)
    # GNU Compiler options needed to build it
    COMMON_FLAGS=-fno-strict-aliasing -fPIC -fno-omit-frame-pointer
    # Options that help find errors
    COMMON_FLAGS+= -W -Wall -Wno-unused -Wno-parentheses
    ifeq ($(OPT), true)
    CXXFLAGS=-O2 $(COMMON_FLAGS)
    else
    CXXFLAGS=-g $(COMMON_FLAGS)
    endif
    # Object files needed to create library
    OBJECTS=$(SOURCES:%.cpp=%.o)
    # Library name and options needed to build it
    LIBRARY=lib$(LIBNAME).so
    LDFLAGS=-Wl,-soname=$(LIBRARY) -static-libgcc -mimpure-text
    LDFLAGS += -lmysqlpp
    # Libraries we are dependent on
    LIBRARIES=
    # Building a shared library
    LINK_SHARED=$(LINK.cc) -shared -o $@
    endif
    # Windows Microsoft C/C++ Optimizing Compiler Version 12
    ifeq ($(OSNAME), win32)
    CC=cl
    # Compiler options needed to build it
    COMMON_FLAGS=-Gy -DWIN32
    # Options that help find errors
    COMMON_FLAGS+=-W0 -WX
    ifeq ($(OPT), true)
    CXXFLAGS= -Ox -Op -Zi $(COMMON_FLAGS)
    else
    CXXFLAGS= -Od -Zi $(COMMON_FLAGS)
    endif
    # Object files needed to create library
    OBJECTS=$(SOURCES:%.cpp=%.obj)
    # Library name and options needed to build it
    LIBRARY=$(LIBNAME).dll
    LDFLAGS=
    # Libraries we are dependent on
    LIBRARIES=
    # Building a shared library
    LINK_SHARED=link -dll -out:$@
    endif
    # Common -I options
    CXXFLAGS += -I.
    #CXXFLAGS += -I../agent_util
    CXXFLAGS += -I$(JDK)/include -I$(JDK)/include/$(OSNAME)
    CXXFLAGS += -I$(MYSQLPP_HEADER_PATH) -I$(MYSQL_PATH)/include -L$(MYSQLPP_LIB_PATH) -I$(MYSQLPP_LIB_PATH)
    # Default rule
    all: $(LIBRARY)
    # Build native library
    $(LIBRARY): $(OBJECTS)
         $(LINK_SHARED) $(OBJECTS) $(LIBRARIES)
    # Cleanup the built bits
    clean:
         rm -f $(LIBRARY) $(OBJECTS)
    # Simple tester
    test: all
         LD_LIBRARY_PATH=`pwd` $(JDK)/bin/java -agentlib:$(LIBNAME) -jar jvmti-test.jar
         #LD_LIBRARY_PATH=`pwd` $(JDK)/bin/java -agentlib:$(LIBNAME) -version
    # Compilation rule only needed on Windows
    ifeq ($(OSNAME), win32)
    %.obj: %.cpp
         $(COMPILE.cc) $<
    endif

    Did you make sure your library (call it x) starts is named libx.so (atleast, on linux, possibly libx.dll on windows, not sure)? It will not load otherwise, and you must specify -agentlib:x (rather than saying libx.so). Yes, it is "funny" how it gives the same uninformative error message for a wide variety of errors. It will also give you this same error message if there are still unresolved symbols upon loading your library (which would be my second guess).

  • How to find the users of teamviewer using oracle database?

    Friends,
    DB: 9iR2
    OS: RHEL AS 3
    Client pc: win xp
    We have 3 branches. One of our user accessed our application from the other branch using teamviewer.
    is it possible to find the user from the database side?
    i mean from the v$session or from any other table.
    thanks

    Hello,
    you can use folloiwng script to see the OS user, database user and the programme they are using to connect to database.
    SET TRIMSPOOL ON TRIMOUT ON ECHO OFF VERIFY OFF HEAD OFF FEEDBACK ON LIN 150 PAGES 10000
    set linesize 150
    CLEAR BREAKS COMPUTES
    COL type_grp NOPRINT
    COL logon_time NOPRINT
    COL logontime FOR A14
    COL osuser FOR A21
    COL username FOR A28
    COL lastcall FOR A14
    COL program FOR A50
    --COL program   FOR A&plen
    BREAK ON type_grp SKIP 1
    --PROMPT
    PROMPT **************************************************************** SESSIONS INFORMATION ****************************************************************
    PROMPT
    PROMPT |------- O/S -------|--------- ORACLE ----------| Logon | Last Call | |
    PROMPT |Username | Pid |Username | Pid | 'SID,Ser#'| DateTime | DateTime | TYPE | PROGRAM
    PROMPT |_________|_________|_________|_____|___________|______________|______________|__________|____________________________________________________________
    SELECT ' '||rpad(nvl(osuser,p.username), 9) ||lpad(nvl(s.process,p.spid), 10) osuser,
    rpad(nvl(s.username,' '),9) ||lpad(decode(s.sid,'','',p.spid), 6) ||lpad(decode(s.sid,'','',''''||s.sid||','||s.serial#||''''),12) username,
    to_char(logon_time,'mm/dd hh24:mi:ss') logontime,
    to_char(sysdate - (s.LAST_CALL_ET / 86400),'mm/dd hh24:mi:ss') lastcall,
    s.type,
    nvl(s.program, p.program) program,
    s.type type_grp,
    logon_time
    FROM v$session s, v$process p
    WHERE spid is not null
    AND s.paddr (+) = p.addr and s.username not in('SYS','SYSTEM','SYSMAN','DBSNMP')
    ORDER BY s.type, logon_time, s.sid;
    set head on;
    Regards,
    Anil Malkai

  • Query to find out the time used by an user for an application

    Hello All,
    I want to know the query to find out the whole time used by the user for an application. Please view the below data
    Employee:
    SNO EMP_ID EMP_NAME EMP_DATE LOGIN_TIME LOGOUT_TIME
    1 10 Visu 21-Nov-2010 06:30:00 07:30:00
    2 10 Visu 21-Nov-2010 06:40:00 07:20:00
    3 10 Visu 21-Nov-2010 06:50:00 07:50:00
    4 10 Visu 21-Nov-2010 07:30:00 08:30:00
    5 10 Visu 21-Nov-2010 09:30:00 10:30:00
    By checking the above data we can say that the total time Visu used the application is
    8.30 - 6.30 (From 1,2,3,4 records) = 2hrs
    10.30 - 9.30 (Based on 5th rec) = 1hr
    So the total time Visu used the application would be 3 hrs = 180 mins.
    Could you please help me in getting the result from that data using a query?

    odie_63 wrote:
    I think it may be solved with analytics too.
    with t1 as (
                select 1 sno,10 emp_id,'Visu' emp_name,'21-Nov-2010' emp_date,'06:30:00' login_time,'07:30:00' logout_time from dual union all
                select 2,10,'Visu','21-Nov-2010','06:40:00','07:20:00' from dual union all
                select 3,10,'Visu','21-Nov-2010','06:50:00','07:50:00' from dual union all
                select 4,10,'Visu','21-Nov-2010','07:30:00','08:30:00' from dual union all
                select 5,10,'Visu','21-Nov-2010','09:30:00','10:30:00' from dual
         t2 as (
                select  emp_id,
                        emp_name,
                        emp_date,
                        to_date(emp_date || login_time,'DD-MON-YYYYHH24:MI:SS') login_time,
                        to_date(emp_date || logout_time,'DD-MON-YYYYHH24:MI:SS') logout_time
                  from  t1
         t3 as (
                select  t2.*,
                        case
                          when login_time < max(logout_time) over(
                                                                  partition by emp_id,emp_date
                                                                  order by login_time
                                                                  rows between unbounded preceding
                                                                           and 1 preceding
                            then 0
                          else 1
                        end start_of_group
                  from  t2
         t4 as (
                select  t3.*,
                        sum(start_of_group) over(partition by emp_id,emp_date order by login_time) grp
                  from  t3
         t5 as (
                select  emp_id,
                        emp_date,
                        min(login_time) login_time,
                        max(logout_time) logout_time
                  from  t4
                  group by emp_id,
                           emp_date,
                           grp
    select  emp_id,
            numtodsinterval(sum(logout_time - login_time),'day') time_spent
      from  t5
      group by emp_id
      order by emp_id
        EMP_ID TIME_SPENT
            10 +000000000 03:00:00.000000000
    SQL> SY.

  • I am trying to use Find My Phone for people to follow me on the NYC Marathon next week.  Is there a way to set up a temporary User ID and Password to give out to people for this purpose?  I would obviously want to delete that log in info after the race.

    I would like to use Find My Phone for friends and family to follow me during the NYC Marathon next week.  Is there a way to set up or temporarily change my User ID and Password for this purpose?

    New York Runners has an app that is specially designed to do exactly that. It's (or will be) available in the App Store.
    http://www.nytimes.com/2011/10/27/sports/for-new-york-city-marathons-fans-a-cell phone-app-to-keep-in-touch.html?ref=technology
    You might also look at apps like RunMeter. It will let you send updates by email, Facebook or Twitter. Glympse is another app that, though not designed specifically for runners, might also be useful.

  • I lost an xcel doc. Tried to find the Library folder in Users not there when use Finder. But when trying to upload a photo, iphoto found the library folder I can see my doc in Office 2011 Autorecov, but can't access it! How do I get User to show Library

    I lost an xcel doc a couple of days ago. Tried to find the Library folder in Users but not there when I use Finder (even when I do shift-command-G). But when trying to upload a photo in iphoto I found the library folder in Users. I can see my doc in Office 2011 Autorecovery, but can't access it! How do I get User to show Library then I can get to my long lost document?

    The auto recovery dat should be in the Microsoft User Data folder in your documents folder, not in the Library. However, I Haven't had to look recently.

  • How to find which all workbook is using Database function ( User Defined)

    Hi All,
    Is it possible to find out which all workbook is using Database function( User Defined).
    Thanks,

    Hi,
    If I had to do this detective work, I would probably do the following:
    1. Activate for a period of time the function, eul5_post_save_document. This function when activated is triggered at the time a workbook is saved. If you look at its columns, it save the worksheet's SQL.
    2. Next, I would parse the EUL5_WORKSHEET_SQL.SQL_SEGMENT column which is a varchar2(4000) column. There are many effective Oracle functions which could aid you in this effort (e.g. instring or perhaps a regular expression function).
    I hope this helps.
    Patrick

  • How To Find Oracle Home Directory Path...

    Hello,
    I am working on deployment of java web service on Oracle Application Server(LINUX) 10g, EBS - R12.
    I am working on other system and i want to deploy web service remotely on application server.
    And i am not getting the oracle home directory path. I want to find the home directory path remotely.
    so suggest me how to find out path of that.
    or weather i have to install jdevloper on server system and than i have to deploy it,
    or any other alternative way is available.
    Reply as soon as possible......

    Thanks for your reply.
    It's precisely the registry key which got tampered, and there's no ORACLE_HOME environmental variable(Or that too is tampered)
    Now,how to set it to one of the Oracle home directories?
    Regards,
    Bhagat
    !!!!!!!!!!!!!!!!!!!!

  • I have my personal music (not purchased from Itunes) stored in two locations, on my PC and on an external HD. How can I find out which directory itunes uses to access this music? I am using Itunes version 11.4.0.18. Thanks

    I have my personal music (not purchased from Itunes) stored in two locations, on my PC and on an external HD. How can I find out which directory itunes uses to access this music? I am using Itunes version 11.4.0.18. Thanks

    Many thanks JEM24 for your help.  Ive just spent the best part of six hundred pounds on a new Sony Rx100m2 compact camera, so I have no interest in the Ipods camera at all really. I doubt Ill be watching many videos on it as Im very lucky in that I have a good Android tablet. Its more as a stock music player that Ill be buying the Ipod for, if indeed I do end up buying one. I dont like the idea of paying the exorbitant amount added for more memory space that Apple along with most other companies charge. In fact I read an article on this very subject just yesterday in the tech section of Flipboard. It stated in the article that in the case of the Iphone  the actual cost of each additional  gigabyte of storage  to Apple et al is something in the order of 60p.. This is certainly not reflected in the price us the customer has to pay at the till.. Its for this reason primarily that Apple in particular, because their products do not allow adding expandable memory of your own in the form of cheap to buy cards, that nobody in their right mind buys the 64gig etc Iphones..I am aware that we are discussing my potential purchase of an Ipod Touch here but you see my point. Many thanks again though for helping me.

  • Where can I find a user-guide for the awfull Text-Editor used to enter/edit these forums entries?

    I am desesperate to understand how quite basic functions (just as one of many examples: how can I paste text, that I have formatted in MS Word and want to paste into a Forum Post-Entry?) can be done with the primitive and awful Text Editor used to enter/edit Forum Entries. Notice, that like many other Adobe users, I am not familiar at all with HTML and it is therefore a description of the badly named "Full Editor" that I am looking for.
    Where can I find a User-Guide for this Text Editor?
    My recommendation to Adobe: exercise enough  brute pressure on the developers of this primitive Text Editor to force them to provide something more reasonable, more powerful and more intuitive.

    Thank You Jochem
    I was trying to understand how I could do things as simple as inserting text that I had previously copied. Since there are neither command menüs nor buttons for the Insert of previously copied text, I was trying a mouse right click.....and was being offered in the context menu the choice between "Insert Link", "Insert Image", "Alignement", and "Insert Table"....... but no possibility of a plain insert of previously copied text.
    Now, I realize, that Clearstream supports at least the keyword shortcut of "Ctrl V" ........that I am not using in any other software (I never use any keyboard shortcuts).
    Since Clearstream does not support reasonable choices in the contextual menus, I will need to memorize the most important keyword shortcuts.
    By the way: I detected now, that the "Ctrl V" keyboard shortcut allows me to insert formatted text.
    Even, if I will now begin to be able to use reasonably Clearstream, I am quite surprised to see that such a software provides neither reasonable Contextual Menus, nor a User Guide, nor........
    Thank you again Jochem for your patience with me.

Maybe you are looking for

  • 5 ghz versus 2.4 ghz

    Hi - When the Time Capsule wireless router is set to run on "n" draft at 5 gigahertz is the 5 merely with regard to the frequency or does it also indicate improved speed and range over 2.4? My friend's unit keeps disconnecting when it is set to 5, an

  • Invoice Block - Tolerance Key - Can currency can be changed??

    Hi Gurus, We can set the below in SPRO, Material Management->Logistic Invoice verification->Invoice Block->Set Tolerance Limit-> Here we can maintain for company code / Tolerance Key and details. While we maintaining the tolerance key, depending upon

  • ITunes not saving password

    Since iTunes 9 it doesn't save the password on iPhone or pc. Please advise.

  • How to import pictures/video from canon vixia

    How do you import video/pictures from the Canon vixia to the Mac (Mac OS X 10. 5. 8.)

  • Partial sync to iPhone

    Hi, The most recent two events in my iPhoto library are only partially syncing to my iPhone. I tried making them into an Album instead but the same thing happens. 14 out of 82 photos and 3 out of 9 photos have synced, but not the others. Older events