[Solved] c# searching on C:\Users\John\Desktop using the text on text.box as search key? [closed]

Below should work. It enumerates that path. Be sure to have a multiline textbox called txtOutput, and a txtSearch named control. You can put this in a button click or where ever. txtOutput.Text = “”; foreach(string file in Directory.GetFiles(“c:\\path”)) if(Path.GetFileName(file).Contains(txtSearch.Text)) txtOutput.Text += txtOutput.Text + file + “, “; 2 solved c# searching on C:\Users\John\Desktop using … Read more

[Solved] How to click on the Search company name button,type company name and search using Selenium and Python?

Try this: from selenium import webdriver import time from selenium.webdriver.common.keys import Keys from bs4 import BeautifulSoup from bs4.element import Tag driver = webdriver.Chrome(“C:/Users/RoshanB/Desktop/sentiment1/chromedriver_win32/chromedriver”) driver.get(‘http://www.careratings.com/brief-rationale.aspx’) time.sleep(4) companyArray = [] try: search = driver.find_element_by_name(‘txtSearchCompany_brief’) search.send_keys(“Reliance Capital Limited”) search.send_keys(Keys.RETURN) time.sleep(4) soup = BeautifulSoup(driver.page_source, ‘lxml’) companies = soup.find(“table”,class_=”table1″) for tag in companies.findChildren(): if isinstance(tag, Tag) and tag.name in ‘a’ … Read more

[Solved] Want to search like that [closed]

This is not a trivial problem, but conceptually you would approach it as follows. In a text input, call a function every time a user enters a value: <input class=”someClass” id=’someId’ name=”someName” type=”text” onkeyup=’getProperties(this.value)’ > Where getProperties uses ajax and might look something like this: function getProperties(value) { $.post( “somePHPFile.php”, {query: value}, function (data) { … Read more

[Solved] programatically search a place in google map API by passing place name

using JSON <?php function geoPlaceID($location) { $locationclean = str_replace (” “, “+”, $location); $details_url = “https://maps.googleapis.com/maps/api/place/textsearch/json?query=” . $locationclean . “&key=YOUR_KEY”; $du = file_get_contents($details_url); $getDetails = json_decode(utf8_encode($du),true); if ($getDetails[‘status’]==”OK”) { $a=$getDetails[‘results’][1][‘types’]; print_r($a); // echo implode(” “,$a).”<br>”; } else { echo “Place ID not found”; } } geoPlaceID(“kfc”); ?> using XML <?php function place_ID($location) { $locationclean = … Read more

[Solved] How can I find a file in a directory [closed]

This isnt exactly what you asked for but it will get you started. import os #bring in the necessary library to access your specific os filename = raw_input(“Enter file: “) #get user input dirList = os.listdir(‘.’) #get the current directory listing if filename in dirList: #if the filename sought was in that dirlist…. print “file … Read more

[Solved] How to put search box in the database table using PHP and Mysql

There are a few things you will need to know to be able to do this. Firstly the security bit… Basically you want to never trust data that is submitted to your application. When accepting data for use in a MySQL statement, you could use PHP’s built in escape functions for MySQL. ref: http://php.net/manual/en/mysqli.real-escape-string.php You … Read more

[Solved] When I enter 2 letters it searches about one one I would search about 2 letters at once to get value

If I understand what’s going on, your problem is this line: var index = code.indexOf(msg[i]); msg[i] is the same thing as msg.charAt(i), which only gives you a single character from the string. If you want to check two characters per index, you need to use String#substr(start, length) with a length argument of 2: var index … Read more

[Solved] How to search a string in multiple files and return file name with line number/text in an Excel or csv in Powershell

Try this (don’t know if you only want the filename or the path to the file, just remove the one you dont want): Get-ChildItem -recurse | Select-String -pattern “string” | Select-Object path,line,linenumber,filename | Export-Csv -Path c:\somepath\result.csv 6 solved How to search a string in multiple files and return file name with line number/text in an … Read more

[Solved] Twitter get search tweets API not working with hash tag

It’s not required to use %23 in Search Query for Search Values `. Instead of ‘q’ => ‘%23bookmyshow’, use ‘q’ => ‘bookmyshow’. Also, You haven’t request Twitter to get tweets. Read this Documentation. If this is your Token secret, i would suggest you to reset your keys right now. Go to Twitter Developer page to … Read more

[Solved] Excel cells matching in VBA [closed]

You can accomplish this with a VLOOKUP between two books. The guts of the equation are below. You wont actually type in the ‘[book2]SheetName’ portion, this will need to reflect the name of your other workbook and the sheet that you are looking at within that book. A2 = Look up value (in your example … Read more

[Solved] how to search in a list in java?

Try this : In case the if(listOne.contains(object)) return listOne; The list.contains() uses equals. so, if list.contains() does not give you the expected result, you should be overriding the equals method. solved how to search in a list in java?

[Solved] Create MySQL query from URL GET parameters [duplicate]

First you need to process the URL using PHP by assigning the URL parameters to PHP variables: $cat = $_GET[‘cat’]; $subcat = $_GET[‘subcat’]; $color= $_GET[‘color’]; Then you can use these variables to create a MySQL query string: $queryString = “SELECT a.p_id, a.p_name, a.p_prize, b.p_id b.color, b.category, b.subcategory FROM products a INNER JOIN details b ON … Read more

[Solved] How do you alert user if a certain piece of text is present within HTML document using javascript?

Try this out 🙂 <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <title>Example</title> </head> <body> <div id=”Content”> <div id=”Panes”><div> <h2>This is an example</h2> <p><strong>Lorem Ipsum</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc ante mauris, sollicitudin vel luctus ac, rhoncus eu est. Sed fermentum est non pharetra viverra. Interdum et malesuada fames ac ante ipsum … Read more