Hello,
Using Java:
I am reading a directory containing files with Greek Names. But when i output a String containing a file name i get this '???????.something'.
Is it because i am running the java app. through the console?
Is there a way to get non-latin file names read correctly?
Thanks,
...
Hello!
I'm in a FreeBSD-environment where we have one server that acts as a file-server. Now we have a problem that our SYS-admin says can not be fixed.
All or files resides in a folder and we all have access to that folder and its subfolders and files. The problem is that once I,or another user in our group, creates a file or folder ...
I'd like vim to automatically write my file as often as possible. The ideal would be every keystroke.
I need to save regularly so that my background build process will see it. It's a makefile for a latex document, and I'd like the previewer to show me a nearly up-to-date document when I'm finished typing.
Eventual answer (the answers b...
On the file_put_contents() documentation, it says the following:
FILE_APPEND:
Mutually exclusive with LOCK_EX since
appends are atomic and thus there is
no reason to lock.
LOCK_EX:
Mutually exclusive with FILE_APPEND.
Yet, a couple of lines bellow I see the following code:
<?php
$file = 'people.txt';
// The new person t...
I have called the partial file form the loop. now when i update , i do not actually get updated result but need to do refresh for getting updated result.
the code is like this :
the file1
@folders.each do |@folder|
= render :partial => 'folders/group_list'
the partial file
%div{:id => "group_list_#{@folder.id}"} // this is th...
I have some HTML text files that I would like to dynamically include in an ASP.NET page.
What is the best way to do this?
My first guess was to create a Literal control on the page and output as follows:
litMyLiteral.Text = System.IO.File.ReadAllText("c:\path\to\file.htm");
Is this a good solution, or is there a better one? For me, ...
My webapp is hosted on a unix server using MySQL as database.
I wrote a Perl script to run backup of my database. The Perl script is inside the cgi-bin folde and it is working. I only need to set the cronjob and run the Perl script once a day.
The backups are stored in a folder named db_backups,. However, I also want to add a command i...
Hello,
I am writing a simple application to copy a set of images to the user's photo library so that the user may use them as backgrounds. The problem is that if the user runs the application more than once, duplicate images will be copied to the photo library. Given the restrictions Apple places on accessing the contents of the photo l...
Hi,
I have a test database on a separate remote server than my production DB. Every once in awhile, I want to try and test things by uploading a copy of my production DB to my testing DB. Unfortunately, the backup file is now half a gig and I'm having trouble transferring it via FTP or SSH. Is there an easy way that I can use the mys...
I just can't get around this. I am able to create a file with File.Create ... File..Text and so on, only if the path exists. If it does not the file will not we write and return an error. How do I create a path?
...
Hi all, on a linux box with plenty of memory (a few Gigs), I need to access randomly to a big file as fast as possible.
I was thinking about doing a cat myfile > /dev/null before accessing it so my file pages go in memory sequentially, hence faster than with a dry random access.
Does this approach make sense to you?
...
Hi
I have written some piece of code that copies chunks of big files to a remote machine. Now I would
like to figure out if I really copied all the bits into the right place by comparing those two files
on a byte-per-byte basis. Is there some tool for windows that allows me to do that? I guess Linux
has such a tool already built in, doe...
Hello, I wanted to ask if it is possible to redirect writes to a specific file, to a memory stream in my application so I can immediately read it.
If it is possible please explain how to do so.
Thanks.
...
Hey,
I'm trying to read unsigned integers from a file (stored as consecutive byte) and convert them to Integers. I've tried this:
file = File.new(filename,"r")
num = file.read(2).unpack("S") #read an unsigned short
puts num #value will be less than expected
What am I doing wrong here?
Cheers,
Pete
...
I've been reading that the static methods of the File Class are better used to perform small and few tasks on a file like checking to see if it exists and that we should use an instance of the FileInfo Class if we are going to perform many operations on a specific file.
I understand this and can simply use it that way blindly but I wou...
Hi,
I am using WinXP. I use java to generate a list of files. The file will be created as abc.txt.temp at first, and after completing the generation, it will be renamed to abc.txt.
However, when i generating the files, some of the files failed to be renamed. It happen randomly.
Is there anyway to find out the reason why it failed?
i...
I have a log that gets created from a bunch of cron jobs. My task now is to send specific logs (e.g. error outputs) as an email. What is the best way to get content from a file and send it as an email?
I have already figured out how to send email in perl. I just need to figure out how to read in the file and put it as the text of the em...
Hello,
I am executing a TCL script from PHP using proc_open.
I first open the TCL shell
2) Send a command using fwrite
3) What I need is fread to wait/block until the
command sent by fwrite is complete
and get all the contents .The command may take some time to complete.
(I am able to read just 2 lines and then it is going off to th...
Hello Community,
I want to have a xml file for my configuration and so i have to load it from the same directory the swf file lies in and save it afterwards. I saw articles about filestreams in flex but my compiler didn't allow me to use the filestream. I use the open source flex sdk.
anyone got an idea?
thanks in advance
Sebastian
...
Example, I have 2 server, each server using a copy of linux cpanel.
I first install free trial script into subfolder reside in Server A.
eg:
sample.com/service/username1
sample.com/service/username2
sample.com/service/username3
Then when people decided to upgrade, I gonna move all files to theirnewdomain.com, including database etc ...