Hello, i searching for methods or libarys to edit metadata of a pdf file like the programm becypdfmetaedit.
I want to write a program and i need this opton in this program.
Perhaps you have some samples for c#.
Thanks
...
Hi,
I've build an app in VS2008 and built an exe file.
when I copy the exe file to another computer it doesn't work.
I get the message: This application has failed to start because the application configuration is incorrect.
can someone please write the simple steps needed for this to be solved?
thanks.
...
Hi, I'm new to mac and Cocoa so I'm sorry if this is a stupid question..
I need to read all the lines I wrote on a file I saved on my desktop.
The file format is .txt; I tried with stringWithContentsOfFile but the program freezes.
I tried with GDB and I noticed that, while the path is correct, the string which is supposed to contain the...
I am using Java to develop an application, it needs to manage the file on the computer. The application have the ability/function to delete the file on the system. But I want to check whether the selected file is using/reading by another application or not first. Because I don't want to delete the file which is reading/using. How can I d...
I am not asking how to do file I/O, its just more of a formatting question. I need to write a variable number of characters to a file. For example, lets say I want to print 3 characters. "TO" would print "TO" to a file. "LongString of Characters" would print "Lon" to a file.
How can I do this? (the number of characters is defined in ano...
I would like to ask how can i display Japanese text in Eclipse properly. I work in Japan and the code we have has a lot of Japanese characters. I just notice that for .java and .jsp file, that all the Japanese comments and text are displayed properly as Japanese. However, for other filesm such as js (Javascript) file or inc (include) fil...
I'm developing a multi-threaded ASP.NET 3.5 application, during working with some file, I'm getting the following exception :
The process cannot access the file
because it is being used by another
process
I'm looking for a way to know exactly which process is locking that file so I can stop its access to the file. OR if that i...
I have a huge file on my unix server from which I need to extract certain parts
The format of the line is
aNumber timestamp commandInformation
I use the command
grep LATENCY file.log | grep CMDTYPE=NEW
to filter out certain lines that I want. I only want the part timestamp and the last 9 characters from the line to be returned, n...
I have two fields in my text file which are
timestamp number
The format of timestamp is hh:mm:ss.mmm
some sample records are
18:31:48.345 0.00345
18:31:49.153 0.00123
18.32:23.399 0.33456
I want to print out averages of records which are no more than 30 second apart. what is a good and fast way of doing it
...
I have form created by the admin generator in the backend of a website. It allows the upload of a video to the site.
It works fine but strangely, the upload fails for files of 10mb or over. However, I have not set any file limits in my form.
Are there Symfony/PHP/Apache/web browser settings regarding this type of behaviour that I can l...
I am using the following code to upload the file on my server.
How do I store it in a particular folder?
if ($_FILES["file"]["error"] > 0)
{
echo "Error: " . $_FILES["file"]["error"] . "<br />";
}
else
{
echo "Upload: " . $_FILES["file"]["name"] . "<br />";
echo "Type: " . $_FILES["file"]["type"] . "<br />";
echo "Size: " ...
I frequently see python code similar to
for line in open(filename):
do_something(line)
When does filename get closed with this code?
Would it be better to write
with open(filename) as f:
for line in f.readlines():
do_something(line)
...
What is the best way to undo the writing to a file? If I'm going through a loop and writing one line at a time, and I want to undo the previous write and replace it with something else, how do I go about doing that? Any ideas?
Thanks in advance!
...
Hi,
I am looking to use Apache mod_rewrite to serve a file as .jpg instead of .jpeg. Is this possible?
...
I have a project composed of 100s of files. One version contains a bug that the other does not. Is there some tool I can use to compare everything at once? I was thinking I could examine each difference to see if it's causing the problem. (There wouldn't be too many differences, it's just a matter of finding them.)
...
I have a method which returns an File object. I need to know when the file is getting closed. This is not as simple as overwriting the close method. The close method is not called if the file is closed by the destructor.
It should work like this:
def something
get_lock_on_file
file File.new("foobar")
file.on_close { release...
I am writing an application that has a very loosely defined config file that is read in during startup. The file is easy to parse and looks something like the following:
tag1 = value1
tag2 = value2
tag3 = value3
tag4 = value4
with tags and values being the information that a user may want to configure. As I said previously, the file...
I need to write a script that goes to a page, copies the source of the page, and stores it as a string to be outputted withing another page. I'm forced to do this due to the fact that the target page is dynamic, and apparently we need static records of that page within our internal system.
I know a limited amount of php. Can anyone poi...
What is wrong with my code? (I'm trying to at least get copy a file with this code in XCode (OS X 10.6 Snow Leopard.)
I keep on getting a SIGABRT with an malloc_error when running:
Lesson 4(796) malloc: *** error for object 0x10000a8a0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Here's th...
string[] fileEntries = Directory.GetFiles(pathName, "*.xml");
Also returns files like foo.xml_ Is there a way to force it to not do so, or will I have to write code to filter the return results.
This is the same behavior as dir *.xml on the command prompt, but different than searching for *.xml in windows explorer.
...