I mean 100+ MB big; such text files can push the envelope of editors.
I need to look through a large XML file, but cannot if the editor is buggy.
Any suggestions?
Hi,
In my C++ project when I have to go for the inclusion (#include "myclass.h") of header files?? And when I have to go for forward declaration of the class (class CMyClass;) ?? Any suggestions regarding this are welcome.
What is the best way to fill a template file with variables, which are collected from a Windows Form or Web Page. I want to create a wizard program that collects some data from user, for instance, reportname, reporttype, etc. and I need to create then some xml files (templates) with these variables inserted.
I'm trying to figure out what files are needed when I distribute an application that I have written. In the release folder after I have built the application I have the following:
app.exe (obviously needed)
app.exe.config (obviously needed for
my config settings)
app.pdb
app.vshost.exe
app.vshost.exe.config
app.vshost.exe.manifest
I'm looking for a PHP CMS which can let me to:
1-Uploade and manage files ( pdf, words..) between users by allowing to view, to print or to download.
2-Know who accessed what and when, who download what and when... who do what and when.
For some reason, I keep getting a '1' for the file names with this code:
if (is_dir($log_directory))
{
if ($handle = opendir($log_directory))
{
while($file = readdir($handle) !== FALSE)
{
$results_array[] = $file;
}
closedir($handle);
}
}
When I echo each element in $results_array, I get a bunch of '1's, not the name of the file. How do I get the name of the files?
So I have some form processing code which processes the standard text inputs and also uploaded files (through the $_FILES array)
I want to have the submission done through AJAX
Will jQuery's post(). method still pass that stuff through - $_FILES or do I need to do something special?
I often have to modify files such as sysctl.conf, and I'm familiar with using sed to replace existing values.
Is there a way to append the new key/value pair to the file if sed wasn't able to replace it?
For instance, using this example: modify config file using bash script
sed -c -i "s/\($TARGET_KEY *= *\).*/\1$REPLACEMENT_VALUE/" $CONFIG_FILE
How could I add the $TARGET_KEY = $REPLACEMENT_VALUE new line to $CONFIG_FILE using the same sed expression with slight changes?
And on a related topic, how can I force creation of $CONFIG_FILE if it didn't exist?
I am just starting off with C#. I managed to get a list of running processes and getting a particular process ID. Can someone tell me how to get a list of files that are opened by a given process ID?
I want to search for files on the users mobile with specific extensions.
I tried searching but could not find any direct API's.
Is there a specific API's or is there tedious way of achieving the same.
Or is there a mechanism to call linux calls for find or something similar
Thanks
I'm working on a project involving some large XML files (from 50MB to over 1GB) and it would be nice if I could view them in eclipse (simple text view is fine) without Java running out of heap space. I've tried tweaking the amount of memory available to the jvm in eclipse.ini but haven't had much success. Any ideas?
I'm trying to parse the dmoz content/structures xml files into mysql, but all existing scripts to do this are very old and don't work well. How can I go about opening a large (+1GB) xml file in php for parsing?
I have a folder mounted on an Ubuntu 8.10 sever through cifs that I simply cannot change the permissions on once mounted.
Here is a breakdown of what's going on:
All files within the mounted folder automatically have their permissions set to -rwxrwSrwx regardless of whether the file is create on the windows server or on the linux machine.
I have the same directory mounted on two other linux servers (both running 9.10 instead of 8.10) with no problems at all. They all are using the same fstab options and the same credentials.
//server/folder /media/backups cifs credentials=/etc/samba/.arcadia_cred,noexec,noserverino 0 0
I've I run a chmod command a million different ways, all of which report successfully changing the permissions. However it doesn't.
The issue began after I updated from 8.04 to 8.10
Any idea why this may be happening on one machine? Since it started after an upgrade I'm not sure what is the bes thing to do.
Any help you could give would great! None of my automated backup scripts are working because of this!
I just tried to encrypt a folder with 7zip by command line choosing a password but when double-clicking on the zip file, it shows me the files list without asking any password.
Any other alternative freeware which allow to truly encrypt a folder by command line ?
Does 7-Zip take advantage of multiprocessor or multi-core systems?
For example, would there be a close to 16 times speed-up on a 16 core system assuming no disk or memory bottlenecks?
Or is it is limited to 2 threads (2 times speed-up on systems with more than one CPU or core)?
Trying to use the 7-zip self extracting archive GUI and it fails. When I try to create a "Self Extracting Installer" option, at the end of the install it runs my batch file and it appears to be extracting all the files just before it does that, but after extraction, the files are nowhere to be found (except within the .7z archive). Any idea on why this occurs?
https://code.google.com/p/sfx-creator/
I wish to extract files using RAR or ZIP but I need to be able to rename the files being replaced so that there is a copy of the previous version in case something goes wrong.
Couldn't see any options in WinRAR to do this.
Does 7-Zip take advantage of multiprocessor or multi-core systems when compressing?
For example, would there be a close to 16 times speed-up on a 16 core system assuming no disk or memory bottlenecks?
Or is it is limited to 2 threads (2 times speed-up on systems with more than one CPU or core)?
I want to archive some project files. I have uploaded them to microsoft skydrive without problem. As I don't totally trust ms i wanted also store them elsewhere.
So I tried Google doc and to my surprise it says server refuses. It's c# zipped files, not video or softwares, why does it refuse ? What is Google Doc worth then ?
I want to upload a zip file in a jsp page and the user is sent to another jsp page after he selects and uploads the file.
In this second page I want to
1.)extract the uploaded zip file.
2.)read some content from the extracted file(s) and allow the user to change/edit them
3.)save the user changes in the files.
4.)zip the files again and save it in another destination.
Please suggest me a rough outline of a solution as I am stuck in the phase in which I get the uploaded file and re-direct the user to the second jsp.
I am using following code to compute MD5SUM of a file -
byte[] b = System.IO.File.ReadAllBytes(file);
string sum = BitConverter.ToString(new MD5CryptoServiceProvider().ComputeHash(b));
This works fine normally, but if I encounter a large file (~1GB) - e.g. an iso image or a DVD VOB file - I get an Out of Memory exception.
Though, I am able to compute the MD5SUM in cygwin for the same file in about 10secs.
Please suggest how can I get this to work for big files in my program.
Thanks
Hello there,
.NET: How can I copy the files using Windows "Copy Files" dialog. I need to bulk copy multiple files. Does there exists any .NET 2.0 library/method that allows me to do it in crossplatform manner without invoking Windows platform specific libraries.
Thanks in advance.