Displaying 12 results from an estimated 12 matches for "page_number".
2006 Aug 17
2
Show and Back
Wondering if I can get some feedback as to the best approach to handling
the following issue:
- you have 300 items and pagination is set to 10 items per page
- you are on page 10 and call the show action
- you then click back and it calls list on the controller
- the pagination starts again on page 1
Are people use hidden form fields, then passing the page number to the
show, edit actions?
2007 Apr 18
2
[PATCH 3/6] i386 virtualization - Make ldt a desc struct
...ounting is done in page sizes. Asking to read_ldt with
bytcount of PAGE_SIZE could give some uninitialzed data back to user.
Did I miss the spot where this is always zero-filled?
> @@ -166,6 +167,7 @@
> __u32 entry_1, entry_2;
> int error;
> struct user_desc ldt_info;
> + int page_number;
>
> error = -EINVAL;
> if (bytecount != sizeof(ldt_info))
> @@ -184,10 +186,11 @@
> goto out;
> }
>
> + page_number = ldt_info.entry_number / LDT_ENTRIES_PER_PAGE;
> down(&mm->context.sem);
> - if (ldt_info.entry_number >= mm->context.size...
2007 Apr 18
2
[PATCH 3/6] i386 virtualization - Make ldt a desc struct
...ounting is done in page sizes. Asking to read_ldt with
bytcount of PAGE_SIZE could give some uninitialzed data back to user.
Did I miss the spot where this is always zero-filled?
> @@ -166,6 +167,7 @@
> __u32 entry_1, entry_2;
> int error;
> struct user_desc ldt_info;
> + int page_number;
>
> error = -EINVAL;
> if (bytecount != sizeof(ldt_info))
> @@ -184,10 +186,11 @@
> goto out;
> }
>
> + page_number = ldt_info.entry_number / LDT_ENTRIES_PER_PAGE;
> down(&mm->context.sem);
> - if (ldt_info.entry_number >= mm->context.size...
2006 Mar 19
3
String keys in hash
...yNIei7.e7&some_other_parameters
In a controller, I''ve created a hash where the keys are the ids:
@codes = {
''dwNKiItvcyrQ5sycnIhmJablDfXsc9tshaGIVyNIei7.e7'' =>
{:partner_id => 0,
:partner_name => ''sth'',
:page_number => 1},
...
}
Then i do:
poll_id = ''"'' + params[''id''] + ''"''
The problem is, @codes[poll_id] returns nil.
Otherwise, @codes["dwNKiItvcyrQ5sycnIhmJablDfXsc9tshaGIVyNIei7.e7"]
works ok. What am I doing wr...
2007 Apr 18
0
[PATCH 20/21] i386 Ldt cleanups 3
...1 @@ static int read_default_ldt(void __user
static int write_ldt(void __user * ptr, unsigned long bytecount, int oldmode)
{
- struct mm_struct * mm = current->mm;
+ mm_context_t *pc = ¤t->mm->context;
__u32 entry_1, entry_2;
int error;
struct user_desc ldt_info;
+ int page_number;
error = -EINVAL;
if (bytecount != sizeof(ldt_info))
@@ -198,9 +204,11 @@ static int write_ldt(void __user * ptr,
goto out;
}
- down(&mm->context.sem);
- if (ldt_info.entry_number >= mm->context.size) {
- error = alloc_ldt(¤t->mm->context, ldt_info.entry...
2007 Apr 18
0
[PATCH 20/21] i386 Ldt cleanups 3
...1 @@ static int read_default_ldt(void __user
static int write_ldt(void __user * ptr, unsigned long bytecount, int oldmode)
{
- struct mm_struct * mm = current->mm;
+ mm_context_t *pc = ¤t->mm->context;
__u32 entry_1, entry_2;
int error;
struct user_desc ldt_info;
+ int page_number;
error = -EINVAL;
if (bytecount != sizeof(ldt_info))
@@ -198,9 +204,11 @@ static int write_ldt(void __user * ptr,
goto out;
}
- down(&mm->context.sem);
- if (ldt_info.entry_number >= mm->context.size) {
- error = alloc_ldt(¤t->mm->context, ldt_info.entry...
2005 Mar 03
0
where is :overwrite_params ?
...t know it, it lets you use the current @params as
parameters for eg link_to, just overwriting the values you want.
For example, when displaying a long list on different pages, the only
parameter changing in the url is the page number and you can just do:
link_to ( :overwrite_params => {"page_number" => @next_page_number})
working like
link_to (:params => @params.update {"page_number" => @next_page_number} )
is not practical as you have to deal with the id, action and
controller (which are in @params too)
2020 Apr 20
2
CentOOS 8 and libuv
Hi all,
Why is libuv-devel missing in CentOS-8?
The rpm for libuv is preset but libuv-devel is not there.
Adrian
--
Adri P. van Bloois
"Elegance is not a dispensable luxury but a factor that decides between
success and failure."
Edsger W. Dijkstra
2006 Jan 11
0
Limit attributes written out by to_yaml
...not too sure what I should write there?
Or maybe I should be overriding def Item.@attributes.to_yaml ?
Does anyone have any ideas?
Thanks
image_alignment: ''''
display_format: Vertical
minimum_number_responses:
item_sub_text: ''''
page_number: 5
row_text_width:
email_address_yn: N
survey_id: 153
other_yn: N
random_answer_order_yn: N
database_dsn: ''''
image_width: ''''
other_display_type:
subitem_count:
answer_total:
item_text: "<sp...
2006 Jul 09
2
filters
...and the test also
worked out fine. (it read a zero)
the only thing left to be the problem is that because it is a
before_filter, it doesn''t read the params[:question_number] until after
the before_filter takes place.
but, then, how am i supposed to zeroize the points (according to the
page_number)? am i missing the problem, or is there something else i''m
missing?
thanks for any help,
u
--
Posted via http://www.ruby-forum.com/.
2006 Jun 11
4
remote_function posting?
Hi, I''ve noticed that my remote_function calls are resulting in POST
requests. As a result, my routes do not apply since it does not generate a
url based on the parameters, but simply posts to the raw url with post data.
I want to make a GET request instead of a POST. How can I do that? Has
anyone else run into this?
Thanks, Ryan
--
View this message in context:
2007 Jan 07
3
slow tests on an established project...
Hi all
Hope this isn''t too far off-topic on this list, as I think it would
largely go ignored on the main rails list.
I''m looking for the most pragmatic way to speed up our test suite.
This is on an established project, and lets just say that we used way
too many fixtures when we started =). For example:
Finished in 128.870144 seconds.
===============
392 tests, 2106