wi fi – Turn on adb network mode on device without USB connection

I am debugging an app using a phone-PC combination which has USB issues. I can successfully establish a wifi connection using ‘adb tcpip 555’ then ‘adb connect 1.2.3.4’

However, sometimes I can’t even make the first USB connection to enable the debug listener on the phone. Is it possible to put the phone adb into listening mode (on wifi) without a USB connection?

ASUS Laptop doesn’t turn on, CPU gets hot. Have I fried my motherboard?

I was (foolishly) trying to repair a broken trackpad flat cable by connecting/disconnecting it while the laptop was turned on. All of a sudden, the screen started going crazy. I turned the laptop off and it won’t turn on again.

I also noticed that the CPU gets insanely hot if I attempt to turn the laptop on. Have I fried the motherboard? Is there anything to do about it other than replacing it?

Laptop: ASUS ROG GL752VW.

javascript – How to use recursion to turn object into string?

I am making a css-in-js library, and I need to use recursion to turn object into string like this:

Input:

const fakeData = {
  a: {
    b: 'c',
    d: 'e'
  }
}

Output:

a:{b:c;d:e;}

My recursion function:

const buildKeyframe = (obj) => {
    return Object.entries(obj).reduce((acc, (prop, value)) => {
        if (typeof value === 'string') {
            return `${acc}${prop}:${value};`
        }

        return `${prop}:{${buildKeyframe(value)}}`
    }, '')
}

This function works, but I think there is room for improvement(e.g. use TCO, avoid using reduce)… How can I write a better function to recurse this data structure?

This is the current benchmark of my function:

Recursion with reduce x 925,559 ops/sec ±0.68% (95 runs sampled)

repair – Olympus Mju-1 doesn’t turn on

I just found an Olympus Mju-1 which wasn’t used for more than 10 years. After that, I have dropped it once from a height of around 80cm. Then, I bought a new battery and put inside, it still can turn on and seems like all good, but I’m not sure it still functions well or not. So, I just left the battery inside and kept it, because I can’t find any film in stores near me. Then recently, after maybe 4 months, I went to try to use it and realised it doesn’t turn on. But the new battery inside didn’t rupture, and the compartment is all clean.

My question is, do you think the camera will work if I change to a new battery? If not, what can I do, other than changing the parts in it, because the local camera repair store said they didn’t have any parts for point-and-shoot cameras.

repair – Olympus mju-i cant turn on

i just found an olympus mju-i which didnt use for more than 10yrs.After that, i have dropped it once from the height like 80cm. Then, i bought a new battery and put inside, it still can be turn on and seems like all good but im not sure it can still functioning well or not. So, i just leave the battery inside and keep it since i cant find any film in store nearby me. Then recently, like after 4months, i want to try to use it and realised it cant be turn on. But the new battery inside didnt corrupt and chamber is all clean

So my question is do u guys think it can be solve by change to a new battery?
If no what can i do, other than changing the parts in it cos repairing store nearby me said they didnt have any parts for p&s camera