I am in an ASP.NET project using C#. The users can upload their MP3 (I have no control over the encoding) and specify a sample size and a sample starting point. On save, the system needs to create a sample of this MP3 based on the information provided.
So the question is: How can Icrop a mp3 in ASP.NET + C#??
...
I have a .txt file with integers on each line e.g.
1
4
5
6
I want to count the occurences of the values that are in an array with the file.
My code extract is this
String s = null;
FileReader fr = new FileReader(file);
BufferedReader br = new BufferedReader(fr);
while ((s = br.readLine()) !=null) {
StringTokeni...
How can I get the file owner's access permissions using stat from sys/stat.h using C++ in Kubuntu Linux?
Currently, I get the type of file like this:
struct stat results;
stat(filename, &results);
cout << "File type: ";
if (S_ISDIR(results.st_mode))
cout << "Directory";
else if (S_ISREG(results.st_mode))
cout << "...
$:.unshift File.join(File.dirname(__FILE__),\
'vendor','addressable-2.1.0','lib','addressable','uri')
Does the code above access a file that has this path:
'vendor/addressable-2.1.0/lib/addressable/uri'
I'm trying to vendor the addressable gem into a Sinatra app to deploy it to my hosting provider but I keep receiving:
"no such fil...
Hey all,
I am writing an automation to update the contents on an excel sheet(in c#) present on our server. Our server has various portals and has different credentials. How could I fetch the file on my portal to my local computer to make some changes to it.
...
Hello,
I'm writing a program that, among other things, needs to copy a particular file to a network folder. Since I'm on a company network, the credentials needed to access that folder are the same as my Windows credentials.
The program works if I open the folder in Explorer, provide my username and password, and then run the uploader....
i have a jsp page where i have a input type file and i m allowing the user to browse files. i have one such input on jsp and the rest i m generating dynamically by javascript.
this is my jsp code:
<div id="labelContainer" style="display:inline">
<table align="center">
<tr>
<td align="left"><input type="text" id="label0" name="label0" s...
I am trying to upload a PGP encrypted file through FTP. But I am getting an error message as follows:
The underlying connection was closed: An unexpected error occurred on a receive.
I am using the following code and getting the error at line:
Stream ftpStream = response.GetResponse();
Is there any one who can help me out ASAP.
Foll...
Hi,
I think this question might be trivial for the most of you but somehow I cannot find the answer... so, I have a Visual Studio 2008 Solution foo and a Project bar in this solution. In my bar-Project i've got a Directory called baz, it looks like this:
foo dir
|
+-> bar dir
|
+-> baz dir
|
+-> asd ...
Hi
I was wondering what the best way to send 6 'file' inputs to a php page would be... and how to process them, i used this website to understand uploading one file
PHP Tutorial - File Uplaod
Also, i want to name each of the 6 images with a time stamp for example below...
00000000
00000001
00000002
00000003
00000004
00000005
Basical...
I want to change modification timestamp of a binary file. What is the best way for doing this?
Would opening and closing the file be a good option? (I require a solution where the modification of the timestamp will be changed on every platform and JVM).
...
Hi
like qik.com , ustream.com , I hope to know how to upload file in background via iPhone SDK 3.0 . Pls let me know . Thanks !
...
There're files/folders that were deleted and then re-added to the repository.
svn update > gives me the right-updated revision.
files and folders are correctly displayed in the svn repository, if I run 'svn update' 'svn diff' my workspace folder seems in sync but the files/folders are not checked out...
any idea of what the problem is?
...
Hi,
Can anyone give any idea on where the html files are located that generates the invoice pdf while trying to print it out(in admin).Also I need to modify the background color from the one as in the default one that is generated by magento.
Thanks in advance.
...
Given: One big text-data file (e.g. CSV format) with a 'special' first line (e.g., field names).
Wanted: An equivalent of the coreutils split -l command, but with the additional requirement that the header line from the original file appear at the beginning of each of the resulting pieces.
I am guessing some concoction of split and hea...
Hello!
I am searching for a way to add several files into one file, much like a Zip file. I need to be able to create a file container on the fly and add several word documents, images and other important files into the container. My criteria is that you don't need to install any additional software on the computer (preferebly only a .D...
i need to open a viewer for a given mime type. how to do that in linux.
i suppose the method would be specific to desktop environment in use.
i want to do this through a C program.
...
I have a file uploader but it's not showing the files path (so you can only upload files that are in the same folder)
How can I make it so show's the files path (desktop/something/yes/dog.swf)
...
I am reading a very large file using a NSInputStreamer and sending them to a device in packets. If the receiver does not get a packet, I can send back to the sender with a packet number, representing the starting location in bytes of the packet missing.
I know an NSInputStreamer cannot rewind and grab the packet, but is there another w...
if in php this is how you check if a file is selected:
$_FILES['item']['size']>0
what about in javascript?
i need to know because i have a function that will only work if a file is selected.
...