Displaying 20 results from an estimated 600 matches similar to: "rails internals?"
2006 Feb 23
5
sortable_list added to by AJAX question
I have a working sortable_list that is added to by AJAX. The problem is
that when a new item is added, it''s not sortable. I found a post on
scriptaculous using behaviour.js to refresh the DOM when an item is
added, but I can''t figure out how to do it with Rails.
To test the behaviour method, I used this:
var myrules={
''div#steps ul'' :
2005 Nov 14
1
Yeah !!!
Wow !! Seems like RedCloth is now able to output DocBook !!!!
Great I have to Say !!!
--
Frederick Ros aka Sleeper -- sleeper at jabber.fr
Make sure special cases are truly special.
- The Elements of Programming Style (Kernighan & Plaugher)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189
2003 Jan 27
2
small problem that I'm having...
Good morning guys,
I've compiled and installed rsync 2.5.5 on 2 AIX 4.3 systems.
When I try to run this command
rsync --stats --progress --delete --partial --timeout=60 -aRntvz
patrick@aix1::test /test
I get this message and I don't know why. On both systems I run the
command as root, what could be the cause ?
Oh I was getting the same message with rsync 2.4.X and I still get it
with the
2006 Apr 29
1
Textile to LaTeX
Hello,
Is there a patch laying around somewhere to convert
Textile to LaTeX? (Instiki did/does this?)
Or, better yet, is RedCloth 3.1 still in the pipeline?
In ruby-talk 129874 (7 Feb 2005), why the lucky stiff wrote:
>
> Let me give you a roadmap of what to expect with RedCloth 3
> in the coming months.
>
> RedCloth 3.1 will focus on getting us diverse outputs.
2006 Feb 20
4
Obtaining the ID of a newly saved model object
Hi,
I''m struggling with this and I''m not sure if it is obvious or dumb (or both).
I have a basic create method like so:
def creatematerial
@material = Material.new(params[:material])
if @material.save
flash[:notice] = "Material successfully created."
end
Ok so far, but now I want to retrieve that object that was just saved so that it can be used in the
2005 Nov 21
3
New code: proposed release?
So I just wanted to review what most of my new code does for those
who are not familiar with it yet.
======
The biggest feature of my work is the docbook export. This means that
any valid textile markup can be exported to the docbook standard. I
added a new chapter tag to go along with the export.
ch. 1. Here is the title
In HTML, this will produce:
<h1>1. Here is the
2005 Dec 07
6
PG_arch_1
Xenlinux uses a special architecture-dependent bit in the page table,
called PG_arch_1 to indicate that a page is "foreign" (PG_foreign).
It also apparently uses it to determine if a page is pinned (PG_pinned).
Linux/ia64 (and apparently Linux/ppc and Linux/ppc64) use the PG_arch_1
bit for other purposes. On Linux/ia64, it is used to determine if
the instruction cache needs to be
2006 Mar 28
3
coolest software ("coolest startups" re-asked)
Asked a little while back about "coolest startups" using Rails, I
think it''d have been better had I asked "coolest software." Besides
the obvious (37Signals, Typo, Yakima Herald, Odeo, Measure Map, etc.),
I''m just curious about other developments where people are using it to
make nifty stuff.
--
Giles Bowkett
www.gilesgoatboy.org
2004 Aug 06
4
Problem with ices on OpenBSD 2.9 w/ Icecast 1.3.10
On Tuesday, 10 July 2001 at 14:10, Nick Ludlam wrote:
> From: "Brendan Cully" <brendan@icecast.org>
> > On Tuesday, 10 July 2001 at 03:21, Nick Ludlam wrote:
> > > From: "Brendan Cully" <brendan@icecast.org>
> > > > That handles the segfault, I don't know why the stream wouldn't be
> > > > sent fast enough though...
2006 Apr 22
2
put variable in session each time any controller runs?
Hi -- well, that''s what I''m trying to do. Does anyone know what the
best way to do it is? I have three controllers, each one has a hidden
tag, and I want each one to salt its respective tag with the name of
the action in effect, at the time that action runs, for every action
in the controller.
--
Giles Bowkett
http://www.gilesgoatboy.org
2006 Jul 16
3
pagination over custom-sorted collections?
I have a little web app where we need to paginate collections of
items. I''m trying to sort the collection and then pass it, sorted, to
a Paginator, and still be able to paginate through the collection,
across several pages, with the new sort order. The only thing I''m
doing differently from the regular scaffolding approach is this:
@order_pages = Paginator.new(self,
2008 Mar 01
5
rspec with continuations: very strange
I appear to have written code which travels backwards through time:
http://www.vimeo.com/742590
This disturbs me immensely. If anyone can explain it, that would be cool.
I think it''s an illusion brought about by how RSpec wraps the code it
executes, and by the sheer weirdness of continuations.
--
Giles Bowkett
Blog: http://gilesbowkett.blogspot.com
Portfolio:
2004 Aug 06
2
Problem with ices on OpenBSD 2.9 w/ Icecast 1.3.10
On Tuesday, 10 July 2001 at 03:21, Nick Ludlam wrote:
> From: "Brendan Cully" <brendan@icecast.org>
> > That handles the segfault, I don't know why the stream wouldn't be
> > sent fast enough though...
>
> Tried with winamp, sonique and freeamp. All exhibit the same problem of
> stuttering play, and eventually this drops out of the icecast log:
>
2008 Jan 04
7
best way to modify spec (the command-line tool)?
Hi all, where I work we''ve cooked up a kind of ghetto profiler for our
specs. It basically just does this:
time = Time.now
# run the spec
puts "woah! dude. long spec." if time > 1.second
I''m simplifying here. I think the threshold is actually 0.1 seconds,
and we use more precise language, and highlight the spec in red via
terminal colors, etc.
But the way it works
2008 Jan 17
5
unusual challenges speccing external software
This is something I''ve come up against twice. First, I have an
interactive editor which calls vi, emacs, or TextMate (etc.) via Unix,
and then loads the file handed to the editor back into IRB after it''s
edited and saved. I guess that makes it a special case of a more
general question, which is how do you spec external processes, with a
slightly more complicated version of the
2006 Apr 27
10
OT -- billing and estimating, good resources?
OK, so for most of my career, I''ve done everything on an hourly rate.
Recently somebody kind of pointed out that if you bill by the
milestone you can work on multiple projects simultaneously without any
ethical problems, so you get increased efficiency. Does anyone have
any good advice/URLs/books on how to do cost estimates on a project?
I''ve really always kind of avoided the
2006 Mar 06
11
coolest startup?
OK, general question for the community -- what''s the coolest startup
using Rails? I don''t think "37 Signals" is a fair answer. I''m curious
as to what kind of other developments are happening. Are there a lot
of startups using Rails in the first place? Or do most of you who are
lucky enough to do Rails for a living (I''m coding Java, bleah) work in
large
2006 Apr 17
18
The lone PC in Raleigh
Last week I had the pleasure of attending the Raleigh area Ruby users Meetup.
It was very interesting and very informative.
I did feel a bit out of place when we noticed that of the 11-12 people
there, I was the only one with a PC laptop. The rest were shiny macs.
Ah well, I need to replace this thing soon, and now that BootCamp is
out, I really have no more excuses. This way I can test
2007 Jul 01
1
how many Mongrels?
Hi - I''ve got a pretty popular Rails app on a Mongrel cluster with
Apache and mod_proxy_balancer. How do I decide how many Mongrel
servers to put in the cluster?
I don''t have stats for the number of requests hitting the server yet,
but I should have that data soon. The server has 2GB of RAM and has to
do a lot of work with RMagick, including generating and storing lots
of
2006 Jul 27
1
form_tag vs form_remote_tag ----- the :condition option
form_remote_tag has a really useful little thingamob called
:condition. you give it a string which is then interpolated into the
form tag in such a way that the form is only submitted if :condition
evaluates in javascript to true.
so the logical thing to do is give it a JavaScript function
<%= form_remote_tag ( :condition => ''your_function_here()'',