similar to: Unbuffered Output?

Displaying 20 results from an estimated 300000 matches similar to: "Unbuffered Output?"

2006 Dec 16
0
unbuffered output?
How do I do unbuffered output from a rails app? I suspect the question really is "how do I do unbuffered output from ruby" but since it''s for a rails app here I am:-) Also if I understand correctly apache >= 1.3 no longer buffers output?... any thoughts on that also appreciated. Thanks in advance! Tim --~--~---------~--~----~------------~-------~--~----~ You received
2006 May 03
7
Business Logic and where to place with rails
I am having an issue of deciding where I should put the business code for example the more complex code coming off the controller. Right now, I am just thinking to put it in the ''lib'' directory and the do something along these lines: require_dependency "system_process" class SystemMessageController < ApplicationController include SystemProcess ... ... Where
2006 Sep 06
4
Setting Product Env
When I am using my rails models in my worker class, it appears the background worker class is always using development no matter what I do. I set background.yml to production. I even have ENV[''RAILS_ENV''] ||= ''production uncommented in environment.rb. I don''t have the development db even created on my production box, so not sure where it is getting development
2006 Jun 08
3
MVC and Pagination
Just wondering how to best integrate with pagination and still stick to MVC... Say I have a Post model that has a published attribute. I want to show all the recent published posts on a page. My first instinct is to create a method in the Post model called recent that does the find with proper conditions and order, but the problem I have is how do I use that with pagination (which definitely
2006 May 04
22
Should controllers be "smart"?
I''m working on a small project with a friend, and one of the things we needed to do was send off an email whenever someone signs up an account. His implementation was pretty simple - throw a deliver_welcome call inside the controller after the signup. I''m sure that this is a pretty common thing to do. The problem, in my mind, was that the app now became tied to two places -
2006 Mar 14
5
Controller Naming Question
Is it possible to have controllers named the following? /admin /admin/user If not, is there some way to get it to work with routes? I want to have some actions at the url /admin/<action> and some at /admin/user/<action> (obviously in admin/user controller). Thanks!!!
2006 Apr 19
4
RJS replace_html auto-closing tags
I''m using the following RJS template to spit out a div containing a list of projects: page.replace_html ''results'', ''<div>'' @projects.each do |p| page.insert_html :bottom, ''results'', p.name + "<br/>" end page.insert_html :bottom, ''searchresults'', ''</div>'' page.show
2006 Mar 16
4
problems with latest and greatest ?
I just did the following: 1) checked out latest rails from svn. 2) built project using the /bin/rails with the latest rails binary. 3) did a "rake freeze_edge" within the project Now, script/server is failing =========================== ./script/../config/../vendor/rails/railties/lib/commands/../tasks/tmp.rake:1: undefined method `namespace'' for #<Object:0x401ce970>
2006 Apr 19
2
Credit Card Processing / Merchant Account
Hi All, Has anyone implemented a credit card processing / merchant account system using Rails? I know that there is a ''payment'' gem that is supposed to integrate with the Authorize.net gateway, but I''m wondering if that is the best (and only) solution out there. Are there any other recommended solutions from Rails programmers out there? Thanks in advance for the
2004 Mar 09
0
FW: error writing 4 unbuffered bytes - exiting: Broken pipe
I have a filesystem from a different machine nfs mounted on the machine that is running rsync. rsync version 2.5.5 protocol version 26 Copyright (C) 1996-2002 by Andrew Tridgell and others <http://rsync.samba.org/> Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles, IPv6, 64-bit system inums, 64-bit internal inums I am trying to create a backup
2002 Jun 18
0
error writing 4 unbuffered bytes - exiting
I am running a fairly new box, Athlon 1.4Ghz, 512 Mb RAM, RedHat 7.3, rsync rsync version 2.5.4 protocol version 26, it's disk layout is; bash-2.05a# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda6 372M 338M 15M 96% / /dev/sda1 45M 8.9M 34M 21% /boot /dev/sda5 703M 218M 449M 33% /home none 251M 0
2004 Mar 09
1
error writing 4 unbuffered bytes - exiting: Broken pipe
I have a filesystem from a different machine nfs mounted on the machine that is running rsync. rsync version 2.5.5 protocol version 26 Copyright (C) 1996-2002 by Andrew Tridgell and others <http://rsync.samba.org/> Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles, IPv6, 64-bit system inums, 64-bit internal inums I am trying to create a backup
2009 Mar 04
1
performance problem with 3.2.8: unbuffered reads for some users
Hi! I'm experiencing strange performance problems after upgrading to samba 3.2.8 from 3.0.30. For all users except smbadmin (who has administrative rights), read performance is _very_ bad. Looking at the read-requests using filemon and wireshark, I found out that for those users, every read is handled transparently (unbuffered) over the net. (I.e. a 2 byte read-request of the application
2002 Sep 08
2
Crashes maybe due to: "error writing 4 unbuffered bytes"
I have been trying to implement Mike's tutorial on backup with rsync, but my server has kept crashing in the middle of the rsync transfer. I am backing up /dev/hda1 to /dev/hdc1 on a SuSe v 7.3 i386 box Server crashed 8 times. 16 fsck and 8 reboots later I finally got an error message and a graceful exit from rsync. Somewhere in the middle of the crashes I compiled and installed the
2008 Sep 18
2
Unbuffered stdout?
Hello, I'm running a DOS mode text program under Wine via a Mac OSX Objective-C/Cocoa program. I use NSTask to run Wine and capture stdin, stdout and stderr via NSPipes. I'm having an issue where output from the DOS mode text program doesn't get to the Objective-C/Cocoa program until after the program ends in Wine. I think this is happening because stdout is buffered. Is there a
2002 Jul 18
0
rsync: error writing NNNN unbuffered bytes - exiting:Connection reset by peer -> NIC driver problem!
I was seeing rsync errors which caused my system installations to fail repeatedly and absolutely. See the error I reported to this mailing list back in June in the Forwarded Message below. When I replaced my NIC cards (realtec chip, 8139too driver) with Linksys cards (and Dec Tulip driver for linux) the problem ceased, rsync worked like it should, and does so repeatedly. My suggestion would be
2006 Mar 09
2
Edge Rails Webrick Problem
Can anyone help me with the following error while trying to start webrick on edge rails? Was working last week, but recent updates are causing the following error. Is there something in my existing rails dir that I might need to update? Thanks in advance for any help. ./script/../config/../vendor/rails/activesupport/lib/active_support/core _ext/kernel/agnostics.rb:7:in ``'': Exec
2006 May 01
1
Is there a way to do unbuffered render :update ?
Greetings all, I have an action which does some stuff and then does a render :update to replace a container with a partial, the delay due to processing is more than I''d like for expecting a user to wait without hitting the button again and again. Is there a way to force the render''s display when the satement is executed rather than at the end of the action? Thanks, Andy --
2002 Sep 09
4
Hardware - no way -Re: Crashes maybe due to: "error writing 4 unbuffered bytes"
Dear JW, I spent hours checking and upgrading my hardware. There is nothing wrong with it. It is a 'mature' Pentium-II 400MHz system that has been running my servers WITHOUT ANY CRASHES for nearly 2 years now 24/7 Listen to me: "The crashes are dues to rsync" There is an IDENTICAL report from a totally different source at
2006 Apr 16
2
AJAX update of <img> element?
Hi, I''ve been trying to do AJAX updates of an <img> element, but I can''t seem to make it work. Should it be possible to do something like this...? [View] <%= form_remote_tag :url => {:action => ''sendplot''}, :update => ''plot'' %> <%= submit_tag %> <%= end_form_tag %> <img id="plot"