24 Unanswered Topics

Remove Filter
Member Avatar for
Member Avatar for Traevel

#Tutorial - Content extraction using Apache Tika From the official website: > The Apache Tika™ toolkit detects and extracts metadata and text from over a thousand different file types (such as PPT, XLS, and PDF). All of these file types can be parsed through a single interface, making Tika useful …

0
453
Member Avatar for grakovski

Hello. I have one problem with only one text witch shows two times (i want only once) Here is picture: http://i.imgur.com/cfOrBCs.png Maybe the for cycle loops this text and...this is happen. I want to show only once in the middle. Here is code: var matchcount = 4; $.ajax({ type: 'GET', …

0
219
Member Avatar for joselalupa

i am trying to use xerces in ubuntu 13.10, it is instaled, i can see the files in usr folder but i have no luck including it in eclipse cdt, i've found this thread "[Click Here](http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/409769/ubuntu-11.10-xerces-c)" but it is dead and the answer is not clear for me, could anyone …

0
193
Member Avatar for David W

In the last few days, I have noticed a very old thread ... resurrected ... about a non-standard C getline function. To all who may like a C readLine function ... a C function that reads in a dynamic C string of any length ... a function with a similar …

0
210
Member Avatar for tunisia

What's a better way to do this? I need to sift through this file and store the following values Cpl File name Content kind Package type Encryption status Container File size Duration Timed text/png Number of audio channels 2d/3d Fps 1) I'm not sure if I should just store these …

0
191
Member Avatar for perly

Hi, I tried parsing a multi-record genbank file (from this site: http://biopython.org/DIST/docs/tutorial/examples/ls_orchid.gbk) using the code below. The code returned an error: readline() on unopened filehandle at parser.pl line 62. The code: #!/usr/local/bin/perl -w use strict; my $record; print "Please type in the name of a file\n"; my $file = <STDIN>; …

0
148
Member Avatar for Shivam_4

Can someone help me with solving boolean expressions with the help of forward chaining. A good tutorial will also help me. Example: A.(A + B) = A A.(A + B) => A.A + A.B [Applying distributive law] A.A + A.B => A + A.B [Applying idempotency law] A + A.B …

0
181
Member Avatar for Suzie999

(edit) this is solved, was a unicode issue. Hi I'm hoping someone has used the library [pugixml](http://pugixml.org/) I'm just trying to use a simple example provided but I'm not getting the result I expect. int _tmain(int argc, _TCHAR* argv[]) { pugi::xml_document doc; pugi::xml_parse_result result = doc.load_file("tree.xml"); //pugi::char_t * c = …

0
151
Member Avatar for aashishkulkarni

I am going to create graphics interface to intermediate code generated by the gcc. so the output from gcc is like ;; Function main (main, funcdef_no=1, decl_uid=2162, cgraph_uid=1) main () { int i; int c[10]; int b; int a; int D.2177; <bb 2>: a = 1; b = 20; if …

0
150
Member Avatar for fabrizio19

Dear forummembers, Well I am a total noob in visual basic programming, but I want to make a program that opens an ascii file that i choose and reads the file line per line. The ascii file excist as follow 0.0000 Start of measurement time id rx dlc b0 b1 …

0
118
Member Avatar for *sharath*

I am using a json function to parse a link and return a json object. the code is below : public JSONObject getJSONFromUrl(String url) { // Making HTTP request try { // defaultHttpClient DefaultHttpClient httpClient = new DefaultHttpClient(); HttpPost httpPost = new HttpPost(url); Log.v("url", " " + url); HttpResponse httpResponse …

0
109
Member Avatar for c.pentasuglia

Hey all, I need to get a design going to parse some XML files, in the past i have used XStream to parse files, however it doesn't appear to be working in this case. Here is a sample of the generated XML i'm trying to parse: <debugging level="0" /> XStream …

0
77
Member Avatar for c.pentasuglia

Hey all, I need to get a design going to parse some XML files, in the past i have used XStream to parse files, however it doesn't appear to be working in this case. Here is a sample of the generated XML i'm trying to parse: <debugging level="0" /> When …

0
106
Member Avatar for skat123

Getting the following error while running the website script Parse error: parse error, expecting `';'' in F:\xampp 1.7.1\xampp\htdocs\engine\includes\functions.php on line 23 Please help to solve this. Here is the coding of functions.php from line 1 till end function paging( $frontUrl, $backUrl, $currentPage, $rowsPerPage, $allRows ) { global $langArray; if ( …

0
99
Member Avatar for fiaworkz

I am developing a program that gets the html source code of a certain webpages in a website. I already developed one program that does so, here's the sample code Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create(TextBox2.Text) Dim response As System.Net.HttpWebResponse = request.GetResponse() Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream()) Dim …

0
81
Member Avatar for TrustyTony

Here is an amazing article. Peter Norvig does not let small detail, that the language was never implemented in it's time, disturb his debugging the code written without implementation, but single handedly implements it with Python parser. Frustration warning, this is frustratingly amazing stuff: [Prescient but Not Perfect: A Look …

0
407
Member Avatar for kernel>panic

I wrote an XML parser that works great to fit my needs, but I can't retrieve the root attribute nodes no matter what I try! So far I have the following code that works great to retrieve the child tag values: import xml.dom.minidom def parse(filename): xmlDoc = xml.dom.minidom.parse(filename) tag = …

0
120
Member Avatar for mrjimoy_05

Hey all, I have a problem to read a XML file using XmlReader. I have this code: [CODE] Dim xCount As Integer = 0 Using xReader As XmlReader = XmlReader.Create("tekno.xml") TreeView1.Nodes.Clear() Do While xReader.Read() With TreeView1 .Nodes.Add(xReader.Item("title")) .Nodes(xCount).Nodes.Add("(link: " & xReader.Item("link") & ")") .Nodes(xCount).Nodes.Add("Date: " & xReader.Item("pubDate")) .Nodes(xCount).Nodes.Add(xReader.Item("description")) xCount = …

0
94
Member Avatar for caseyl89

So I have this code so far to parse some values from many XML files. What I can't figure out is how to declare the folder that i need it to open. I need the code to open up a folder on my c:\ that has lots of xml files …

0
72
Member Avatar for madval88

I have a Mysql database and I am trying to import multiple records with multiple columns into Flash AS3 using PHP. My problem is I am able to make it work with a single column and multiple records but for multiple columns I am not being able to format it …

0
86
Member Avatar for Safia Abdalla

I was curious about the workings of extracting URLs fro webpages. I did several searches for this subject online, and discovered that some people preferred using regular expression while others preferred using parsers. I would like to ask the Daniweb community what they prefer. If you prefer a regular expression …

0
84
Member Avatar for sammiepooh

Hello, I am fairly new to this site and am new at studying unix/linux OS. Recently I had an assignment involving finding a script that had run an administrative task such as checking file systems periodically. With it, I had to take each line and describe in my own terms …

0
149
Member Avatar for herbozo2

hi guys, I'm kind of new with xml. I have an xml file in the following format, with 592 records: [CODE]<?xml version="1.0" encoding="ISO-8859-1"?> <data> <item> <buildingName>Chateau</buildingName> <address>81 North Broadway, White Plains, NY</address> <mail>I</mail> <laundry>I</laundry> <garbage>I</garbage> <parking>I</parking> <rating>No Access</rating> <municipality>White Plains</municipality> </item> <item> <buildingName>44 Franklin Avenue</buildingName> <address>44 Franklin Avenue, New Rochelle, …

0
73
Member Avatar for urzur

Hello, I'm trying to convert a double (3.16) and take its integer part (3). However I'm encountering problems doing this. Can someone pleeease help me out ? Here is my code: [CODE]main: li $v0, 7 #asking the user for a double syscall mov.d $f2, $f0 cvt.s.d $f4, $f2 #converting from …

0
106

The End.