bootcamp doesn’t recognize windows partition to remove; also cannot install command line tools

The problem started when I tried to install the newest version of command line tools (11.5). https://developer.apple.com/download/more/?=command%20line%20tools

At the step where I was supposed to choose a disk to install command line tools, there was no Macintosh disk shown. It seems that the computer can’t access the disk.

Previously, I have installed a win 10 on Boot Camp. So I figured that might be the problem and tried to remove it using boot camp assistant. But boot camp returns a message saying

Boot Camp Assistant was unable to verify if the Windows partition
contains a Windows installation. This may be because BitLocker is
enabled on the partition. If so, disable BitLocker on the disk before
removing Boot Camp.

diskutil list reads:

    /dev/disk0 (internal, physical):

   #:                       TYPE NAME                    SIZE       IDENTIFIER

   0:      GUID_partition_scheme                        *500.3 GB   disk0

   1:                        EFI EFI                     314.6 MB   disk0s1

   2:                 Apple_APFS Container disk1         361.0 GB   disk0s2

   3:       Microsoft Basic Data                         129.0 GB   disk0s3



/dev/disk1 (synthesized):

   #:                       TYPE NAME                    SIZE       IDENTIFIER

   0:      APFS Container Scheme -                      +361.0 GB   disk1

                                 Physical Store disk0s2

   1:                APFS Volume                         240.1 GB   disk1s1

   2:                APFS Volume                         60.6 MB    disk1s2

   3:                APFS Volume                         1.6 GB     disk1s3

   4:                APFS Volume                         2.1 GB     disk1s4

   5:                APFS Volume                         11.0 GB    disk1s5



/dev/disk2 (disk image):

   #:                       TYPE NAME                    SIZE       IDENTIFIER

   0:     Apple_partition_scheme                        +17.9 MB    disk2

   1:        Apple_partition_map                         32.3 KB    disk2s1

   2:                  Apple_HFS Flash Player            17.8 MB    disk2s2

Your help will be much appreciated. I would like to remove Windows 10 partition, merge the whole disk back together and install command line tools. Thanks.

command line – How can I share a saved search for Console.app?

I’m using Console.app to debug an iPhone app that my team is building. I’ve customized my view of the events in Console by filtering to exclude noisy libraries, subsystems, and messages.

While I can copy and paste from the search bar inside Console.app and back into the same, I can’t seem to share this filter in a way that someone else can paste it into the Console app on their machine.

When I paste the contents of the search bar, I see the following:

process:callserviced
message:Require cycle
library:libnetwork.dylib
library:libboringssl.dylib
library:CFNetwork
library:libusrtcp.dylib
library:AudioToolboxCore
subsystem:com.apple.UIKit
subsystem:com.apple.bluetooth
subsystem:com.apple.hangtracer
subsystem:com.apple.coreaudio
subsystem:com.apple.PlugInKit
subsystem:com.apple.UserNotifications
subsystem:com.apple.runningboard
subsystem:com.apple.corehaptics

There are two issues here.

  1. All but the first are excluded from my search, yet they appear as though they should be included.
  2. When attempting to paste this into Console’s search bar, it all runs together into one line, and doesn’t work.

Any suggestions?

P.S. I am also open to solutions using the Terminal. I found an old thread on hints.macworld.com which suggests one can use the syslog -C command to view these logs: http://hints.macworld.com/article.php?story=20120528025400312

Unfortunately, that seems to be replaced by the log command now, and I don’t know where to start with that.

command line – want to zip folder and want unzip without parent directory not happend in ubunto

i have folder and file like this

x (folder)

x has 2 files

a.py and y.py

now i am creating a zip with this command

cd /home/x/

ls

a.py and y.py

sudo zip -r ./zi.zip .

it create a zip

zi.zip

when i extract this then it give a folder “zi” and in this folder “a.py” and “y.py”

but i don’t want zi folder

i want where ever i extract this folder it give me a.py and y.py not a folder

co.combinatorics – Combinatorial optimization problem on random sampling from a sequence of points on a line segment

We are given a sequence $S_n$ of $n$ distinct points on a straight line $L$, whose coordinates are denoted by $x_1, x_2, ldots, x_n$ in increasing order (i.e., the corresponding increasing ordered sequence of Euclidean distances between each point of $S_n$ and an arbitrarily chosen point of $L$). Let $D$ be equal to $max_{i,jin (n)} |x_i-x_j|$.

We denote by $tau^*$ a threshold point maximizing the following quantity over all points $tau$ on $L$:

$$R(tau):=mathbb{E}left(mathbb{1}_{x_i<x_j<tau<x_k}cdot(D-(x_j-x_i)),
+,mathbb{1}_{x_i<tau<x_j<x_k}cdot(D-(x_k-x_j))right)~,$$

where the expectation is taken over a uniform random sampling of three distinct points from $S_n$ with indices $i<j<k$.

Finally, let $R'(tau^*)$ be defined as follows:

$$R'(tau^*):=mathbb{E}left(mathbb{1}_{x_i<tau^*<x_k}cdot
max{D-(x_j-x_i),D-(x_k-x_j)}right)~,$$

where again the expectation is taken over a uniform random sampling of three distinct points from $S_n$ with indices $i<j<k$.


Question: What is the minimum value for the ratio $frac{R(tau)}{R'(tau)}$ over all possible sequences $S_n$ (asymptotically for $ntoinfty$)?

I am also interested in a tight lower bound. More precisely, what is crucially important is to verify whether $frac{R(tau)}{R'(tau)}$ is always strictly larger than $tfrac12+c$ for some positive constant $c$.



Conjecture: $frac{R(tau)}{R'(tau)}getfrac12$ over all possible sequences $S_n$ (asymptotically for $ntoinfty)$.



Note: This problem is an alternative formulation of the problem described in Combinatorial optimization problem on the sums of differences of real numbers

How can I improve this line chart with value, norm and prediction?

I’m currently reworking some existing graphs which are shown on a webpage for a B2B tool.
These graphs are showing the current state of what’s happening in the life cycle of an animal, along with the norm and a predicted value.
In this particular graph below we are showing animal weight.

Weight (large)

As you can see 3 different values are shown:

  • actual weight (full blue line)
  • predicted future weight (white dots with blue border, on the far right)
  • norm (blue dots)

When the user hovers with the mouse over the graph, the legend shows the specific values, as is shown in the example for 32 weeks.


I would like to focus on the legend. It bothers me that “norm” is shown underneath the actual value, while the predicted future value is shown on the right side of it.

On other places in the website, we show the same graph, but in a smaller view.

Weight (small)

Parameter names are translated, and could potentially be very long.

Longer names

Some graphs are showing data for multiple parameters combined (and could potentially have a value, a norm and a future prediction for each parameter)

Combined parameters


Now, as I mentioned, it’s the legend that bothers me. The “norm” is shown underneath the actual value, while the predicted value is shown on the right side of it.

Here are some facts:

  • The predicted future value never overlaps with the actual value
  • The norm could overlap with both the predicted value and the actual value
  • Parameter names could be potentially very long
  • Need to be able to show the full legend even in the smaller view

I am wondering what my options are to improve this.
My initial thoughts are to “merge” the columns for predicted value and actual value into 1 column, as shown below. This simplifies the legend.
Since predicted values never overlap with actual values, this seems technically feasible: Just change the icon and the label of that first column.
But is it a good idea ? Are there any better options I’m not considering ?
Or is my solution perhaps worse than what I had before?

Proposal (1)
Proposal (2)

Thanks for your comments and insights.

Trying to add an ampersand at the end of every line of file using sed

& is one of very few characters that is special on the replacement side of a sed s/pattern/replacement/ command – in particular, it is replaced by the whole matched portion of the pattern space. In this case, the whole matched portion is a zero length assertion $, so & appears to insert nothing in the replacement.

To add a literal ampersand, you therefore need to escape it:

sed -i -e 's/$/ &/' file

Cross platform in line country flags on website? [closed]

Is there any existing solution to have access to in line country flags across web browsers and operating systems ? For example emoji flags don’t work everywhere and instead will just display a 2 letter country code.

command line – Invoke Bash console from windows subsytem for linux (Windos

I’m working on a 2D airfoil optimization throught Openfoam (which is installed on ubuntu 18.04 LTS by windows subsystem for linux), I already generated all the required folders and files and I just want to invoke throught a script (which will be called from cmd/shell) the bash console (located on the wsl$) and give it multiple commands . It is necessary to use the script to invoke the bash console as the with the multiple commands too, because I’m programming on matlab and just it is capable to invoke cmd/shell and give several commands throught such script. does anyone have any idea?

best regards.

vendor/magento/framework/Setup/Declaration/Schema/Db/DefinitionAggregator.php on line 91

I installed import and export plugin and got this error。

Notice: Undefined index: version in /var/www/magento2/vendor/magento/framework/Setup/Declaration/Schema/Db/DefinitionAggregator.php on line 91

Magento 2.3.5
PHP 7.3