Hi, i've notice that this was not asked before so i want to ask this question...
currently im writing an upload controller to upload some quite a large files. but i notice when it upload large file, the CPU and RAM go peak and this is really not what i want to (of course you too)
my controller is look like:
int Count = 0;
stri...
I have an .NET winforms application(A). I am calling another .NET exe(B) file from the winforms application. When executes, it throws the following error.
I haven't kept any configuration file for the second exe file(B).
"Configuration system failed to initialize"
Please help me.
Thanks in Advance
...
Hi,
My requirement is to upload 5000 images to WAMP server from AIR client.
I am using URLRequest to upload the images.
The size of each image is about 285 KB.
Able to only upload about 300 images only. The server becomes unresponsive and the client stops uploading.
This is urgently required.
Please let me know how do I finetune for per...
Hello fellow programmers.
Basically, what I want to do is to check how much of a file my webserver has sent to a client, when the client is downloading one. Is this even possible?
Does apache provide any module/extension that would help me accomplish my task?
I use a linux distro, apache2 and php5. Regards.
...
I am trying to download a client's data to my local machine (programatically) and their webserver is very, very slow which is causing a timeout in my WebClient object.
Here is my code:
WebClient webClient = new WebClient();
webClient.Encoding = Encoding.UTF8;
webClient.DownloadFile(downloadUrl, downloadFile);
Is there a way to set a...
Hi. file1.php and file2.php with die(); function.
include.php:
<? include 'file1.php';
include 'file2.php' ?>
file1.php
<? echo 'included'; die(); ?>
file2.php
<? echo 'not included'; die(); ?>
How can I included both files with die(); function?
P.S My English poor, sorry for that.
...
Hi, I'm fairly new when it comes to programming, and have started out learning python.
What I want to do is to recolour sprites for a game, and I am given the original colours,
followed by what they are to be turned into. Each sprite has between 20 and 60 angles, so
looping through each one in the folder for each colour is probably the ...
Situation:
I have a C# program which does the following:
Generate many files (replacing the ones generated last time the program ran.)
Read those files and perform a time-consuming computation.
Problem:
I only want to perform the time-consuming computation on files which have actually changed since the last time I ran the program.
...
e.g I have an Object obj,how can I save all its information such as m.getName();m.getFamily() and the others in the file???
...
I need to below permission policy to my files under www folder
664 to all files www recursively
755 to all directories under www recursively
I tried
find . -type f -exec chmod 644 {} ;
find . -type d -exec chmod 755 {} ;
But always getting error
find: missing argument to `-exec'
What is the solution?
...
I am writing an app and I want to load a file based on a path provided by the user. I check the extension of the file and when the extension does not match anything I recognize I want to throw an exception.
I could throw an IOException. But, I figured there could be a more detailed exception derived from that. So I looked at MSDN and f...
<?php
$filename= './get/me/me_'.rand(1,100).'.zip';
header("Content-Length: " . filesize($filename));
header('Content-Type: application/zip');
header('Content-Disposition: attachment; filename=foo.zip');
readfile($filename);
?>
Hi,
I have this simple code that forces a random file download, my problem is that if I call the script tw...
Hi,
I have searched everywhere on the web and found many similar things but never quite like this and I am not sure what I am doing wrong.
I am trying to read the following file:
4 4 // tot number of vertexes & tot number of triangles
0.693361 0.693361 0.693361 // vertex coordinates
0.693361 -0.693361 -0.693361
-0.693361 -0.69...
I'm in the process of a writing an application, which needs to synchronize a file-structure between a client and a (http) server.
The file-structure is essentially a list of file-paths where each path is a string connected with 1 or more data-block ids (256-bit reference to the actual data-block). A data-block can be referenced by seve...
Using C I would like to read in the contents of a text file in such a way as to have when all is said and done an array of strings with the nth string representing the nth line of the text file. The lines of the file can be arbitrarily long.
What's an elegant way of accomplishing this? I know of some neat tricks to read a text file dire...
Is there anyway to download multiple files from an ASP.NET page?
What I want is, the method for downloading multiple files from an ASP.NET page without prompting the user with Save dialog box, the files should be get downloaded into some particular location in the client's machine (where the ASP.NET page is browsed).
I tried creating a...
Let's say I need to save a matrix(each line corresponds one row) that could be loaded from fortran later. What method should I prefer? Is converting everything to string is the only one approach?
...
hey
I just started learning c++ and am currently using codeblocks.
i wanna write an application that can search for files in directory including it's subdirs, but i cant seem to find any good examples for this and i've read somewhere that this is only possible trough a library like boost.
is this true?
any examples for doing it withou...
I would like to read a text file into an array of strings using System.IO.File.ReadAllLines. However, ReadAllLines strips out some odd characters in the file that I would like to keep, such as chr(187). I've tried some different encoding options, but that doesn't help and I don't see an option for "no encoding."
I can use FileOpen and L...
I have iPhone Library in c (it is created from c source in MAC). There is a method that read a file using file path. Now I want to input the file path in Objective-C to that method. My questions are:
Is it possible to do? I mean use c library to read file on iPhone.
if it is possible,
Where is the location in my project to put the ...