find

everyday, I have to arrange all data of Market : SPOT in excel file, So could any one help to provide excel VBA tips

Sample raw Data :- Market : Oddlot ______________________________________________________________________________________________________________ CUSTOMER |INSTRUMENT| BROKER | CONTRACT| TRADE | BOUGHT | SOLD | PRICE | HOWLA | LAGA | HOWLA | | ORDER | NO | TIME | | | ...

find: What's up with basename and dirname?

I'm using find for a task and I noticed that when I do something like this: find `pwd` -name "file.ext" -exec echo $(dirname {}) \; it will give you dots only for each match. When you s/dirname/basename in that command you get the full pathnames. Am I screwing something up here or is this expected behavior? I'm used to basename givin...

CakePHP: find neighbors, order on 'name' or 'order'

Hi, I have a list of ordered items, ordered according to the int field order. I'm creating a gallery in CakePHP 1.2 that has a prev and next button and those should link to the previous and next item according to their ordering, not according to their id. In order to get this result I've included the 'order' parameter to the find funct...

How to find a window by his inner text?

Hi, I have Application X (not mine!) with Subform x1, x2, x3. How can I find the subform by the inner text (e.g. a label in the subform)? ...

Bash: using commands as parameters (specifically cd, dirname and find)

This command and output: % find . -name file.xml 2> /dev/null ./a/d/file.xml % So this command and output: % dirname `find . -name file.xml 2> /dev/null` ./a/d % So you would expect that this command: % cd `dirname `find . -name file.xml 2> /dev/null`` Would change the current directory to ./a/d. Strangely this does not work. ...

FileSystem.GetFiles() + UnauthorizedAccessException error?

Hello, It seems like FileSystem.GetFiles() is unable to recover from the UnauthorizedAccessException exception that .Net triggers when trying to access an off-limit directory. In this case, does it mean this class/method isn't useful when scanning a whole drive and I should use some other solution (in which case: Which one?)? Here's s...

C++ find method is not const?

I've written a method that I'd like to declare as const, but the compiler complains. I traced through and found that this part of the method was causing the difficulty: bool ClassA::MethodA(int x) { bool y = false; if(find(myList.begin(), myList.end(), x) != myList.end()) { y = true; } return y; } There is ...

Cakephp, Retreive Data for HABTM Models using conditional find

There are 2 Models: Project & Category that are bind with HABTM relationship. I would like to perform a search from projects controller that can do the following: FIND all DISTINCT Project.scedule WHERE Category.slug != 'uncategorised' Apologies for the syntax, I'm no sequel expert. What I have managed to do is to retrieve all projec...

Find does not work in Expect Send command

I run this bash command to display contents of somefile.cf in a Weblogic domain directory. find $(/usr/ucb/ps auwwx | grep weblogic | tr ' ' '\n' | grep security.policy | grep domain | awk -F'=' '{print $2}' | sed -e 's/weblogic.policy//' -e 's/security\///' -e 's/dep\///' | awk -F'/' '{print "/"$2"/"$3"/"$4"/somefile.cf"}' | sort | un...

why python find not working

i am using python 2.5.2. The following code not working. def findValue(self, text, findText): index = text.find(findText) print index Although the findText is present in text, but it still returns None. I have printed the values of text and findText and they are present. Edit: I have fixed the issue. The problem was i am...

accessing the next tr from an input in the row above using jquery

Dear jquery experts, Is there any way to access a tr from an input of a tr above without adding row specific id's or classes? <table> <tr><td>just another row</td> <tr><td><input name="inputToSerachFrom" type="text" /></td><tr> <tr><td>I want to acces this row without adding id's or classes</td><tr> <tr><td>just another row</td> </tabl...

browser ctrl-f find and non-visible text

Can the browser feature of contrl+F to find text be integrated with text in popup windows. I'd like to have some scientific reference information given when someone hovers over a species name in a web page. Generating the popup, tooltip style text is no problem, the problem is that anyone using Ctrl+F won't be able to find it, or if I ...

Adding Categories to my Articles in my Rails app (Small Help)

I'm currently building a semi-small ruby app for a project. The problem I'm currently facing is the following: I want to be Able to fit the Article into the Categories. I've already accomplish this by having two models. An article model with a foreign key of category_id and my Category model with the name of the category. With a has_one...

Control, find and connect wifi hotspots using iPhone SDK?

How can I control the Wifi hardware on my iPhone from within an application such as WifiTrak is doing it? Is that app using private APIs maybe? ...

jQuery Find element else do nothing ?

Hi Guys, I am trying to use jQuery to basically wrap a bunch of CSS modifications via jQuery but on pages where the #IDs or Classes dont exist I get errors ? Like jQuery(".class").css(random_stuff) is not a function Any ideas what I can do to either "find" the elements and do nothing or ? ...

Unable to read values from object returned from ActiveRecord.find

I make the following call to the DB. @patientRegistration = PatientRegistration.find(:all, :conditions=>["name = '#{patientName}'"]) This searches for a patient registration based on a given name. I get a valid @patientRegistration object. When I invoke @patientRegistration.inspect it prints correctly all the...

Unix [Homework]: Get a list of /home/user/ directories in /etc/passwd

I'm very new to Unix, and currently taking a class learning the basics of the system and its commands. I'm looking for a single command line to list off all of the user home directories in alphabetical order from the /etc/passwd directory. This applies only to the home directories, and not the contents within them. There should be no d...

Rails find over multiple models

I think I'm missing something very obvious and its making my brain hurt. class User < ActiveRecord::Base has_one :profile class Profile < ActiveRecord::Base has_one :user belongs_to :team I have a partial that loops through the users and print some basic info, I'm using this partial in my team show page. I had originally written thi...

Finding files with bash and copy to another location and reducing depth of folders

I'm trying to recover a mates hard drive, there is no structure what so ever so music and images are everywhere but in named folders sometimes >5 folders deep, I've managed to write a one-liner that finds the files and copies them to a mounted drive but it preserves the file structure completely. What I'm after is a bit of code that sear...

Rails find by *all* associated tags.id in

Hi Say I have a model Taggable has_many tags, how may I find all taggables by their associated tag's taggable_id field? Taggable.find(:all, :joins => :tags, :conditions => {:tags => {:taggable_id => [1,2,3]}}) results in this: SELECT `taggables`.* FROM `taggables` INNER JOIN `tags` ON tags.taggable_id = taggables.id WHERE (`tag`.`ta...