What causes page faults?

(I’m the author of Process Hacker.) Firstly: A page fault is a trap to the software raised by the hardware when a program accesses a page that is mapped in the virtual address space, but not loaded in physical memory. That’s not entirely correct, as explained later in the same article (Minor page fault). There … Read more

How to use GWT 2.1 Data Presentation Widgets

Google I/O 2010 – GWT’s UI overhaul javadocs package com.google.gwt.cell.client in 2.1 Eclipse update site for milestone 2 While the code is in bikeshed, add this line to your gwt.xml file: <inherits name=”com.google.gwt.requestfactory.RequestFactory”/> The following examples follow: CellList of TextCells with PageSizePager CellList of TextCells with a SimplePager CellList of TextCells with a SimplePager and … Read more

Understanding Virtual Address, Virtual Memory and Paging

Before I answer your questions (I hope I do), here are a few introductory remarks: Remarks The problem here is that “virtual memory” has two senses. “Virtual memory” as a technical term used by low-level programmers has (almost) nothing to do with “virtual memory” as explained to consumers. In the technical sense, “virtual memory” is … Read more

How can I make shift+spacebar page up in Vim?

You cannot. CMS’s solution will work for gVim, but not in vim because terminals cannot distinguish between <Space> and <S-Space> because curses sees them the same. It might be possible in the future if vim gains libtermkey support and your terminal supports the proper <CSI> sequences (xterm does if properly configured; nothing else does yet).

How does multi-level page table save memory space?

In singlelevel pagetable you need the whole table to access even a small amount of data(less memory references). i.e 2^20 pages each PTE occupying 4bytes as you assumed. Space required to access any data is 2^20 * 4bytes = 4MB Paging pages is multi-level paging.In multilevel paging it is more specific, you can with the … Read more

Start UICollectionView at a specific indexpath

So I solved this a different way, using the UICollectionViewDelegate method and a one-off Bool: Swift 2: var onceOnly = false internal func collectionView(collectionView: UICollectionView, willDisplayCell cell: UICollectionViewCell, forItemAtIndexPath indexPath: NSIndexPath) { if !onceOnly { let indexToScrollTo = NSIndexPath(forRow: row, inSection: section) self.problemListCollectionView.scrollToItemAtIndexPath(indexToScrollTo, atScrollPosition: .Left, animated: false) onceOnly = true } } Swift 3: var … Read more

Dapper. Paging

You didn’t specify a database or version. If you’re lucky enough to be able to use the brand new SQL Server 2012 and have access to MSDN, you can use the shiny new OFFSET and FETCH keywords. The following query will skip 20 records and return the next 5. SELECT * FROM [Posts] ORDER BY … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)