similar to: Override logger for large binary data

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
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)
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'':
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
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 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
2010 Feb 24
6
Yet another send_data :image question...
Guys & gals, I''m also learning RoR (using v2.3.4). I''ve got a basic scaffold working for image file creation, and - to a point - image file display. The send_data function is working in my controller - no problem. The model code is able to parse the uploaded file construct too. def show @image = Image.find(params[:id]) send_data(@image.binary_data, :type =>
2011 Jul 13
1
UNIX diff function
Colleagues, (R: 2.13.0; OS X) I often receive sequential datasets in which there are new rows interposed between existing rows. For example: SET1 <- data.frame(list(LETTERS=LETTERS[c(1:4, 6:10)], NUMBERS=c(1:4, 6:10))) SET2 <- data.frame(list(LETTERS=LETTERS[1:10], NUMBERS=1:10)) > SET1 LETTERS NUMBERS 1 A 1 2 B 2 3 C 3 4 D 4 5
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
1996 Nov 14
1
Security hole in Debian 1.1 dosemu package
In Debian 1.1, the optional DOSEMU package installs /usr/sbin/dos setuid root. This is a serious security hole which can be exploited to gain access to any file on the system. Package: dosemu Version: 0.64.0.2-9 ------- start of cut text -------------- $ cat /etc/debian_version 1.1 $ id uid=xxxx(quinlan) gid=xxxx(quinlan) groups=xxxx(quinlan),20(dialout),24(cdrom) [quinlan:~]$ ls -al
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
2002 Jul 31
0
RE: Solaris/Winbind Problems
Yes, it kind of sucks that it does not work correctly. I did the following kluge for now: I did the following: In /usr/sbin, I created a script called passwd: #!/bin/ksh trap "" 2 3 sudo mv /etc/nsswitch.conf /etc/nsswitch.conf.winbind sudo mv /etc/nsswitch.conf.nowinbind /etc/nsswitch.conf /usr/bin/passwd $1 sudo mv /etc/nsswitch.conf /etc/nsswitch.conf.nowinbind sudo mv