Questions tagged [paging]

A memory-management technique where a computer stores and retrieves data from secondary storage for use in main memory. Memory is divided into equal sized pages so to not waste any memory.

2459 questions
9
votes
2 answers

Pinterest API board paging

Can anyone do an (educated) guess as to how paging works with the unreleased Pinterest API ? For example, this link: https://api.pinterest.com/v3/pidgets/boards/grainedit/cars/pins/ returns the first 50 pins of that specific board. But it contains…
Christiaan Maks
  • 3,248
  • 3
  • 23
  • 27
9
votes
7 answers

UICollectionView with Paging Enable

I have to create Grid view like Appstore iOS app. I want to do this with UICollectionView paging. I have also implemented the code but not able to scroll like that. What I want to do is there will one image in Center and at both sides(left and…
user3755698
  • 91
  • 1
  • 1
  • 2
9
votes
3 answers

JVM cannot use large page memory because it does not have enough privilege to lock pages in memory

I wonder how can I reconcile the following error? JVM cannot use large page memory because it does not have enough privilege to lock pages in memory The settings are: set JAVA_OPTS=-Xms20g -Xmx20g -XX:+UseConcMarkSweepGC -XX:+UseParNewGC …
Roman Kagan
  • 10,440
  • 26
  • 86
  • 126
8
votes
1 answer

Clean Architecture: Cannot map PagingSource to PagingSource

My requirement is to display the notes in pages using clean architecture along with offline suppport. I am using the Paging library for pagination. And below is the clean architectural diagram for getting notes. Note: Please open the above image in…
8
votes
2 answers

Restoring Scroll Position in Paging Library 3

I am using Paging Library 3 with a RemoteMediator which includes loading data from the network and the local Room database. Every time I scroll to a certain position in the RecyclerView, navigate away to another Fragment, and then navigate back to…
8
votes
1 answer

Same value was passed as the nextKey in two sequential Pages loaded from a PagingSource in Paging Library 3 Android

I migrated from paging 2 to paging 3. I tried to implement ItemKeyedDataSource of Paging 2 to Paging library 3. But the problem I was facing is, the same value(currentJodId) was passed as the nextkey in two sequential Pages loaded. And After that…
Aminul Haque Aome
  • 2,261
  • 21
  • 34
8
votes
2 answers

Android virtual memory and paging

Can anyone elaborate or provide a link to android memory management. I am confused about Android virtual memory scheme. How is paging done in Android? Without a hard disk, how do they do it? Do they have caching?
agent.smith
  • 9,134
  • 9
  • 37
  • 49
8
votes
6 answers

How to return N consecutive elements from a Collection?

I am passed a collection of objects (some Contact class in my case) and need to return a page from that collection. My code feels much longer than it needs to be. Am I missing some libraries that could perform that more elegantly than iterating over…
double07
  • 2,565
  • 2
  • 22
  • 22
8
votes
3 answers

Android Room Pagination not working

I am trying to use android Room API to load records from sQlite in pages. The issue is Paging library is loading entire database into model class and binding it with the adapter which is making UI thread skip frames. It suppose to load 20 records…
Hitesh Sahu
  • 41,955
  • 17
  • 205
  • 154
8
votes
2 answers

ASP.NET 4.5 GridView: PostBack of last page

I have discovered an issue with GridView pager in ASP.NET 4.5 and 4.5.1 version. Since .NET 2 - 4 I have never experienced such problem. To the point, I have a gridview that I am populating with data in code behind like this: protected int…
Gitzerai
  • 184
  • 1
  • 7
8
votes
1 answer

What is PML4 short for?

In Xen code ./xen/include/asm-x86/config.h, I saw the memory layout code is: /* 137 * Meng: Xen-definitive guide: P81 138 * Memory layout: 139 * 0x0000000000000000 - 0x00007fffffffffff [128TB, 2^47 bytes, PML4:0-255] 140 * Guest-defined use…
Mike
  • 1,841
  • 2
  • 18
  • 34
8
votes
6 answers

Adding a projection to an NHibernate criteria stops it from performing default entity selection

I'm writing an NHibernate criteria that selects data supporting paging. I'm using the COUNT(*) OVER() expression from SQL Server 2005(+) to get hold of the total number of available rows, as suggested by Ayende Rahien. I need that number to be able…
Sandor Drieënhuizen
  • 6,310
  • 5
  • 37
  • 80
8
votes
1 answer

Best practice for WCF service with large amounts of data?

We have a WCF service that is used for querying an underlying data store (SQL Server 2005 right now). This service may return rather large amounts of data; 60000+ instances of our entity class that contains ~20 properties. The properties are mostly…
Fredrik Mörk
  • 155,851
  • 29
  • 291
  • 343
8
votes
1 answer

UIScrollView - (bounces = NO) seems to override (pagingEnabled = YES)

I have a UIScrollView with paging in it (so the typical model with a UIPageControl and dragging/flicking left and right between pages), and I've got that working fine. The weird thing is that when I wanted to get rid of bouncing (so that you can't…
Eli
  • 4,874
  • 6
  • 41
  • 50
8
votes
1 answer

Safari URL to PDF-page workaround?

I'm trying to link from an URL to a specific page within a PDF document being viewed using the Preview.app built in Safari (using iOS on iPad2). I know that Sarafi does not support (hopefully in the near future) the PDF parameters like for…
MikeMaasdam
  • 81
  • 1
  • 2