Hi,
currently I'm developing in eclipse 3.5 in different project web applications for tomcat 6.0.24.
For each of this project I have written a ant build file to generate the war file to deploy the project to the tomcat container.
So I have to run for each project the ant build file (a lot of clicks, and a waste of time).
Question: Is...
I am trying to do system("cat variables.php"); from a php script but it doesn't write anything :(
Anybody knows whats the problem?
...
I need to read a file in PHP, but I only know the end of the filename, so I need to serch the file in a given directory using wildcards: *filename.wav and then return it to the browser.
Is there a function to do that? or I need to get all the files in the directory and then search one by one?
Thanks for all the comments and help.
...
ok guys a question, can this be done or has it already been done, or can someone point me in the right direction (be aware i an a total newbie with action script)
i have a main swf movie about 600px x 400 px
what i want is this to run for say 30 seconds, then i want a countdown timer in the bottom corner for say 10 seconds, after this ...
For example, if I have three ASCII files:
file1.txt
file2.txt
file3.txt
...and I wanted to combine them into one encrypted file:
database.txt
Then in the application I would decrypt the database.txt and put each of the original files into a 'File' class on the heap:
class File{
public:
string getContents();
void setConten...
We're creating an ASP.Net MVC site that will need to store 1 million+ pictures, all around 2k-5k in size. From previous ressearch, it looks like a file server is probably better than a db (feel free to comment otherwise).
Is there anything special to consider when storing this many files? Are there any issues with Windows being able...
I have a problem with open files under my Ubuntu 9.10 when running server in Python2.6
And main problem is that, that i don't know why it so..
I have set
ulimit -n = 999999
net.core.somaxconn = 999999
fs.file-max = 999999
and lsof gives me about 12000 open files when server is running.
And also i'm using epoll.
But after some ti...
I use the NSHomeDirectory() function to get the app's home folder, and write to the Documents directory within that. I'm curious, though, what happens when the user downloads an update for the app in the appstore? Will it all be deleted? When I delete the app on the device, then reinstall it, its wiped out. So, I'm curious to know wh...
I am developing visual game level editor in c++.
For this I want reflection(RTTI) mechanism to know class attributes at runtime.
I am currently using PDB files for this.But using PDB I couldn't retrieve actual code line for extra information in commented format which is given for that attribute.
Visual studio uses NCB files for intellige...
I have a quick question about creating files with perl and executing them. I wanted to know if it was possible to generate a file using perl (I actually need a .bat script) and then execute this file internally to the program. I know I can create files, and I have with perl, however, I'm wanting to do this internally to the program. S...
Suppose I have a VC++ project contains no of(say e.g 5) Source files(.cpp files),it will generate 5 .obj files(obj files corresponding to my .cpp's files not all kernel and OS layers including .obj files)
e.g my project includes xyz_1.cpp,xyz_2.cpp,xyz_3.cpp,xyz_4.cpp,it will corresponds 4 respective .objs.
By programtaically HOW CAN I...
In our usage, we branch for development and merge from time to time upwards.
For example, branch A and B, develop on A and B for some time, then merge A to B. More than one merge occurs from A to B so we use merging point tags so that we only merge from A.X to B.
The problem is that newly added files don't get tagged. So, if a file was...
I'm trying to create something to read data from a .txt file, then populate data into .xls, but after open the .txt file, how do I get the data out? Basically I'm trying to get the the third column of the lines dated '04/06/2010'. After I open the .txt file, when I use ActiveSheet.Cells(row, col), the ActiveSheet is not pointing to .txt ...
I have an app that can make modify images. In some cases, this makes the filesize smaller, in some cases bigger.
The program doesn't have an option to "not replace the file if result has a bigger filesize".
So I wrote a little C# app to try and solve this.
Instead of overwriting the files, I make the app write the result to a folder u...
Hi, I'm printing a variable say z1 which is a 1-D array containing floating point numbers to a text file so that I can import into Matlab or GNUPlot for plotting. I've heard that binary files (.dat) are smaller than .txt files. The definition that I currently use for printing to a .txt file is:
void create_out_file(const char *file_nam...
Hey I am trying to write some numbers to a file, but when I open the file it is empty. Can you help me out here? Thanks.
/** main function **/
int main(){
/** variables **/
RandGen* random_generator = new RandGen;
int random_numbers;
string file_name;
/** ask user for quantity of random number to produce **/
...
I deleted files in my SVN, and dragged new files into it over WINSCP.
Now, I try to add all the files and commit, but it won't let me.
$ svn add *
svn: '.' is not a working copy
svn: Can't open file '.svn/entries': No such file or directory
...
Hi,
My requirement is to search for jpeg images files in a directory using python script and list the file names. Can anyone help me on how to identify jpeg images files.
Thanks in advance...
...
RED 5 server installed in our server , i want to download files from red 5 server, is it possible in c#.
...
Okay, so I've written a (rather unoptimized) program before to encode images to JPEGs, however, now I am working with MPEG-2 transport streams and the H.264 encoded video within them. Before I dive into programming all of this, I am curious what the fastest way to deal with the actual file is.
Currently I am file-mapping the .mts file ...