Displaying 20 results from an estimated 300 matches similar to: "paperclip save to disk and s3"
2004 Feb 25
5
Wide strings and LPCTSTR types
All,
I was experimenting with converting LPCTSTR strings to wide strings with
something like this:
// Converts a Ruby string to a LPWSTR
LPCTSTR AllocWideLString(VALUE rbString){
char* str = STR2CSTR(rbString);
int length = (strlen(str)+1) * sizeof(WCHAR);
LPCTSTR lpStr = (LPCTSTR)malloc(length);
MultiByteToWideChar(
CP_ACP,
0,
str,
strlen(str)+1,
2008 Jan 29
3
Dump on remote filesystems?
I have a couple C5 systems I want to back up. My plan is to, one way or
another, back them up to a C5 machine in my office. I have samba
installed on the systems to back up, the machines are mounted on the
system in my office, and a tape library hanging of the system in my
office.
I was hoping to perform a simple /sbin/dump of the remote systems. I put
together a script for another
2011 Apr 11
3
sort.int(S3object) strips class but not the is.object flag
If x has an S3 class then sort.int(x) returns a value
without an S3 class but which has the is.object flag set,
which, I think, causes identical() give a false/misleading
report:
> x <- structure(1:3, class="unrecognizedClass")
> y <- sort.int(x)
> t <- 1:3
> identical(y, t) # expect TRUE
[1] FALSE
> identical(as.vector(y), as.vector(t)) # expect
2007 Feb 23
1
How to make Rails send a file that is being written
I''m trying to build a simple proxy to Amazon S3 that would allow a
client to request a url that gets mapped to a S3 Object by Rails and
streamed back to the client.
For S3 integration, I use the highly recommended gem AWS::S3
(http://amazon.rubyforge.org/), and to send a file, I simply use the
send_file function.
The concept works BUT the I can''t get the file to be sent as
2014 Sep 21
1
UEFI PXE / split config / TFTP attempted to DHCP server, not TFTP server
Gene,
All good questions. Thanks for taking time to respond. You've given me
great leads to follow up w/ DHCP appliance consultant.
>filename being file. I presume it looks like "/path/to/syslinux.efi"
>or "/path/to/bootx64.efi" and not a TFTP URL?
Correct.
>> TFTP Server Name (66) -- a string. I have tried:
>> - TFTP Server's IP
2008 Aug 29
4
[Bug 1517] New: ssh ControlMaster process is crashing frequently when multiplexing ssh and scp connections with error 'select: Invalid argument'
https://bugzilla.mindrot.org/show_bug.cgi?id=1517
Summary: ssh ControlMaster process is crashing frequently when
multiplexing ssh and scp connections with error
'select: Invalid argument'
Product: Portable OpenSSH
Version: 5.1p1
Platform: Sparc
OS/Version: Solaris
Status: NEW
2009 Nov 19
2
rsync of STDIN to a file.
Hi,
I am hoping that rsync may be able to improve an existing network backup I've got:
tar czf - --files-from $FILE_LIST | ssh -i $AUTH -l $USER $HOST "cat > ${DEST}/${SOURCE}_${FILE}.tgz"
You can see that this backup uses tar to create a single compressed archive and store it on a remote host using ssh. It occurred to me that it might be possible to use rsync. I'm hoping
2009 Jul 10
2
[PATCH: node 0/3] replace ovirt-identify-node with matahari
This patchset removes ovirt-identify-node and ovirt-listen awake.
It adds startup script support for the matahari qmf agent, which takes
over the responsibility for communicating node hardware capabilities
to the ovirt-server.
On the server side, host-browser has had its node identification
functionality replaced by a new script, host-register, which is what
interfaces with the matahari qmf agent
2009 Jul 08
1
[PATCH: ovirt-identify-node replacement 0/4] ovirt node patch to replace ovirt-identify-node with matahari qmf agent
The purpose of this patch is to add support for the matahari qmf agent
package (http://git.et.redhat.com/?p=matahari.git;a=summary) to the node.
The following actions are taken:
1. Deprecate ovirt-identify-node and ovirt-listen-awake by removing
them from the autotools scripts, the rpm spec and the node startup scripts.
2. Remove ovirt-listen-awake and ovirt-identify-node completely.
3. Add
2010 Oct 29
8
Amazon s3 - paperclip - Rails3 - basic setup Noob simple problems
Hi all, I''ve got a feeling from other posts that this should be very
simple, but believe me I''ve looked around many tutorials / blogs, but
still cant even get the most basic setup working with paperclip and s3.
I am however pretty new to Rails, so could be doing something dumb.
-------
Firstly, to install and use paperclip and aws-s3 I''ve got them both in
by Gemfile:
2005 Aug 29
0
Wine on LynxOS-178 and Bluecat
Hi,
We're working on a project to port a software to the Linux environment. However, our target platform will be Bluecat and LynxOS-178. Bluecat and LynxOS-178 are embedded Linux Operating Systems. Does anyone have any experience in getting Wine to work for these OS? Also, in theory, will we be able to build Wine for embedded Linux platforms?
Thanks,
Chai
2005 Apr 07
4
Shorewall 2.2.3
http://shorewall.net/pub/shorewall/2.2/shorewall-2.2.3
ftp://shorewall.net/pub/shorewall/2.2/shorewall-2.2.3
Problems Corrected:
1) If a zone is defined in /etc/shorewall/hosts using
<interface>:!<network> in the HOSTS column then startup errors occur
on "shorewall [re]start".
2) Previously, if "shorewall status" was run on a system whose kernel
lacked
2012 Sep 13
10
access key error
I am getting following error while run my rails app in my server
ActionView::Template::Error (You did not provide both required access keys.
Please provide the access_key_id and the secret_access_key.):
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2009 Sep 10
2
Paperclip attachment to AWS - ActiveRecord::AssociationTypeMismatch
Hi,
I have been trying to do this for a few days now and cannot figure it
out. I would be very grateful is anyone can help me
I am trying to upload an attachment to AWS, S3 using paperclip,
however every time I keep getting this error:
ActiveRecord::AssociationTypeMismatch in
ProjectController#create_notice
Graphic(#37649720) expected, got Tempfile(#27280470)
RAILS_ROOT:
2006 Jan 05
4
testing file uploads
Hi all,
I was wondering about the class used when rails receives file uploads.
Sometimes it appears to be a File, and other times it is a StringIO.
Also it has methods such as original_filename that don''t appear to
belong to either of these classes. I ask because I''m trying to work out
how to test my fil upload related models and controllers.
Is there some standardised way of
2007 Apr 05
5
Odd error handling in ActionView#compile_template causes WSOD
If a view file cannot be compiled (eg it has a block with a missing
''end'' statement), I''m experiencing WSODs - the browser reports a lost
network connection, rather than the helpful compilation error that we
used to have.
When the compilation fails, ActionView#compile_template raises this
error :
TemplateError.new(find_base_path_for(file_name || template), file_name
||
2006 May 23
6
How to list all models of an application?!?
How can I get a list of all model classes in the domain of a Rails
application (all models, both in "app/models" and in
components/somedir/model.rb)?
Thanx in advance for your precious help!
Edoardo "Dado" Marcora
2007 Mar 02
1
Off-topic: Howto decrypt OpenSSL file in Win32 environment
Hi all,
I supose the subject is descriptive enough. In a CentOS server I do the
next to make the daily backups:
tar cfv - dir_data/ | openssl enc -e -salt -aes256 -pass pass:$PASSWORD
-out backup_file.bin
So I get an well-encrypted and tared file.
If I want to decrypt and the file is easy in Unix/Linux environment:
openssl enc -d -aes256 -in backup_file.bin | tar xfv - -C dir_what_you_want/
2015 Oct 01
1
doveadm + ldap userdb
Hi!
OS: CentOS Linux release 7.1.1503 (Core)
Dovecot: 2.2.18
Run user listing - doveadm user '*', single user - work.
auth[20540]: segfault at 8 ip 00007fd554340c6b sp 00007ffc17c886e0 error
4 in libauthdb_ldap.so[7fd55433b000+a000]
dovecot: auth: Fatal: master: service(auth): child 20540 killed with
signal 11 (core dumped)
dovecot: auth: Error: net_connect_unix(auth-worker) failed:
2007 Dec 30
6
Restful-Authentication Rspec Failure Rails 2.0.2
I am trying the Restful-Authentication (latest version, downloaded
today) and upon running the generator, doing the migration, prepping
the test system and putting the resources in routes.rb I get a Rspec
test failure:
''SessionsController logins and redirects'' FAILED
expected not nil, got nil
routes.rb has:
map.resources :users
map.resources :sessions
nothing else was