## How to select an entire photo (“select all”) in icloud photos

How to select an entire photo (“select all”) in icloud photos – Ask Different

## javascript – Cannot read property ‘lists’ of undefined – Entire Function Undefined

My error message is telling me that what I’m attempting to call is undefined, but have no idea how that could be possible, because in an earlier version, everything worked perfectly.

I’ve had the University’s Web Development Professor attempt to help, as well as the Senior Design T.A.

This is for my team’s capstone project that we’re presenting tomorrow.

Please, if you have any idea why this might be happening, we’d love to figure this out.

Here is where the error is pointing:

Specifically line 71 (I’ll add an arrow)

``````import "./Board.css";

import React, {Component} from "react";
import { connect } from "react-redux";
import { DragDropContext, Droppable } from "react-beautiful-dnd";

import List from "./List";
//import Navbar from "./Navbar";

class Board extends Component {
state = {
};

handleDragEnd = ({source, destination, type}) => {
// dropped outside the allowed zones
if (!destination) return;

const {dispatch} = this.props;

// Move list
if (type === "COLUMN") {
// Prevent update if nothing has changed
if (source.index !== destination.index) {
dispatch({
type: "MOVE_LIST",
oldListIndex: source.index,
newListIndex: destination.index
}
});
}
return;
}

// Move card
if (
source.index !== destination.index ||
source.droppableId !== destination.droppableId
) {
dispatch({
type: "MOVE_CARD",
sourceListId: source.droppableId,
destListId: destination.droppableId,
oldCardIndex: source.index,
newCardIndex: destination.index
}
});
}
};

render() {
console.log(this.props)
const {board} = this.props;
//console.log(board);

try {
return (
<DragDropContext onDragEnd={this.handleDragEnd}>
<Droppable droppableId="board" direction="horizontal" type="COLUMN">
{(provided, _snapshot) => (

<div className="Board" ref={provided.innerRef}>     <---------------------------------------

{board.lists.map((listId, index) => {
return <List listId={listId} key={listId} index={index}/>;
})}

{provided.placeholder}

) : (
<div
>
</div>
)}
</div>
</div>
)}
</Droppable>
</DragDropContext>
);

} catch (error) {
console.error(error.onmessage);
}
}
}
const mapStateToProps = state => ({ board: state.board });

export default connect(mapStateToProps)(Board);
``````

Thank you for any insight you might be able to send our way.

## software – How can a non-root program cover your entire screen with a window?

This year, since much of students are online, College Board (the company that administers AP Exams in the US, along with the SAT) recently released its Digital Testing App. Once installed, and going through a setup, it allows you to go through a test demo to mirror the actual test conditions. However, once you do, it covers your entire screen and prevents you from Alt+Tab to another window. This ability could make sense if the program was given administrator privileges on install (like Respondus Lockdown Browser, I believe), but the Testing App wasn’t, and yet still could. This could just be a trick like just a really big window, but I’m not completely sure. Could anyone shed some light on this and how could they do this?

## google sheets – How to Apply Conditional Formatting Based on Adjacent Cell Value for Entire Column?

I am looking to apply conditional formatting to all cells in a column (excluding the header) where a colour will be applied depending on if its value is greater, equal, or less than the adjacent cell.

Simple example:

A B
1 100 200
2 50 150
3 80 20

Here is a simple spreadsheet that is more complex implementing @Rubén’s solution:

Range `B:B` has the following custom formulas:

• `=B2>=A2` for green (if the cell on the right is greater than or equal to the cell on the left)
• `=B2<A2` for red (if the cell on the right is less than the cell on the left)

If the value in column `B` is greater than or equal to the value in column `A`, colour the `B` cell green. If the value in column `B` is less than the value in column `A`, colour the `B` cell red.

So rows `1` and `2` should be green, and `3` red.

I am familiar with how to do this individually on a per cell basis, but if I have hundreds of rows and need to do this over multiple columns I don’t want to manually do this hundreds of times. It looks like I need to use the Custom formula is on Conditional formatting rules, but I can’t figure out how to target a relative cell by position.

What I’ve tried:

• Conditional formatting on one cell such as `Great than or equal to` `\$A2`, then dragging this row down hoping the `2` increments. It doesn’t. This also wouldn’t work in scenarios where there are unique formulas or static values in the cells without going back and updating the cell values.
• Using the `Custom formula is`, but unable to find the correct function to pair it with to again make that `2` value increment. Looked at MATCH and other descriptions of functions and didn’t see anything suitable for dynamic cell.
• Looked at using the Script Editor, but this didn’t seem right and seemed like overkill for what I feel is pretty simple.
• Googling, but somehow not finding anyone who’s wanted to do this before. Stack has questions that are close, such as Conditional Formatting based on other column that also use the `MATCH` function, but I wasn’t able to make this work.

## complex analysis – Function defined by equations is entire

Prove that if $$f(z) = begin{cases} dfrac{cos z}{z^2-(pi/2)^2}, & text{if }zneq pm pi/2 \ -dfrac{1}{pi}, & text{if } z=pm pi/2 end{cases}$$ then $$f$$ is an entire function.

I wrote Taylor series for $$cos z$$ about the point $$pi/2$$ and I got the following:
$$cos z=-left(z-frac{pi}{2}right)+frac{1}{6}left(z-frac{pi}{2}right)^3+dots;$$
which is valid for any $$zin mathbb{C}$$. Also we can write $$dfrac{1}{z^2-(pi/2)^2}$$ as $$dfrac{1}{(z-pi/2)(z+pi/2)}$$. I can write that $$dfrac{1}{z+pi/2}$$ as a power about the point $$pi/2$$ but this is valid for $$|z-pi/2|.

## files – search for filenames on entire android device tree using ADB ‘find’

Use:

``````find . -name "*prop*"
``````
• `.`: represents the current folder.
• `-name`: option to find files by name.
• `*prop*`: filenames that contain the word prop.

OR as mentioned by @alexs on the comment, you can use:

``````find . -iname "*prop*"
``````
``````-iname: option to find files by name but is case insensitive.
``````

If you want to find the all files with the root folder as the stating place, do as mentioned by @IrfanLatif by using:

``````find / -iname "*prop*"
``````

## How to assign an entire /68 block of IPv6 Addresses?

I have almost the exact same question as this (unanswered) guy: /showthread.php?t=1398288&p=10298342#post10298342

## Python: Replace nested dict key’s value in entire json whether inside a list or directly a dict

I want to replace the values inside a json for dictionary’s key it could be present as dictionay directly in json or as a dictionary inside another list as below:

`````````
{
"appType": "popper",
"createdAt": "1970-01-01T00:00:00.000Z",
"updatedAt": "1970-01-01T00:00:00.000Z",
"people": [{
"name": "Vol1",
"label": "Vol1",
"peopleInfo": [{
"name": "ram",
"age": "2407653459860",
"id": "1b738651-da9f-4c85-88c1-70dbfe1976681"
}],
"itemInfo": {
"id": "ee763970-51e2-57a5-955c-d72fc3e28a3f",
"name": "xyz",
"type": "any",
"managed": false
}
}],
"itemInfo": [{
"managed": false,
"vendorName": "any",
"serialNumber": "AF-10124"
}],
}
``````
``````Desired Output:

``````
``````{
"appType": "popper",
"createdAt": "1970-01-01T00:00:00.000Z",
"updatedAt": "1970-01-01T00:00:00.000Z",
"peopleInfo": [{
"name": "Vol1",
"label": "Vol1",
"people": [{
"name": "ram",
"age": "2407653459860",
"id": "1b738651-da9f-4c85-88c1-70dbfe1976681"
}],
"itemInfo": {
"id": "ee763970-51e2-57a5-955c-d72fc3e28a3f",
"name": "xyz",
"type": "any",
"managed": True
}
}],
"itemInfo": [{
"managed": True,
"vendorName": "any",
"serialNumber": "AF-10124"
}],
}
``````
``````
so as in desired output i want to update/replace the *managed* flag as *True* from *false* for **itemInfo** directly in json and as well as **itemInfo** in **peopleInfo** List using python. The iteminfo dictionary can be present in entire json in some different list as well. Thankyou for the help.
``````

## The Problem

I have setup a Raspberry Pi 4 on my local network to act as a DNS server. I have a number of devices on my network that need to be reached from outside the network so I have a domain name being updated via DynDNS service (with my pub IP) and port forwarding to route all incoming traffic to the right private IP’s. It works!

The issue is obviously inside the network. When I hit this same domain name, it spins forever and will not resolve because it resolves as the public IP of my router. With split-horizon DNS I am going to be using my local DNS server to cause all internal traffic to resolve my domain name as a private IP and never resolve to my public IP until I am not on my network.

## What I Have Done

• I have setup the pi with no desktop and only CLI
• I connected the pi to a LAN connection in my router
• I have setup SSH and opened the ufw ports for port 22
• Opened port 53 in my server firewall (ufw)
• Gone into my ISP Router management page, and pointed my entire home network DNS servers from the default ISP primary/secondary to the private IP of my DNS server
• Copied the primary and secondary DNS server IP addresses from my ISP and put them in my DNSMasq config file (found in /etc/dnsmasq.conf) under the name `server=ip.ip.ip.ip`
• Used the following DNSMasq config settings: domain-needed, bogus-priv, cache-size=750, log-queries, log-faciliy=/var/log/dnsmasq.log, server=isp.ip.primary.0, server=isp.ip.secondary.0, server=8.8.8.8, server=8.8.4.4, dhcp-mac, dhcp-reply-delay
• There are no errors in my dnsmasq.log file
• There are no errors in `sudo service dnsmasq status`
• Cannot seem to get into my ISP router’s logs. I can see them but theres so many that it crashes the entire webpage when trying to scroll through them all

## Outcome

No device on my entire network can now resolve any domains at all until I change back to my default ISP primary/secondary

## c++ – Octree LOD without traversing the entire tree

I am working on a voxel engine that uses a huge Hashed Linear Octree that reconfigures when you move. Each octree leaf is a voxel. The world is procedurally generated using 2D Perlin noise.

The octree utilizes face culling and instancing to accomplish pretty good performance in OpenGL. I have implemented LODs in order to allow for much bigger scenes and my bottleneck has quickly shifted from rendering faces to generating the Octree.

Each time the camera moves I need to reconfigure the Octree’s LOD in order to ensure the viewer sees high detail near him and low detail in the distance. The system works great for small Octrees (256^3) but as soon as I go to a 1024^3 Octree, the generation of the Octree LOD takes 1-2 minutes. Even done on a separate thread it isn’t enough.

I am sure there is a way to generate the Octree world without traversing the whole Octree but I could not find it.

The basic outline of how I do the Octree LOD generation when the camera moves:

1. Start traversing the Octree at the root node

2. For each node, check the distance of the node’s center from the camera

2.a. If the node is a leaf and the distance is smaller than the node size * CONSTANT, divide it. If it is not a leaf, traverse its children and go back to (2).

2.b. If the node is not a leaf, and the distance is larger than the node size * CONSTANT, collapse the node if needed.

That’s basically it. Because the world is procedurally generated, dividing each node means iterating its entire volume (x+1,z,x+2,z…x,z+1,x,z+2…x+1,z+1….) to determine if the 2D Perlin noise passes through the node volume, above it, or below it (This has to be part of the problem as for 256^3 nodes it takes 65536 iterations).

I know that I can improve this by parallelizing the entire algorithm, but I still feel like there has to be 1) a way to calculate LODs without entire tree traversal, and 2) figuring out if to divide the node without iterating through its whole volume 1 by 1.