Displaying 20 results from an estimated 100 matches similar to: "HOWTO: Multiple file upload with file_column"
2013 Sep 18
2
Accessing model attributes in ActiveSupport::Concern module
I have some models which share the same functionality just on other paths.
So I decided to put these methods in a module and set the path in the
model. My problem is that I''m not able to access the attribute in my module.
my model:
class Job < ActiveRecord::Base
include ImageModel
image_dir = "jobs"end
my module:
module ImageModel
extend ActiveSupport::Concern
2006 Jan 24
3
problem starting domains
I''m trying to start a number of lvm-backend domUs on a Dell Poweredge
2850 (i''ve got nousb on the grub command line, and no usb in the
kernel).
Some domUs are created and started successfully.
However, quite a few of my domUs don''t start properly. I get the
correct Started Domain messages... but then the domain doesn''t "go
anywhere", meaning
2007 Jan 26
0
libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_pattern.c
libswfdec/swfdec_image.c | 45 ++++++++++++++++++++++++++++++++++++++-------
libswfdec/swfdec_image.h | 5 ++++-
libswfdec/swfdec_pattern.c | 3 ++-
3 files changed, 44 insertions(+), 9 deletions(-)
New commits:
diff-tree 2cb8680a8577ff5d018b50e7da55c233e8eaa4af (from 7005f0c65edf0177ea22cbb4514c7df1cbb099c1)
Author: Benjamin Otte <otte@gnome.org>
Date: Fri Jan 26 22:54:14
2007 Jan 29
0
Branch 'interpreter' - 18 commits - libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_js.c libswfdec/swfdec_js_color.c libswfdec/swfdec_js_sound.c libswfdec/swfdec_pattern.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_script.c
libswfdec/swfdec_image.c | 113 ++++++++----
libswfdec/swfdec_image.h | 5
libswfdec/swfdec_js.c | 5
libswfdec/swfdec_js_color.c | 8
libswfdec/swfdec_js_sound.c | 7
libswfdec/swfdec_pattern.c | 3
libswfdec/swfdec_script.c | 376 +++++++++++++++++++++++++++++++++++++++---
libswfdec/swfdec_scriptable.c | 2
8 files changed, 441
2006 Mar 09
6
rmagick and captcha
Has anyone implemented a captcha with ruby on rails and rmagick?
I tried this example:
http://wiki.rubyonrails.com/rails/pages/HowtoSecureFormsWithNoisyImages
but I got an error:
undefined method `size'' for #<NoisyImage:0x34d8070>
Thank you
--------------------------------------------------
Rodrigo Dominguez
?
Iplan Networks ???????????????Datos Personales
2007 Feb 06
0
Branch 'interpreter' - 8 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_edittext.c libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_pattern.c libswfdec/swfdec_sprite.c test/dump.c
libswfdec/swfdec_bits.c | 4
libswfdec/swfdec_color.c | 41 +++---
libswfdec/swfdec_color.h | 29 +++-
libswfdec/swfdec_edittext.c | 2
libswfdec/swfdec_image.c | 269 +++++++++++++++++++++++---------------------
libswfdec/swfdec_image.h | 9 -
libswfdec/swfdec_pattern.c | 29 +---
libswfdec/swfdec_sprite.c | 7 -
test/dump.c | 34 +++++
2007 Feb 06
0
21 commits - configure.ac libswfdec/swfdec_audio_event.c libswfdec/swfdec_bits.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_compiler.c libswfdec/swfdec_edittext.c libswfdec/swfdec_image.c
configure.ac | 1
libswfdec/swfdec_audio_event.c | 1
libswfdec/swfdec_bits.c | 4
libswfdec/swfdec_button_movie.c | 3
libswfdec/swfdec_color.c | 67 +++++-
libswfdec/swfdec_color.h | 31 ++-
libswfdec/swfdec_compiler.c | 5
2006 Jan 01
11
Migration db_schema_import always fails.
I have not been able to get DB migrations to work at all in Rails 1.0
for me. On multiple platforms I continually get the same errors. It
took me awhile to figure out some initial things, such as Migrations
don''t seem to support Enum column types, and doesn''t really support
Foreign key relationships (the constraints at least). After changing
my DB schema to jive more with the
2009 Apr 20
1
RJS sporadic error message
I have this form that allows a user to enter a username and save it,
assocciating your profile with theirs via an id. A list gets updated and
a partial is displayed. The problem is that when I hit the submit button
to this form to make this all happened I (sometimes, but more often then
not) get an RJS error that reads:
TypeError: Cannot set property ''innerHTML'' of bull.
I hot
2005 May 02
0
Wx::StringInputBuffer/Wx::StringOutputBuffer
Hello, wxruby-users.
This is two files which wrap wxStringInputStream and
wxStringOutputStream for ruby. I need this to implement in-memory
image io. ''stringio.rbw'' -- small sample for it.
Short usage:
stream = Wx::StringInputStream.new image_data
image = Wx::Image.new stream
stream = Wx::StringOutputStream.new
image.save_file stream, ''image/jpeg''
image_data
2007 Jul 24
0
send_data and ie
Has anyone else had trouble using send_data with internet explorer. As
usual things were working fine in firefox and safari until I tested in
IE :).
With the following code I''m seeing an image show up in firefox but the
"X" indicating no image found in IE. Any ideas?
@image_data = Image.find(:all, :conditions=>{:url =>
"http://reddit.com"})
@image =
2007 Nov 10
1
3 commits - libswfdec/swfdec_image.c libswfdec/swfdec_image.h
libswfdec/swfdec_image.c | 204 ++++++++++++++++++++++++++---------------------
libswfdec/swfdec_image.h | 11 +-
2 files changed, 123 insertions(+), 92 deletions(-)
New commits:
commit 54d034a21fa13a6afb4ad788a82b240002def2cf
Author: Benjamin Otte <otte at gnome.org>
Date: Sun Nov 11 00:21:54 2007 +0100
implement reading from PNG files
diff --git a/libswfdec/swfdec_image.c
2006 Mar 14
5
How to display different images using ajax?
Hi!
On my page i display one full size image and a list of thumbnails.
I''d like to change the full size image with a full size version of a
thumbnail, after clicking on one of them.
How to write controller action, so it would update the image without
reloading the whole page? It''s easy with text, but how to reload an
image?
--
Posted via http://www.ruby-forum.com/.
2007 Jan 18
0
Branch 'interpreter' - 4 commits - libswfdec/js libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_codec_screen.c libswfdec/swfdec_image.c libswfdec/swfdec_script.c libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_tag.c
libswfdec/js/jsinterp.h | 1
libswfdec/swfdec_bits.c | 28 +++
libswfdec/swfdec_bits.h | 9 -
libswfdec/swfdec_codec_screen.c | 2
libswfdec/swfdec_image.c | 98 ++++--------
libswfdec/swfdec_script.c | 315 ++++++++++++++++++++++++++++++++++++++--
libswfdec/swfdec_swf_decoder.c | 2
libswfdec/swfdec_tag.c | 23 --
8 files
2012 Aug 07
3
Barcode Generating With Label On Canvas by using Barby gem
********UNDEFINED METHOD REGISTER ERROR IN THE FALLOWING CODE *******
Hi all,
I am trying to generate barcode(including its name as label at the
bottom of barcode image for easy understand with out scanning by barcode
scanner).
For this I am Using barby, chuncky_png, rmagick gems.
I am using the fallowing code to generate label at bottom of image by
using rmagick gem:
gem
2007 Feb 06
0
109 commits - configure.ac libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_codec_screen.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h
configure.ac | 2
libswfdec/Makefile.am | 4
libswfdec/js/jsfun.c | 11
libswfdec/js/jsfun.h | 1
libswfdec/js/jsgc.c | 29
libswfdec/js/jsinterp.c | 14
libswfdec/js/jsinterp.h | 4
libswfdec/js/jsnum.c | 10
libswfdec/js/jsobj.c | 2
2012 Jul 19
2
[PATCH] pygrub: add syslog support to pygrub
# HG changeset patch
# User Zhigang Wang <zhigang.x.wang@oracle.com>
# Date 1342720736 14400
# Node ID ec9655b30a5fa5b5abb3e05505f681f9be559613
# Parent 43e21ce7f22151524b800a6cf0ac4ba1233b34a7
pygrub: add syslog support to pygrub
Currently, when pygrub failed, we don''t know the reason because xend/xl will
not capture the stderr message.
This patch will log the error message to
2007 Jan 16
0
9 commits - libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_audio_stream.c libswfdec/swfdec_audio_stream.h libswfdec/swfdec_cache.c libswfdec/swfdec_cached.c libswfdec/swfdec_cached.h libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_image.c
libswfdec/Makefile.am | 4
libswfdec/js/jsapi.c | 6 -
libswfdec/js/jsapi.h | 6 -
libswfdec/js/jsfun.h | 2
libswfdec/js/jsinterp.c | 2
libswfdec/js/jsobj.c | 8 -
libswfdec/js/jsobj.h | 6 -
libswfdec/js/jspubtd.h | 4
libswfdec/js/jsscope.c | 2
2008 Jan 21
2
Application error - SQL_AUTO_IS_NULL
I have a simple controller (browse) that uses a "books" action to
display a list of books (stored in a mysql db) and a "book_details"
action to display the details of a particular book (according to the
book''s mysql id). The book_details action is accessed via a link from
the books action via the following snippet:
<a href=<%=
2011 Jun 09
1
NFS problem
Hi,
I got the same problem as Juergen,
My volume is a simple replicated volume with 2 host and GlusterFS 3.2.0
Volume Name: poolsave
Type: Replicate
Status: Started
Number of Bricks: 2
Transport-type: tcp
Bricks:
Brick1: ylal2950:/soft/gluster-data
Brick2: ylal2960:/soft/gluster-data
Options Reconfigured:
diagnostics.brick-log-level: DEBUG
network.ping-timeout: 20
performance.cache-size: 512MB