In Android Studio, which system image should I choose for a Pixel 4 emulator?

In Android Studio, I’m adding a Pixel 4 virtual device. It asks me to select a System Image, and has the following one selected by default:

Release name: Pie
API Level: 28
ABI: x86
Target: Android 9.0 (Google Play)

There are others with API levels 29 and 30 that are shown but that I haven’t downloaded yet. How do I decide which System Image to use for a Pixel 4?

web browser – Facebook retargeting pixel

Given a commercial website buy.com and a user with a Facebook account in facebook.com, the user has third-party cookies disabled in the browser.

If a user is logged in their Facebook account and visits facebook.com, Facebook can set first-party cookies for facebook.com

Now the user visits buy.com, the site uses a web beacon with an <img> tag with src pointing to a facebook.com URL.

Can the user can still be tracked and a retargeting campaign can happen without consent?

Assumption is that the request from the <img> tag on the buy.com site, sends info about the visit on the URL and is able to trace it back to the original user thanks to the first-party cookies that were set by the visit to Facebook and get resent on the request for the web beacon even from a different domain. Is that correct?

android 11 – Where does Google Pixel take caller ID from?

I made an outbound call to a business today and the caller ID displayed was that of a completely unrelated business in a different geographical location (so would have a different (UK) area code).

Does Google perhaps pull this data from business profiles on the search engine and how can I report the inaccuracy?

How to implement dither in pixel shader?

I’ve seen this talk about INSIDE’s rendering (thanks to DMGregory).
It says that we should dither everything.
What I wonder however is how to dither in a simple fragment shader?

In a Pixel Shader I don’t have access to neighbouring pixels, how do I dither for example the vertex colors?

Imagine a single quad with a gradient going from white to black.
I can multiply the Vertex Colour with the noise texture, but this will only darken/brighten the actual color.

What is the difference between pixel pitch and pixel density?

It’s just a reciprocal relationship. Where pixel density measures, say, the number of pixels per inch, pixel pitch measures the number of inches per pixel (or the center-to-center spacing between pixels).

Pixel pitch expressed as a linear measurement, and if the pixels are non-square you may see two values specified. Pixel density, on the other hand, may be expressed as a linear measurement (pixels per inch or millimeter or what have you) or as an area measurement (pixels per square inch or pixels per square millimeter) — your equation assumes an area measure of pixel density and square pixels, and converts to a linear value.

I should probably add that pixel pitch is usually used to state device specifications (screens or sensors) — you wouldn’t often see it used to describe, say, the resolution settings you used to print an image.

Pixel 2d motion animation principles

This is not really a game question but I dont see where else to ask. I need to visualize a fast pacing process in .NET in 2D. I am planning to use writeable bitmap 800x40px.

The idea is like this – there are objects which are represented by very basic colours and sizes anything from 1×1 to 4×4. each takes 4×4 “cell” – they all are fixed like a chess board.

The objects move between cells and change size. Most importantly they move independently, so I cant (I can but I would like to not) have a sort of refresh rate.. I need to animate each object state change – like say pixels pouring from cell to cell. the transition time should be around 500ms.

In this period of time the states can change multiple times so I should be able to abort outdated animation, move object “instantly” to new cell and start more recent object animation which could have taken over the “old” cell..

the accuracy should be in 1-2ms intervals.

the host application is WPF .NET Framework

where would you start?

probability – Average number of circles intersecting pixel after placing n circles of diameter d in a rectangular domain

I would like to find out what is the expected average number of circles on top of a pixel (a small area) after placing n points in a rectangular area of A by B. The x and y values are uniformly distributed in (0,A) and (0,B).

My educated guess is that this value is n/A/B.

I wrote a MATLAB program to check this and it seems to approach that value:


    width  = 100;
    radius = 10;
    
    A     = zeros(width,width);
    
    num = 1e6;
    for n = 1:num
        r = randi((1 width),1,2);
        
        for a = 1:width
            for b = 1:width
                if ((a-r(1))^2 + (b-r(2))^2) < radius^2
                    A(a,b) = A(a,b) + 1;
                end
            end
        end
    end
    
    surf(A)
    
    actual_density = num/width/width
    calc_density   = A(width/2,width/2)/(pi*radius^2)
    

Is there a known proof for this?

I would like to figure the question out on my own and would appreciate any hints, such as a particular probability distribution I should be using or other related examples (in 1D maybe?).

Thank you

google – Recovering bricked Pixel 2 with drained battery

Bit of a weird setup but I have a Pixel 2 phone with offline charging disabled.

Today I wanted to restore the factory image so I booted the phone into TWRP, wiped all the partitions. I then got distracted and the battery drained.

Because I have disabled offline charging the battery won’t charge now that the phone is off and the phone won’t boot because it doesn’t have enough power to switch on.

I have tried starting the phone into recover but it seems like there is not enough juice even for this. The red LED on top flashes a couple of times but the screen stays black.

Any ideas how I can recover?

One idea I had was to open the phone and put a charged battery from another pixel in it but this involves taking apart two phones which is a bit drastic.

css – What is the smallest, standard pixel viewport for smartphones?

I am trying to develop a simple CMS-agnostic, HTML-PHP-JavaScript-CSS mobile-first contact form.

I want to give my <form> tag a minimal satandard width (not min-width but width which is by standard minimal) in the CSS file.

I don’t know what should be the minimal width to cover all viewports of all “smartphone”s out there and that shouldn’t really change anytime in the next 50 years (in any plausibility).

What is the smallest standard pixel viewport for smartphones?
Is there a standard about viewports per se anywhere? One could help create better user experience

css – What is the largest pixel viewport for smartphones?

I am trying to develop a simple CMS-agnostic, HTML-PHP-JavaScript-CSS mobile-first contact form.

I want to give my <form> tag a max-width in the CSS file.

I don’t know what should be the max-width to cover all viewports of all “smartphone”s out there.

What is the largest pixel viewport for smartphones?
Is there a standard about viewports per se anywhere? One could help create better user experience