in this table how to extract table data and mainly get value after the <b> tag like email id, tel, address <table width="100%" cellspacing="0" cellpadding="10" border="0" class="text"> <tbody> <tr valign="top" onmouseout="this.className = 'pa-nor'" onmouseover="this.className = 'pa-row-highlight'" class="pa-nor"> <td width="50%"> <span class="text1"> School name</span><br> <font color="#cococo"><i>Secondary School</i></font><br> <b>Principal Name:</b> kannan<br> <b>Name of Trust:</b> school Trust </td> <td width="50%"> <b>Address:</b> school address...<br> <b>Pin Code: </b>123456<br> <b>Tel: </b>963852<br> <b>Email:</b> sample@yahoo.co.in </td> </tr> </tbody> </table>

Member Avatar
Member Avatar
+0 forum 3

If I want to search for some tag, and I have not any so tagged post in front of me, how I open posts with that tag? I know that if I have one similarly tagged I can only click the tag.

Member Avatar
Member Avatar
+0 forum 3

Hey everyone. I'm new here just looking for some guidance / pointers. I'm working on a program to figure out what kinda data is contained with in unknown file types which belong to a game I'm modding. There are a few programs that all ready extract data from the main archiv files but it out puts files that are labeled with unknown extensions so I'm trying to figure out what these files Are... so is there any simple way to do this? Maybe certain headers i can look for?

Member Avatar
Member Avatar
+0 forum 1

heyy all ,, i'm trying to get the middle word of sentence contains 3 words using find and substr.. this is the code : #include <iostream> #include <string> using namespace std; void main() { string sentence; cout << "enter a three-words sentence :"; getline(cin, sentence); string middle = sentence.substr(sentence.find(" ") + 1, sentence.find(" ")); // find the middle word cout << middle << endl; //Print the middle word system("pause"); } so guys what is the solution!!please be helpful :) <3

Member Avatar
Member Avatar
+0 forum 7

plz tell me

Member Avatar
Member Avatar
+0 forum 1

import java.util.*; public class Node { int costs[][]=new int [4][4]; int mincosts[]=new int [4]; int dest[]=null; ArrayList packets=new ArrayList(); Simulator sim=null; /** *@param args */ public RoutingPacket creatertpkt(int srcid, int destid,int mincosts[]) { RoutingPacket oRPacket =new RoutingPacket(); oRPacket.setSourceid(srcid); oRPacket.setDestid(destid); oRPacket.setMincost(mincosts); return oRPacket; } void rtinit(int srcid,int dest[], int initcosts[][],int initMinCosts[],Simulator s) { System.out.println("Entering rtinit\n"); costs=initcosts; mincosts=initMinCosts; sim=s; this.dest=dest; for(int i=0; i<dest.length ;i++)sim.toLayer2(creatertpkt(srcid,dest[i],mincosts)); //packets.add(creatertpkt(srcid,dest[i].mincosts)); printTable(); } public void rtupdate(RoutingPacket oReceivedPacket){ System.out.println("Entering rtupdate"); int destid, i,j; int srcid = oReceivedPacket.sourceid; for(destid=0; destid < 4; destid++) { int mincosts12[] = {999,999,999,999}; //if there is a new min distance if (oReceivedPacket.mincost[destid]!=999) { //update distance …

Member Avatar
Member Avatar
+0 forum 4

**i am tring to this way but answer is not write....thx...** #include<stdio.h> #include<conio.h> void main() { float a[10],m; int i,j,n,t; clrscr(); printf("how many number in array\n"); scanf("%d",&n); printf("enter %d number\n",n); for(i=1;i<=n;i++) { scanf("%f",&a[i]); } for(i=1;i<=n;i++) { for(j=i+1;j<=n;j++) { if(a[i]>a[j]) { t=a[i]; a[i]=a[j]; a[j]=t; } } } if(n%2==0) { m=a[(n/2)+((n/2)+1)]/2; } else { m=a[(n+1)/2]; } for(i=1;i<=n;i++) { printf("%.1f\t",a[i]); } printf("\nmiedan value is %.1f",m); getch(); }

Member Avatar
Member Avatar
+0 forum 2

so, im trying to make a simple funtion to see if there is a file in a folder. been looking everywhere but havent found one that worked out. annnnnnnnnnnnnd code snippet: ` WIN32_FIND_DATA FindFileData; HANDLE hFind; hFind = FindFirstFile(_T"C:\\Dev-Cpp\\notes", &FindFileData); if (hFind == INVALID_HANDLE_VALUE) { cout << "No File found\n"; } else { cout << "Guess I found a File\n"; } well, the function comes up with no errors but if the file is empty it says that it found a file. can someone tell me what am i not seeing?

Member Avatar
Member Avatar
+0 forum 7

hello, i just want to find difference between two dates interms of days by getting dates as a user input. i tried getting user input using raw_input but it shows some erroe message. can anyone tell me the right coding for this one.urgent please...

Member Avatar
Member Avatar
+0 forum 1

I am attempting to use preg_replace to purge everything except letters and numbers in the $_POST, however is seems to be failing to work. Sample code below demonstrating the problem. <html> <?php if( isset($_POST["name"]) || isset($_POST["age"]) ) { $x1 = preg_replace('[^A-Za-z0-9]', "", $_POST['name'] ); $x2 = preg_replace('[^A-Za-z0-9]', "", $_POST['age'] ); $_POST['name'] = $x1; $_POST['age'] = $x2; echo "Welcome ". $_POST['name']. "<br />"; echo "You are ". $_POST['age']. " years old."; } else{ $_POST['name'] = 'null'; $_POST['age'] = 'null'; } ?> <body> <form action="<?php $_PHP_SELF ?>" method="POST" onsubmit=" "> <br> Name: <input type="text" name="name" /> Age: <input type="text" name="age" /> <input …

Member Avatar
Member Avatar
+0 forum 2

I have a 2 textbox 1 text box is empty . text2 is multine true second text box have some words. text2 text Example : "12345 is my number and 03451234567ddddsfsa somethingis wrong034512345find 03451234567" .............. i want to find 03451234567 11digit number in text box with first 3 or 4 numbers i mean when we type 034 or 0345 in text1 and click command button then find 0345 in text box and select all numeric number means 03451234567 and add to a listbox. Note: when find 0345 and check 11 digits or max . if find max to 11 digits …

Member Avatar
Member Avatar
+0 forum 1

Hello, I am trying to write a macro for Excel 2003 that will allow me to search for two words in Sheet1, copy all the data below those words, and then paste that data in Sheet2. That part I can get to work. My problem is that I have multiple instances of the words I am searching for (which are Force and Grade). In Sheet1, there are usually 5 instances of Force and Grade each, although the real number is unknown. I can't seem to loop through though so that the macro will search for all instances. It just finds …

Member Avatar
Member Avatar
+0 forum 1

Hello I have this code to detect the user browser, using if and else: [CODE]<?php if(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== FALSE) echo 'Internet explorer'; elseif(strpos($_SERVER['HTTP_USER_AGENT'], 'Firefox') !== FALSE) echo 'Mozilla Firefox'; elseif(strpos($_SERVER['HTTP_USER_AGENT'], 'Chrome') !== FALSE) echo 'Google Chrome'; else echo 'Something else'; ?>[/CODE] Is there a way to do this using the switch statement? I tried this, and it does not work, it just retuns default: [CODE]<?php switch(strpos($_SERVER['HTTP_USER_AGENT'], $browser) !== FALSE) { case $browser='MSIE': echo 'Internet explorer...'; case $browser='Firefox': echo 'Mozilla Firefox...'; case $browser='Chrome'; echo 'Google Chrome...'; default: echo 'Something else...'; } ?>[/CODE]

Member Avatar
Member Avatar
+0 forum 13

Hi I need help with finding the area underneath a curve. Here is what I have so far; #include "stdafx.h" #include <iostream> #include <string> #include <cmath> using namespace std; struct term { float coeF; float exP; char name; }; struct function { int size; term terms[10]; }; struct Integral { float lowerBound; float upperBound; function func; }; float findHeightOfFunction(function func, float x); int main() { Integral integral; char userContinue = 'y'; for(int i=0;i<10;i++) { //fill the term cout<<"Enter in a coefficient: "; cin>>integral.func.terms[i].coeF; cout<<"Enter in an exponent: "; cin>>integral.func.terms[i].exP; cout<<"Do you want to enter in more terms: "; cin>>userContinue; if(userContinue …

Member Avatar
Member Avatar
+0 forum 5

I wanted a graphical representation of the listing of my files and folders from the command line interface, just like what the CLI **tree** would give on linux system, I really don't like how the same command is displayed on windows. So, I called on ma 'Cherie' Perl do it for me. The posted perl script works fine, even on perl version as old as *5.6.0*. Please feel free to use, comment and modify for your own good. I would also be willing to help in case anyone what explaination or usage on **this** code. Thanks for stoping by, checking …

Member Avatar
+0 forum 0

Hey guys, I've been tearing my hair out for some time trying to figure out why my jquery has suddenly stopped working. The jquery script that I have written is fairly simple: $(document).ready(function () { $("#pTab").addClass("active"); $("#pBtn").click(function () { $("#pTab").addClass("active"); $("#gTab").removeClass("active"); }); $("#gBtn").click(function () { $("#gTab").addClass("active"); $("#pTab").removeClass("active"); }); }); I reference this file as such: <%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="project.Default" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> <script type="text/javascript" src="Scripts/CustomScripts/Default.js"></script> <title> Home </title> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="body" runat="server"> <div class="containerCustom"> <ul class="navCustom nav-tabsCustom"> <li id="pTab" runat="server"> <a id="pBtn" runat="server" href="#">Tab 1</a> </li> <li id="gTab" runat="server"> <a id="gBtn" runat="server" href="#">Tab …

Member Avatar
Member Avatar
+0 forum 5

I really got bored and tired of trying to find or remember some codes usage in so many files saved on my system, when it was needed. So, I called 'Monsieur' perl for help, hacking together some codes which works great for me and solve my problem of boredom. You run the code from the CLI, like so: perl <perl_script.pl> <-l | -location> <-s | -search > E.g. perl search_doc.pl -l Desktop/Doc_file -s Win32::OLE 1. Your perl file : search_doc.pl 2. Your location : -l Desktop/Doc_file or -location Desktop/Doc_file 3. Your search string: -s Win32::OLE or -search Win32::OLE You can …

Member Avatar
Member Avatar
+0 forum 14

Hi ! I have a column of 'City', now I want to compare the value of each cell of 'City' against the column 'City_Check'; the cell where the value matches, pick the value of 'City_ID' column & replace the city name with that ID in the 'City column'. * The Image clarifies what I want(Plz see the attachments)... I have my original data file attached as well. Regards.

Member Avatar
Member Avatar
+0 forum 5

I have a replace button which has to replace a word that is searched inside the richtextbox(rtb).But the code is not working, help me identify my mistake. Thank you If HTMLopt.rtb.SelectedText.Length <> 0 Then HTMLopt.rtb.SelectedText = txtReplacementText.Text End If Dim StartPosition As Integer = HTMLopt.rtb.SelectionStart + 2 Dim SearchType As CompareMethod If chkMatchCase.Checked = True Then SearchType = CompareMethod.Binary Else SearchType = CompareMethod.Text End If StartPosition = InStr(StartPosition, HTMLopt.rtb.Text, txtSearchTerm.Text, SearchType) If StartPosition = 0 Then MessageBox.Show("String: '" & txtSearchTerm.Text.ToString() & "' not found", "No Matches", MessageBoxButtons.OK, MessageBoxIcon.Asterisk) Exit Sub End If HTMLopt.rtb.Select(StartPosition - 1, txtSearchTerm.Text.Length) HTMLopt.rtb.ScrollToCaret() HTMLopt.rtb.Focus()

Member Avatar
Member Avatar
+0 forum 7

A little find and replace function for PHP, not tested, but theoretically should work.

Member Avatar
Member Avatar
-1 forum 5

this is the below code in which when user press enter then the details of textbox go into gridview then again when user press enter then if that record is already available then not allow to insert in gridview.i a unable to do this please help any one... If Asc(e.KeyChar) = 13 Then If txt_itemno.Text = "" And txt_qty.Text = "" And txt_disc.Text = "" Then ElseIf txt_qty.Text > qty Then MsgBox("Insufficient qty.") txt_qty.Focus() Else Dim intcount As Integer = 0 For Each Row As DataGridViewRow In dgv_sale.Rows If dgv_sale.Rows(intcount).Cells(0).Value = Val(txt_itemno.Text) Then res = MsgBox("Item Already Exist.Do You Want …

Member Avatar
Member Avatar
+0 forum 4

Hi I have a site built on Wordpress which has a over 4,000 posts all with the suffix -2 at the end of the post name (due to me forgetting to clear the trash) before running an import). I would like to remove the -2 from the post names with a little bit of SQL so that for example my-example-post-2 becomes my-example-post and so on. The table is wp-posts and the field is post_name. I tried update wp_posts set post_name = replace(post_name,'-2',''); but this didn't work, I suspect but not sure, it may be because it looking for an actual …

Member Avatar
Member Avatar
+0 forum 2

HI, I have a class Customer and Vehicle. Fist a customer needs to be added to the application. when a vehicle is being added the customer id needs to be added also so i wrote the code as below @Override public void addVehicle( String make, String model, String year, String reg, String vin, String miles,String cid) { Vehicle v = new Vehicle(); //v.setVehicleid(id); v.setMake(make); v.setModel(model); v.setVehicleyear(Integer.parseInt(year)); v.setRegno(reg); v.setVin(vin); v.setMiles(Integer.parseInt(miles)); Customer c; try{ **c = customerService.findCustomer(cid);** v.setCusid(c); } catch(Exception e) { System.out.printf("error " + e.toString()); } entityManager.persist(v); } the line which is bold throws an null point exceptoin. i searched for …

Member Avatar
Member Avatar
+0 forum 7

Hello Friends, I need your help again sample code `<div id="generic_photo125_addinputs"><ul><li><input type="button"/></li></ul></div>` The above code generated automatically, i like to hide the button inside the li, Now the problem is all the ids, class everything is generated dynamically,so i cant able to target the button based on the selector,Is it possible to select the word "photo125" using contains method? your help will be greatly appreciated.

Member Avatar
Member Avatar
+0 forum 2

How to find which operating system is running the PC in C++?

Member Avatar
Member Avatar
+1 forum 3

someone help me to find drivers

Member Avatar
Member Avatar
+0 forum 1

I have a flat file (template) where I want to replace variables based upon value in another file (csv). Variables in them template are named %VAR_Xz% The values are in the csv file and X is field 0 of each line and y field 1 and up. Example: Badidas, 13.00, 12.00, 11.00, 10.00 Cuma, 12.00, 11.00, 10.00, 9.00 Dswiss, 23.00, 22.00, 18.00, 16.00 Now I want to replace each field in the template with the values of the csv file. %VAR_Cuma1 becomes 12.00 %VAR_Cuma2 becomes 11.00 etcetera What would be the best way to do this ?

Member Avatar
+0 forum 0

Is it possible to find where a user **clicked** on the site, not just where it is his mouse ? -(doesn't matter in what website programming language) Thanks alot!!

Member Avatar
Member Avatar
+0 forum 1

How do I check if a certain IP address is online and get its current location in c#

Member Avatar
Member Avatar
+0 forum 1

I'm taking a beginning java class and I'm trying to create a helper method to get a input from a user and combine all four methods into a package I can use in my programs after. I keep running into trouble with the last method, getMenuStringFromUser, the error it gives me says java cannot find symbol method getIntegerFromUser(java.lang.String,int,int) here's what i have so far package bulletproof; import java.util.*; //BULLETPROOF METHOD FOR INTEGERS // better general method with low and high limits class getIntegerFromUser { public static int getIntegerFromUser(String prompt, int low, int high) { Scanner keyboard = new Scanner(System.in); while …

Member Avatar
Member Avatar
+0 forum 3

The End.