I see lots of info and tutes on how to use some XLIFF translators, and how to create .po files, but how do I create an XLIFF file?
It seems XLIFF editors allow you to open and translate an XLIFF file, but not create one.
Be gentle, I'm just a programmer. I don't know about human languages... :P
...
I want to be able to generate random strings from the windows command prompt. This is so that i can create a temp file with that random name so that i am sure that the temp file absolutely does not exist.
Is this possible?
...
I need a function just like preg_replace but instead of strings I need it to work with files / file content.
...
Hi,
I want to use Multiple File Upload With JQGrid builtin Inline/popup Editing. User will supply some meta info and file. Meta info will go to DB and file will be saved on web server. I need to do this on Submit button. Any Suggestion/reference ?
...
Hi,
We are setting up two server systems. One of which will host a 3rd party application which will by default save certain data on a local folder:
/opt/application/common/recordings
How do I create a "writable share" on the other server (with appropriate permissions), so that all these files from the first server are saved on the...
I want to check if a value exists in an array made from a text file. This is what I've got so far:
<?php
$array = file($_SERVER['DOCUMENT_ROOT'].'/textfile.txt');
if(in_array('value',$array)){
echo 'value exists';
}
?>
I've experimented a little with foreach-loops as well, but couldn't find a way to do what I want.. The values in t...
I am planing to bulid www portal in PHP, where many pictures will be stored. I decide to store pictures in directories at the server(not DB) for performence reason. Some pictures will be accessible for all users from internet, and some (if user set them private) not according to session id. What is the best solution of this problem? Perf...
Hi all
I want to read a very big text file(a log file of a web app)and do some processing.
Is there any Framework to help doing such work ?
The file is 100M+,shall I use mutil-thread ?
best regards
...
Is there any way, using C#, to monitor a specific file then change its contents before it is read by specific applications?
Here is the situation:
I have a Windows 2003 Server running ASP.NET with a configuration file (xml) which contains LDAP information. I want to have the LDAP password encrypted. I'm trying to devise a way to monit...
I am saving a UIImage using following code.This image is saved in My application's Documents folder.
NSString *pngPath = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents/Test.png"];
[UIImagePNGRepresentation(currentImage) writeToFile:pngPath atomically:YES];
How to get back this image in Three20 TTThumbsViewContro...
Hi Gurus,
We have an AIR application which connects to a WAMP server.
We support tiff images currently. We have a neat feature of previewing
a tiff image( uses a URLLoader to read the bytes and opens the image in a popup)
We want to extend this preview feature to other types of files too like "pdf",
"doc", "movie file" etc.
Please let...
I need to check if a file exists on my server without using cache. The methods I have used are all returning a 200, even if the file does not exist, so I can only assume there is a cache problem, or theres a problem with my code.
Heres my code: for arguments sake..the URL is changed in this example, but the url is correct in my code.
N...
Hi. There are numerous plug-ins to preload images, but is there a way to preload javascript? My application uses a big js file and it take about 5 seconds or so to load before the page shows... so, is there a way I can display a "loading message" while I somehow preload the script? (A sort of 'Loading...' like in Gmail)
Thanks
...
I have a script that parses large files line by line. When it encounters an error that it can't handle, it stops, notifying us of the last line parsed.
Is this really the best / only way to seek to a specific line in a file? (fseek() is not usable in my case.)
<?php
for ($i = 0; $i < 100000; $i++)
fgets($fp); // just discard this
...
I am reading an XML file and reorganizing the desired data into Python data structures (lists, tuples, etc.)
For example, one of my XML parser modules produces the following data:
# data_miner.py
animals = ['Chicken', 'Sheep', 'Cattle', 'Horse']
population = [150, 200, 50, 30]
Then I have a plotter module that roughly says, e.g.:
# ...
In action method (JSF) i have something like below:
public String getFile() {
byte[] pdfData = ...
// how to return byte[] as file to web browser user ?
}
How to send byte[] as pdf to browser ?
...
Hello,
I've got this wired problem, I cannot get the content from the file and initiate my NSMutableArray with it.
Here's my code:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSLog(@"Does file exist?: %i", [[NSFileManager d...
Hi,
Im trying to downlaod a file with php that is located on a remote server, and having no luck. Ive tried using fopen, get_file_contents, but nothing has worked.
I am passing in a download URL, which isnt the exact file location, it is the "download url" of the file, which then forces the browser to download.
So Im thinking that is ...
in my app I'd like to open a temp file with FILE_FLAG_DELETE_ON_CLOSE. however there are some cases where the temp file needs to be kept and is quite large
I'd like to remove the FILE_FLAG_DELETE_ON_CLOSE attribute on an opened handle? is this possible? copying the contents of the file or renaming isnt quite what I want, I'd like to...
I am coding for a rar password cracker. I am reading the password from a file and passing it to sprintf function. This is the code.
FILE* fp = fopen("password.txt","r");
while ( fgets ( pword, sizeof(pword), fp ) != NULL )
{
sprintf(command, "rar e -p%s realp.rar", pword);
printf(command);
//system...