web – Skeleton Screen or Loading Animation

I design a loading screen for a website application. I have two options for this:

  • Skeleton Screen
  • Animation is loading

I did not know yet how to choose one of them for the following reasons:

  1. I can not find an article that talks about using Skeleton Screen.
  2. When designing the loading animation, there are many things to consider: UI copy, animation, brand identity.

So I can not decide which one is better than the other. Hope to learn something today: D Thanks guys!

Home screen – How to close apps when I lock the phone

My problem: When I unlock my phone, the app I last used is open (I mean in the foreground). This is probably so intended. But I want to change that because I think it very often distracts me from what I wanted to do with my phone.

So I need a solution that basically opens the splash screen (and minimizes all apps) when I unlock the phone (or, ideally, when I lock it).

As an illustration, I do not want to stop apps running in the background, but I want to minimize all currently running apps.

macos – Maximize on half screen and select another window

I could have imagined it, but I think I just did something to maximize a window on a new desktop to half the full screen, and then windows were displayed that were displayed on the other half, as with Windows is the case. I'm not sure how I did it, but I'd like to know how.

I have a better-touch tool that has such functionality, but is not the full-screen desktop version – it is equivalent to the option to click the green button.

Does anyone have any idea how to actually do that? (I'm in the High Sierra, believe it or not).

iTunes subtitles will be displayed in the center of the screen after updating to the latest MacOS / iOS

I recently updated my Apple devices to the latest MacOS / iOS. Since the update, the subtitles appear in the middle of the screen when using the Apple TV app (or even QuickTime on Mac) on both iOS and macOS. These are the shows / movies I've ripped over the years and imported into iTunes and were all fine before the update.

Any ideas how to solve this?

ubuntu18 black screen – Ask Ubuntu

I have just installed Ubuntu 18.04.3 LTS on an old desktop PC. The installation went fine, but after a reboot the screen stays black (thought this might only happen on Windows!). It's my first attempt to see the "Linux" side of things, and I'm a bit confused right now.

So I'm looking here and find a temporary fix by typing nomodset into recovery mode and it worked. However, this is not a solution and has not found anything in additional drivers that would allow me to install other video drivers. So I do not know how to fix it. I do not have an NVIDIA or AMD card. Can someone please give me an idea what to do?

java checkbox does not survive changes in screen rotation

I have an application that I make to practice MVVM. This application simply retrofits and paints the data of a JSON in a RecyclerView. In the line of the RecyclerView I have a checkbox, the functionality of which is that pressing a button with u displays the elements that are marked in another RecyclerView of another fragment. The problem is that if I mark a check before I send it off when I turn the screen, it's like I'm reloading the list or I'm not sure what's going on, but the case is that the check box again is disabled, and I want the check box to remain pressed even though I have not yet sent these changes to Retrofit:

This is my visual class:

package com.example.menunavegacion.ui.fragments.tabs.fragmentpets.view;

....

public class FragmentPets extends Fragment {

    @BindView(R.id.recyclerView)
    RecyclerView recyclerView;
    @BindView(R.id.progressBar)
    ProgressBar progressBar;

    PetsViewModel mWordViewModel;
    PetsAdapter adapter;

    @Inject
    RequestInterface requestInterface;

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View v = inflater.inflate(R.layout.fragment_tab_one, container, false);
        ButterKnife.bind(this, v);
        initViews();
        return v;
    }

    @Override
    public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);

        mWordViewModel = ViewModelProviders.of(this).get(PetsViewModel.class);

        mWordViewModel.getAllPets().observe(this, new Observer>() {
            @Override
            public void onChanged(ArrayList petsDTOS) {
                adapter = new PetsAdapter(petsDTOS, getContext(), false);
                recyclerView.setAdapter(adapter);
            }
        });

        mWordViewModel.getLoadingLiveData().observe(this, new Observer() {
            @Override
            public void onChanged(Boolean loading) {
                if (loading) {
                    progressBar.setVisibility(View.VISIBLE);
                } else {
                    progressBar.setVisibility(View.GONE);
                }
            }
        });

        mWordViewModel.loadJSON();

        mWordViewModel.showFinishMessage().observe(this, new Observer() {
            @Override
            public void onChanged(Boolean aBoolean) {
                if (aBoolean) {
                    Toast.makeText(getActivity(), getActivity().getString(R.string.update_toast_message), Toast.LENGTH_SHORT).show();
                } else {
                    Toast.makeText(getActivity(), getActivity().getString(R.string.message_send_error), Toast.LENGTH_SHORT).show();
                }
            }
        });
    }

    @OnClick(R.id.btnSend)
    public void onSend() {
        mWordViewModel.updateList(adapter.getPetList());
    }

    private void initViews() {
        recyclerView.setHasFixedSize(true);
        RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getContext());
        recyclerView.setLayoutManager(layoutManager);
    }
}

This is my ViewModel:

package com.example.menunavegacion.ui.fragments.tabs.fragmentpets.viewmodel;

....

public class PetsViewModel extends AndroidViewModel implements ViewModelInterface.ViewModel {

    private PetsRepository mPetsRepository;
    private LiveData> mAllPets;

    public PetsViewModel (Application application){
        super(application);
        mPetsRepository = new PetsRepository(application);
        mAllPets = mPetsRepository.getAllPetsLiveData();
    }

    public LiveData> getAllPets() {
        return mPetsRepository.getAllPetsLiveData();
    }

    public LiveData getLoadingLiveData() {
        return mPetsRepository.getLoadingLiveData();
    }

    public LiveData showFinishMessage() {
        return mPetsRepository.getFinishMessage();
    }


    @Override
    public void loadJSON() {
        mPetsRepository.useCaseLoadJSON();
    }

    @Override
    public void updateList(ArrayList pets) {
        mPetsRepository.useCaseUpdateList(pets);
    }
}

This is the repository:

package com.example.menunavegacion.ui.fragments.tabs;

....

public class PetsRepository {

    LoadJSONUseCase loadJSONUseCase;
    UpdateListUseCase updateListUseCase;

    private MutableLiveData> allPetsLiveData = new MutableLiveData<>();
    private MutableLiveData loadingLiveData = new MutableLiveData<>();
    private MutableLiveData showFinishMessage = new MutableLiveData<>();

    public LiveData> getAllPetsLiveData() {
        return allPetsLiveData;
    }
    public LiveData getLoadingLiveData() {
        return loadingLiveData;
    }
    public LiveData getFinishMessage() {
        return showFinishMessage;
    }

    public PetsRepository(Application application) {
        loadJSONUseCase = new LoadJSONUseCase();
        updateListUseCase = new UpdateListUseCase();
    }

    public void useCaseLoadJSON() {
        loadJSONUseCase.loadJSON(new RepositoryInterface() {
            @Override
            public void showError(Boolean show) {
                showFinishMessage.postValue(show);
            }

            @Override
            public void onLoading(boolean loading) {
                loadingLiveData.postValue(loading);
            }

            @Override
            public void onSuccess(ArrayList data) {
                allPetsLiveData.postValue(data);
            }
        });
    }

    public void useCaseUpdateList(ArrayList pets) {
        updateListUseCase.updateList(pets, new RepositoryInterface() {
            @Override
            public void showError(Boolean show) {
                showFinishMessage.postValue(show);
            }

            @Override
            public void onLoading(boolean loading) {
                loadingLiveData.postValue(loading);
            }

            @Override
            public void onSuccess(ArrayList data) {
                allPetsLiveData.postValue(pets);
            }
        });
    }

}

This is my use case responsible for loading Retrofit JSON:

package com.example.menunavegacion.ui.fragments.usecase;

....

public class LoadJSONUseCase {

    @Inject
    RequestInterface requestInterface;

    public LoadJSONUseCase(){
        DaggerComponenTest.builder().build().inject(this);
    }

    public void loadJSON(RepositoryInterface repositoryInterface) {
        Call call = requestInterface.getJSON();
        repositoryInterface.onLoading(true);
        call.enqueue(new Callback() {
            @Override
            public void onResponse(Call call, Response response) {
                repositoryInterface.onLoading(false);
                JSONResponse jsonResponse = response.body();
                ArrayList data = new ArrayList<>();
                data.clear();
                data.addAll(jsonResponse.getPetsDTO());
                repositoryInterface.onSuccess(data);
            }

            @Override
            public void onFailure(Call call, Throwable t) {
               repositoryInterface.onLoading(false);
               repositoryInterface.showError(false);
            }
        });

    }
}

That would be all my code. I also take advice on MVVM as I learn and well, you are welcome, so I stay in yours. Thank you very much

ios – Screen Time Passcode: Do you use a password instead of a 4-digit PIN?

iOS uses a 4-digit passcode to save screen time settings (formerly known as restrictions).

Use the screen time passcode

Use a passcode to save the screen time settings and allow more time when the limits expire.

Instead, I want to use a random password with more than 20 characters, which is hard to remember and difficult to type. I'll save the password and look it up if necessary instead of accidentally remembering the passcode for the screen time.

Is there a way to use an alphanumeric password instead of a 4-digit PIN?


This is similar to the main passcode for iOS devices that does Enable safer inputs:

Enter a six-digit passcode. Or, tap Passcode Options to switch to a four-digit numeric code, a custom numeric code, or a custom alphanumeric code. (Shortcut)

Array – How is a row of a matrix displayed on the screen? C ++

Community, I ask for your help with a small problem. I am currently learning C ++ and have been working with arrays and arrays. I understand the logic of printing a matrix and its contents, but there are things that I still can not solve. I have to print a row or a column of a matrix with 10 columns and 5 rows. The only thing I have to do is print a column or a row that the user wants. For example, if the user indicates that he wants to display the line on the screen. For example, if you want to see column 3, the program must do exactly the same thing. I know what would happen to a form that I believe in any case, but how about?

Linux – Ubuntu Server 18.04 Freezing with a crazy screen

I have a server setup with Ubuntu Server 18.04, it works fine, but after about 20 to 30 hours of use, the system is completely broken. No services respond to any ports. When you connect a monitor to the box, the login prompt appears as desired. Once frozen, the attached image is displayed.

How can I diagnose this? I have already performed a memory check for 4 complete runs and received a 100 percent pass rate.

Monitor photo after freezing