similar to: reading folder structure on server with Rails - possible?

Displaying 20 results from an estimated 1000 matches similar to: "reading folder structure on server with Rails - possible?"

2006 Mar 01
1
upload file above /public, authenticate before serving?
I have file uploads to the database and stored in a longblob working on our client extranet, except that it kills mysql/activeRecord on files bigger than about 200kb. (is there a reason for this - running mysql 5.0.18, lighttpd or webrick on winxp??) So I''m now thinking about whether its possible to do either: 1) upload a file into #rails_root/some_folder/ instead of
2006 Feb 13
1
authenticate users in public folders
I''m using the standard login generator to authenticate users in my rails app, which is an extranet type of thing. I want to be able to upload some work in progress into a designated project folder, and allow only authenticated users to view those files (it might be a standalone website sitting in its own folder with a 100 pages, or a bunch of other src files etc) possible or not? Or
2006 Mar 31
2
AAARGH! Need some fresh eyes to look at this pls
I just switched my rails app over to production mode, couldn''t get it working, switched it back to development mode, and now nothing gets outputted in the browser. I''m sure I''ve missed something in the configs. Setup: Lighttpd/SCGI on WinXP, Rails 1.0. Environment.rb: ENV[''RAILS_ENV''] ||= ''development'' require
2005 Mar 23
2
0.11 problems
I''ve upgraded to 0.11 this morning specifically to test out the pagination stuff. When that didn''t work (didn''t recognise the command) I deleted my project and recreated from scratch. So in short rails projectname cd projectname edit config/database.yml (my database is postgres by the way) ruby scripts/generate model Recordtype ruby
2010 Sep 28
1
How to mirror only specified directories
I am trying to mirror only select directories from one server to another with rsync through its daemon mode. Server A /export /home /A-do /A-not /A-copy /das /htdocs /docs /em /htdocs /docs /psb /htdocs /docs /X-do /X-not /X-copy Server B /export /home /extranet
2011 Aug 25
3
Very Basic Source Question
I'm having an issue sourcing an R file from my workbench using StatET in the Eclipse IDE. All I'm trying to do is get comfortable with 'source' and run "source(C:/Program Files (x86)/Eclipse/eclipse/ProjectName/SourceFile.R)". When I try to call the path for the file i get the error: "unexpected '/' in "source(C:/". I've looked around but
2003 Nov 08
2
malloc errors? out of memory with many files on HP-UX
Hi, folks. I've started getting these errors from rsync, and any help would be appreciated: >ERROR: out of memory in string_area_new buffer >rsync error: error allocating core memory buffers (code 22) at util.c(115) >ERROR: out of memory in string_area_new buffer >rsync error: error allocating core memory buffers (code 22) at util.c(115) >ERROR: out of memory in
2007 Aug 27
3
rsync out of memory at 8 MB although ulimit is 512MB
Hello again, I encountered something amazing. First I thought there is not enough memory allowed through ulimit. ulimit is now set to (almost) 512MB but rsync still gets out fo memory at 8MB. Can anyone tell me why? That's my configuration: rsync version 2.6.2 from AIX 5.3 to SuSE Linux 9 (also has rsync 2.6.2) ulimit -a (AIX) ulimit -a AIX (source): -------------------------
2008 Aug 19
1
rsync hangs after aborting a process
Greetings. In testing an rsync backup script I'd created, I made a mistake and aborted the running script with a ctrl-C keyboard interrupt. The command that was running at the time was as follows: ${RSYNC_CMD} -aNHAXx --protect-args --fileflags --force-change --rsync-path="/usr/local/bin/rsync" <username>@<my.server.com>:${CPY_SRC} ${CPY_DEST} The expected data
2006 Feb 28
6
scgi+lighttpd+windows - why wont it work?
two problems, pls help...I''m under big pressure at work to fix this! I''m having trouble getting scgi and lighttpd running on windows - here''s what I did: On Win XP, I installed ruby, rubygems, and setup my rails app. All works fine with webrick. I then did: gem install cmdparse and gem install highline (as required for the scgi_rails gem according to
2003 Jun 11
2
rsync limit to file size/file count
Hi, What are the limits to file size and file count when doing a rsync transfer using 2.5.6? I was trying to rsync about 500 GB of data with many files and many directories, but it has been stuck building the file list for several hours. First of all, is it possible to transfer 500 GB of data? Secondly, what would the limit for file count be when doing a rsync transfer? Any comments or help
2007 Jan 06
1
transferred files have ",v" at their end
Hi Guys, When I transfer files with rsync to my server, all the files get a ",v" added to the extension. Do you know why is this? I am using the command described on sourceforge rsync -av rsync://PROJECTNAME.cvs.sourceforge.net/cvsroot/PROJECTNAME/* . and I get files like "build.xml,v" If I do a search for the exact phrase with search engines, "build.xml,v", I can
2009 Aug 20
1
Creating a list of combinations
Dear R Users, I have 120 objects stored in R's memory and I want to pass the names of these many objects to be held as just one single object. The naming convention is month, year in sequence for all months between January 1986 to December 1995 (e.g. Jan86, Feb86, Mar86... through to Dec95). I hope to pass all these names (and their data I guess) to an object called file_list, however,
2006 Apr 24
5
radrails gone mad
Hi *, I have been using radrails as an IDE for awhile now and we were getting along just fine - but recently it has just gone totally postal?!?? I created a new rails app - when I click to expand the folders there is no framework in place, just the root folder of the app. To add insult to injury two weeks of work also just disapeered - I kid you not just gone without any deletion on my part.
2006 Oct 21
3
Web site development and security
Hello all, I'm looking at building a website and extranet on my CentOS server for my home business. I use PHP for my intranet but I hear PHP is a big security sieve. Can anybody recommend good books on website security and development? Which procedural language should I use to do this? I apologize and realize this may not be the right site for this but it seems there are already a
2005 Nov 20
2
Nortel Extranet Client Installer
Hi, My first post to the list so hopefully I'm not making any newbie blunders. Searched high and low for solutions to get the Nortel vpn Extranet client installer to run properly using wine. I get a ton of fixmes like these and lots of other errors, in particular ones to do with DLL32/DLL16/NETDI/SETUP16 - details follow... fixme:key:GetQueueStatus QS_xxxx flags (4000) are not handled
2008 Jun 13
2
public/.htaccess missing from Rails 2.1?
I just started with rails and have been using rails 2.0.2 up until today. I did a gem install of Rails 2.1 and I noticed that when I created a new project with: rails -d mysql projectname, I don''t have a .htaccess file any longer to tell Apache to execute the fcgi or cgi scripts... Is this on purpose or did I do something wrong? --~--~---------~--~----~------------~-------~--~----~ You
2004 Feb 06
4
memory reduction
As those of you who watch CVS will be aware Wayne has been making progress in reducing memory requirements of rsync. Much of what he has done has been the product of discussions between he and myself that started a month ago with John Van Essen. Most recently Wayne has changed how the file_struct and its associated data are allocated, eliminating the string areas. Most of these changes have been
2013 Apr 02
2
please help, iteration through a list of files and plot each one
I have many files in 1 directory, file names end in .txt. Each file has 2 columns col1 col2 2 3 3 4 4 5 5 6 I want to make a list of the file names and iterate through each plotting them in a separate file $filename\.png with the png swapped for txt. So far I have this, can someone help fill in the blanks? Thank You! file_list <- list.files() ? for (file in file_list){ ?????? ? ?
2005 Sep 15
1
writefd_unbuffered failed to write 32768 bytes: phase "unknown"
Hi, I receive this error when rsyncing. I suspect this is because of network problems. But the 'Invalid argument' and 'phase unknown' makes it very unobvious. ... packages/scribus/scribus-1.2.3-0.rf.src.rpm Read from remote host rsync.sw.be: Invalid argument rsync: writefd_unbuffered failed to write 32768 bytes: phase "unknown" [sender]: Broken pipe (32) rsync: