Im trying to export a program in eclipse to a .jar file. To my project in I have added some pictures and pdf. When im exporting to jar file, it seems that only the main has ben compiled and exported. My will is to export everything to a jar file if its possible becaus then I want to convert it to an extrakteble file, like .exe-file.
But...
I'm writing a little utility that starts with selecting a file, and then I need to select a folder. I'd like to default the folder to where the selected file was.
OpenFileDialog.FileName returns the full path & filename - what I want is to obtain just the path portion (sans filename), so I can use that as the initial selected folder
...
Hi all,
I understand it is possible to do so using excel macro, see: http://stackoverflow.com/questions/49724/programmatically-extract-macro-vba-code-from-word-2007-docs
But What I want to do here is to use VB6 to make an application which does the same thing.
I am having problem on how to point to the excel workbook (thisworkbook.VBpro...
I need to extract tokens that are marked with curly brackets from a given string.
I have tried using Expresso to construct something that will parse...
-------------------------------------------------------------
"{Token1}asdasasd{Token2}asd asdacscadase dfb db {Token3}"
-------------------------------------------------------------
...
Suppose I have an array of a objects of user defined class. Wanted to know how do I extract the elements of the array in PHP.
// class definition
class User
{
public $fname;
public $lname;
}
// array of objects of the class defined above
$objUser1 = new User():
$objUser2 = new User():
$objUser3 = new User():
$objUser4 = new User():
$a...
Hello,
This is my code:
// c++ (main.cpp)
#include <vector>
#include <iostream>
#include <boost/python.hpp>
#include <boost/python/enum.hpp>
#include <boost/python/def.hpp>
#include <boost/python/module.hpp>
using namespace std;
using namespace boost;
using namespace boost::python;
class Base
{
public:
Base(void) {}
virtual void ...
I've gradually come to fully rely on Firefox's ability to recover my tabs after any kind of crash. That faith was not entirely ill-founded but what I didn't have a contingency plan for was accidentally closing the Firefox window and saying not to save the session. That just happened when my dad borrowed my laptop to check his email. O...
I want to extract only the leaf nodes from an XMLTYPE object in Oracle 10g
SELECT
t.getStringVal() AS text
FROM
TABLE( XMLSequence(
XMLTYPE(
'<xml>
<node>
<one>text</one>
</node>
<node>
<two>text</two>
</n...
I want to extract contents of title tag from html string. I have done some search but so far i am not able to find such code in VB/C# or PHP. Also this should work with both upper and lower case tags e.g. should work with both <title></title> and <TITLE></TITLE>. Thank you.
...
Ok I have been working on this gallery for some time and I keep getting little tidbits. It is now time to finish it off. I have a datalist which binds to an array of *.aspx image urls that contain a thumbnail id that is sent through the url. I now need to implement an onclick event, that when a user clicks on a photo, it brings them to t...
Hi, I have this number extracting problem.
I want to get all matches that don't have a certain number in it
ex : 125501874, 125001873
Every number that as 55 at the position 2 are not to be considered.
The first numbers range is 0 to 9 and the second is 1-9 so the real range is [01-99]
(we cannot have 00 as the first two number)
With L...
Can anyone help me by explaining how to extract image urls from HTML File in C#
...
I want to get an HTML page with python and then print out all the IPs from it.
I will define an IP as the following:
x.x.x.x:y
Where:
x = a number between 0 and 256.
y = a number with < 7 digits.
Thanks.
...
Hey everyone,
I was recently reading this thread, on some of the worst PHP practices.
In the second answer there is a mini discussion on the use of extract(), and im just wondering what all the huff is about.
I personally use it to chop up a given array such as $_GET or $_POST where I then sanitize the variables later, as they have bee...
Hi all,
i'm trying to extract the content of an special div-tag(defined by his classname) out of a string that contains html source. I think the regexp-features of Java are not as easy to use as in perl, right?
Does anyone did this before and can give me a piece of code? perhaps dom-browsing is a good solution, but i didn't found any tu...
I am attempting to extract all instances of a particular format from a string:
I am wondering if my new Sony [PT# 123456ABC; Sony] has this feature but my friend says the new Toshiba [PT# AD-3232hjk; Toshiba] has this feature.
I would like to extract:
[PT# 123456ABC; Sony]
[PT# AD-3232hjk; Toshiba]
As you can see here, t...
We currently use print2flash (http://print2flash.com) to convert user submitted documents (Word documents, RTF, PowerPoint, etc) into Flash-based documents that can be viewed online (a la docstoc and scribd).
We would like to index the text inside these files for full-text indexing. Are there any tools or libraries we can use to accomp...
When a user selects a file in a web page I want to be able to extract just the filename.
I did try str.search function but it seems to fail when the file name is something like this: c:\uploads\ilike.this.file.jpg.
How can we extract just the file name without extension?
...
Hey!
I'm writing a script to extract files from a zip archive into the directory that the script is located.
Here's my code:
$zip = new ZipArchive;
if ($zip->open('latest.zip') === TRUE) {
$zip->extractTo('.');
$zip->close();
unlink('installer.php');
echo 'it works!';
} else {
echo 'failed';
}
This works fine, but there's one p...
I have an mht file, I wish to get all the text of the mht. I tought about using regex, but I have other languages in the mht except english, so the text itself contains stuff like A7=A98=D6...
select all the text of a file viewed in your browser, and then copy and paste it into a notepad - this is what i need.
Thanks.
...