migration: private file migration cannot be read from unreadable stream

Running into this error while running drush migrate-import –all. In case of error, this message is displayed: error: in MigrateToolsCommands.php line 870:

When reading upgrade_d7_file_private migration messages

Source ID Target ID level Cannot read from unreadable stream (https: //url//sites/default/files/private/private/directory/filename.xlsx.pdf)

Has anyone seen this or worked through this?

java – android studio firebase error read data

@Override
    public void onBindViewHolder(@NonNull ViewHolder holder, int position) {
        final Post post = mPosts.get(position);

            holder.username.setText(this.username);

            if(imgURL.equals("default"))
                holder.img_perfil.setImageResource(R.drawable.ic_person_red);
            else
                Glide.with(mContext).load(imgURL).into(holder.img_perfil);


            holder.mensaje.setText(post.getMessage());


            if(post.getEstado_animo().equals("Normal"))
                holder.animo.setImageResource(R.drawable.ic_cara_normal);
            else if(post.getEstado_animo().equals("Triste"))
                holder.animo.setImageResource(R.drawable.ic_cara_triste);
            else if(post.getEstado_animo().equals("Feliz"))
                holder.animo.setImageResource(R.drawable.ic_cara_feliz);

    }

That Post list comes from this method

private void leerPost(){
        mPosts = new ArrayList<>();

        reference = FirebaseDatabase.getInstance().getReference("Posts");
        reference.addValueEventListener(new ValueEventListener() {
            @Override
            public void onDataChange(@NonNull DataSnapshot dataSnapshot) {
                mPosts.clear();

                for (DataSnapshot snapshot : dataSnapshot.getChildren()){
                    Post post = snapshot.getValue(Post.class);


                            mPosts.add(post);


                    DatabaseReference reference2 = FirebaseDatabase.getInstance().getReference("Users").child(post.getSender());
                    reference2.addValueEventListener(new ValueEventListener() {
                        @Override
                        public void onDataChange(@NonNull DataSnapshot dataSnapshot) {
                            User user = dataSnapshot.getValue(User.class);

                            postAdapter = new PostAdapter(getContext(), mPosts, user.getUsername(), user.getImageURL());
                            recyclerView.setAdapter(postAdapter);
                        }

                        @Override
                        public void onCancelled(@NonNull DatabaseError databaseError) {

                        }
                    });


                }

            }

            @Override
            public void onCancelled(@NonNull DatabaseError databaseError) {

            }
        });



    }

What I have is in a FireBase database a "Post" reference where there are "sender" values ​​"Message" "Encourage" each user created can create a post and what I want is to be able to collect all those posts and display their message etc. but it generates this annoying error that I don't know how to fix, create the PostAdapter to be able to create the RecyclerView inside a Fragment. I appreciate your help.

Here is the error "PID: 18504 java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals (java.lang.Object)' on a null object reference"

node.js – Nodejs cannot log in – error says Can't read & # 39; models & # 39; of undefined properties –

I have inherited a Nodejs / mongodb project, a story left by the developer, the web application worked and no longer works. So I am trying to understand why. I am a PHP developer transitioning to node, mongo, mongoose, express … whatever, but I just started and the help would be really good.

So you live on NGINX server, Linux Debian 9, node 12, Mongo 4, used to have SSL certificate but now expired.

Here is the link: http://plataforma.drsmile.pe/ – I know it is in Spanish.

Just click "Create an account" (below), it will display the input fields once filled out and the error will appear when trying to submit the error.
enter the image description here

How to read the server / var / log / secure binary log file?

The file /var/log/secure is the authentication log for my server's operating system. However, it is a binary file and I am using Windows. What is the most suitable way to open this file in Windows?

macos: how can I upgrade my Mac 10.7.5 to a newer version when it can't even read InstallMacOSX disk image?

I have been using this link: https://support.apple.com/en-us/HT210717 to try to update my computer. I have successfully downloaded the file (InstallMacOSX.dmg) from step 4, but every time I try to open the file to install it on my computer, my computer tells me that it cannot read it because it is not recognizable. I tried using the disk utility to open it via Image> Verify, but it still didn't open for the same reason. What I can do? (The image is the popup I received when double clicking InstallMacOSX.dmg)

enter the image description here

online sharepoint: using WPQ2FormCtx to read the list item information [FAIL]

One day, I had just read a topic [SharePoint 2013: Using WPQ2FormCtx to read the information of the list item], which contains a lot of useful information and I applied one in my code and it works perfectly.

And boom now, my page went out. I don't know why and I start crawling and debugging my code in my custom web part. Object "WPQ2FormCtx" no longer exists in my source, changed to WPQ3FormCtx.

Does anyone have an idea about this? I wonder if Microsoft updated some things.

Can anyone give me a hint, a way to get the name of this object? Or the way you used to read the information for the list item?

You have a good day
Thank you

c – I need to know how I read and publish on the screen how many times the male gender said no

I need to do this program here with 150 people responding and I need to know at the end of the program how many men answered no, thanks

int main ()
{

int sexo, resposta;
int masculino_nao = 0;
int feminino_sim = 0;
int sim = 0;
int nao = 0;
int entrevistado = 1;
do
{
    entrevistado = entrevistado++;
    printf("Entrevistado Numero:%dn", entrevistado);
    printf("qual é o seu sexo?nMasculino - 1nFeminino - 2n");
    scanf_s("%d", &sexo);
    printf("%d?", sexo);
    printf("Voce gostou do ultimo produto lancado?nSim - 1nNao - 2n");
    scanf_s("%d", &resposta);
    masculino_nao = masculino_nao++;
    feminino_sim = feminino_sim++;
    sim = sim++;


    system("cls"); 
} while (entrevistado <= 4);


printf("Masculino nao:%dn", masculino_nao);





return 0;

}

mysql: lighten a database for read speed

I am currently programming a Python software using SQLAlchemy with MySQL. Since I'm not very good at the database, even if I read a lot of documentation about it, I don't know exactly what term or configuration I'm looking for. I tried to look for information, but nothing really helped me. I'm probably not looking with the good question / terms.

So here is the situation I'm anticipating:

In one of my main tables, I have 8 columns of about 32 to 64 characters each. My software will add up to 2 million rows every year and I want to keep those statistics for more than 3 years but I don't know how the number of rows will affect the speed of execution. I will not modify these data and I will not always show them all (on a web page).

That I have to do ? Is manipulation really important? Do I need to do something like create new tables and store them there? Are there any terms or places where I can find more information about my situation?

Thank you

% c read with switch box

When you work with Char in C, it is necessary to insert single quotes so that you understand what it is to buy a letter and not a número or String and etc.
When what you want is just one letter, don't delimit it between () in the call of variavelgetting like this char variavel;

 #include 
#include 


int main(void){ 
 char letra; 
 int (valor);

printf("nDigite E, se residir no Espírito Santo!");
printf("nDigite R, se residir no Rio de Janeiro!");
printf("nDigite S, se residir em Sao Paulo!");
printf("nDigite O, se residir em outro estado!");
scanf("%c", &letra);

switch(letra)
{
case 'e' :
    printf("nCapixaba!");
break;

case 'r' :
    printf("nCarioca!");
break;

case 's' :
    printf("nPaulista!");
break;

case 'o' :
    printf("nOutros!");
    break;

default : 
    printf("nValor invalido!");
} 

}

scrolling: is there any research on where (on the physical screen) people prefer to read content

Andy, that would depend on the content on the screen and all the other elements of the user interface that attract attention, the design of the page and the type of application that the page is part of.

But overall, people tend to read in the middle of their page rather than at the top or bottom and tend to scroll 1-7 line chunks on pages with a lot of text, as the study by Microsoft illustrates. : https: // www .microsoft.com / en-us / research / wp-content / uploads / 2016/07 / PETMEI2015scrolling_petmei_15_final.pdf

It has a certainly small sample size, but it is difficult to find reliable research on this topic.


If your question is less about read / scroll behavior and more about whether your users will notice or find your content. You can use tools like VisualEyes to generate a heatmap of your AI-based design