Install pip in docker

I'm not able to install pip in Docker. Here's my Dockerfile: FROM ubuntu:14.04 # Install dependencies RUN apt-get update -y RUN apt-get install -y git curl apache2 php5 libapache2-mod-php5...

The built ffmpeg.exe is not working as expected

In my c++ application, I want to use ffmpeg lib statically. I downloaded the ffmpeg-3.4.1 source and built the statically linked ffmpeg using MINGW, Yasm and VS2015 Command prompt as...

Diff Util implementation in Recycler scrolling it to the top on every refresh

I am using DiffUtil implementation to add new data to the RecyclerView on scroll. This is the code that is used to update the items when required. final DiffUtilsCallback<Movie> diffUtilsCallback...

How to tell RecyclerView to start at specific item position

I want my RecyclerView with LinearLayoutManager to show up with scroll position at specific item after adapter got updated. (not first/last position) Means the at first (re-)layout, this given...

What's wrong with my DiffUtil implementation?

Update: One of the problems is solved: Now updateList is resolved, the problem was that I defined mAdapter as RecyclerView.Adapter instead of MyAdapter. But now even though I am getting data,...

pacman -Syuu : error: failed retrieving file ("Operation too slow" and "SSL certificate problem")

I am having troubles when trying to upgrade my Portable Msys2 under Win 10 with pacman -Syuu, as detailed below. I did this before with no problem. What could the problem and solution be? $ pacman...

RecyclerView and DiffUtil with animations crash with IndexOutOfBoundsException: Inconsistency detected

We have an app that can update based on push notifications. What we've found is that sometimes with RecyclerViews that use animations and DiffUtil, the animations crash the app. It seems...

Why my ViewModel is not calling the .observe() and notifying the Adapter ,if the MutableLiveData is changing?

EDIT: The real problem was that the submitList() was not triggering the onCreateViewHolder() in the recyclerView. Solution: I see people keep having issues with this. The android DiffUtils does...

Using Recyclerview with DiffUtil.ItemCallback doesn't scroll to top?

I do search of items and every time I fetch from server When I search "o" it works and then "ot" it works again and as a result of "o" search I have let's say 20 items and in case "ot" I have 10...

DiffUtil ItemCallback areContentsTheSame() always returns true after updating an item on the ListAdapter

While using a ListAdapter I noticed that after updating an item the DiffUtil.ItemCallback areContentsTheSame() method was always returning true. Debugging the code I realized that the old and the...

notifyItemMoved() not working when migrated to ListAdapter Android

We have this feature in our App where we can drag recycler view Items up and down. Inside onMove() of ItemTouchHelper.Callback() we call adapter.onItemMove(source.adapterPosition,...

DiffUtil not updating ListAdapter after updating ArrayList contents

I am trying to update ArrayList which is inside in MutableLiveData. whenever I change the content in ArrayList, ListAdapter is not updating. ViewModel private var...

DiffUtil payload data received on First viewType but I need second Viewtype

I've used two viewType in RecyclerView Adapter Custom Class with DiffUtil. In that I update data It will update the Diffutil getChangePayload but it updates first view type. How to change payload...

How to properly use RecycledViewPool on a multi view adapter with nested RecyclerViews?

My app context so you can understand my question: I am currently coding a very complex application with a huge dashboard that contains a huge list of nested RecyclerViews (both horizontal...

RIDK MSYS Key failing

I want to develop and run a ruby on rails web app on my Bootcamp windows Mac laptop. I am using rubyinstaller and railsinstaller, but the installation breaks always at some PGP key check which I...

Compile problem of Android 11 for Raspberry Pi 4 - soong bootstrap failed with: exit status 1

I have been following the instructions (https://github.com/android-rpi/device_arpi_rpi4/blob/arpi-11/README) for building Android 11 for Raspberry Pi 4 and have been running into problems with the...

Paging 3 - How to scroll to top of RecyclerView after PagingDataAdapter has finished refreshing AND DiffUtil has finished diffing?

I'm using Paging 3 with RemoteMediator that shows cached data while fetching new data from the network. When I refresh my PagingDataAdapter (by calling refresh() on it) I want my RecyclerView to...

ListAdapter Diff does not dispatch updates on same list instance, but neither on different list from LiveData

it is a known issue that ListAdapter (actually the AsyncListDiffer from its implementation) does not update the list if the new list only has modified items but has the same instance. The updates...

Update RecyclerView with DiffUtil and AsyncListDiffer not Working

I'm creating a RecyclerView in Fragmentusing DiffUtil and AsyncListDiffer because I don't want to use notifyDataSetChanged() method. But I'm facing a problem while using this approach. I'm trying...

docker python flask gets " Do you want to continue" then "executor failed"

Trying a simple python flask web app in docker 20.10.2, build 2291f61. Doing the: docker build -t hello-world . starts out ok (please see below), but ends with: #6 2.866 After this operation, 305...

Android RecyclerView freezes UI on a notifyDataSetChanged call

I know there have been many questions regarding this topic, but I still could not find a solution. I have an application, that loads and shows images (just like a regular gallery app on a...

java.lang.IndexOutOfBoundsException: Inconsistency detected. Invalid item position in androidx.leanback.widget.HorizontalGridView

I am facing this crash in *HorizontalGridView* (*RecyclerView*) in leanback component Device: Android TV Android Version: 9 Logic: My Adapter extends ListAdapter to which I will submit the list of...

Why submitList function of ListAdapter is not working?

I'm pretty sure that my list has changed but the view not updated I'm using submitList like this: recentChatsAdapter.submitList(recentChats?.let { ArrayList<Conversation>(it) }) DiffUtil...

Pagination with Room not able to merge Flow<PagingData<Model>> with other flows properly

I'm trying to use Paging 3 library to get Flow<PagingData<Scan>> from Room, then check if item was selected or not in the recyclerview so I'm mapping this class to another class called ScanMapper....

Nested Recyclerview makes scroll laggy

I am using recyclerview with multi view type and using nested recyclerviews: But its scrolling very slow. I also handled the child recyclerviews scroll position in onViewRecycled...

How to add search filter to RecyclerView using with DiffUtil

I have a recyclerview in my app in which I am using DiffUtil to load all the items, but now I want to add a search filter to that recyclerview how can I implement a search filter in RecyclerView...

patch consistently returns "Only garbage was found in the patch input"

Background: [2021-07-14 23:00:25]» diff -v diff (GNU diffutils) 3.6 [2021-07-14 23:04:05]» patch -v GNU patch 2.7.6 [2021-07-14 23:04:20]» pwd /home/chb/code/work/bar/baz/master I'm in a...

It will always be more efficient to use more specific change events if you can. Rely on notifyDataSetChanged as a last resort. RecycleView

after update android studio to arctic fox, I get this warning. But I dont know what is the efficient way to notify data change. in my code I'm filling the adapter from network call and then I...

Equivalent to adapter.notifydatasetchange or Diffutils in Jetpack Compose Lazy Column/Row

How to Update or Delete or Add item in list of lazy column in jetpack compose. Which is easily achieve by adapter.notifydatasetchange or diffutils in recyclerview Thanks in advance

Android how to sort RecyclerView List when using AsyncListDiffer?

I have a RecyclerView that shows a list of CardViews. I recently switched the project from using RecyclerView Adapter to using an AsyncListDiffer Adapter to take advantage of adapter updates on a...