I frequently find myself looking for files on my computer. 99.9% of the time I am looking for a file by name rather than by contents. Typically there are two ways to find a file when you don't know what folder it is in. You can do it from the command line as in D:\ dir *partname* /s This generally takes quite a while with the larger drives/partitions in use these days. You can also go to an Explorer window and type something in the search box. I find this horribly slow as well. For my purposes, I want a …

Member Avatar
Member Avatar
+2 forum 3

I have texts (Paragraphs) and I want to replace each of annotated wrong word in the paragraph with the correct word indicated by the position (index) number of the wrong word and i need to do it for each paragraph... So, what method should I use to search by index number? thank you Example: In the input file you have the following paragraph: Computer Science are the study of principles applications, and technologies of computing & computers. It involve the studyof data and data structures... The above text should be replaced by the following paragraph in the output file: Computer …

Member Avatar
Member Avatar
+0 forum 2

Hi there, Just a quick question.. Is it possible to get all the list of pages indexed by google? Thanks in advance Kumar

Member Avatar
Member Avatar
+0 forum 6

Hello, me again :) With this code: >>> from BeautifulSoup import BeautifulSoup >>> import urllib2 >>> url = urllib2.urlopen('http://www.python.org').read() >>> soup = BeautifulSoup(url) >>> links = soup('a') >>> print links A list of links printed into the terminal. I want to send the list into a text file, i tried this: >>> with open('python-links.txt.', 'w') as f: ... f.write(links) But there was an error: File "<stdin>", line 2, in <module> TypeError: expected a character buffer object What is the problem? How can fix that? -------------------------------------------------------------------- And one more question; as that list looks like this: (I will copy only small …

Member Avatar
Member Avatar
+0 forum 3

I am recieving a notice(s) multiple times when running a file: Notice: Undefined index: Telephone in C:\xampp\htdocs\demo\nest_Demo_thrasher.php on line 111 Notice: Undefined index: eMail in C:\xampp\htdocs\demo\nest_Demo_thrasher.php on line 112 I have researched this and the ways to solve it. Most ways involve isset it seems, but none of my code in this example use Get. Note: This code comes from a class I am taking on-line. I did not write the code. I have noticed during the class that the instructor has presented us files to download that contain obvious errors. When he runs this particular file he gets no …

Member Avatar
Member Avatar
+0 forum 7

Hello again. How can i limit my list indexes? I want my list to take only 3 indexes for example.

Member Avatar
Member Avatar
+0 forum 7

Hello. mylist = [6, '/', 3, '+', 9, '+', 8, '+', 1, '/', 2] How can i delete that list indexes? I tried: def clear(self, event): global numbers for i in numbers: print i del numbers[i] But it didn't work: File "./kivycal", line 83, in clear del numbers[i] TypeError: list indices must be integers, not str What can i do for that?

Member Avatar
Member Avatar
+0 forum 5

I am trying to insert data on my database, but when i do, it says UNDEFINED INDEX HTML code here <form action="insert.php" autocomplete="on"> <h1> Sign up </h1> <p> <label for="username">Your username</label> <input id="username" name="username" type="text" /> </p> <p> <label for="emails" > Your email</label> <input id="emails" name="emails" type="email" /> </p> <p> <label for="password" >Your password </label> <input id="password" name="password" type="password" /> </p> <p> <label for="passwordcon" >Please confirm your password </label> <input id="passwordcon" name="passwordcon" type="password" /> </p> <p class="signin button"> <input type="submit" value="Sign up"/> </p> </form> PHP Code Here <?php $con=mysqli_connect("localhost","root","","database"); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . …

Member Avatar
Member Avatar
+0 forum 2

Hi, i have two tables both one is partitioned and another is having a 3GB of data. I've added a composite index on both the tables based on the where clause, in the order it appears. The output of explain plan after gather stats shows that the sql is accessing both the tables in full scan mode.Sample query below. from tablea a, tableb b partition(part_00) where a.col1=b.col1 a.col2 is null b.col3 is null a.col4=b.col4 below are the indexes. the order in which it is specified in the create index syntax is given below. table a Index: col4, col3, col1 table …

Member Avatar
Member Avatar
+0 forum 1

Hi Guys I have a major issue in my Asp.net 4.0 Application, i have created a tree View And (SelectedNodeChanged event) Does n't Execute on my IIS Server(Windows Server 2008 R2 Standard), I have Created few Drop Downs Lists (SelectedIndexChanged) Doesn't Execute , i have this Issue Only on my IIS server it Runs Perfect on my Development Mechine Which Is running on Windows 8 , i think i have that issue only on IIS Server Visual Studio Development Server it is fine working Fine, Has anybody come a cross similer situation ? thanks regards sumith

Member Avatar
Member Avatar
+0 forum 5

Hi! I was doing my exercise of C Language. In the exercise I was encountered by a question in which author says you to perdict the correct answer; I was uable to perdict it, so I compiled it to get the answer, the source code is this: #include <stdio.h> int main () { struct { int x, y; }s[] = {10, 20, 15, 25, 8, 75, 6, 2}; int *i; i = s; printf("%d", s[i[7]].x); return 0; } It yields this output: 8 I'm unable to understand why the answer is 8 whereas in my thinking it should be 15. …

Member Avatar
Member Avatar
+0 forum 2

i have this error when i display my program ? ' ' Created by SharpDevelop. ' User: s11088659 ' Date: 5/28/2014 ' Time: 11:26 AM ' ' To change this template use Tools | Options | Coding | Edit Standard Headers. ' Public Partial Class MainForm Public Sub New() ' The Me.InitializeComponent call is required for Windows Forms designer support. Me.InitializeComponent() ' ' TODO : Add constructor code after InitializeComponents ' End Sub private Sub DisplaybuttonClick(byval sender As Object,byval e As system.EventArgs) 'Declare variable of array name and grade of student 'Dim strNames() As String = {“Hova”, “Nemo”, “Zoc”, “Lucas”,“Phuket”, …

Member Avatar
Member Avatar
+0 forum 4

hey guys so im getting > Notice: Undefined index: spouse-salutations in D:\Xampp\htdocs\EMS2\add_contact_process.php on line 18 > Notice: Undefined index: spouse-state in D:\Xampp\htdocs\EMS2\add_contact_process.php on line 24uoted Text Here > Notice: Undefined index: child-salutations in D:\Xampp\htdocs\EMS2\add_contact_process.php on line 30 > Notice: Undefined index: child-state in D:\Xampp\htdocs\EMS2\add_contact_process.php on line 36 and its really frustrating because $spousesalutations = mysql_real_escape_string($_POST['spouse-salutations']); $spousestate = mysql_real_escape_string($_POST['spouse-state']); $childsalutations = mysql_real_escape_string($_POST['child-salutations']); $childstate = mysql_real_escape_string($_POST['child-state']); I think it has something to do with how my page works. my page is a contact form page that has all the general : name email etc and two radio buttons one with label "Spouse …

Member Avatar
Member Avatar
+0 forum 2

Okay, so I have a ListView populated by an Array, which is populated by a text file. I also have 3 TextBoxes which are changed to different values in multiple Arrays using the Selected Index. My problem occurs when reloading the ListView after saving the text file. The values from the TextBoxes are used in the text file. What happens is, the index is being changed since the ListView is being cleared, which fires the changed method. Since the ListView is empty now, the Selected Index is -1 which is why I get an Array Index Out Of Bounds Exception …

Member Avatar
Member Avatar
+0 forum 1

SO im working on a python code that reads a csv file with 1600 entries roughly and i am splitting them up on the collum value of pc numbers. I keep getting a error that states " Traceback (most recent call last): File "C:\Users\HatterX\Desktop\test\test25", line 50, in <module> data.sort(key=lambda x: x[2]) File "C:\Users\HatterX\Desktop\test\test25", line 50, in <lambda> data.sort(key=lambda x: x[2]) IndexError: list index out of range ". Could someone tell me what im doing wrong please this has me very conffused and frustrated. import csv, datetime, os, shutil, glob newrow={'PC Number': '', 'INSTALL NEW LUXURY SIGN - YES/NO': '', 'Status': …

Member Avatar
Member Avatar
+0 forum 2

hello, ahm, can somebody help me, i'm always getting this error InvalidArgument=Value of '25' is not valid for 'index'. Parameter name: index this is my code: Dim currrentRow As Integer currrentRow = lv2T1.Items.Count() If compare(lv1T1.Items(currrentRow).SubItems(2).Text, txt2T1.Text) = True Then Dim lv As ListViewItem lv = lv2T1.Items.Add(txt1T1.Text) lv.SubItems.Add(txt2T1.Text) txt1T1.Text = "" txt2T1.Text = "" txt1T1.Enabled = True txt2T1.Enabled = False txt1T1.Focus() End If If lv2T1.Items.Count = 25 Then txt1T1.Enabled = False txt2T1.Enabled = False btnStopT1.Enabled = True btnPauseT1.Enabled = False Timer1.Stop() btnNxtT1.Enabled = True End If

Member Avatar
Member Avatar
+0 forum 10

Hi all, I really need your help on this one. I have a MSSQL db table with two columns-ID and name. Each row in this two columns contains an unique ID and a name. Now I have a query that imports just a name in the listview (I don't want ID value in listview). I've put all the values from "ID" column in an array. Now what I want to do is that when listview item is clicked, the program recongnizes listview selected item index and gets a unique ID (I will need this ID to structure another sql query, …

Member Avatar
Member Avatar
+0 forum 3

Hi There, I am quite new to simpleXML and I would like to know how I can access child nodes by index singe I do not have the node name The XML would look like this: <?xml version="1.0" encoding="UTF-8"?> <Root> <SubRoot> <Content ItemType="ItemType1"> <ItemDetails> <ItemDetail> <City Code="CPT"><![CDATA[Cape Town]]> </City> <Item Code="000000000001"><![CDATA[Random Text here]]> </Item> <ItemInformation> <Segment1> <Segmentchild1 Code="H"><![CDATA[XXXXXX]]> </Segmentchild1> **<UNKNOWNNODE Code="CPT"><![CDATA[XXXXXXXX]]> </UNKNOWNNODE>** </Segment1> <Segment2> <Segmentchild1 Code="A"><![CDATA[XXXXXX]]> </Segmentchild1> **<UNKNOWNNODE Code="CPT"><![CDATA[XXXXXXXX]]> </UNKNOWNNODE>** </Segment2> <ItemInformation> </ItemDetail> </ItemDetails> </Content> </SubRoot> </Root> How can i access the UNKNOWNNODE nodes value and attributes? I access the nodes like this: `$transferDetails = $xmlResponse->SubRoot->Content->ItemDetails->children();`

Member Avatar
Member Avatar
+0 forum 1

Ok, so I am trying to write a code that will find the attributes in a html tag using lists and splitting them up. Unfortunately its giving me a hard time with the added quotation marks. [CODE] def find_attribute_value(html_tag, att): '''Return the value of attribute att (a str) in the str html_tag. Return None if att doesn't occur in html_tag. ''' words = html_tag.split(" ") #this is me trying to split up the initial html tag. omgs= str (words) # then trying to convert it into a string because it wouldn't let me split it up further otherwise :( list2 …

Member Avatar
Member Avatar
+0 forum 9

Hi! Got errors on site... Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/content/13/11394913/html/header.php on line 30 Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/content/13/11394913/html/config.php on line 4 Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/content/13/11394913/html/index.php on line 16 Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/content/13/11394913/html/config.php on line 4 Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/content/13/11394913/html/footer.php on line 4 From phpmysql... Error There seems to be an error in your SQL query. The MySQL server error output below, if …

Member Avatar
Member Avatar
+0 forum 16

Hi when i run php file on local host it directly go to download folder it not come in run condition Please help me i am new in php thank

Member Avatar
Member Avatar
+0 forum 3

hello guys, i have 2 tables - tblproduct and tblretprod. prod_id is common in both. i am retrieving records from the tables to display with edit and delete options beside each record displayed. i created an update.php and updprod.php (for edit). update.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Update/Delete Product</title> <?php include_once("db_connect.php"); $result=mysql_query("SELECT a.prod_name, a.prod_brand, b.prod_price FROM tblproduct a, tblretprod b where a.prod_id = b.prod_id"); ?> </head> <body> <?php echo "<table width='80%' border=0>"; echo "<tr bgcolor='#CCCCCC'>"; echo "<td>Product</td>"; echo "<td>Brand</td>"; echo "<td>Price</td>"; echo "<td>Action</td>"; echo "</tr>"; while($res=mysql_fetch_array($result)){ echo "<tr>"; echo …

Member Avatar
Member Avatar
+0 forum 7

have 2 problem in my index page issue 1 have created a menu header - It is confirmed valid and can be use but the thing is, when ever i go back to home link - index page from other page, all the links is disable to be click but it is visible to user. issue 2 queries from database is not working on the index page. but when i try to make other page it was okey. have been scratching head to search for the possibilities of this error. Can anyone give tips or suggestion on the error above?

Member Avatar
Member Avatar
+0 forum 8

<?php if(isset($_POST['submit'])) { require_once 'connect.php'; $query=mysql_query("SELECT 'admin_name.admin_name','admin_name.admin_lastname','admin_name.admin_creattime', 'admin_detail.admin_pass','admin_detail.admin_phone','admin_detail.admin_email','admin_detail.admin_gender' FROM admin_name,admin_detail "); if(!$query) { die('nt good fail to select'.mysql_error()); } else{ while($row=mysql_fetch_row($query)): $name = $row['admin_name']; $last = $row['admin_lastname']; $acctime = $row['admin_creattime']; $pass = $row['admin_pass']; $phone = $row['admin_phone']; $mail = $row['admin_email']; $gen = $row['admin_gender']; echo $name." ".$last." ".$acctime." ".$pass." ".$phone." ".$mail." ".$gen; endwhile ; } } echo "Admin is Created Successfully"; ?> <html> <head> <title>adminpanal</title> </head> <body> <form method="post" action="admindetail.php"> <input type="hidden" name="submit"> <input type="submit" name="submit" value="click here">to see detail of your's </form> </body> </html>

Member Avatar
Member Avatar
+0 forum 1

Using Visual Basic 10, and I am trying to identify min/max statistics and display the results. My calculations are working, but the display is not (line 68 & 80). With the way the code is written now, I don't get the error but my results are displayed as "The minimum monthly rainfall was *correct result* ("*g*"). "g" should be the month that corresponds to the minimum monthly rainfall. The same issue occurs on the maximum display. The line was initially written as *lblMinMonthly.Text = ("The minimum monthly rainfall was " & intMinRainfall.ToString() & "(" & strMonths(Me.intCount) & ")")* but received …

Member Avatar
Member Avatar
+0 forum 4

How to solve the undefined index error? i have tried to make hidden field but not working also.. <?php if($nume==0) { echo "You currently have no item to show"; } else if(isset($_GET['msg'])) { $msg = $_GET['msg']; if($msg!='') { echo '<table border="1"> <tr> <td><font color="red">'.$msg.'</font></td> </tr> </table>'; } } ?></font></strong></p> <table width="680px" cellspacing="0" cellpadding="5"> <tr bgcolor="#ddd"> <th width="220" align="left">Date </th> <th width="200" align="left">Outlet </th> <th width="130" align="left">Status</th> <th width="70"> </th> </tr> <?php $start=(isset($_GET['start'])) ? (int)$_GET['start']:0; if(strlen($start) > 0 and !is_numeric($start)) { echo "Data Error"; exit; } $eu = ($start - 0); $limit = 5; $this1 = $eu + $limit; $back = …

Member Avatar
Member Avatar
+0 forum 19

I want to have this table and user will be able t delete row of data if they wish to with the checkbox. But the errors i don't know how to solve: *Notice: Undefined index: itemcode in /home/lh026/public_html/pro1/ostock.php on line 153* *Notice: Undefined index: saiz in /home/lh026/public_html/pro1/ostock.php on line 154* *Notice: Undefined index: quantity in /home/lh026/public_html/pro1/ostock.php on line 155* *1 Records deleted Successfully.* The data is not deleted in database but message show *1 Records deleted Successfully.*..Please help. <form name="form1" method="POST" action=""> <div id="content2" class="float_r"> <h1> </h1> <h4><a href="addstock.php"><img src= "img/add.png" /><strong> Add Items</strong></a></h4> <p><strong><font color="red"> <?php if($nume==0) { echo "You …

Member Avatar
Member Avatar
+0 forum 12

Hello, I'm currently working a project for class and I've gotten stuck. I am suppose to write a program that will read a csv file and create a text file with information from this csv file. So, far I have code that prompts for the file name and gives a "File not found" message, if the file does not exsist and will prompt over and over again until a vaild file name is entered. What I'm stuck on is a function that I've created to get the values of a certain column into a list. The code is below: def …

Member Avatar
Member Avatar
+0 forum 2

> hey guys,.how to get all word in first index in array below and index 2 futhermore get last word,.. $arr = array( array( '3'=>'repsol kawasaki honda ktm', '4'=>'kawasaki honda ktm bmw', '5'=>'honda ktm bmw ducati', '6'=>'ktm bmw ducati yamaha') , array( '13'=>'sdad dasda sdadad dasdads', '14'=>'dasda dasdad sdasdas asdas', '15'=>'dasd adasd asdasd sada', '16'=>'dasd asdasd asdaads asdas'), ); hope yield: Array ( [0] => Array ( [0] => repsol kawasaki honda ktm [1] => bmw [2] => ducati [3] => yamaha ) [1] => Array ( [13] => sdad dasda sdadad dasdads [14] => asdas [15] => sada [16] …

Member Avatar
Member Avatar
+0 forum 1

I am new to php, just made a simple calculator. when I don't select the radio buttons; a notice come up. Notice: Undefined index: r in E:\MY LOCAL SERVER\htdocs\php practise\calculator-form-advanced.php on line 59 Also I want show results in this input section <p> <label for="result">Result</label> <input type="text" value="" /> </p> --- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <form id="form1" name="form1" method="post" action=""> <p> <label for="num1">Number 1</label> <input type="text" name="num1" id="num1" /> </p> <p> <label for="num2">Number 2</label> <input type="text" name="num2" id="num2" /> </p> <p> <input type="radio" name="r" …

Member Avatar
Member Avatar
+0 forum 1

The End.