find

Array values changing unexpectedly

I am using cakephp 1.2 and I have an array that appears to have a value change even though that variable is not being manipulated. Below is the code to that is causing me trouble. PLEASE NOTE - UPDATE Changing the variable name makes no difference to the outcome. function findCountByString($string, $myArr=array()) { $main_conditions['...

Find and Replace with Notepad++

I have a document that was converted from PDF to HTML for use on a company website to be referenced and indexed for search. I'm attempting to format the converted document to meet my needs and in doing so I am attempting to clean up some of the junk that was pulled over from when it was a PDF such as page numbers, headers, and footers. l...

How to find text in images with the browser control+F

Have HTML pages with many sections and each section has a section title displayed as an image (to use nice font). The problem is that even if I specify an 'alt' and 'title' text on each image/title the Ctrl+F browser functionality does not find the text. Thought two possible solutions but not very happy about them 1) Use embed fonts. P...

Finding an asp:button and asp:textbox in Javascript

What I'm trying to do is get an asp:button to click. The only problem is that it is within a few tags. Example: <loginview> <asp:login1> <logintemplate> //asp:textbox and asp:button are located here. </loginview> </asp:login> </logintemplate> So how would I get javascript to point to that l...

How to make simple dicitonary J2ME

Hi, I am beginner in JavaME. I'd like to make simple dicitionary. The source data is placed on "data.txt" file in "res" directory. The structure is like this: #apple=kind of fruit; #spinach=kind of vegetable; The flow is so simple. User enters word that he want to search in a text field, e.g "apple", system take the user input, read ...

Find an asp:Button in VB.NET

I'm trying to code a section for my website in VB but VB can't seem to find a button. Is there a way for the code to find it? I know where it is. Loginview > Login > LoginTemplate. How do I get VB.NET to point to that location? ...

[c++/STL] Selective iterator

FYI: no boost, yes it has this, I want to reinvent the wheel ;) Is there some form of a selective iterator (possible) in C++? What I want is to seperate strings like this: some:word{or other to a form like this: some : word { or other I can do that with two loops and find_first_of(":") and ("{") but this seems (very) inefficient t...

Rails - Find Condition of two model fields

I'm trying to find the results of a model where it queries as the result of two conditions. I have a search tag that looks for Model.find(:all, :conditions => "name LIKE params[search]") but I'd like for the search to find all records where "name LIKE params[search] or description LIKE params[search] . Is there any way to add an ...

How do I add a variable to column2 when column1 is a specific value

How can I do a search for value A in column1 and add a value B in column2? In other words for every record that column1 has the value A I want to make the value in column2 = B (Currently column2 is empty) Would this work? UPDATE MyTable SET Column2 = REPLACE(Column2,NULL,'B') WHERE Column1 = "A" ...

how to use a bash function defined in your .bashrc with find -exec

my .bashrc has the following function function myfile { file $1 } export -f myfile it works fine when i call it directly rajesh@rajesh-desktop:~$ myfile out.ogv out.ogv: Ogg data, Skeleton v3.0 it does not work when i try to invoke it through exec rajesh@rajesh-desktop:~$ find ./ -name *.ogv -exec myfile {} \; find: `myfile': No...

Why does string::find return size_type and not an iterator?

In C++, why does string::find return size_type and not an iterator? It would make sense because functions like string::replace or string::insert take iterators as input, so you could find some character and immediately pass the returned iterator to replace, etc. Also, std::find returns an iterator -- why is std::string::find different...

Why is find next in zend/eclipse Ctrl-K and not F3

Is there a specific reason for it, or just a new key. Does the K for that reason have any meaning? ...

Tarballing without git metadata

My source tree contains several directories which are using git source control and I need to tarball the whole tree excluding any references to the git metadata or custom log files. I thought I'd have a go using a combo of find/egrep/xargs/tar but somehow the tar file contains the .git directories and the *.log files. This is what I ha...

jQuery find and replace text in a variable

Hello, I have a variable like var theUrl = 'http://www.google.com/?q=%s'; then i have a input box like <input type="text" id="searchBox" value="" /> and a button like <input type="button" id="searchButton" value="Search" /> when the button is clicked, i should get a alert where the %s of the var theUrl should be replaced with t...

Visual Studio 2010 Solution Find all References Not Working

I have a Visual Studio 2010 Solution that was imported from a Visual Studio 2008 solution that the Find all References does not work on. I've tried doing some searches on Google to try and figure this out but have come up empty handed. The find all references in VS2008 worked like a charm, we upgraded to 2010 and now no matter what f...

List<>.Find(delegate) issue

I have a multi-column combobox where the datasource is a List<> in my Select Class Select selection = new Select(); RadComboBox1.DataSource = selection.GetAcctUtilCo(e.Text, 10).Skip(e.NumberOfItems); I have a few DataTextFields. My DataValueField is the AcctID. Once an account is selected, I need the datatextfield values to pop...

MATLAB how to use FIND function with IF statement

This question is related to http://stackoverflow.com/questions/3071558/matlab-how-to-merge-data how to use the FIND function with IF statement? e.g. if I have this data: 20 10 1 20 11 1 20 15 1 23 10 1 23 10 1 23 12 0 Rule 1: Data of column 3 must be 1. Rule 2: If n is the current index of column 1, if n equal n-1 (20=2...

Matlab how to ignore the first index=1

The code below gives me error = Subscript indices must either be real positive integers or logicals.Because the first index using FIND function is i=1, the i-1 gives negative value. How to ignore when i==1 without using the LOOP function fid=fopen('data.txt'); A=textscan(fid,'%f%f%f%f'); fclose(fid); in = cell2mat(A); i = find(in(1:end...

how to search a file or a text in file in the current folder and in all the subfolders using grep commond?

i have to search for a particular text in files and for that im using grep command but it searches only in current folder.What i want is that using a single grep command i can search a particular thing in the current folder as well as in all of its sub folders.How can i do that??? ...

How to find a "method usage" all along a VS solution by specifying its parameters that are not NULL?

Hi, Is it possible in VS -maybe by using Resharper- to find a method's usage which has some of its parameters NOT set as NULL. Imagine I have this method: public string MyMethod(ParameterClass param1, ParameterClass param2 , ParameterClass param3,ParameterClass param4) { // Some processes return "Hello Pandora!"; } and I want to...