search for: post_

Displaying 10 results from an estimated 10 matches for "post_".

Did you mean: post
2006 Jun 26
4
why can''t I call this without parentheses?
I have a little helper that lets me add legacy fields to models where they have common prefixes, suffixes, or something else weird. Here is the method signature: def legacy_fields(options = {}, *attributes) ..... end options is a hash containing things like :prefix => "post_" - and attributes is a list of attribute names. This gets mixed into the class with extend, so I call it much like the attr* methods. Can someone explain why I get syntax errors if I try to call this method like this (which is how I want to call it to be consistent with rails): legacy_field...
2006 Jul 21
3
[Slightly OT] CSS with wildcard?
Sorry if this is a simple question, I''m a CSS noob. I have a rails app that is displaying posts, I am having it generate each post with its own div like "post_19", "post_20", etc. I could make it so it puts another div around that div (i need the individual post div''s for deletion with AJAX) but would rather not. Is there some way to use CSS to do something like this... post_* { ....some settings.... } I know this doesn...
2002 Jun 06
1
Dealing with data of varying format
...ou were programming in Fortran you could simply create variables of lengths 3, 13, 27, 24, and 15 and the data would be read in properly. For instance, the third line above would be read into 5 variables as demonstrated below, with underscores representing spaces: A_ _ 823109_ _ _ _ _ _ _ METEOR_(POST_/64)_ _ _ _ _ _ _ _ _ _ GERMANY_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ unknown_ _ _ _ _ _ _ _ Is there anything in R that would do something similar? Ideally I'd like to read the header files into data frames but realize this may not be entirely possible if I need to define the length of the element...
2006 Apr 29
0
Trouble with firefox and AJAX
...', the form (i.e. the "cancel" link) is inserted as expected; when I then click on ''cancel'', Safari and IE seem to work fine, while Firefox pops up the ''before'' and ''after'' messages, and then nothing. The server logs show that the post_view request is received and processed, so I''m stumped as to why this fails. Any ideas? Cheers, Andrew ==== forum_controller.rb ==== class ForumController < ApplicationController def viewtopic topic_id = params[:id].to_i begin @topic = Topic.find(topi...
2023 Apr 03
1
[PATCH v4 2/2] drm/virtio: Support sync objects
...wise > userpsace would have to re-create syncobjs after each submission. > I see, thanks. > >> > >> + ret = virtio_gpu_parse_deps(&submit); > >> + if (ret) > >> + goto cleanup; > >> + > >> + ret = virtio_gpu_parse_post_deps(&submit); > >> + if (ret) > >> + goto cleanup; > >> + > > > > I think we should zero num_(in|out)_syncobjs when the respective parse > > fails. Otherwise we get one "cleanup" within the parse function itself > > and...
2006 Apr 07
3
Ajax render a template
In my blog a user can add comments. I want an Ajax call to add the comment to the bottom of the comments list. How to i return a comment thats is in the comment template and add it to the bottom of the page. I have gotten as far as rendering some text back to the form and the comment doesn''t display until i refresh. This is my _newcomment.rhtml form to create a new comment <div
2006 Jul 14
5
Ideas for AJAX pagination
...tem is inserted, thus leaving only 10 elements on the page. Currently I have a form that inserts with AJAX, but as expected, each post added to the page just increases the number of posts leaving 11 on a page that should only be displaying 10. I have unique ID''s for each post (e.g. post_4, post_5, etc) and the post with the lowest number is on the bottom of the page, can anyone think of a way to make the last post disappear when the new post is added? Basically what i need to do is do a page.hide ''page_<% lowest id %>'' - where the lowest id is not...
2017 Sep 08
0
post_processor in rmarkdown not working
That is strange. Another function in the same package (INBOmd::inbo_rapport) uses the same trick. I actually started by copying the post_processor() from that function. INBOmd::inbo_rapport() works both with and without BibTex. Working examples are source/inbo_rapport and source/inbo_rapport_basic from https://github.com/inbo/inbomd_examples. Note that you need some extra work after installing INBOmd to inbo_rapport() to run. See the...
2017 Sep 07
2
post_processor in rmarkdown not working
On 07/09/2017 2:04 PM, Duncan Murdoch wrote: > On 07/09/2017 10:11 AM, Thierry Onkelinx wrote: >> Dear Duncan, >> >> Thanks for chiming in. Could you explain how you set debug() on >> post_processor()? I've tried adding debug(post_processor) to >> rsos_article() or adding debug(post_processor) when after post_processor >> was defined in the debugger. Neither work for me. > > Not working for me either right now for some reason or other. What I > was doing was...
2012 Oct 10
7
multiple t-tests across similar variable names
Hi everyone- I have a dataset with multiple "pre" and "post" variables I want to compare. The variables are named "apple_pre" or "pre_banana" with the corresponding post variables named "apple_post" or "post_banana". The variables are in no particular order. apple_pre orange_pre orange_post pre_banana apple_post post_banana person_1 person_2 person_3 ... person_x How do I: 1. Run a series of paired t-tests for the apple_pre variables and pre_banana variables? Would be great to do something like...