search

Find (search for) table in DBML designer quickly?

喜欢而已 提交于 2019-12-18 10:58:15
问题 We have a design with 150+ tables and in the .dbml layout has lines everywhere and it's hard to find individual tables. Is there a way to search in the dbml layout instead of scrolling around trying to locate a table (Ctrl+F don't work), Running Visual Studio 2010 Ultimate? 回答1: One thing you can do is go to the Properties window (while you have your DBML file open), and select the class generated for the table you're interested in from the dropdown list at the top of the Properties window.

The most efficient way to implement a phonetic search

纵然是瞬间 提交于 2019-12-18 10:46:08
问题 What is the most efficient way to implement a phonetic search in C++ and/or Java? By phonetic search I mean substituting vowels or consonants that sound similar. This would be especially useful for names because sometimes people's names have sort of strange spellings. I am thinking it might be effective to substitue vowels and some consonants. It may also be good to include some special cases like silent E's at the end or F and PH. Would it be best to use cstrings or strings in C++? Would it

Count number of points inside a circle fast

六月ゝ 毕业季﹏ 提交于 2019-12-18 10:29:34
问题 Given a set of n points on plane, I want to preprocess these points somehow faster than O(n^2) (O(nlog(n)) preferably), and then be able to answer on queries of the following kind "How many of n points lie inside a circle with given center and radius?" faster than O(n) (O(log(n) preferably). Can you suggest some data structure or algorithm I can use for this problem? I know that such types of problems are often solved using Voronoi diagrams, but I don't know how to apply it here. 回答1: Build a

How can I search a word in whole project/folder recursively?

主宰稳场 提交于 2019-12-18 10:07:50
问题 Suppose I'm searching a class JFactory inside a folder and it's sub-directories. How can I file that file which contains class JFactory ? I don't want to replace that word but I need to find that file that contains class JFactory . 回答1: :vimgrep /JFactory/ **/*.java You can replace the pattern /JFactory/ with /\<JFactory\>/ if you want full word match. :vim is shorthand for :vimgrep . If JFactory or \<JFactory\> is your current search pattern (for example you have hit * on one occurrence) you

Combination of field search using PHP & MYSQL

淺唱寂寞╮ 提交于 2019-12-18 09:49:10
问题 I am working on an assignment using PHP & MYSQL. one of the tasks is to search on any combination of the fields. That includes Dropdown boxes populated from the Database. and Text fields. t2ath contains ID SPORT COUNTRY GENDER FIRSTNAME LASTNAME Image I've been working on this code for a week to be able to search on any combination with no errors. I am wondering if there is another more efficient way to do it. $selectedSport = $_POST['sport']; $gender =$_POST['gender']; $fName =$_POST['fname'

Case insensitive find word an wrap it in a span

六眼飞鱼酱① 提交于 2019-12-18 09:45:45
问题 I have made a small script designed to find a string and wrap it in a span. The string is stored in a variable. The HTML <h2>I have a lot of friends.</h2> <h2>My best friend's name is Mike.</h2> <h2>My best friend's website is <a href="http://www.myfriendmike.com">myfriendmike.com</a>.</h2> The jQuery var term = "friend"; var item = $("h2"); $(item).each(function() { var itemHTML = $(this).html(); var newItemHTML = itemHTML.replace(term, '<span class="highlight">' + term + '</span>'); $(this)

In Python, how can I query a list of words to match a certain query criteria?

℡╲_俬逩灬. 提交于 2019-12-18 09:45:29
问题 The query criteria should support boolean operators and regular expressions. I've read about Booleano, but it doesn't support regular expressions. If there is nothing out there which matches this requirements, which would be the best technology to start building upon? The grammar in the example below is just an example, but the feature it offers should exist. is True if ('client/.+' and 'user_a') but (not 'limited' unless ('.+special' or 'godmode')) which equals to is True if 'client/.+' and

How to find if substring exists in a list of strings (and return full value in list if so)

心已入冬 提交于 2019-12-18 09:40:58
问题 I have a list of brand names in A5:A7655 I have a list of potential substrings in D5:D1400 I need to find a corresponding brand name for each substring where possible. Most of these substrings are contained in one of the cells in the brand name list. Returning the first brand name on the list that constains the substring is fine. For example: My substring in D5 is "ABC Studios" - if i search my whole list I see that there is a brand name "ABC Studios, LLC". In E5 I want to return ABC Studios,

Sync jqGrid filterToolbar and searchGrid filters

耗尽温柔 提交于 2019-12-18 09:38:55
问题 I am using a jqGrid with both filterToolbar and searchGrid. When I perform a search using the filterToolbar and then open the searchGrid window, the filters come filled fine. But when I change something after this, this feature stop working. I can explain by testing this sample: http://srv04.wln.com.br/cpsadmin/sample Try typing an 'a' for the fields Name, Address and City in the filterToolbar, then perform a search (pressing return when focus in any input). After that, click in the 'Find

Generate all subset sums within a range faster than O((k+N) * 2^(N/2))?

喜欢而已 提交于 2019-12-18 08:47:10
问题 Is there a way to generate all of the subset sums s 1 , s 2 , ..., s k that fall in a range [A,B] faster than O((k+N)*2 N/2 ), where k is the number of sums there are in [A,B]? Note that k is only known after we have enumerated all subset sums within [A,B]. I'm currently using a modified Horowitz-Sahni algorithm. For example, I first call it to for the smallest sum greater than or equal to A, giving me s 1 . Then I call it again for the next smallest sum greater than s 1 , giving me s 2 .