List view threshold for administrator not working

My webapplication listview threshold is set to 5000. For administrators it is set to 20000

My list has 6000 items. I have an index on modified date. I create a view sorted on modified. When I open the view I get the message that the listview threshold is exceeded. I am a sitecollection administrator. Should I not see the 6000 items because of the 20000 setting for administrators?

How to retrieve value from a view going to a controller using AJAX in ASP.Net MVC?

I have a hard time passing the value of a string entered in the textbox going to the controller using AJAX.

I’ve tried this one but it didn’t work.

    <input type="text" name="refID" id="refID"><br />     <button type="button" class="submit">Submit</button>  $  (document).ready(function () {         $  (".submit").click(function () {             alert("hahaha");             $  .ajax({                  type: 'GET',                 url: '@Url.Action("TransactionVerification", "Dashboard")',                 data: {                     RefID: $  ("#refID").val()                     },                 success: function (response) {                     $  (".content").html(response);                 },                 error: function () {                     alert("Problem on uploading file");                 }              });          });       });  

The Controller

 public async Task<ActionResult> TransactionVerification(String RefId)         { //some code }  

When I debug the value of the RefId in the controller is always null.

One pager for a view with multiple attachments

I am making a custom results page for Search API. To achieve this, I have created a View that pulls 4 items and has a pager set. I also have 3 attachment views that display content from a different type.

I’d like to have one mini-pager at the very bottom of the page that controls all 4 views. This works exactly as planned but only if the master view exceeds 4 items. The “next” and “previous” links appear and they control all 4 views. However, if the master view only has 3 or fewer items, the pager links don’t appear. This means that the other attachments can’t move forward to subsequent pages.

The attachments have have their pager settings configured to allow the following number of items: 4, 8, 5, and 10.

I’d like it to display the pager at the very bottom if any of the 4 views exceed their pager setting.

I’ve tried inheriting the pager and giving them unique ID’s but this doesn’t do what I want it to.

Please help!

How to embed a view in a specific node?

I try to embed a view in a specific node. I found tutorials for doing this with Drupal 7 and PHP-Templates:

<?php print views_embed_view('view_name'); ?> 

But I look for a way in Drupal 8 with twig-Templates. I tried to call the views_embed_view() function in the hook_node_view() and assign it to the node so that I can print it out in the twig-Template. But it seems that this hook never gets called.

Any hints/solutions how to do this in the Drupal 8 way?

Why isn’t my picture in Firebase showing on my collection view?

I’m trying to get a picture from a specific user from Firebase in my collection view, I wrote everything perfectly without errors, but it’s not presenting on my collection view. The only thing i can think of is that Swift doesn’t know from which user to get the post.

Here is my code:

class PostViewController: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource {

@IBOutlet weak var collectionview: UICollectionView! var subposts = [SubPost]() var following = [String]()  override func viewDidLoad() {     super.viewDidLoad()      fetchPosts() }  @objc func fetchPosts() {     let ref = Database.database().reference()       ref.child("subposts").queryOrderedByKey().observe(.value, with: { (snap) in         if let postsSnap = snap.value as? [String : AnyObject] {              for (_,subpost) in postsSnap {                 if let userID = subpost["userID"] as? String {                     let posst = SubPost()                     if let pathToImage = subpost["pathToImage"] as? String, let postID = subpost["postID"] as? String {                         posst.pathToImage = pathToImage                         posst.postID = postID                         posst.userID = userID                         self.subposts.append(posst)                     }                     self.collectionview.reloadData()                 }             }         }     })     ref.removeAllObservers() }  func numberOfSections(in collectionView: UICollectionView) -> Int {     return 1 }  func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {     return self.subposts.count }  func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {     let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "subPostCell", for: indexPath) as! SubPostCell     cell.subPostImage.downloadImage(from: self.subposts[indexPath.row].pathToImage)     cell.postID = self.subposts[indexPath.row].postID      return cell } 


How do I locate a specific module, block, view, or node responsible for social sharing buttons?

I am working on a site built by another developer with what I believe is deprecated code being used for the social sharing buttons. The “count” function recently stopped working. I located code in the page source that points me to this module (which hasn’t been updated in three years):

I have done a manual search through the Drupal site console for Modules, Blocks, and Views that might be placing the buttons below each article. I have not found anything referencing “Open-share” or similar variants. I located the js files in the Theme’s js folder, but I can’t determine how the buttons are being placed.

How can I locate the module, block, or view responsible and disable it? This thing appears to be coded into the Theme which I can’t wrap my head around, but that’s the only place I can find anything referencing it (and that’s only the js). There is a separate js file in the Theme’s js folder called “openshare”

I found a similar block, with almost the same code except the classes are slightly different and setting it from “Content” to “None” seems to make no change.

Code snippet: ”’html Share

    <span class="new-horizontal-share-wrapper-count" data-open-share-count="facebook" data-open-share-count-url="*website*" data-open-share-node="facebook">0</span>   </a> 


Reduced-size Image of Social Sharing buttons

How to get information from child firebase database and display it on a text view?

I am currently on my last project and just wanted to ask how do I get the information from a database and display it on a text view?

This is the image of my App. As you can see I have 3 child elements in my firebase which look like these Database. I want to get the price and add them into a total price and display them into a textView.

How do I do this? This is my code so far.

public class Payment extends AppCompatActivity {  private RecyclerView mRecyclerView2; private ViewHolder2 mAdapter2; private DatabaseReference mDatabaseReference2; private List<Model2> mModel2; private FirebaseAuth mAuth;  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_payment);      mRecyclerView2 = findViewById(;     mRecyclerView2.setHasFixedSize(true);     mRecyclerView2.setLayoutManager(new LinearLayoutManager(this));      mModel2 = new ArrayList<>();     mAuth = FirebaseAuth.getInstance();     FirebaseUser user = mAuth.getCurrentUser();     String userID = user.getUid();     mAdapter2 = new ViewHolder2(Payment.this, mModel2);     mRecyclerView2.setAdapter(mAdapter2);     mDatabaseReference2 = FirebaseDatabase.getInstance().getReference(userID).child("Ordered");     mDatabaseReference2.addValueEventListener(new ValueEventListener() {         @Override         public void onDataChange(@NonNull DataSnapshot dataSnapshot) {             for (DataSnapshot postSnapshot : dataSnapshot.getChildren()) {                 Model2 model2 = postSnapshot.getValue(Model2.class);                 mModel2.add(model2);             }             mAdapter2.notifyDataSetChanged();         }          @Override         public void onCancelled(@NonNull DatabaseError databaseError) {          }     });   } } 

I tried using two mDatabseReference and put .child(“price”) but it does not seem to be showing in the textView.

What does it mean by “consistent view of memory” in lock-free dequeue implementation?

I am currently reading this paper by Chales-Lev. This paper explain an implementation of work-stealing dequeue. The part where I don’t understand is in the implementation of steal operation.

public Object steal() { 11 long t =; 12 long b = this.bottom; 13 CircularArray a = this.activeArray; 14 long size = b - t; 15 if (size <= 0) return Empty; 16 Object o = a.get(t); 17 if (! casTop(t, t+1)) 18 return Abort; 19 return o; } 

I am confused by this sentence on page 3 regarding this implementation:

Note that because top is read before bottom, it is guaranteed that the values read represent a consistent view of the memory. Specifically, it implies that bottom and top indeed had their observed values when bottom was read at Line 12.

I actually have find an example where loading bottom before top is problematic. Say for example where one thread do steal operation and in between the load bottom and load top operation there is another threads that keep doing pop operation until the queue is empty. Then after that we load top variable. Because we load the bottom variable first, we don’t know that the queue is already empty and at that point of time, top variable is up to date so the casTop() will be successful. But if we load the top variable first. There is no way to make the queue empty without modifying the top variable, so the casTop() will fail when there is another thread that try to make the dequeue empty.

But I still don’t understand the sentence above. What does it mean by consistent view of memory? Even though I already find the reason why I must load top first before bottom, I afraid there is a concept that I don’t understand here.

List view threshold – over 100,000 items in library

I have a query about the List view threshold on SharePoint 2013 where the limit is set to 5000 items in Central Administration.

We have a document library with 150,000+ items which means currently we have to set the item limit in CA to 200,000 which obviously is not helping the SQL side of things.

This document library has documents that people need to access on a daily basis and it could be any number of documents in there that are accessed.

I’ve read up on indexing columns and setting item limits in views however unsure how this would work in our scenario as we don’t want it to only return a listing of certain amount of documents in the list.