files

No files are being checked out on a CVS checkout

Hello I installed a CVS server today. I installed cvs server using sudo apt-get install cvsd. Now the folder where everything is stored is /var/lib/cvsd/cvsrepo/test. Folder test contains a dummy text file by the name check.txt, which would prove everything works fine. My CVSROOT on the client machine is ":pserver:username@localhost:/cv...

Automatically delete files from webserver

Hi, I need to delete files from a directory in my web-server and I need some script to do it automatic. And there is few more conditions which need to be fulfilled. It has to clean the directory then total file size exceeds some certain limit for example 1,5GB That files would be deleted every 24 hours. New files like 10 ir 20 mins ol...

How to list all of the files in a directory and its subdirectories with php

I'm attempting to use a sample function on the PHP manual website (posted by a user). The function is supposed to return a nested array of all of the files and/or folders in a specified directory of your server. I'm just learning php, so I think it's more likely that I'm doing something wrong, and less likely that the function doesn't ...

Correctly getting sha-1 for files using openssl

Hi I am trying to get an sha-1 for a number of files. What I currently do is cycle the files in a given path, open and read each file separately and load the contents in a buffer and then send it to openssl's SHA function to get the hash. The code looks something like this: void ReadHashFile(LPCTSTR name) { FILE * pFile; long lSi...

Problems With Sending Larger Files Over Ruby's TCPServer

I've set up a simple, single-service server which has been working just fine with small test files, but when I tried running larger, more practical files, things go wrong. Sending a 5.2 MB file works fine. Sending a 30.3 MB file works, but takes a long time (Like 15 minutes or so). When sending a 38.5 MB file, the server receives it, bu...

Git Merge - Incomplete, Missing files and Folders

I was trying to merge a dev branch into master. git checkout master git pull . dev Everything seemed to go well, although there were conflicts I fixed these and commited. But when I checked this newly merged working tree is missing a lot of folders and files from dev. git status // Shows conflicts & doesn't list some files/folde...

IMAPSize makes sketchy inaccessible files -- how can I access them?

I'm using this program IMAPSize to backup an IMAP inbox. It makes the backup in C:\Program Files\IMAPSize\backup, but somehow the "backup" folder is only visible to the program, and not to Windows Explorer or even Command Prompt! "Show hidden files" is on. I've already tried running as Administrator. When I go to the "select backup f...

Batch File: Iterate Over Files Modified Since a Given Date

I want to create a batch file that executes a command (delete the file, for a simple example, though my command is custom/different) on each file matching a wildcard (say *.jpg) that was modified since some date (such as 1-1-2010 or later). The date can either be hardcoded in the batch file or passed as a command line param. Pseudocode...

How to copy all contents in a folder to a dir in php

I am trying to copy all the files from a directory to another directory in php. $copy_all_files_from = "layouts/"; $copy_to = "Website3/"; Can someone help me do this please. ...

finding duplicate file trees in backups

i changed computers and OSes here a few times and had a linux backup machine running at some point. I now have 2 disks, which contains backups of each other, where some file trees are nested in each other but might be identical. what is the best way to figure out which trees are identical, so I can get rid of some duplicate trees and cl...

How to execute some procedure in all ruby files in current directory?

I'm new to Ruby - I'm having troubles on every step... Imagine a Ruby script main.rb and a lot of unknown script files script1.rb ... scriptN.rb. Each scriptX.rb contains unique module with one procedure needs to be executed: Module X def some_procedure(i) puts "{#i} Module X procedure executed successfully!" end end ...

[VB.NET]Transferring data from 1 file to another

Basically I want to take My Client. Then for example Lets say in my client I have "A = 1" Then my 2nd file which has random data in it. So Client= My Client File = The File which I want in the end result How could I Inject "A = TextBox1.Text" from Client to File. I heard it's called "End Of File" or something like that. Any help please?...

Read from file or stdin - C

Hello, I am writing a utility which accepts either a filename, or reads from stdin I would like to know the most robust / fastest way of checking to see if stdin exists (data is being piped to the program) and if so reading that data in. If it doesn't exist, the processing will take place on the filename given. I have tried using the...

batch script to find files which are 2 days older than the current date

Hi All, I need to move the below files in the specified folder(C:\temp). The files present in the temp folder are as below systemfile.20100604.txt systemfile.20100603.txt systemfile.20100602.txt systemfile.20100601.txt systemfile.20100531.txt systemfile.20100530.txt Consider today as 20100604. So, I need to move all the files except s...

Msbuild: Delete files older 6 months

I want delete files in a folder, which are more than six months old -older than 6 months-using Msbuild. I want use %ModifiedTime (Well-known Item Metadata) of MsBuild I prefer not use customs Tasks, only msbuild default and Microsoft.Sdc.Tasks. I use VS 2008, .net .35. any suggestions ? <Target Name="SomeTarget"> <ItemGroup> <...

Eclipse doesn't add files to workspace when they are added through windows explorer

Hi everyone, I have recently added the reCaptcha library for CodeIgniter (by copying files from the extracted zip into the application folder). Although the files exist in windows explorer and in the open file dialogue in eclipse, they are not added to the eclipse project view; although the project view's root directory is the applicat...

Buffered Reader readLine() with Empty lines

Hi, I am using buffered reader to grab a line at a time from a text file. I am trying to also get the line number from the text file using a tracking integer. Unfortunately BufferedReader is skipping empty lines (ones with just /n or the carriage return). Is there a better way to solve this? Would using scanner work? Example code: i...

Reading File Remotely in C++

Hi, Is there way that I can read the file from remote server using fopen or any other api. Thanks Avinash ...

iPhone: Reading many images quickly

I've got an app I'm working on where we handle a LOT of images at once in a scrollview. (Here's how it looks, each blue block being in image on a scrollview expanding to the right: http://i.imgur.com/o7lFx.png) So to be able to handle the large strain doing this puts on memory. So I've implemented a bunch of techniques such as reusing im...

Is it possible to create an image with C++?

Can you create a PNG, GIF, etc with C++ on windows? If it's possible, how? For an example how can you make a png image just one solid color. Just a "hello world" example would be great... ...