search for: output_buffe

Displaying 20 results from an estimated 24 matches for "output_buffe".

Did you mean: output_buffer
2009 Feb 16
2
working with Blocks
hey I am able to do: block_func(x, y) do .... end But if I try to do this: form.block_func(x, y) do .... end I get an error like this: syntax error, unexpected '')'' @output_buffer.concat " "; @output_buffer.concat (( form.block_func(x, y) do ).to_s); @output_buffer.concat "\n" Any ideas? thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rail...
2010 Jun 18
2
[PATCH] hdt & gcc -Werror
.../hdt/hdt-cli-cpu.c index aa7ec8f..1695ccd 100644 --- a/com32/hdt/hdt-cli-cpu.c +++ b/com32/hdt/hdt-cli-cpu.c @@ -67,7 +67,7 @@ static void show_flag(char *buffer, bool flag, char *flag_name, bool flush) if ((((strlen(buffer) + strlen(flag_name)) > 66) && flag) || flush) { snprintf(output_buffer, sizeof output_buffer, "Flags : %s\n", buffer); - more_printf(output_buffer); + more_printf("%s", output_buffer); memset(buffer, 0, sizeof(buffer)); if (flush) return; diff --git a/com32/hdt/hdt-cli-kernel.c b/com32/hdt/hdt-cli-kernel.c index d4946f3..f64771b...
2004 Aug 06
0
Speex wrapper functions for Visual Basic
...gned char because in VB its an byte array. Here are my first steps but it don´t work and i don´t come forward. Hopefully someone can help me! CALL int __stdcall EncodeSpeexFrame (float *input_frame, unsigned char *output_bytes, int input_size) { int MAX_NB_BYTES, nbBytes; char *output_buffer; unsigned char *temp_buffer; float *input_buffer; input_buffer = new float (input_size); input_buffer = input_frame; speex_bits_reset(&enc_bits); speex_encode(enc_state, input_buffer, &enc_bits); delete input_buffer; MAX...
2011 Jul 15
0
Writing test for CacheHelper
Hi, I''m working to patch actionpack/lib/action_view/helpers/ cache_helper.rb so that it doesn''t throw when ouput_buffer isn''t ActionView::OutputBuffer but is still html_safe. In 3-0-stable the function contains the following if: if output_buffer.is_a?(ActionView::OutputBuffer) safe_output_buffer = output_buffer.to_str fragment = safe_output_buffer.slice!(pos..-1) self.output_buffer = ActionView::OutputBuffer.new(safe_output_buffer) else fragment = output_buffer.slice!(pos..-1)...
2006 May 17
3
PHP register_globals
Hi I am trying to turn on register_globals, but I am failing. someone trold me that I should change php.ini and I did it. ? - register_globals = Off - register_globals = On I made a php test page html/test.php <?php phpinfo(); ?> and checked it, but I can not make it. output_buffering no value no value output_handler no value no value post_max_size 8M 8M precision 14 14 register_argc_argv On On register_globals Off Off I am using CentOs 4.3 and installed php-4.3.9-3.12 php-mbstring-4.3.9-3.12 php-gd-4.3.9-3.12. Does anyone help me to trun on register_globals please? Thenk...
2010 Jan 31
6
Action path - syntax error, unexpected tIDENTIFIER, expecting ')'
...ven understanding how to set REST path properly. Can someone please help me. Here is the error on the home page: C:/RoR/health/app/views/home/index.html.erb:3: syntax error, unexpected tIDENTIFIER, expecting '')'' ...link_to ''Login'' login_user_path(user) ).to_s); @output_buffe... ... ^ Extracted source (around line #3): 1: <h1>Home app/views/home/index.html.erb</h1> 2: 3: <%= link_to ''Login'' login_user_path(user) %> ] Here is my index.html.erb <h1>Welcome </h1> <%= link_to ''Login...
2015 Feb 10
0
[PATCH 4/6] hdt: fix sizeof(char *) misuse
...r **argv __unused, /* Let's compute the cpu flags display * We have to maximize the number of flags per line */ -static void show_flag(char *buffer, bool flag, char *flag_name, bool flush) +static void show_flag(char *buffer, size_t len, bool flag, char *flag_name, bool flush) { char output_buffer[81]; /* Flush is only set when no more flags are present @@ -86,7 +86,7 @@ static void show_flag(char *buffer, bool flag, char *flag_name, bool flush) snprintf(output_buffer, sizeof output_buffer, "Flags : %s\n", buffer); more_printf("%s", output_buffer); - mem...
2015 Feb 10
6
[PATCH 0/6] fix some compiler warnings
These patches fix a few compiler warnings. Tested on top of commit aee0dc5565711ef5be7c30fb5fc1c5f3f98db09f Jonathan Boeing (6): Use z width specifier when printing size_t variable pxe: fix truncation warning gpllib: fix sizeof(char *) misuse hdt: fix sizeof(char *) misuse hdt: fix sizeof(char *) misuse hdt: fix sizeof(char *) misuse com32/gpllib/dmi/dmi.c | 24 +++---
2010 Nov 20
0
Enabling preprocessing in Erubis makes views much faster
...say what would be needed to make that work. https://gist.github.com/707461 module ActionView class Base def get_binding;return binding;end end class Template module Handlers class Erubis < ::Erubis::Eruby def add_expr_debug(src, code) src << "@output_buffer.safe_concat(''" << escape_text(eval(code,ActionView::Base.new.get_binding).to_s) << "'');" end end end end end -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To pos...
2002 Jul 01
0
Memory allocation gone awry with OpenSSH 3.(3,4)p1
...mpression is on. After some digging, we were able to trace the problem to "buffer_uncompress" in compress.c - it seems that in some circumstances the inflate call returns Z_OK and incoming_stream.avail_out == 0, thus the program alloc's another sizeof(buf)-0 = 4096 bytes for the output_buffer, then repeats the call to inflate, which again returns status==0 and avail_out==0, thus entering an infinite loop. This is what happens under strace: =====[cut here]===== [pid 8379] old_mmap(NULL, 151552, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x404cc000 [pid 8379] mrema...
2018 Feb 22
0
[PATCH 1/5] v2v: DOM: Add doc_to_string function.
...coding='utf-8'?>\n"; + element_to_buf buf doc; + bprintf buf "\n" + +let doc_to_string doc = + let buf = Buffer.create 4096 in + doc_to_buf buf doc; + Buffer.contents buf + +let doc_to_chan chan doc = + let buf = Buffer.create 4096 in + doc_to_buf buf doc; + Buffer.output_buffer chan buf let path_to_nodes (Doc doc) path = match path with diff --git a/v2v/DOM.mli b/v2v/DOM.mli index 1aa89b7e7..99223c389 100644 --- a/v2v/DOM.mli +++ b/v2v/DOM.mli @@ -60,6 +60,9 @@ v} v} *) +val doc_to_string : doc -> string +(** Convert a document to a string representation. *)...
2016 Jul 13
0
[PATCH v3 2/2] mllib: Getopt: support hidden options
...+ doc <> hidden_option_description + ) h.specs in + List.iter ( fun (keys, spec, doc) -> let columns = ref 0 in @@ -88,7 +95,7 @@ let show_help h () = ); Buffer.add_string b doc; Buffer.add_char b '\n'; - ) h.specs; + ) specs; Buffer.output_buffer stdout b; exit 0 @@ -158,8 +165,8 @@ let create specs ?anon_fun usage_msg = } in let specs = specs @ [ - [ "--short-options" ], Unit (display_short_options t), s_"List short options (internal)"; - [ "--long-options" ], Unit (display_long_options t),...
2011 Jan 05
16
Nicedit (rich text editor)
Hello, I''m trying to use Nicedit to improve my text_areas in some views of my project. I have installed jquery: ruby script/plugin install git://github.com/aaronchi/jrails.git nicEdit plugin: ruby script/plugin install git://github.com/sergio-fry/Simple-nicEdit.git Add js in layout: <%= javascript_include_tag ''nicEdit'', ''nicEditInit'' %> Use it
2004 Nov 20
0
ffmpeg2theora start and end time support
...is->audio_resample_ctx=NULL; } } else{ this->audio_index = -1; } } if (this->video_index >= 0 || this->audio_index >=0){ AVFrame *frame=NULL; AVFrame *frame_tmp=NULL; AVFrame *output=NULL; AVFrame *output_tmp=NULL; AVFrame *output_resized=NULL; AVFrame *output_buffered=NULL; AVPacket pkt; int len; int len1; int got_picture; int first = 1; int e_o_s=0; int ret; uint8_t *ptr; int16_t *audio_buf= av_malloc(4*AVCODEC_MAX_AUDIO_FRAME_SIZE); int16_t *resampled= av_malloc(4*AVCODEC_MAX_AUDIO_FRAME_SIZE); if(this->video_index >= 0)...
2007 Jul 25
0
Problem with asterisk-addons - checking for mysql_init in -lmysqlclient... no
...plate_instnt.o)(.gnu.linkonce.t._._Q25mySTLt4list1ZPQ25yaSSL12input_buffer+0x41): In function `mySTL::list<yaSSL::input_buffer *>::~list(void)': : undefined reference to `__builtin_delete' /usr/lib/mysql/libmysqlclient.a(template_instnt.o)(.gnu.linkonce.t._._Q25mySTLt4list1ZPQ25yaSSL13output_buffer+0x41): In function `mySTL::list<yaSSL::output_buffer *>::~list(void)': : undefined reference to `__builtin_delete' /usr/lib/mysql/libmysqlclient.a(template_instnt.o)(.gnu.linkonce.t._._Q25mySTLt4list1ZPUc+0x41): more undefined references to `__builtin_delete' follow /usr/lib/mysq...
2023 Feb 24
1
[PATCH 1/1] Add support for ZSTD compression
...s if the output does not fit into the buffer + */ + do { + out_buff.pos = 0; + + comp = ZSTD_compressStream2(ssh->state->compression_zstd_out_stream, + &out_buff, &in_buff, ZSTD_e_flush); + if (ZSTD_isError(comp)) + return SSH_ERR_ALLOC_FAIL; + /* Append compressed data to output_buffer. */ + r = sshbuf_put(out, buf, out_buff.pos); + if (r != 0) + return r; + ssh->state->compress_zstd_out_comp += out_buff.pos; + } while (comp > 0); + return 0; +} + +static int uncompress_buffer_zstd(struct ssh *ssh, struct sshbuf *in, + struct sshbuf *out) +{ + u_char buf[4096]...
2009 Jul 07
10
link_to, how do you combine url options and html_options?
I have a link-to that I wish to look somewhat like this: link_to "link here", new_object_path, :method => :post, :confirm => ''Press OK'', #url options :class => "css_class", :id => "css_id" #html options In any case I can either get the url_for options to work or the html options to work, but
2023 Feb 24
1
[PATCH 0/1] ZSTD compression support for OpenSSH
I added ZSTD support to OpenSSH roughly three years ago and I've been playing with it ever since. The nice part is that ZSTD achieves reasonable compression (like zlib) but consumes little CPU so it is unlikely that compression becomes the bottle neck of a transfer. The compression overhead (CPU) is negligible even when uncompressed data is tunneled over the SSH connection (SOCKS proxy, port
2020 Mar 24
4
ZSTD compression support for OpenSSH
I hacked zstd support into OpenSSH a while ago and just started to clean it up in the recent days. The cleanup includes configuration support among other things that I did not have. During testing I noticed the following differences compared to zlib: - highly interactive shell output (as in refreshed at a _very_ high rate) may result in higher bandwidth compared to zlib. Since zstd is quicker
2010 Apr 19
10
Overview of Ruby 1.9 encoding problem tickets
...ble, unless the "internal" encoding would also be BINARY. I would propose merging the following with the patch above: def compile(template) input = "<% __in_erb_template=true %>#{template.source}" src = ::ERB.new(input, nil, erb_trim_mode, ''@output_buffer'').src if RUBY_VERSION >= ''1.9'' and src.encoding != input.encoding if src.encoding == Encoding::ASCII_8BIT src = src.force_encoding(input.encoding) #ERB workaround else src = src.encode(input.encoding) end...