Tag Archives: search

Solve the problem of incomplete search results of outlook search function

Recently, when I used outlook, I found that the search results were always limited to a certain date when I searched e-mail in my inboxes according to the keywords of people’s names, and the search results were not complete at all.

The solution is to go to the file – & gt; Options tab, select search in the pop-up dialog box, then select index option, and then remove the check mark of Microsoft Outlook options in the moidfy dialog box.

After the setting is completed, the search should be conducted according to the keyword of the person’s name, which should be the complete result.

 

Then I thought, why?Because it could be. When we select Microsoft Outlook in the index options dialog box, that is to say, windows will index the files in outlook. When we use Outlook to search, outlook finds that it is in the index category, so it will look for things in the index directory, and the index directory is not up-to-date, which directly leads to incomplete search results.

 

If we remove the index option of outlook, outlook finds that it is not in the index category when searching, and will directly search all the files in outlook according to its own algorithm instead of in the index directory, so the result will be very complete and accurate.

 

In summary, the purpose of index is to speed up the search speed, but if the index directory is not updated in time, it will cause the incompleteness of the search results.

From personal blog: http://www.sunrobin.net

[solution] LD: warning: directory not found for option

In the process of IOS development, this problem is easy to be confused. Let’s have a break today.

Problems and Solutions

In short, there are two aspects to this problem.

The error is as follows, which means that it is an exception when querying Library .

"directory not found for option '-L/..."

resolvent:

Project – & gt; targets – & gt; build setting – & gt; library search paths

Delete the path inside

The error is as follows, which means that it is an exception when querying framework .

"directory not found for option '-F/..."

resolvent:

Project – & gt; targets – & gt; build setting – & gt; framework search paths

Delete the path inside

OK, it’s done.

The above problems have been solved. If you want to know more, you can continue to look down.

explain

Briefly speaking, library search paths and framework search paths .

Framework Search Paths

The explanation that can be found in official documents is as follows:

Locating Frameworks in Non-Standard Directories

If your project links to frameworks that are not included in any of the standard locations, you must explicitly specify the location of that framework before Xcode can locate its header files. To specify the location of such a framework, add the directory containing the framework to the “Framework Search Paths” option of your Xcode project. Xcode passes this list of directories to the compiler and linker, which both use the list to search for the framework resources.

Note: The standard locations for frameworks are the /System/Library/Frameworks directory and the /Library/Frameworks directory on the local system.

If the frameworks you refer to are not in standard locations, you need to set “framework search paths” in the configuration file of the project to specify search paths for compilers and linkers.

Library Search Paths

As for “library search paths”, there is no decent official document, but the content should be similar, but one is used to search framework , and the other is used to search Library .

Although it is said that, what is library and what is framework are still very vague.

However, we found some blogs to illustrate this problem, which are quoted below.

quote

Search paths settings in IOS development

In the development of IOS, we often encounter some path settings, such as the introduction of Baidu map SDK, copying projects to other computers, or reporting the error of library not found when multiple people develop at the same time, or introducing a third-party library, such as asihttprequest / retableview often reporting ? Include & lt; & gt; error, so we need to configure some search paths.

Framework/Library Search Paths

1、Framework Search Paths

The search path of the framework (. Framework bundles ) attached to the project is not widely used in IOS development. Generally, the framework built in the system is used for IOS development.

2、Library Search Paths

Xcode will automatically set the search path of the. A file to be dragged to the third-party library (. A files ) in the project. In order to facilitate transplantation or multi person collaborative development, it will usually be manually set.

For example, we will set the SDK of Baidu map as follows:

$(SRCROOT)/../libs/Release$(EFFECTIVE_ PLATFORM_ Name) , where $(srcroot) macro represents your project file directory, $(effective) _ PLATFORM_ Name) macro represents whether the current configuration is OS or simulator

Header Search Path

1. C / C + + header file reference

In C / C + +, include is a mutation instruction. When compiling, the compiler will replace the relative path with the absolute path. Therefore, the absolute path of the header file is equal to the search path + relative path.

(1) ? Include & lt; iostream. H & gt; : refers to the header file under the compiler’s class library path

(2) ? Include "hello. H" : the header file that refers to the relative path of the project directory

2、(User) Header Search Path

(1) header search path refers to the search path of the header file.

(2) User header search paths refers to the search path of user-defined header files

3、Always Search User Paths

If always search user paths is set to Yes , the compiler will first search the path configured by User header search paths . In this case, ? Include & lt; string. H & gt; , User header search paths the files under the search directory will cover the header files of the system.

reference material

    search paths settings in IOS development, IOS: clarify different search paths, IOS developer Library – including frameworks

error code 11 – Administrative Limit Exceeded

The problem is ldap server has limitation for the user about numbers of entries searched.

Open your directory server (name), Configuration Folder, Performance. On right panel check Client Control folder. You may see:

Size limit

Look-through limit

Time limit

Idle timeout

The look-through limit specifies the maximum number of entries that will be examined for a search operation.

The size limit specifies the maximum number of entries the server returns to the client application in response to a search operation.

The time limit specifies the maximum time the server spends processing a search operation.

The idle timeout specifies the time a client connection to the server can be idle before the server drops the connection.

Change these options to “unlimited” can resolve this problem.

Mac ports installation software prompts “warning: xcodebuild exists but failed to execute”


# port search imagemagick

checked on the Internet, tried the following method, success.

The steps which solved for me were:

1.install Xcode 4.3 from Mac App Store

2. Install Command Line Tools for Xcode

3. sudo /usr/bin/xcode-select -switch /Applications/Xcode.app

4. sudo ln -s `which clang` /Applications/Xcode.app/Contents/Developer/usr/bin/

Even so, this is clearly a workaround.

my xcode is downloadable DMG, perform dynamic mount every time I start, so the directory is /Volumes/ xcode. app/…

for users from appstore installation goal should be to/Application/Xcode. The app /…

, I only have to do step3 to succeed.

Python traverses all files under the specified path and retrieves them according to the time interval

demand

It is required to find the word documents in a certain date range in the folder, and list the names and paths of all words, such as all word documents under the D drive from July 5 to July 31.

Modify file type

Insert picture description here

Modify file path

Insert picture description here

Retrieve file modification time interval

Insert picture description here

 

#conding=utf8
import os
import time
g = os.walk(r"C:\Users\Administrator\Downloads")
def judge_time_file(path, file, update_time):
    if not file.endswith(('.doc','.docx')):
        return False
    start_time = time.mktime(time.strptime('2020-04-12 00:00:00', "%Y-%m-%d %H:%M:%S"))
    end_time   = time.mktime(time.strptime('2020-05-23 00:00:00', "%Y-%m-%d %H:%M:%S"))
    # print(start_time ,  update_time , end_time)
    if start_time < update_time < end_time:
        return True
    return True
 
data_list = []
i = 0
 
for path, dir_list, file_list in g:
 
    for file_name in file_list:
        local_time = os.stat(os.path.join(path, file_name)).st_mtime
        if judge_time_file(path, file_name, local_time):
            data_list.append([os.path.join(path, file_name), time.strftime("%Y-%m-%d %H:%M:%S",time.localtime(local_time))])
            # print(data_list)
        i=i+1
        print(i)
data_list.sort(key=lambd