extraction

Why is lua crashing after extracting zip files?

I have the following code but it crashes every time it reaches the end of the function, but it successfully extracts all the files and puts them in the right location. require "zip" function ExtractZipAndCopyFiles(zipPath, zipFilename, destinationPath) local zfile, err = zip.open(zipPath .. zipFilename) -- iterate through each...

Data Extraction?

Hello everyone, Summer is here! And it is time for me to find a summer programming project as I am very fond of taking learning into my own hands.. My question to you is this, I am looking for methods to extract various data from various websites. I know there are programs out there you can buy but being that I am trying to learn I wan...

How to extract comment out of header file using python, perl, or sed?

I have a header file like this: /* * APP 180-2 ALG-254/258/772 implementation * Last update: 03/01/2006 * Issue date: 08/22/2004 * * Copyright (C) 2006 Somebody's Name here * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following con...

pdf text extraction

3 begincidrange <20> <7e> 1 <8140> <817e> 633 <8180> <81ac> 696 endcidrange This is a CMAP file sample. How do I make a CMAP for my own data ? What is 3 in 3 begincidrange what is <20> <7e>? can anyone give an example ...

Extracting data from a non-formatted string

I want to extract certain parts and be able to put it into a nice spreadsheet format. The important parts are the address, ward number, square feet, and price. I was going to try something really complicated in PHP(novice), but thought there might be an easier way. The data looks like this: 243-467 1402 E. Mt. Pleasant Ave. 50th...

c++ input stream not waiting for input with extraction operator overload

This problem is annoying me. Instead of waiting for input, it just closes. I've been trying to figure this out for a while now. Any ideas? istream& operator>>(istream& is, Account &a) { cout << "Enter an accoutn number: "; is >> a.accountNo; cout << endl; cout << "Balance: "; is >> a.bal; retur...

Is it a good idea to extract controller logic into a service that extends repository functionality

Hi, I had a controller POST action that is called List that accepts a status variable which can be the following values { "all", "active", "inactive}. Then I made repository calls based on the the value of "status" inside of the controller. The controller looked like this: [HttpPost] public ActionResult List(string status) ...

Extracting images from RTF using PHP?

Hello, I'm just wondering if anyone has any experience doing this? All of the resources I have seemed to find on the internet deal with doing the opposite (inserting images into RTFs), but it seems like extraction isn't that popular of a notion? Basically, I'm just wondering if it's possible to upload an RTF file using a form, and dump...

How can I extract all classes into separate file?

I'm using the Resharper trial and VS2008. Is it possible to extract all classes from one file into a separate file? I'm able to do this using Resharper but it only seems to work for individual classes. This is to be used on a file that was auto-generated that is 65,000 lines long. ...

How can I extract EDB (ms exchange storage file) to PST Under Linux? (preferably in Python)

I can extract and read messages from PST files using libpst , but i want to extract from edb files too (not online exchange server but from offline files). And in Linux. Any python lib or any kind for linux commandline tool should help. Thanks. ...

How to extract dll from the resource

my application uses Bass.dll and i added it to the resource. I wanted it to be extracted before the application starts it chrash. how to void it? ...

Gmail e-mail address extractor

I am looking for a way to extract all the email addresses of all the recipients from my gmail account... I have never worked with the Gmail API so any beginning directions are welcome\ preferably php ...

Is there another way to extract data dump from Planet.osm?

Hi! I need a data dump from planet.osm fiel for the NCR region in the Philippines. I'll be using it for an OpenStreetMap project. Is there a way that I can extract a small part of the planet.osm without downloading the whole file? I mean, the planet.osm file is 11GB in size, and I'll be only needing a fraction of it. Thank you in advance...

how to extract data from Java web application?

Hello, I need to extract data from a Java web application. To be specific I am looking to extract real time stock data from yahoo market tracker. can anyone please suggest any method? ...

how can i extract words from a string and insert them into the database? Tagging

i wanted to create a tagging system, so i want to know how can i extract the hashed words i.e #tag and then insert them into the database, can you lead me to a toturial or help out! thanks ...

Extracting data from a tab-delimited file with JavaScript

I'm trying to extract data from a data file that's tab-delimited (in some parts), and really seems like it's going to be a headache to work out (I reallw wish they could just have CSV-ed it). Here's the data: http://www.fededirectory.frb.org/FedACHdir.txt Here's the format description: www.fededirectory.frb.org/format_ACH.cfm I'd li...

Extracting japanese characters from pdf file using itext

I am trying to extract text from a pdf file that has japanese characters. I am using iText for this purpose However I am getting this exception. Exception in thread "main" ExceptionConverter: com.itextpdf.text.DocumentException: Font 'KozMinPro-Regular' with 'UniJIS-UCS2-H' is not recognized. Can anybody help me with resolving this iss...

Recommendations for PDF text extraction

Hello, can anyone recommend a library/API for extracting the text and images from a PDF? We need to be able to get at text that is contained in pre-known regions of the document, so the API will need to give us positional information of each element on the page. We would like that data to be output in xml or json format. We're curren...

What algorithm does Readability use for extracting text from URLs?

For a while, I've been trying to find a way of intelligently extracting the "relevant" text from a URL by eliminating the text related to ads and all the other clutter.After several months of researching, I gave it up as a problem that cannot be accurately determined. (I've tried different ways but none were reliable) A week back, I stu...

How to make a Java Program unextractable.

Sorry I am not very sure how to state the question title. My problem is like this, I had developed a Java program, and I wish to distribute it to my friends. So I export it to Jar file, but I don't want them to extract the jar file to view the code. Is there anyway to make the program so that nobody can get the source code instead just l...