file

Nested Begin in a script file ,Stack Overflow during script execution

Hi, Recently I'm having requirement to generate script file from excel sheet. I'm able to acomplish task almost. Bu the problem is usage of Local varibales are more in script file are more.Becuase of more Local variale, During execution of script file in toad,it throws an error PL/SQL 102 Stack overflow exception during insertion script...

mat file from matlab to pascal program

Hi please, any one help me to solve my peoblem: I have struct of array containing image file name and color histogram and save it in mat file. How can I use this file in pascal program ...

how to process an audio file using python

how to process an audio file using python ...

3DS file loader for opengl.

Hello, this is my 1st question in the site. I need a 3DS model loader for opengl applications. Loader should also be able to load .jpg textures. I tried to use OpenSceneGraph for this purpose but this time I have to also use the whole OpenSceneGraph data structure to render the scene. Is it possible to use OpenSceneGraph only for model l...

Java getDesktop() open command

Hello, I am trying to use Java's Desktop / getDesktop() / open() call to open a text (simple ASCII) file with the system's default editor. I am using FileWriter / PrintWriter to write to the file, flush it, close it, but I get am getting an exception thrown. I am using the same File object in my desktop.open(savefile) as I am in my F...

detect if contact has photo

ive got an imageview which im displaying a contacts picture using a uri which always looks similar to this: content://com.android.contacts/contacts/34/photo how would i be able to detect whether this photo exists, as if it doesnt then i want to use a placeholder instead (stored in my drawable folder). at the moment it just shows a ...

How do I insert data into a pre-allocated CSV?

Text file (or CSV) is: Data:,,,,,\n (but with 100 ","s) In C or C++ I would like to open the file and then fill in values between the ",". i.e.- Data:,1,2,3,4,\n I'm guessing that I need some sort of search to find the next comma, insert data, find the next comma insert, etc. I was looking at memchr() for a buffer and...

A PHP script to let users download a file from my website without revealing the actual file link in my website?

The question says it all.. How do I let the users download a file from my website and not let them see what link that file comes from? I understand that there might be a need for something like a download.php which will serve as the gateway but past that phase, I dunno what to script next... If it bothers you to write the whole code, a f...

Ajax file upload, iFrame and calling parent method from changed content

Hello, I'm having a technical issue in a web project, involving an Ajax file upload. I'm using the well-known "fake Ajax iFrame technique". The problem is that it is necessary for the page that calls the upload method to receive the database primary key of the inserted record, made with the upload. So what happens is : we have a ...

file_get_contents function not working

Hi All, I have some problem with file_get_contents() function, it not working properly when I tried to read URL like "http://google.com" is accessible but when I tried to access any file like "classes/connect_temp.txt" it is not accessible. Here is some code i use $file_path =realpath('./')."/classes/connect_temp.txt"; $...

open limitation based on file size

Is there any limitation on "open" based on file size. ? My file size is 2 GB will it open successfully and is there any timing issue can come ? filesystem is rootfs. ...

Copying and identities

We have deployed a solution which periodically needs to copy a file from one server (Server A) to a shared folder on another server (Server B). Server A is in a domain and and Server B isn't. The copying will take place in a process running as a Windows service. My issue is how to do this the best way with regards to the share on Server...

PHP directory error - open_basedir restriction in effect.

Hi guys, I've got some PHP code that'll create a new file in a set directory: $target_path = "reports/" . basename($Report_Filename) . ".php"; if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) { /* code here */ } It was working perfectly, and has done for some years now, unfortunately we've just moved across t...

Difference between binary and text I/O in python on Windows

I know that I should open a binary file using "rb" instead of "r" because Windows behaves differently for binary and non-binary files. But I don't understand what exactly happens if I open a file the wrong way and why this distinction is even necessary. Other operating systems seem to do fine by treating both kinds of files the same. ...

pyinotify: Handling IN_MODIFY triggers

I am trying to watch a directory, and is looking for file modifications. Thinking of using pyinotify. Problem is that while using IN_MODIFY event to check for a file change, it triggers quite a number of events if I am copying even a small file of say 12 MB to the directory over a network. I dont want to handle so many triggers. I want ...

Binary (De)Serialization of a stream of objects to 1 file

I am faced with the following problem. I need to (de)serialize (binary) a stream of objects to a single file on disk. Serialization part is not an issue, just open a stream in append mode and use .Net's BinaryFormatter Serialize method and you are done. The problem with this approach is that I can't just give this stream to BinaryFormatt...

How can i include (constant) primitive data tables in a class?

I have some classes that need a bunch of data tables to do their work (basically arrays of primitives, byte[], short[], int[] and float[]). Some of the tables are relatively large. Initializing them in the code blows up the class file, and in some cases it also exceeds the size limit for the class initializer. Currently i have stored t...

errorCode for The process cannot access the file 'XYZ' because it is being used by another process

I using C# .NET , vs 2008 , .net 3.5 For me, is difficult, but I need sample code in C# for this: How get the error code of IOException "The process cannot access the file 'XYZ' because it is being used by another process." For example, in my issue. I try delete file, and I get "The process cannot access the file 'XYZ' because it...

Clearing Contents of a File in C++ knowing only the FILE *

Is it possible to clear the contents (ie. set EOF to the beginning/reset the file) in C++ knowing just the FILE*? I'm writing to a temp file with wb+ access and wish to sometimes clear it and truncate it without adding the calls to fclose and fopen. I dont think it's possible... but if not, why not? Thanks in advance! ...

How do I open a file whose full name is unknown with Perl?

I want to know if there is anything that lets me do the following: folder1 has files "readfile1" "f2" "fi5" The only thing I know is that I need to read the file which starts with readfile, and I don't know what's there in the name after the string readfile. Also, I know that no other file in the directory starts with readfile. How d...