ERR_SPDY_PROTOCOL_ERROR for Rails app: occurs on Chrome and Safari browsers, never locally

This is a similar question, but the answer didn’t help.

Similar questions on Stack Overflow and the web also did not help because those focused on Chrome solutions.

However, this problem hits us on Chrome and Safari. Moreover, it never happens in our development environment — only in the production environment, suggesting it’s an issue with our Rails hosting provider.

~20% of the time pages like this https://myhotpot.io/design/chrome_screenshot?id=14 never load because of this error:

Failed to load resource: net::ERR_SPDY_PROTOCOL_ERROR 

We’re using Apache and Rails 3.2.12 (migrating soon!).

Any suggestions?

LocationCallback() never gets called. What am i missing?

The onMapReady() contains code (mFusedLocationAPI-requestLcoationUpdates) which should call the LocationCallback() function that updates the current location. But it seems that the LocationCallback() never gets called at all.

All the permissions required have been given before calls to the Location related methods. The onMapReady() contains code to call the LocationCallback() to update the latest Location but we get a null instead.

public class CustomerMapActivity extends FragmentActivity implements OnMapReadyCallback{

private GoogleMap mMap; Location mlastLocation; LocationRequest mLocationRequest; private Button mRequest; private FusedLocationProviderClient mFusedLocationClient;  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_customer_map);      mFusedLocationClient = LocationServices.getFusedLocationProviderClient(CustomerMapActivity.this);      SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map);     mapFragment.getMapAsync(this);       mRequest = (Button) findViewById(R.id.request);     mRequest.setOnClickListener(new View.OnClickListener(){          @Override         public void onClick(View v){                      checkLocationPermission();                     mFusedLocationClient.requestLocationUpdates(mLocationRequest, mLocationCallback, Looper.myLooper());                     String userid = FirebaseAuth.getInstance().getCurrentUser().getUid();  //Getting the userid from FireBase and will be passed to GeoFire's setLocation method                      DatabaseReference ref = FirebaseDatabase.getInstance().getReference("customerRequests");   // Database reference passed to GeoFire                     GeoFire geoFire = new GeoFire(ref);                     geoFire.setLocation(userid, new GeoLocation(mlastLocation.getLatitude(), mlastLocation.getLongitude()));                  }          }     });  }  @Override public void onMapReady(GoogleMap googleMap) {     mMap = googleMap;      mLocationRequest = new LocationRequest();     mLocationRequest.setInterval(1000);     mLocationRequest.setFastestInterval(1000);     mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);        if(android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){         if(ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {          }else{             checkLocationPermission();         }     }        //            mFusedLocationClient.requestLocationUpdates(mLocationRequest, mLocationCallback, Looper.myLooper());          mMap.setMyLocationEnabled(true);  }    LocationCallback mLocationCallback = new LocationCallback(){     @Override     public void onLocationResult(LocationResult locationResult) {         for(Location location : locationResult.getLocations()){                 Toast.makeText(CustomerMapActivity.this,"CallbackDoe",Toast.LENGTH_SHORT).show();                 ActivityCompat.requestPermissions(CustomerMapActivity.this, new String[] {Manifest.permission.ACCESS_FINE_LOCATION},1);             if(getApplicationContext() != null) {                 mlastLocation = location;                 LatLng latLng = new LatLng(location.getLatitude(), location.getLongitude());     //Updates the Location of the USER                 mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));                  mMap.animateCamera(CameraUpdateFactory.zoomTo(11));               }         }     } }; 

}

I expected the onMapReady() to call the LocationCallback() to update the Current Location to the Variable mLastLocation which is used to update it on FireBAse Database using the geoFire.setLocation(userid, new GeoLocation(mlastLocation.getLatitude(), mlastLocation.getLongitude())); at the mRequest.SetOnClickListener() But i get a null “mLastLocation” instead.

Google Maps – requests to reviews places I’ve never visited

Google Maps insists on asking me to review places that I’ve never visited. I’ve tried both “Dismiss” and “I haven’t been here”” but they keep coming back. It’s very frustrating especially when the places I have visited and I do want to review get lost in the seemingly endless list of places I’ve perhaps gone past but never visited.

How to generate an access token using OAuth 2.0 for another app that never expired

I’m using OAuth 2.0 with Laravel (Passport) in order to grant access to my frontend app to the API. Access tokens generated this expires after a while.

Now, I have a second app that has to consume the same API but sessions in this app must not expire. I need to get tokens with no expiration for this app. Right now, I implemented a walkaround consisting of a personal access token with a 10 years life span. However, what I would like to get is a long-living token from the OAuth service.

The problem with the walkaround is that I get a new personal access token whenever I log in, but the long-living one still remains alive. I’m afraid of anybody stealing me the token and getting access to my API indefinitely, so saving the long-living access token in my front-end app isn’t an option.

Windows 10: The second press never accepted on laptop

Last night I have a notification on my laptop. This was about allow a setting.I clicked right buttom.After then if I click a buttom twice the second one is not accepted. If press pp the computer will take only p.If I press after a second then it take second one.All buttom of keybord behave same.How to solve this?.My operating system is windows 10

Windows 8.1 update search never ends


Disclaimer

This question has been asked so many times already, but none of the solutions worked, so here we go again

Introduction

A friend of mine had a problem with her Laptop. She uses a Windows one but has an iPhone so she needs iTunes to back-up her phone. Unfortunetley she couldn’t install iTunes because of some problem regarding the Bonjour service (Wasn’t possible to uninstall, even in safe mode). Since she also had 2 anti-virus programmes, massive toolbar hell etc. I suggested to her, that we’re just going to re-install Windows, since this can’t hurt anyway. She really had 1000 pieces of software installed that she never used. So I re-installed Windows 8.1 and wanted to search for updates, but it never found updates. At first I thought it was just taking long too load and said to her she should do this again when she’s home.

A few days later she sends me a message that she can’t connect her TV via HDMI (the Laptop never sees the other display, not even in the settings) and that also all her functional keys (brightness, etc.) don’t work. I asked her to show me dxdiag (because I wanted to see if she can install drivers if it’s an Nvidia gpu for example) and saw that she had sth. along “microsoft basic display adapter”, which I found out will be displayed if no drivers are installed. So I wanted to do the update search again, however, like before it never finds updates (not even after hours)

Research

So I started researching a bit and see this is a really common problem. I have now tested so many things out, I don’t know what else to do. I did

  • Run the Windows Update Troubleshooter, which found problems and sait it fixed them. The error code was/is 0x80070490
  • Tried to install this (3173424) and this(3172614) driver manually, however then it’s always stuck at sth. along the lines (it’s in German, so only rough translation) Windows Update standalone installer for updats on this computer and like before, never ends
  • Tried to install this(3138615) driver, same result as above
  • Do the listed steps found in this answer and this answer
  • Do the listed steps found in this article
  • Tried to use autopatcher -> No result
  • Tried to use portableupdate -> No result

I was also able to copy the contents of her log to my computer (I’m doing all these steps via TeamViewer) which you can find here (care, big file)

The last thing I would try to do is to re-install Windows 8.1 again or just go straight to Windows 10, however we don’t live THAT close together and she and I work a lot so it will be hard to find a date. So the preferred solution would be that I can somehow fix it via Teamviewer. I’m nearly giving up, but maybe you have some ideas?

Setting up openssh-server never end after apt install

I’m facing an issue on a Plesk server with OpenSSH. When I try to install any package, it’s ends up by :

Setting up openssh-server (1:6.6p1-2ubuntu2.13) ... 

And it never end… So, only thing I can do is cancel that process and kill manually three process:

apt        5415   ... /var/cache/apt/archives/lock dpkg       5435   ... /var/lib/dpkg/lock frontend   5436   ... /var/cache/debconf/config.dat 

This is a remote server so I’m worried about reinstall OpenSSH, I don’t want to loose my ssh access.

I’m aware that my question lacks of details and I will be happy to add anything you need.