broken screen – How to enable USB debugging without being able to click prompt?

I have a cellphone with a broken touchscreen, and I’m trying to recover files by remote controlling it. I can see only the top half of the screen and there is touch sensitivity in only the bottom 5% or so (I can barely tap the home button). All of the options I’ve found require USB debugging to be enabled, which I managed to do with a mouse and some lucky clicking. I am looking at Vysor, but I can’t get to that point yet so it’s most likely irrelevant for this question.

I’m stuck on the prompt that shows up when I plug it into the computer, because I cannot have both the mouse and the data cable plugged in to the phone at the same time, and therefore cannot click OK to allow the computer access.

The OTG cable (more like an adapter, not sure if it is technically called an OTG cable since I found it in a random old box) allows both USB-C and USB-A at once, but it seems that if the data cable is connected through this, only charging is allowed.

I tried using a clicker app to click in the area where the prompt shows up after a 30 second delay, but the app apparently can’t go over the prompt screens.

Is there any other way I can do this, either a different cable, a different clicker app, or a different method altogether? It seems like I’m almost there but experiencing a stupid roadblock where there shouldn’t be one.

I have not tried anything with command line because I’m not familiar, but if anyone can offer more specific instructions with that, I am happy to try.

Not sure if the whole cable thing was clear, so my options are either:

Phone << USBC---USBC >> Laptop

Where I cannot use the touch screen

or

Phone << USBC---USBA << Mouse
             ---USBC << USBC---USBC >> Laptop

Where the USBC-USBC wire only allows charging

About Blue Screen of Windows System after starting Mathematica 12.2/12.1 Win10

I found a way to solve the problem. Windows 10 KB5000802 Security Update is the culprit and it needs to be uninstalled. Then mathematica can work normally.

But there is a problem, Win10 will automatically update which is very annoying, because it will install KB5000802 Security Update again and Blue Screen will happen again. So you should disable automatic updates in Win10, then mathematica will work again, but that means your computer will never have a security update, So you have to make a trade-off.

One thing needs to be mentioned more, I found out that my colleague’s computer also has version 12.1 installed, also has Win10 KB5000802 Security Update installed, but his compouter can run mathematica normally. And my computer is not even if the computer system is reinstalled. This is a metaphysical thing and I don’t know why.

Operations for uninstalling security updates and disabling system updates are readily available online, you can find them everywhere. Hope the above description can help those who encounter this problem.


KB5000802 is also a culprit for the failure of some printers to print, that’s the problem I had before, if you hit the print button and the printer didn’t respond, this could be the reason.

game design – Why Beat ’em Ups don’t allow players to face toward or away from the screen

Most Beat ’em Ups don’t allow players to face away or towards the screen: example, in Streets of Rage, when you press up, the character moves up but still facing either left or right and same goes when you press down. Even in modern Beat ’em Ups, this is the case. What is the reason for this? I used to think this is because the graphics are 2D so its harder or more work to get characters to face towards or away from the screen. But even in Beat ’em Ups that uses 3D graphics, this is still the case, like Double Dragon Neon.

unity – How can I set perspective camera in portrait to fit screen sizes

I want to fit a perspective camera in different mobile portrait resolutions to see always the same objects in screen.

Doing a research about my problem I have found this post Scale camera to fit screen size unity that have a similar problem than mine, but he ask for an ortographic camera also horizontal.

My problem is the same but in perspective and vertical, I have tryed to adapt the solution code to my project but I don’t know why isn’t working, can someone explain to me the code or helpme to understand the maths behind them so I can figure how to do it?

My code for vertical

public float VerticalFoV = 60.0f;

// ...


void Update() {
   float halfHeight = Mathf.Tan(0.5f * VerticalFoV * Mathf.Deg2Rad);

   float halfWidth = halfHeight * Screen.width/ Screen.height;

   float horizontalFoV = 2.0f * Mathf.Atan(halfWidth) * Mathf.Rad2Deg;

   Camera.main.fieldOfView = horizontalFoV;
}

Sample code for horizontal

public float horizontalFoV = 90.0f;

// ...

void Update() {
   float halfWidth = Mathf.Tan(0.5f * horizontalFoV * Mathf.Deg2Rad);

   float halfHeight = halfWidth * Screen.height / Screen.width;

   float verticalFoV = 2.0f * Mathf.Atan(halfHeight) * Mathf.Rad2Deg;

   camera.fieldOfView = verticalFoV;
}

unity – How can I set perspective camera in portrait to fit screen sizes

I want to fit a perspective camera in different mobile portrait resolutions to see always the same objects in screen.

Doing a research about my problem I have found this post Scale camera to fit screen size unity that have a similar problem than mine, but he ask for an ortographic camera also horizontal.

My problem is the same but in perspective and vertical, I have tryed to adapt the solution code to my project but I don’t know why isn’t working, can someone explain to me the code or helpme to understand the maths behind them so I can figure how to do it?

My code for vertical

public float VerticalFoV = 60.0f;

// ...


void Update() {
   float halfHeight = Mathf.Tan(0.5f * VerticalFoV * Mathf.Deg2Rad);

   float halfWidth = halfHeight * Screen.width/ Screen.height;

   float horizontalFoV = 2.0f * Mathf.Atan(halfWidth) * Mathf.Rad2Deg;

   Camera.main.fieldOfView = horizontalFoV;
}

Sample code for horizontal

public float horizontalFoV = 90.0f;

// ...

void Update() {
   float halfWidth = Mathf.Tan(0.5f * horizontalFoV * Mathf.Deg2Rad);

   float halfHeight = halfWidth * Screen.height / Screen.width;

   float verticalFoV = 2.0f * Mathf.Atan(halfHeight) * Mathf.Rad2Deg;

   camera.fieldOfView = verticalFoV;
}

ubuntu – mouse movement causes screen to lag

whenever I move my mouse on my screen, the display seems to lock up till I stop moving my mouse, this causes some actions like moving a scroll bar very difficult. I have tried unplugging my mouse, and I could not find anyone with similar issues. I am using Ubuntu 20.04.2 LTS x86_64 my DE is GNOME, my GPU is NVIDIA GeForce GTX 960, and my mouse is Logitech G502 hero.

I checked my system log to see it was being spammed with

Apr 16 18:07:34 Asimov gnome-shell[2578]: Window manager warning: Ping serial 1883798578 was reused for window 0x7400005, previous use was for window 0x700000a.

and

Apr 16 18:09:10 Asimov gnome-shell[2578]: JS ERROR: TypeError: windowActor is null#012_addWindowEffect@resource:///org/gnome/shell/ui/closeDialog.js:90:28#012vfunc_show@resource:///org/gnome/shell/ui/closeDialog.js:162:14

wp enqueue script – Blank screen when editing a post. post.php response does not include editor.js in the HTML

we have a site that used to work and now gives us a blank screen when trying to edit any post. E.g., https://example.com/wp-admin/post.php?post=43&action=edit. On debugging we found that the post.php response does not contain any directives to download scripts for the editor. E.g.: these directives which are there in another environment (QA) are not there in prod because of which we are just seeing a blank screen:

<script src='https://example.com/wp-admin/js/editor.js?ver=5.6' id='editor-js'></script>
<script src='https://example.com/wp-includes/js/dist/block-editor.js?ver=5f6a75cdc59f1a900e9d4bcfb43bddba' id='wp-block-editor-js'></script>

we verified that if we stick a error_log in wp-includes/class.wp-dependencies.php 106/451

public function do_items( $handles = false, $group = false ) {
                /*
                 * If nothing is passed, print the queue. If a string is passed,
                 * print that item. If an array is passed, print those items.
                 */
                $handles = false === $handles ? $this->queue : (array) $handles;
                $this->all_deps( $handles );
                error_log("DEBUG: " . json_encode($handles));

we see:

(16-Apr-2021 21:42:07 UTC) DEBUG: ("admin-bar","media-views","imgareaselect","buttons","editor-buttons","wp-edit-post","wp-format-library","twentytwenty-block-editor-styles","wp-block-directory","colors","wp-auth-check","wp-block-library","acf-global","acf-input","select2","acf-datepicker","acf-timepicker","wp-color-picker","acf-input-repeater")
(16-Apr-2021 21:42:07 UTC) DEBUG: ("common","admin-bar","heartbeat","wp-edit-post","wp-format-library","media-editor","media-audiovideo","mce-view","image-edit","editor","quicktags","wplink","jquery-ui-autocomplete","media-upload","twentytwenty-block-editor-script","wp-block-styles","wp-block-directory","utils","svg-painter","wp-auth-check","acf-input","select2","jquery-ui-datepicker","acf-timepicker","wp-color-picker","acf-input-repeater")
(16-Apr-2021 21:42:07 UTC) DEBUG: ("editor-buttons")
(16-Apr-2021 21:42:07 UTC) DEBUG: ("admin-bar","media-views","imgareaselect","buttons","editor-buttons","wp-edit-post","wp-format-library","twentytwenty-block-editor-styles","wp-block-directory","colors","wp-auth-check","wp-block-library","acf-global","acf-input","select2","acf-datepicker","acf-timepicker","wp-color-picker","acf-input-repeater","thickbox")
(16-Apr-2021 21:42:07 UTC) DEBUG: ("common","admin-bar","heartbeat","wp-edit-post","wp-format-library","media-editor","media-audiovideo","mce-view","image-edit","editor","quicktags","wplink","jquery-ui-autocomplete","media-upload","twentytwenty-block-editor-script","wp-block-styles","wp-block-directory","utils","svg-painter","wp-auth-check","acf-input","select2","jquery-ui-datepicker","acf-timepicker","wp-color-picker","acf-input-repeater","thickbox","wp-embed")

we are at our wits end why post.php response does not include scripts for the editor. There is nothing we have done to the site. It just stopped working. We have tried restarting everything to flush out any caches and there is no error in the logs. Can anybody help?

What’s the reference screen resolutions to start preparing mockups for desktop?

Design for the most common screen resolution in your userbase. If it’s an internal company application then you can hopefully find out the various devices being used boy contacting the internal IT department. If it’s an external application then you’ll have to go by statistics available in that location.

Sites like https://gs.statcounter.com/screen-resolution-stats can give you stats by country, which is a place to start.

HOWEVER – just because screens have a certain resolution, that doesn’t mean the application window will always be set to maximum for all users to make the most of. People use applications in all sorts of ways, have different sized monitors connected, have them set to different zoom levels… So you need to make sure the application can scale to a variety of different sizes.

DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive Proxies-free.com New Proxy Lists Every Day Proxies123