Displaying 20 results from an estimated 4000 matches similar to: "Override logger for large binary data"
2005 Dec 16
2
Using logger from rails cron jobs
Hi. I''m trying to use logger from a rails cron job.
It works fine, but I''d like the standard ruby behavior of stamping each
log with date and time. How do I do this?
I''m trying:
# Set up out logging
require ''logger''
logger = Logger.new(STDERR)
logger.level = Logger::INFO
RAILS_DEFAULT_LOGGER = logger # Tell rails to log to our logger also
The
2007 Mar 28
3
attachment_fu Not Resizing
Hello,
Recently attachment_fu stopped resizing images for me. I''m puzzled
because before today it was resizing them and I don''t know what''s
changed. Here''s my code:
class Product < ActiveRecord::Base
has_attachment :content_type => :image,
:storage => :file_system,
:max_size => 18.megabytes,
2008 Feb 19
0
Rails logger change format
Hi guys,
After few investigations I still cannot change the format of logs from
rails 2.0.2 apps.
I tried with overwriting the format_message method from Logger class and
still nothing. I know that in Rails 2.0.2 BufferedLogger is used and I
didn''t manage to change the format for this one.
What seems to be the easiest way to do that ?
Thanks in advance.
--
Posted via
2015 Nov 03
3
Problema R se cuelga neuralnet
Estimados
Tengo un problema, R se cuelga (cierra, aborta, etc.) al usar códigos de neuralnet. Copio un ejemplo cualquiera para preguntar si a otros les pasa lo mismo o es un problema puntual en mi computadora (uso R revolution win 10).
# install, load package
install.packages(NeuralNetTools)
library(NeuralNetTools)
# create model
library(neuralnet)
AND <- c(rep(0, 7), 1)
OR <- c(0, rep(1,
2015 Nov 03
3
Problema R se cuelga neuralnet
Muchas gracias
Instale R desde CRAN y ejecutar version en R y R revolution, informa lo mismo, pero en el segundo neuralnet se cuelga, paso una captura de pantalla (Rstudio bajo r revolution también tiene problemas, no con R desde CRAN).
Javier Rubén Marcuzzi
Técnico en Industrias Lácteas
Veterinario
De: juan(uned)
Enviado: martes, 3 de noviembre de 2015 12:48
Para: r-help-es en
2019 Jun 27
0
Re: [PATCH 08/11] Rust bindings: Fix memory management and format the file
---
generator/rust.ml | 461 +++++++++++++++++++++++++++++++---------------
1 file changed, 311 insertions(+), 150 deletions(-)
diff --git a/generator/rust.ml b/generator/rust.ml
index 79e16dfc6..ee65b1073 100644
--- a/generator/rust.ml
+++ b/generator/rust.ml
@@ -61,14 +61,16 @@ let generate_rust () =
pr "
use std::collections;
use std::convert;
+use std::convert::TryFrom;
use
2004 Mar 14
2
Feature request
Hi,
I have a small problem, I want to specify the SSH password via the command
line:
root at bla:~# ssh -dmypassword user at host
I know this is insecure and normally it is better to use key based
authentication to log into the remote system without specifying a password,
but in my case, this is not a possibility.
So would you accept a patch to add a new command line option (suggestion: -d)
2019 Jun 27
0
[PATCH 7/9] Rust bindings: Complete actions
From: Hiroyuki_Katsura <hiroyuki.katsura.0513@gmail.com>
---
generator/rust.ml | 283 ++++++++++++++++++++++++++++++++++++++++++----
1 file changed, 259 insertions(+), 24 deletions(-)
diff --git a/generator/rust.ml b/generator/rust.ml
index aa8b249ff..79e16dfc6 100644
--- a/generator/rust.ml
+++ b/generator/rust.ml
@@ -60,10 +60,11 @@ let generate_rust () =
pr "
use
2019 Jun 27
0
[PATCH 9/9] Rust bindings: Complete bindings
From: Hiroyuki_Katsura <hiroyuki.katsura.0513@gmail.com>
---
configure.ac | 2 +
generator/bindtests.ml | 63 +++++
generator/main.ml | 2 +-
generator/rust.ml | 423 +++++++++++++++++-----------
generator/rust.mli | 5 +-
rust/.gitignore | 2 +
rust/Makefile.am
2006 Nov 22
4
Error when starting bgrdb
Hi,
I get this error when starting bgdrb using "rake
backgroundrb:start" (on a Mac using bgdrb 0.2.0):
/Users/gl/Projects/xxxxx/xxxxx/vendor/plugins/backgroundrb/server/lib/
backgroundrb_server.rb:33:in `format_message'': undefined method
`strftime'' for "2006-11-22T12:34:18.524572 ":String (NoMethodError)
from /usr/lib/ruby/1.8/logger.rb:320:in
2006 Dec 04
1
no method error when starting backgroundrb
I just installed backgroundrb on our server. When tryin to start via
script/backgroundrb i get a no method error.
./script/backgroundrb start
/home/tom/ralf_dev/vendor/plugins/backgroundrb/server/lib/backgroundrb_server.rb:34:in
`format_message'': undefined method `strftime'' for "2006-12-04T15:53:
23.419225 ":String (NoMethodError)
from
2006 Jun 29
1
Logging in Rails
Is there any reason why active_record is overriding the method
format_message of the class logger?
--
Posted via http://www.ruby-forum.com/.
2006 Mar 30
1
Logger::Format not defined (NameError) [NOOB]
I have just installed apache2 / php4 / mysql and RoR on a clean and
minimal Ubuntu (5.10) server.
I have set up a test site and can reach the "Welcome on board" index
page.
However when I run "ruby script/generate contoller firsttest" I get the
following error.
./script/../config/../vendor/activesupport/lib/active_support/clean_logger.rb:13:in
`remove_const'':
2008 Jun 18
1
Vpim gem
On Wed, Jun 18, 2008 at 6:32 AM, Joost Hietbrink <joost at joopp.com> wrote:
> Hi Sam Roberts,
> First of all. Thanks for the Vpim gem. We use it at www.yelloyello.com and
> it works great.
I''m glad to hear that.
> We''ve only encountered the following error:
> # NoMethodError (undefined method `to_str'' for []:Array):
> #
>
2009 Jul 07
1
[PATCH] Set up ovirt-agent so it starts as a daemon
This sets up ovirt-agent to start as a daemon along with dbomatic,
taskomatic etc. While this is not ready for prime time I think it
should be ok as you still require a valid, authenticated, connection
to qpidd to access it.
Signed-off-by: Ian Main <imain at redhat.com>
---
installer/modules/ovirt/manifests/ovirt.pp | 6 +++
ovirt-server.spec.in | 5 ++
2006 May 03
6
ActiveRecord and Lost Connection
This isnt totally a rails question; I am using ActiveRecord for storing
some simple values into a database. My problem; I keep gettign MySQL
Errors. On the Win32 machine it was off and on. Now on the linux
machine (ubuntu) I can'' t connect at all. I have all the password
settings correct.
My only thought, I am working with Threads and thought that might cause
the issue, but I
2010 Feb 02
0
[Security] Loofah has an HTML injection / XSS vulnerability, please upgrade to 0.4.6
Synopsis
----------
Loofah::HTML::Document#text emits unencoded HTML entities prior to
0.4.6. This was originally by design, since the output of #text is
intended to be used in a non-HTML context (such as generation of
human-readable text documents).
However, Loofah::XssFoliate''s default behavior and
Loofah::Helpers#strip_tags
both use #text to strip tags out of the output, meaning that
2008 May 22
1
[LLVMdev] [PATCH] fix for FreeBSD/powerpc build breakage
All,
The following patch fixes the build breakage on FreeBSD/powerpc:
Index: lib/Target/PowerPC/PPCJITInfo.cpp
===================================================================
--- lib/Target/PowerPC/PPCJITInfo.cpp (revision 51432)
+++ lib/Target/PowerPC/PPCJITInfo.cpp (working copy)
@@ -72,7 +72,7 @@
extern "C" void PPC64CompilationCallback();
#if (defined(__POWERPC__) ||
2006 Jul 14
3
override to_string for single attribute?
I have a model where I want to change the display for a single attribute
such that if the value is an integer, it displays with no decimal point
(e.g. "1"), but if it is non-integer, it displays with a decimal point
(e.g. "1.25").
The easiest way to do this seems to be if I could override the to_string
method for my_model.my_attribute.to_s. Is there a way to do this? Or
2006 Jun 20
1
Sort of data.frame yields a thing which is not a data.frame...
I've observed something I don't understand, and I was hoping someone
could point me to the right section of docs.
There's a portion in one of my analyses in which I am wont to sort a
data.frame so:
seriesS <- seriesS[order(as.Date(row.names(seriesS),format="%m/%d/%Y")),]
So, I've got row.names which are textual representations of dates, I'd
like to retain them