Id
int64 1.68k
75.6M
| PostTypeId
int64 1
2
| AcceptedAnswerId
int64 1.7k
75.6M
⌀ | ParentId
int64 1.68k
75.6M
⌀ | Score
int64 -60
3.16k
| ViewCount
int64 8
2.68M
⌀ | Body
stringlengths 1
41.1k
| Title
stringlengths 14
150
⌀ | ContentLicense
stringclasses 3
values | FavoriteCount
int64 0
1
⌀ | CreationDate
stringlengths 23
23
| LastActivityDate
stringlengths 23
23
| LastEditDate
stringlengths 23
23
⌀ | LastEditorUserId
int64 -1
21.3M
⌀ | OwnerUserId
int64 1
21.3M
⌀ | Tags
sequence |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
74,369,745 | 2 | null | 74,369,296 | 1 | null | If you want to show the data for the first document, you can do:
```
print(allData[0].data);
```
That is an array again, so if you want to then access individual values in there, have a look at [arrays in Dart](https://dart.dev/guides/language/language-tour#lists).
| null | CC BY-SA 4.0 | null | 2022-11-09T03:54:34.140 | 2022-11-09T03:54:34.140 | null | null | 209,103 | null |
74,370,169 | 2 | null | 74,369,931 | 0 | null | Your data should be an array then it can map correctly. Currently, it's inside an object, so when you map array it has only one object inside. Also, title key inside an object will replace the title with the last value.
```
contents: ['Roco Pizza', 'Veggi', 'Chicken Supreme']
{menuSection.contents.map((dishes, j) => (
<Cell title={dishes} />
))}
```
I hope this will help you out.
| null | CC BY-SA 4.0 | null | 2022-11-09T05:10:04.950 | 2022-11-09T05:10:04.950 | null | null | 13,795,089 | null |
74,370,232 | 2 | null | 54,707,731 | 0 | null | The problem is you cannot make the class immutable with out making all its properties 'final'. Sometimes we have to make a property not required and have to remove final. In this case your class never be immutable. You can simply ignore the warning. this will not harm your performance.
| null | CC BY-SA 4.0 | null | 2022-11-09T05:18:22.953 | 2022-11-09T05:18:22.953 | null | null | 7,975,212 | null |
74,370,360 | 2 | null | 71,449,973 | 0 | null | It could be done by nested table...
```
<table border width='300' height='200'>
<tr>
<td width='150'>Data 1</td>
<td rowspan="3">
<table width="150" height='100%'>
<tr>
<td>Nested 1</td>
</tr>
<tr>
<td>Nested 2</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>Data 2</td>
</tr>
<tr>
<td>Data 3</td>
</tr>
</table>
```
| null | CC BY-SA 4.0 | null | 2022-11-09T05:39:03.650 | 2022-11-09T05:39:03.650 | null | null | 20,318,894 | null |
74,370,606 | 2 | null | 74,366,497 | 0 | null | it just worked, but it seems that might take 24 hours, I just posted here so if anyone faced this, just give it time.
| null | CC BY-SA 4.0 | null | 2022-11-09T06:14:00.560 | 2022-11-09T06:14:00.560 | null | null | 12,181,518 | null |
74,370,684 | 2 | null | 74,366,497 | 0 | null | Might be relevant...
From [Managing AWS STS in an AWS Region - AWS Identity and Access Management](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html):
> Session tokens from Regional AWS STS endpoints are valid in all AWS Regions. Session tokens from the global STS endpoint are valid . If you intend to enable a new Region for your account, you can use session tokens from Regional STS endpoints. If you choose to use the global endpoint, you must for the global endpoint.
...
In the dialog box, select . Then choose Save changes.
| null | CC BY-SA 4.0 | null | 2022-11-09T06:24:44.810 | 2022-11-09T06:24:44.810 | null | null | 174,777 | null |
74,370,710 | 2 | null | 71,449,973 | 0 | null | In the end I found this solution. But it turned out to be a weird table.
The "rhythm" of two-to-three can only be realised by internally working with 6 rows. This is what I did below. The cell
```
<td rowspan=3>XPath<br> <br> </td>
```
was made to look a little taller by adding a few `<br>`s.
```
<table border=1>
<tr>
<th rowspan=3>Day</th>
<th colspan=3>Seminar</th>
</tr>
<tr>
<th colspan=2>Schedule</th>
<th rowspan=2>Topic</th>
</tr>
<tr>
<th>Begin</th>
<th>End</th>
</tr>
<tr>
<td rowspan=2>Monday</td>
<td style="background-color: #F8F6D1;" rowspan=2>8:00 a.m.</td>
<td style="background-color:#BFB4F8;" rowspan=2>5:00 p.m.</td>
<td>Introduction to XML</td>
</tr>
<tr>
<td>Validity: DTD and Relax NG</td>
</tr>
<tr>
<td rowspan=6>Tuesday</td>
<td rowspan=2 style="background-color: #F8F6D1;">8:00 a.m.</td>
<td rowspan=2 style="background-color: #F8F6D1;">11:00 a.m.</td>
<td rowspan=3>XPath<br> <br> </td>
</tr>
<tr>
</tr>
<tr>
<td rowspan=2 style="background-color: #F8F6D1;">11:00 a.m.</td>
<td rowspan=2 style="background-color: #C7F8D8;">2:00 p.m.</td>
</tr>
<tr>
<td rowspan=3>XSL Transformations</td></tr>
<tr>
<td rowspan=2 style="background-color: #C7F8D8;">2:00 p.m.</td>
<td rowspan=2 style="background-color:#BFB4F8;">5:00 p.m.</td>
</tr>
<tr>
</tr>
<tr>
<td>Wednesday</td>
<td style="background-color: #F8F6D1;">8:00 a.m.</td>
<td style="background-color: #C7F8D8;">12:00 p.m.</td>
<td>XSL Formatting Objects</td>
</tr>
</table>
```
| null | CC BY-SA 4.0 | null | 2022-11-09T06:27:09.523 | 2022-11-09T06:27:09.523 | null | null | 2,610,061 | null |
74,370,976 | 2 | null | 74,359,874 | 1 | null | Switching to the HTTPS URL should have helped, since the initial clone succeeds.
But try and set `GIT_SSH_COMMAND`:
```
export GIT_SSH_COMMAND='ssh -Tv'
```
That way, you will see which key is tried for this clone.
Check also that `ssh -Tv [email protected]` does return `Hi vvasuki! You've successfully authenticated, but GitHub does not provide shell access.`
As long as this first check does not succeed, any SSH URL would fail.
| null | CC BY-SA 4.0 | null | 2022-11-09T06:56:01.723 | 2022-11-09T06:56:01.723 | null | null | 6,309 | null |
74,371,165 | 2 | null | 67,171,932 | 0 | null | I think it's better solution to find `UIScrollView` of subviews:
It's tested on SwiftUI 2, 3 and working well.
```
UIViewRepresentable > makeUIView function
```
Finding UIScrollView and modifications:
```
let pdfView = PDFView()
for view in pdfView.subviews {
if let scrollView = findUIScrollView(of: view) {
scrollView.showsHorizontalScrollIndicator = false
scrollView.showsVerticalScrollIndicator = false
}
}
func findUIScrollView(of uiView: UIView) -> UIScrollView? {
if let scrollView = uiView as? UIScrollView {
return scrollView
}
for view in uiView.subviews {
if let scrollView = view as? UIScrollView {
return scrollView
}
if !view.subviews.isEmpty {
return findUIScrollView(of: view)
}
}
return nil
}
```
| null | CC BY-SA 4.0 | null | 2022-11-09T07:17:45.503 | 2022-11-09T07:17:45.503 | null | null | 3,212,220 | null |
74,371,954 | 2 | null | 74,363,516 | 3 | null | This is a bug in Firefox itself.
There was a bug report about this in chart.js that let to a bug report in ionic which let to a bug report in Firefox itself.
So you will need to wait until Firefox makes a fix for this or not use ionic on the page where you render your chart
[https://github.com/chartjs/Chart.js/issues/10720](https://github.com/chartjs/Chart.js/issues/10720)
[https://github.com/ionic-team/ionic-framework/issues/26039](https://github.com/ionic-team/ionic-framework/issues/26039)
[https://bugzilla.mozilla.org/show_bug.cgi?id=1792860](https://bugzilla.mozilla.org/show_bug.cgi?id=1792860)
| null | CC BY-SA 4.0 | null | 2022-11-09T08:37:47.410 | 2022-11-09T08:37:47.410 | null | null | 8,682,983 | null |
74,372,081 | 2 | null | 68,487,756 | 0 | null | As per [https://www.ibm.com/docs/en/spectrum-protect/8.1.9?topic=codes-global-security-kit-return](https://www.ibm.com/docs/en/spectrum-protect/8.1.9?topic=codes-global-security-kit-return), GSKit Error 207 means :
0x000000cf 207 GSK_ERROR_FIPS_NOT_SUPPORTED This installation of GSKit does not support FIPS mode of operation.
It indicates about issue with certificate file. Another reason may be that your system already has some older version of GSKit installed at "C:\Program Files\ibm\gsk8". If it is there, then it might be old. Better to rename this directory and then try. Thanks.
| null | CC BY-SA 4.0 | null | 2022-11-09T08:48:23.963 | 2022-11-09T08:48:23.963 | null | null | 4,177,130 | null |
74,372,100 | 2 | null | 48,607,198 | 0 | null | I had the same issue testing flask API with file upload in postman. I was passing both String data and Image file in one flask API.
Tried `Content-Type = multipart/form-data` and `Content-Type = application/json` but it didn't work.
Resolved it by removing all `Content-Type` headers. Strangely it works that way.
Hope this helps if anyone stuck in the similar issue.
| null | CC BY-SA 4.0 | null | 2022-11-09T08:49:40.787 | 2022-11-09T08:49:40.787 | null | null | 2,493,079 | null |
74,372,580 | 2 | null | 74,372,514 | 0 | null | This is messy, but it gets the job done.
Formula in `B2`:
```
=VLOOKUP($A2,$G$1:$S$6,(COLUMN()-4)+(COUNTIF($A$2:$A2,$A2)*4),0)
```
Copy the formula across to the `Q4` column and as far down as necessary.
[](https://i.stack.imgur.com/XQaYA.png)
| null | CC BY-SA 4.0 | null | 2022-11-09T09:28:49.107 | 2022-11-09T11:00:55.053 | 2022-11-09T11:00:55.053 | 20,205,391 | 20,205,391 | null |
74,373,222 | 2 | null | 33,638,395 | -1 | null | If you have a certain network it can block pip for installation. For my case I used my own network without VPN.
| null | CC BY-SA 4.0 | null | 2022-11-09T10:20:41.747 | 2022-11-09T10:20:41.747 | null | null | 2,423,946 | null |
74,373,552 | 2 | null | 11,336,663 | 2 | null | Inspired by [@ronald-coarite](https://stackoverflow.com/users/2154661/ronald-coarite) answer, here is my solution:
```
function saveTxtToFile(fileName: string, textData: string) {
const blobData = new Blob([textData], { type: 'text/plain' });
const urlToBlob = window.URL.createObjectURL(blobData);
const a = document.createElement('a');
a.style.setProperty('display', 'none');
document.body.appendChild(a);
a.href = urlToBlob;
a.download = fileName;
a.click();
window.URL.revokeObjectURL(urlToBlob);
a.remove();
}
saveTxtToFile('myFile.json', JSON.stringify(myJson));
```
| null | CC BY-SA 4.0 | null | 2022-11-09T10:42:56.447 | 2022-11-09T10:42:56.447 | null | null | 1,444,589 | null |
74,373,944 | 2 | null | 74,357,180 | 1 | null | If you want to serialize and deserialize objects when using Firestore, then you can simply use Kotlin data classes. This means that there is no need to add `internal` in front of the fields and there is also no need to use an `@Parcelize` annotation.
| null | CC BY-SA 4.0 | null | 2022-11-09T11:11:21.507 | 2022-11-09T11:11:21.507 | null | null | 5,246,885 | null |
74,373,975 | 2 | null | 74,369,220 | 1 | null |
```
helm repo add prometheus-community [https://prometheus-community.github.io/helm-charts](https://prometheus-community.github.io/helm-charts)
```

```
helm install prometheus prometheus-community/kube-prometheus-stack -n namespace_name
```

```
kubectl port-forward -n prometheus prometheus-prometheus-kube-prometheus-prometheus-0 9090
```
```
kubectl get secret -n namespace_name Prometheus-grafana -o=sonpath=[{.data.admin-user}'|base64 -d
kubectl get secret -n namespace_name Prometheus-grafana -o=sonpath=[{.data.admin-password}'|base64 -d
```

```
kubectl port-forward -n prometheus prometheus-grafana-55b48f4cf9-rzkgv(pod_name) 3000
```


| null | CC BY-SA 4.0 | null | 2022-11-09T11:14:07.947 | 2022-11-09T11:14:07.947 | null | null | 19,992,025 | null |
74,374,153 | 2 | null | 70,952,239 | 0 | null | I Had two versions of hasura-cli, one installed with curl and one installed with npm.
I resolve the problem by removing all the version and installing the hasura-cli with npm and restarting the system
| null | CC BY-SA 4.0 | null | 2022-11-09T11:28:01.300 | 2022-11-09T11:37:10.347 | 2022-11-09T11:37:10.347 | 19,312,117 | 19,312,117 | null |
74,374,436 | 2 | null | 74,374,178 | 1 | null | I guess you could go with :
```
path = 'export_3.xlsx'
file = pd.ExcelFile(path)
sheets = file.sheet_names
for sheet in sheets:
sheet_dict = {}
contoh = pd.read_excel(path, sheet_name=sheet)
for col in contoh.columns:
sheet_dict[col] = list(contoh[col])
print(sheet_dict, "\n\n\n")
```
This way you have one dictionary per sheet in your excel, that you can store if needed in a list declared before the for loop.
Instead of using `list(contoh[col])` I guess you could also use `np.array(list(contoh[col]))`
| null | CC BY-SA 4.0 | null | 2022-11-09T11:52:17.993 | 2022-11-09T11:52:17.993 | null | null | 18,771,355 | null |
74,374,539 | 2 | null | 74,374,178 | 0 | null | Transpose the df, combine all column values in each row to list and print/save as json with column orient
Use the similar approach according to your requirement.
```
contoh = pd.read_excel('export_3.xlsx',header=None,sheet_name='EPA BINER')
df = contoh.transpose()
df['new'] = df.values.tolist()
df = df['new']
df.to_json(orient = 'columns')
```
| null | CC BY-SA 4.0 | null | 2022-11-09T12:00:13.700 | 2022-11-09T12:00:13.700 | null | null | 19,199,059 | null |
74,374,918 | 2 | null | 74,368,746 | 1 | null | It looks like you are using the definition of F from the section of Simon's book (p. 109, 2nd edition), as that's not how the tests of smooths are computed. The details are in section 6.12 starting on p 304 of Simon's book (2nd edition), with section 6.12.1 covering the main points. This is all based on Simon's 2013 paper ([http://biomet.oxfordjournals.org/content/early/2012/10/18/biomet.ass048](http://biomet.oxfordjournals.org/content/early/2012/10/18/biomet.ass048)).
The EDF needed for this test is the one in the `Ref.df` column, which is available in the `$edf1` component of the the fitted model object (you'll need to sum the relevant values for each smooth in the model - but here you have only one).
The actual computation of the test statistic is done via `mgcv:::testStat()`, so you can look there for the gory computational details.
Finally, the p value is not something you look up in a standard F distribution - it involves mixtures of chi-square distributions if I follow Simon's book after a quick skim of the relevant section.
| null | CC BY-SA 4.0 | null | 2022-11-09T12:30:53.897 | 2022-11-09T12:30:53.897 | null | null | 429,846 | null |
74,376,186 | 2 | null | 74,375,949 | 0 | null | The `n` value is 0 initially, means that it i not initialized. That's why the `for(j=1; j<=n; j++)` loop cannot proceed. You must init the `n` value before that loop not in the `faktoriyel` function. So the main code should be like this:
```
int main()
{
int toplam = 0;
int y;
printf("n degerini giriniz : ");
scanf("%d", &n);
for(j=1; j<=n; j++)
{
y = (j + (n-j/faktoriyel(j)));
toplam+=y;
printf("%d toplamidir ", toplam);
}
}
```
| null | CC BY-SA 4.0 | null | 2022-11-09T14:06:47.943 | 2022-11-09T14:06:47.943 | null | null | 12,749,998 | null |
74,376,563 | 2 | null | 74,354,233 | 2 | null | I found a great way to do it, it creates a bunch of spheres in the area that is described by an if statement this is the code I am using for my simulation that creates the sphere with points on it.
```
def SOSE (radi, number_of_charges, height):
Charged_Sphere = sphere(pos=vector(0,height,0), radius=radi, color=vector(3.5, 3.5, 3.5), opacity=(0.2))
points_on_sphere = []
NCOS = number_of_charges
theta = 0
dtheta = 2*pi/NCOS
dr = radi/60
direcVector = vector(0, height, 0)
while theta<2*pi:
posvec1 = radi*vector(1-radi*random(),1-radi*random()/radi,1-radi*random())
posvec2 = radi*vector(1-radi*random(),-1+radi*random()/radi,1-radi*random())
if mag(posvec1)<radi and mag(posvec1)>(radi-dr):
posvec1 = posvec1+direcVector
points_on_sphere=points_on_sphere+[sphere(pos=posvec1,radius=radi/60,color=vector(1, 0, 0))]
theta=theta + dtheta
if mag(posvec2)<radi and mag(posvec2)>(radi-dr):
posvec2 = posvec2+direcVector
points_on_sphere=points_on_sphere+[sphere(pos=posvec2,radius=radi/60,color=vector(1, 0, 0))]
theta=theta + dtheta
```
This code can be edited to add more points and I have two if statements because I want to change the height at which the sphere is present, and if I have just one statement I only see half of the sphere. :)
| null | CC BY-SA 4.0 | null | 2022-11-09T14:32:45.197 | 2022-11-09T14:32:45.197 | null | null | 19,640,645 | null |
74,376,789 | 2 | null | 68,895,484 | 1 | null | The best solution I have found so far is to set the bottom padding for each screen individually.
I didn't use the padding in the scaffold content.
I used @SuppressLint("UnusedMaterialScaffoldPaddingParameter") to remove the warning for not using padding in the scaffold.
In all the screens where the bottom bar is visible, I used a bottom padding of 56 dp, which is the height of the Jetpack Compose bottom bar.
| null | CC BY-SA 4.0 | null | 2022-11-09T14:48:22.830 | 2022-11-09T14:48:22.830 | null | null | 15,496,813 | null |
74,376,944 | 2 | null | 60,377,534 | 0 | null | import this module:
import mplcursors as mpl
and add : mpl.cursor(hover=True)
in your def plot() function.
| null | CC BY-SA 4.0 | null | 2022-11-09T14:58:20.173 | 2022-11-09T14:58:20.173 | null | null | 20,460,284 | null |
74,377,443 | 2 | null | 74,337,780 | 1 | null | There are two problems here.
1. DIM_INFO is a vague table. If it's storing information about shows, then it should probably be called DIM_SHOW. My general rule of thumb here is that I should be able to ask ten knowledgeable people in the business what the "info" dimension is ... and if all ten can't give me a cogent answer, then a more descriptive table name is needed. Ergo, the suggestion about DIM_SHOW.
2. Show_ID appears to be a natural key from whatever the source system is for the show data. Natural keys should never be used to join facts to dimensions, as they are managed externally and are considered unreliable. DIM_SHOW should have its own surrogate key (ShowID?), which would be generated by the ETL process that loads the table. That surrogate key would then be used in the fact table.
| null | CC BY-SA 4.0 | null | 2022-11-09T15:31:10.893 | 2022-11-09T15:31:10.893 | null | null | 20,380,343 | null |
74,379,564 | 2 | null | 74,371,111 | 1 | null | You get the selected item with `TControlList.ItemIndex`.
One solution could be that you create a method that deletes the entry in your `fdmedcin` and re-set the `TControlList.ItemCount` again like in your example.
```
form1.ControlList1.ItemCount := fdmedcin.RecordCount;
```
I don't know your exact code but it could look like this:
```
procedure TForm1.Delete;
begin
dm.fdmedcin.RecNo := ControlList1.ItemIndex + 1; // seems like you add one in your OnBeforeDrawItem too
dm.fdmedcin.Delete;
ControlList1.ItemCount := fdmedcin.RecordCount;
end;
```
In other words: you have to match the `TControlList.ItemIndex` with your DataSet/whatever index.
I made a simple example with a `TList<T>` while `T` is an `integer`:
```
type
TForm2 = class(TForm)
BFill: TButton;
ControlList1: TControlList;
Label1: TLabel;
Panel1: TPanel;
BDelete: TButton;
MSQuery1: TMSQuery;
procedure BFillClick(Sender: TObject);
procedure ControlList1BeforeDrawItem(AIndex: Integer; ACanvas: TCanvas; ARect: TRect; AState: TOwnerDrawState);
procedure FormCreate(Sender: TObject);
procedure BDeleteClick(Sender: TObject);
procedure FormDestroy(Sender: TObject);
private
{ Private declarations }
FList: TList<integer>;
public
{ Public declarations }
end;
var
Form2: TForm2;
implementation
{$R *.dfm}
procedure TForm2.BDeleteClick(Sender: TObject);
begin
FList.Delete(ControlList1.ItemIndex);
ControlList1.ItemCount := FList.Count;
end;
procedure TForm2.BFillClick(Sender: TObject);
begin
ControlList1.ItemCount := FList.Count;
end;
procedure TForm2.ControlList1BeforeDrawItem(AIndex: Integer; ACanvas: TCanvas; ARect: TRect; AState: TOwnerDrawState);
begin
Label1.Caption := IntToStr(FList[AIndex]);
end;
procedure TForm2.FormCreate(Sender: TObject);
var
i: integer;
begin
FList := TList<integer>.Create;
for i := 0 to 9 do
FList.Add(i);
end;
procedure TForm2.FormDestroy(Sender: TObject);
begin
FList.Free;
end;
```
| null | CC BY-SA 4.0 | null | 2022-11-09T18:12:48.420 | 2022-11-09T18:33:51.517 | 2022-11-09T18:33:51.517 | 6,842,142 | 6,842,142 | null |
74,379,708 | 2 | null | 23,359,572 | 0 | null | I had rebased on master branch that had a new module addition.
and i had "offline mode" ON for gradle. turned it on and rebuilt the project.
it worked for me.
happy coding.
| null | CC BY-SA 4.0 | null | 2022-11-09T18:23:51.000 | 2022-11-09T18:23:51.000 | null | null | 11,038,217 | null |
74,380,052 | 2 | null | 65,575,001 | 0 | null | Image differentiation technique can be used to identify the registered area in the images by comparing it with base images. In this way, the different areas will be recognized.
| null | CC BY-SA 4.0 | null | 2022-11-09T18:58:09.557 | 2022-11-09T18:58:09.557 | null | null | 14,701,501 | null |
74,380,079 | 2 | null | 74,332,878 | 1 | null | As TTT pointed out,
GitHub does not allow one to approve their own PRs that they created, ever.
The setting for "" is most likely an additional check on top of that, for if someone pushed to a PR that they did not create/own.
So it seems there is no way to enable the functionality that I wanted.
| null | CC BY-SA 4.0 | null | 2022-11-09T19:00:03.823 | 2022-11-09T19:00:03.823 | null | null | 8,804,276 | null |
74,380,509 | 2 | null | 74,380,415 | 0 | null | It's not exactly the same, but setting:
```
height: calc(80vh - 50px);
```
Would give you largely the same output. Not exactly the same though.
| null | CC BY-SA 4.0 | null | 2022-11-09T19:40:35.647 | 2022-11-09T19:40:35.647 | null | null | 3,265,253 | null |
74,380,516 | 2 | null | 74,380,415 | 1 | null | When using percentage heights, you need a [defined height on the parent](https://stackoverflow.com/a/31728799/3597276).
Otherwise, the percentage you set has no reference ("80% of what?").
The parent does have `flex-grow: 1`, but that isn't a defined height, it's just a command to consume available space.
Since the app-bar has a fixed height (50px), the solution is actually simple:
Replace `flex-grow: 1` with `height: calc(100vh - 50px)`.
The `height: 80%` on `#main-card` will work now.
| null | CC BY-SA 4.0 | null | 2022-11-09T19:40:56.847 | 2022-11-09T19:40:56.847 | null | null | 3,597,276 | null |
74,380,528 | 2 | null | 74,380,415 | 0 | null | Simply add on your .main class `height: calc(100% - 50px);`
| null | CC BY-SA 4.0 | null | 2022-11-09T19:42:38.363 | 2022-11-09T19:42:38.363 | null | null | 16,501,128 | null |
74,382,320 | 2 | null | 73,942,237 | 0 | null | @jasonharper
rowspan is exactly what I needed thank you
```
tabControl.grid(column=0,row=0, rowspan=8, sticky='nesw')
```
| null | CC BY-SA 4.0 | null | 2022-11-09T22:59:34.773 | 2022-11-10T02:33:54.723 | 2022-11-10T02:33:54.723 | 5,317,403 | 18,695,091 | null |
74,383,633 | 2 | null | 17,159,668 | 1 | null | [As of matplotlib 2.1.0](https://matplotlib.org/stable/users/prev_whats_new/whats_new_2.1.0.html#enhancements-to-polar-plot), the functionality of the original answer is [now deprecated](https://github.com/matplotlib/matplotlib/issues/9744/) - polar axes now obey to the parameters of `ax.tick_params`:
```
ax.tick_params(pad=123)
```
should do the trick.
| null | CC BY-SA 4.0 | null | 2022-11-10T02:49:41.347 | 2022-11-10T05:40:48.053 | 2022-11-10T05:40:48.053 | 13,138,364 | 8,200,103 | null |
74,384,037 | 2 | null | 15,307,135 | 1 | null | Add a in the `thead` section of the table:
```
<thead class="stuckHead">
<tr>
<!-- ... -->
</tr>
</thead>
```
And then in the CSS, add this:
```
.stuckHead {
position: sticky;
top: 0;
}
```
: Tested on dynamic tables.
| null | CC BY-SA 4.0 | null | 2022-11-10T04:11:02.757 | 2022-11-10T04:11:02.757 | null | null | 18,916,973 | null |
74,384,228 | 2 | null | 74,384,076 | 1 | null | This condition always returns 'false' because there is no overlap in the types '7' and '10'.
you should do like this.
```
<template>
<div class="css-treeview">
<template v-for="item in treelist" :key="item">
<ul>
<li v-if="item.t.length === 7">
<input type="checkbox" id="item-0" /><label for="item-0">{{ item.mAcName }} --- {{ item.mName }}</label>
<ul>
<template v-for="item2 in treelist" :key="item2">
<li v-if="item2.t.length === 10">
<input type="checkbox" id="item-0-0" />
<label for="item-0-0">{{ item2.mAcName }} --- {{ item2.mName }}</label>
</li>
</template>
</ul>
</li>
</ul>
</template>
</div>
</template>
```
| null | CC BY-SA 4.0 | null | 2022-11-10T04:41:09.850 | 2022-11-10T04:41:09.850 | null | null | 20,417,954 | null |
74,384,936 | 2 | null | 74,373,121 | 0 | null | The Publish Wizard is usually the first time you publish a project and will guide you to publish the project to the specified location.
[](https://i.stack.imgur.com/JFQs7.png)
After completing the Publish Wizard, you will find Publish Settings in the Publish view and configure it. Hope it can help you
[](https://i.stack.imgur.com/cGu3g.png)
| null | CC BY-SA 4.0 | null | 2022-11-10T06:26:49.303 | 2022-11-10T06:26:49.303 | null | null | 19,849,709 | null |
74,385,000 | 2 | null | 28,385,172 | 5 | null | Run 'app' button disable issue coming sometimes in Android Studio Dolphin
[](https://i.stack.imgur.com/WUeeG.png)
Sync your project with gradle files
[](https://i.stack.imgur.com/GFIsp.png)
| null | CC BY-SA 4.0 | null | 2022-11-10T06:36:21.303 | 2022-11-10T06:36:21.303 | null | null | 1,352,919 | null |
74,385,053 | 2 | null | 74,384,076 | 0 | null | As stated in @O-h-y-0 answer, the problem with your code is that the "if" clause is overlapping.
The "if" clause checking for length 10 will never be executed since it is wrapped with an "if" clause limiting for length 7.
But the problem with his answer is that the second loop will execute in every parent so that it will appear duplicated.
My advice is to create a computed variable, where inside it you regroup the item with with length 7 as a parent and move the item with length 10 as the children. For example, I have this simple data.
```
<template>
<div>
<ul>
<li v-for="item in treeGrouped">
{{item.value}}
<ul>
<li v-for="child in item.children">
{{child}}
</li>
</ul>
</li>
</ul>
</div>
</template>
<script>
export default {
data() {
return {
treelist: [
'aaaaabb',
'aaaaabbbbb',
'aaaaabb',
'aaaaabbbbb',
'aaaaabbbbb',
'aaaaabb',
'aaaaabb',
'aaaaabbbbb',
'aaaaabbbbb',
'aaaaabbbbb',
'aaaaabb',
]
}
},
computed: {
treeGrouped() {
const result = []
this.treelist.forEach((item)=>{
if (item.length === 7) {
result.push({
value: item,
children: [],
})
} else if (item.length === 10) {
if (result.length) {
result[result.length-1].children.push(item)
}
}
})
return result;
}
}
}
</script>
```
This logic on computed only apply to that simple data I make, because it too long to replicate your data since you only provide example data as an image. But if you understand what I mean, I'm pretty sure you can improve it to your needs.
Edit:
For reference, those logic on computed will give you something like this.
```
[
{
"value": "aaaaabb",
"children": [
"aaaaabbbbb"
]
},
{
"value": "aaaaabb",
"children": [
"aaaaabbbbb",
"aaaaabbbbb"
]
},
{
"value": "aaaaabb",
"children": []
},
{
"value": "aaaaabb",
"children": [
"aaaaabbbbb",
"aaaaabbbbb",
"aaaaabbbbb"
]
},
{
"value": "aaaaabb",
"children": []
}
]
```
| null | CC BY-SA 4.0 | null | 2022-11-10T06:42:16.403 | 2022-11-10T06:49:35.917 | 2022-11-10T06:49:35.917 | 9,515,988 | 9,515,988 | null |
74,385,107 | 2 | null | 74,382,760 | 0 | null | Adapting my answer on [this post](https://stackoverflow.com/a/70748695/12993861) to your case you could achieve your desired result using a custom key glyph like so:
1. Basically this involves mapping ThresholdVal on the fill aes in geom_hline. Doing so will add the items to the fill legend too.
2. Create a color palette which could be used for both the fill and the color scale and which takes care of the right order of the items.
3. Write custom key glyph function which conditional on the color value switches between the key glyph used for bars and the one used for geom_hline
4. Remove the color legend.
5. Use theme options to get a border around all legend keys including the ones for the hlines.
```
library(ggplot2)
nclass <- nlevels(factor(testdf$cat))
pal <- c(scales::hue_pal()(nclass), "red", "black")
names(pal) <- c(levels(factor(testdf$cat)), "high", "low")
draw_key_cust <- function(data, params, size) {
if (data$fill %in% c("red", "black")) {
data$colour <- data$fill
data$fill <- NA
draw_key_path(data, params, size)
} else {
GeomCol$draw_key(data, params, size)
}
}
ggplot(testdf, aes(x = mon, y = y, fill = cat)) +
geom_bar(stat = "identity", key_glyph = "cust") +
geom_hline(data = thresholds, aes(yintercept = ThresholdVal, colour = ThresholdNm, fill = ThresholdNm)) +
scale_fill_manual(values = pal, aesthetics = c("fill", "color")) +
theme(legend.position = "bottom", legend.title = element_blank(),
legend.key = element_rect(linewidth = .25 * .pt, color = "white")) +
guides(fill = guide_legend(nrow = 3, byrow = FALSE, order = 1), colour = "none")
#> Warning in geom_hline(data = thresholds, aes(yintercept = ThresholdVal, :
#> Ignoring unknown aesthetics: fill
```

| null | CC BY-SA 4.0 | null | 2022-11-10T06:48:30.640 | 2022-11-10T06:48:30.640 | null | null | 12,993,861 | null |
74,385,705 | 2 | null | 74,385,639 | 2 | null | can you try this:
```
df=pd.json_normalize(Test_data)
print(df)
'''
archived archived_at associations created_at id properties_with_history updated_at properties.createdate properties.email properties.firstname
0 False None None 2020-10-30T08:03:54.190Z 12345 2022-11-10T06:44:14.500Z [![2020-10-30T08:03:54.190Z][1]][1] [email protected] TestFirst
'''
```
if you want to specific columns:
```
df = df[['id','properties.createdate','properties.email','properties.firstname','properties.lastname']]
df.columns = df.columns.str.replace('properties.', '')
df
id createdate email firstname lastname
0 12345 [![2020-10-30T08:03:54.190Z][1]][1] [email protected] TestFirst TestLast
```
if you want convert column to datetime:
```
import datefinder
df['createdate']=df['createdate'].apply(lambda x: list(datefinder.find_dates(x))[0])
df
id createdate email firstname lastname
0 12345 2020-10-30 08:03:54.190000+00:00 [email protected] TestFirst TestLast
```
| null | CC BY-SA 4.0 | null | 2022-11-10T07:52:03.483 | 2022-11-10T09:17:20.263 | 2022-11-10T09:17:20.263 | 15,415,267 | 15,415,267 | null |
74,386,017 | 2 | null | 74,372,645 | 0 | null | lemme see ur code...
this code related to the matter of object inheritance but the header/source control. use
```
//directly without using such useless shadow declarations
m_menuFormat = new QMenu(this);
m_menuFormat->setTitle('format');
m_menuBar->addMenu(m_menuFormat);
```
instead of
```
//go ahead with python or java but don't trouble cpp
MenuFormat m_menuFormat;
//unless u want to see 15:49:26: /Users/Scott/Documents/test/test.app/Contents/MacOS/test crashed.
m_menuFormat = ...;
...;
```
while it's a must to make sure that m_menuFormat appears in the list of the header file.
take it easy.
| null | CC BY-SA 4.0 | null | 2022-11-10T08:22:51.697 | 2022-11-10T08:22:51.697 | null | null | 19,231,606 | null |
74,386,249 | 2 | null | 30,656,501 | 0 | null | ```
func updateCharacterCount() {
let count = DescriptionTextview.text.count
descountlabel.text = "\((0) + count)/140"
}
extension DescriptionCollectionViewCell: UITextViewDelegate{
func textViewDidChange(_ textView: UITextView) {
descountlabel.becomeFirstResponder()
self.updateCharacterCount()
}
func textView(_ textView: UITextView, shouldChangeTextIn range: NSRange, replacementText text: String) -> Bool{
let generator = UINotificationFeedbackGenerator()
let count = textView.text.count + (text.count - range.length)
if count <= 140 {
return true
}else{
generator.notificationOccurred(.error)
return false
}
}
}
```
| null | CC BY-SA 4.0 | null | 2022-11-10T08:45:27.497 | 2022-11-10T08:45:27.497 | null | null | 20,466,629 | null |
74,386,481 | 2 | null | 74,385,639 | 0 | null | There is a partial solution.....Maybe selecting or doing an unpivot dataframe this approach could be useful...
```
import pandas as pd
import datetime
import json
import jsonpickle
test_data ={'archived': False,
'archived_at': None,
'associations': None,
'created_at': datetime.datetime(2020, 10, 30, 8, 3, 54, 190000),
'id': '12345',
'properties': {'createdate': '[![2020-10-30T08:03:54.190Z][1]][1]',
'email': '[email protected]',
'firstname': 'TestFirst',
'lastname': 'TestLast'},
'properties_with_history': None,
'updated_at': datetime.datetime(2022, 11, 10, 6, 44, 14, 5000)}
data = jsonpickle.encode(test_data, unpicklable=False)
pd.read_json(data)
```
[](https://i.stack.imgur.com/1Fyb6.png)
I have tried with melt and unstack but I didn't reach your prefered output...
| null | CC BY-SA 4.0 | null | 2022-11-10T09:05:23.990 | 2022-11-15T23:46:56.463 | 2022-11-15T23:46:56.463 | 1,839,439 | 13,603,339 | null |
74,386,988 | 2 | null | 74,382,025 | 1 | null | Given your environment (which I'm not accustomed to) I'm not sure how much space for development you got, but anyways you could use a bit of CSS and a small JavaScript that gets the clicked cell index, and targets the next row's TD (with the same index) and sets `colspan` to i.e: `4` and toggles its `display` property:
```
const toggleRow = (ev) => {
const elClickedTD = ev.target.closest("td");
const indexTD = elClickedTD.cellIndex;
const elNextTr = ev.currentTarget.nextElementSibling;
elNextTr.querySelectorAll("td").forEach((elTD, idx) => {
elTD.style.display = idx === indexTD ? "table-cell" : "none";
elTD.setAttribute("colspan", 4);
});
};
document.querySelectorAll(".table-expand tbody tr:nth-child(odd)").forEach(elTr => {
elTr.addEventListener("click", toggleRow);
});
```
```
body {
font: 1rem/1.3 sans-serif;
}
.table-expand {
border-collapse: collapse;
border-spacing: none;
table-layout: fixed;
width: 100%;
}
.table-expand th {
background: #305496;
color: #fff;
}
.table-expand td,
.table-expand th {
border: 1px solid #ddd;
padding: 0.5rem 1rem;
}
.table-expand tbody tr:nth-child(even) td {
background: #eee;
display: none;
text-align: center;
}
```
```
<table class="table-expand">
<thead>
<tr>
<th>Database</th>
<th>Stage</th>
<th>Aux</th>
<th>Core</th>
</tr>
</thead>
<tbody>
<tr>
<td>iud_1</td>
<td>OK</td>
<td>In progress</td>
<td>Not started</td>
</tr>
<tr>
<td>1Database desc...</td>
<td>1Stage desc...</td>
<td>1Aux desc...</td>
<td>1Core desc...</td>
</tr>
<tr>
<td>iud_1</td>
<td>OK</td>
<td>OK</td>
<td>Error</td>
</tr>
<tr>
<td>2Database desc...</td>
<td>2Stage desc...</td>
<td>2Aux desc...</td>
<td>2Core desc...</td>
</tr>
<tr>
<td>iud_1</td>
<td>OK</td>
<td>OK</td>
<td>OK</td>
</tr>
<tr>
<td>3Database desc...</td>
<td>3Stage desc...</td>
<td>3Aux desc...</td>
<td>3Core desc...</td>
</tr>
</tbody>
</table>
```
To toggle the colspans, I would advise using `.classList` to modify a `.is-active` class on a clicked `TD` and use a [MutationObserver](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver) to handle the rest, like toggling a `.is-collapsed` to the next row's cell:
```
const expandObserver = new MutationObserver((mutations) => {
mutations.forEach(mut => {
const elTD = mut.target;
const elTR = elTD.closest("tr");
const indexTD = elTD.cellIndex;
const elNextTR = elTR.nextElementSibling;
const elNextTD = elNextTR.querySelectorAll("td")[indexTD];
const isActive = elTD.classList.contains("is-active");
elNextTD.setAttribute("colspan", 4);
elNextTD.classList.toggle("is-expanded", isActive);
});
});
document.querySelectorAll(".table-expand tbody tr:nth-child(odd) td").forEach(elTD => {
expandObserver.observe(elTD, {
attributes: true,
attributeFilter: ["class"],
});
elTD.addEventListener("pointerdown", () => {
const elTDCurrentActive = elTD.closest(".table-expand").querySelector("td.is-active");
if (elTDCurrentActive && elTD !== elTDCurrentActive) {
elTDCurrentActive.classList.remove("is-active");
}
elTD.classList.toggle("is-active");
});
});
```
```
body {
font: 1rem/1.3 sans-serif;
}
.table-expand {
border-collapse: collapse;
border-spacing: none;
table-layout: fixed;
width: 100%;
}
.table-expand th {
background: #305496;
color: #fff;
}
.table-expand td,
.table-expand th {
border: 1px solid #ddd;
padding: 0.5rem 1rem;
}
.table-expand tbody tr:nth-child(even) td {
display: none;
background: #eee;
text-align: center;
}
.table-expand tbody tr:nth-child(even) td.is-expanded {
display: table-cell;
}
.table-expand td.is-active {
background: #eee;
}
```
```
<table class="table-expand">
<thead>
<tr>
<th>Database</th>
<th>Stage</th>
<th>Aux</th>
<th>Core</th>
</tr>
</thead>
<tbody>
<tr>
<td>iud_1</td>
<td>OK</td>
<td>In progress</td>
<td>Not started</td>
</tr>
<tr>
<td>1Database desc...</td>
<td>1Stage desc...</td>
<td>1Aux desc...</td>
<td>1Core desc...</td>
</tr>
<tr>
<td>iud_1</td>
<td>OK</td>
<td>OK</td>
<td>Error</td>
</tr>
<tr>
<td>2Database desc...</td>
<td>2Stage desc...</td>
<td>2Aux desc...</td>
<td>2Core desc...</td>
</tr>
<tr>
<td>iud_1</td>
<td>OK</td>
<td>OK</td>
<td>OK</td>
</tr>
<tr>
<td>3Database desc...</td>
<td>3Stage desc...</td>
<td>3Aux desc...</td>
<td>3Core desc...</td>
</tr>
</tbody>
</table>
```
| null | CC BY-SA 4.0 | null | 2022-11-10T09:45:02.003 | 2022-11-10T22:38:05.300 | 2022-11-10T22:38:05.300 | 383,904 | 383,904 | null |
74,387,405 | 2 | null | 74,371,457 | 0 | null | this is the demo on `regex101` to find the group between `./` & `.png` → [https://regex101.com/r/gMgc6r/1](https://regex101.com/r/gMgc6r/1)
: i enabled the search in each file, not the sidebar & ticked the `.*` button that says `use regular expression`
then i typed the following:
```
find: !\[\]\(.\/(.*).png\)
replace: 
```
this converts:
```

```
to
```

```
this finds the string between each bracket `[` & `]` → [https://regex101.com/r/Ke89CK/1](https://regex101.com/r/Ke89CK/1) but i couldn't figure out how to use it in vscode.
i have to convert `[a-filename]` by replacing `-` with empty spaces.
```
find: ?
replace: ?
```
| null | CC BY-SA 4.0 | null | 2022-11-10T10:22:14.640 | 2022-11-10T10:22:14.640 | null | null | 6,141,587 | null |
74,389,197 | 2 | null | 74,388,920 | 0 | null | the query parameters can be string, string[] or undefined ... to make this work, you'll have to do something like `new Date(startDate as string)`
```
const formattedEndDate = format(new Date(endDate as string), "dd MMMM yy")
```
| null | CC BY-SA 4.0 | null | 2022-11-10T12:41:59.063 | 2022-11-15T09:24:30.830 | 2022-11-15T09:24:30.830 | 17,298,437 | 15,124,180 | null |
74,389,227 | 2 | null | 74,389,101 | 0 | null | To create a pandas dataframe from the `allTyres` data you can do (from the DataFrame you can select columns you want, save it to CSV etc..):
```
import re
import json
import requests
import pandas as pd
url = "http://www.dexel.co.uk/shopping/tyre-results?width=205&profile=55&rim=16&speed="
data = json.loads(
re.search(r"allTyres = (.*);", requests.get(url).text).group(1)
)
# uncomment to print all data:
# print(json.dumps(data, indent=4))
df = pd.DataFrame(data)
print(df.head())
```
Prints:
```
id ManufacturerID width profile rim speed load description part_no pattern manufacturer extra_load run_flat winter summer OEList price tyre_class rolling_resistance wet_grip Graphic noise_db noise_rating info pattern_name recommended rating
0 1881920 647 205 55 16 V 91 205/55VR16 BUDGET VR 2055516VBUD Economy N N 0 1 53.20 C1 G F BUD 73 3 0 1
1 3901788 647 205 55 16 H 91 205/55R16 BUDGET 91H 2055516HBUD Economy N N 0 1 53.20 C1 G F BUD 73 3 0 1
2 1881957 647 205 55 16 W 91 205/55ZR16 BUDGET ZR 2055516ZBUD Economy N N 0 1 53.54 C1 G F BUD 73 3 0 1
3 6022423 129 205 55 16 H 91 205/55R16 91H UROYAL RAINSPORT 5 2055516HUN09BGS RainSport 5 Uniroyal N N 0 1 70.46 C1 C A UNIRSP5 71 2 <p>The NEW RainSport 5 combines best-in-class wet performance, enhanced mileage, and superior steering control for maximum driving pleasure.</p>\n<ul>\n <li>Safe driving even in the most challenging wet conditions</li>\n <li>Extended tyre life for a long journey</li>\n <li>Excellent control and steering response for maximum driving pleasure.</li>\n</ul> RainSport 5 0 4
4 6022424 129 205 55 16 V 91 205/55R16 91V UROYAL RAINSPORT 5 2055516VUN09BGR RainSport 5 Uniroyal N N 0 1 70.81 C1 C A UNIRSP5 71 2 <p>The NEW RainSport 5 combines best-in-class wet performance, enhanced mileage, and superior steering control for maximum driving pleasure.</p>\n<ul>\n <li>Safe driving even in the most challenging wet conditions</li>\n <li>Extended tyre life for a long journey</li>\n <li>Excellent control and steering response for maximum driving pleasure.</li>\n</ul> RainSport 5 0 4
```
| null | CC BY-SA 4.0 | null | 2022-11-10T12:45:11.283 | 2022-11-10T12:45:11.283 | null | null | 10,035,985 | null |
74,389,475 | 2 | null | 25,145,045 | 0 | null | I did something like that with RN:
1. Open Figma and draw a path like this number 5 (it must be only a line)
```
<svg width="52" height="65" viewBox="0 0 52 65" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M52 1C52 1 32 1.00002 25.5 3.00006C19 5.0001 16.5 17.5 16.5 17.5C13.886 26.9226 29.1811 32.3091 36 41C42 48 29 65 16.5 63.5C8.65327 61.8949 5.49592 59.4015 1 53.5" stroke="#FF0000"/>
</svg>
```
1. Get the points and the angles with the library svg-path-properties to get the length and all the point of the line (x,y)
2. Draw the SVG in the screen. Draw a touchable point. If the user move that point you need to calculate the current position with the array of points (x,y)[] if it match, you can draw the percent of the line that the user moved with his/her finger.
In order to do it I used [strokeDashoffset](https://codepen.io/chriscoyier/pen/DwVLpj):
```
import Svg, { Path } from 'react-native-svg';
const PathAnimated = Animated.createAnimatedComponent(Path);
strokeDashoffset={animationsValue[index].strokeLenght}
strokeDasharray={`${pathData[index].length}, ${pathData[index].length}`}
```
I don't know if someone has a better approach. I figured out this solution.
| null | CC BY-SA 4.0 | null | 2022-11-10T13:04:52.633 | 2022-11-10T13:04:52.633 | null | null | 6,637,520 | null |
74,389,712 | 2 | null | 14,142,378 | 0 | null |
!
```
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
body {
margin: 0;
overflow: hidden;
width: 100vw;
height: 100vh;
background-color: #000;
}
#container{
position: absolute;
top: 0px;
width: 100vw;
height: 100vh;
text-align: center;
}
#my_img{
height: 100%;
width: auto;
}
</style>
</head>
<body>
<div id="container">
<img src="images/filename.jpg" id="my_img">
</div>
<script type="text/javascript">
window.onload = function () {
imgElem = document.getElementById('my_img');
if (imgElem.width > document.body.scrollWidth) {
// image is larger than container >> adjust by width and center
imgElem.style.height = 'auto';
imgElem.style.width = '100%';
imgElem.style.position = 'relative';
imgElem.style.transform = 'translateY(-50%)';
imgElem.style.top = '50%';
}
}
</script>
</body>
</html>
```
| null | CC BY-SA 4.0 | null | 2022-11-10T13:20:50.237 | 2022-11-10T13:20:50.237 | null | null | 5,129,122 | null |
74,389,911 | 2 | null | 70,407,070 | 0 | null | Hy, try that in vba
Sub SCUT ()
Selection.Cut Destination:=Sheets("Other_sheet").Range("A1")
End sub
| null | CC BY-SA 4.0 | null | 2022-11-10T13:34:22.997 | 2022-11-10T13:34:22.997 | null | null | 20,469,010 | null |
74,389,983 | 2 | null | 63,058,941 | 0 | null | Select your storyboard > Right Click > Open As > Source code > Search for this key "minToolsVersion" from there you need to decrease your version as per your xcode.
[](https://i.stack.imgur.com/Dv5Xn.jpg)
| null | CC BY-SA 4.0 | null | 2022-11-10T13:40:01.427 | 2022-11-10T13:40:01.427 | null | null | 9,799,751 | null |
74,389,987 | 2 | null | 21,384,040 | 2 | null | Additionally to what Shahbaz mentioned, I realized that pressing enter (thus sending an empty command) can fix the problem. This is usually necessary after using to cancel a command.
| null | CC BY-SA 4.0 | null | 2022-11-10T13:40:14.233 | 2022-11-10T13:40:14.233 | null | null | 2,374,190 | null |
74,390,639 | 2 | null | 74,033,631 | 0 | null | Correction to the last assignment of values_list[] to include -1 instead of 1.
```
def swap (values_list):
temp0 = values_list[0]
temp1 = values_list[-1]
values_list[0] = temp1
values_list[-1] = temp0
return values_list
```
| null | CC BY-SA 4.0 | null | 2022-11-10T14:27:16.540 | 2022-11-10T14:27:16.540 | null | null | 20,469,486 | null |
74,390,940 | 2 | null | 72,811,117 | 0 | null | Just to close this issue, not that it solved my problem, but I went down a rabbit hole and the only explanation I could find for my specific error was that there is a bug in Ghostscript when compressing pdfs that contain vector images or pdf images, not clear which.
I have given up on using Ghostscript at the moment.
| null | CC BY-SA 4.0 | null | 2022-11-10T14:51:09.570 | 2022-11-10T14:51:09.570 | null | null | 17,133,457 | null |
74,391,227 | 2 | null | 28,963,311 | 0 | null | The described problem can also be solved with a dynamic array solution in newer versions of excel (Office365).
An example for a possible solution could look like this:
[](https://i.stack.imgur.com/x7DdW.png)
which uses the following formula for the sets 2-5:
```
=LET(
rows,$B$5:$B$17,
vals,$C$5:$C$17,
excl,$F$5:F$15,
rows_filt,OFFSET(rows,COUNT(excl),0,COUNT(rows)-COUNT(excl)),
vals_filt,OFFSET(vals,COUNT(excl),0,COUNT(rows)-COUNT(excl)),
cumsum,MMULT(N(ROW(vals_filt)>=TRANSPOSE(ROW(vals_filt))),vals_filt),
FILTER(rows_filt,cumsum<=20)
)
```
but to avoid reference to itself, the formula for set 1 is:
```
=LET(
rows,$B$5:$B$17,
vals,$C$5:$C$17,
cumsum,MMULT(N(ROW(vals)>=TRANSPOSE(ROW(vals))),vals),
FILTER(rows,cumsum<=20)
)
```
(also shown in the screenshot [here](https://i.stack.imgur.com/tNu9H.png))
| null | CC BY-SA 4.0 | null | 2022-11-10T15:12:12.853 | 2022-11-10T15:12:12.853 | null | null | 17,158,703 | null |
74,391,764 | 2 | null | 53,427,069 | 0 | null | In my case the error was that I had imported the project in IntelliJ as an Eclipse project instead of a Maven project.
Then it worked fine.
| null | CC BY-SA 4.0 | null | 2022-11-10T15:48:33.237 | 2022-11-10T15:48:33.237 | null | null | 10,165,996 | null |
74,391,813 | 2 | null | 57,517,803 | 0 | null | Try putting the attributes (navigation title, toolbar, etc) outside of the Navigation View. Like so:
```
NavigationView {
}
.navigationTitle("Detail News")
.toolbarColorScheme(.dark, for: .navigationBar)
.toolbarBackground(Color.gray, for: .navigationBar)
.toolbarBackground(.visible, for: .navigationBar)
.accentColor(.white)
```
| null | CC BY-SA 4.0 | null | 2022-11-10T15:52:14.333 | 2022-11-10T15:52:14.333 | null | null | 19,112,748 | null |
74,392,157 | 2 | null | 74,391,414 | 1 | null | This is a non-trivial quetion.
Looking at the graphs of syetem performance, you can see that there are a few CPU spikes where CPU usage gets quite high, but they are breif spikes. The overall CPU usage isn't bad, outside of the brief spikes.
So, first, I'd look at the code. How does it work? Are there obvious places where the CPU may spike?
Without seeing the code or even knowing what language it's in, there's not much can do to help,
| null | CC BY-SA 4.0 | null | 2022-11-10T16:18:31.633 | 2022-11-10T16:18:31.633 | null | null | 980,549 | null |
74,392,288 | 2 | null | 66,170,232 | 1 | null | I recently had a similar problem where I wanted to bulk import components from a directory where I didn't know the names of the files ahead of time. This is because we have different components in different environments.
Using Vite allows you to do [glob imports](https://vitejs.dev/guide/features.html#glob-import), so I combined this with the vue3 "defineAsyncComponent" as you can see in @Oleksii-Zelenko answer.
Doing it this way, you can avoid the global registration problem mentioned in other answers.
The following snippet is how I solved the problem:
```
<script setup lang="ts">
// Any typical vue3 setup code can go here
defineProps({
myProp: {
type: Object,
default() {
return {};
},
},
});
</script>
<script lang="ts">
import { defineAsyncComponent, defineComponent } from "vue"
const widgets = import.meta.glob('./widgets/*.vue', { import: 'default' });
const components = {};
Object.keys(widgets).forEach((k) => {
// convert the file name to a friendlier format
const [fileName] = k.split('/').reverse()
const [componentName] = fileName.split('.');
// assign the async component to the friendlier name
components[componentName] = defineAsyncComponent(widgets[k]);
});
export default defineComponent({
components
});
</script>
<template>
<component
v-for="component in components"
:is="component"
:some-prop="myProp"
/>
</template>
```
| null | CC BY-SA 4.0 | null | 2022-11-10T16:28:01.160 | 2022-11-10T17:13:11.993 | 2022-11-10T17:13:11.993 | 10,023,508 | 10,023,508 | null |
74,392,677 | 2 | null | 74,392,474 | 2 | null | Try changing the string name like this:
```
fontFamily: {
arial: ["Arial"],
}
```
And then you can call it using the className `"font-arial"`
Also, if still not working, you need to place your fontFamily outside of the "extend" property in talwind.config file, so it can load by default.
| null | CC BY-SA 4.0 | null | 2022-11-10T16:56:38.943 | 2022-11-10T17:00:51.883 | 2022-11-10T17:00:51.883 | 14,464,501 | 14,464,501 | null |
74,392,671 | 2 | null | 74,371,457 | 1 | null | Here is how to do it with an extension, [Find and Transform](https://marketplace.visualstudio.com/items?itemName=ArturoDent.find-and-transform&ssr=false#overview), that can run two find and replaces in a row. Install the extension and then make this keybinding (in your `keybindings.json`):
```
{
"key": "alt+m",
"command": "findInCurrentFile",
"args": {
"find": [
"(!\\[\\])\\((\\.\\/)?(.*)(\\.(png|jpg|gif)\\))",
"(?<=!\\[.*)(-)(?=.*\\])"
],
"replace": [" into the `![]`.
The second find matches just the `-` in that `![asdasd-asdasd-asdasd]` and replaces those `-` with `" "` i.e., one space.
[](https://i.stack.imgur.com/bxyUD.gif)
| null | CC BY-SA 4.0 | null | 2022-11-10T16:56:12.087 | 2022-11-10T17:10:19.080 | 2022-11-10T17:10:19.080 | 836,330 | 836,330 | null |
74,394,299 | 2 | null | 74,390,888 | 0 | null | one thing that is wrong with your code, which is all i can help you with is that
you should do
```
if(Boolean_mcDonalds == false)
```
note that i used "==" instead of "="
maybe that will help... the rest is unknown
also you might probably do else if
```
if(something){
}else if(something else){
}
```
| null | CC BY-SA 4.0 | null | 2022-11-10T19:21:24.220 | 2022-11-10T19:34:42.353 | 2022-11-10T19:34:42.353 | 3,438,111 | 3,438,111 | null |
74,395,060 | 2 | null | 74,227,484 | 0 | null | There is no answer. It is no other UIs available that show more DAGs.
| null | CC BY-SA 4.0 | null | 2022-11-10T20:36:36.173 | 2022-11-10T20:36:36.173 | null | null | 869,809 | null |
74,395,237 | 2 | null | 74,394,802 | 0 | null | Suppose we have the data frame df1 shown in the Note at the end which has a `values` column with 22 * 31 = 682 rows, one for each of the 31 dates in January for each of the 22 years from 2000 to 2021.
Then convert to ts with frequency 31 and plot.
```
tt <- ts(df1$values, start = 2000, freq = 31)
plot(tt)
```
or to use ggplot2
```
library(ggplot2)
library(zoo)
z <- as.zoo(tt)
autoplot(z)
```
[](https://i.stack.imgur.com/aKVpz.png)
## Note
```
set.seed(123)
date <- seq(as.Date("2000-01-01"), as.Date("2021-12-31"), 1)
values <- seq_along(date)
df1 <- subset(data.frame(date, values), months(date) == "January")
```
| null | CC BY-SA 4.0 | null | 2022-11-10T21:00:09.027 | 2022-11-10T21:12:16.023 | 2022-11-10T21:12:16.023 | 516,548 | 516,548 | null |
74,395,773 | 2 | null | 18,545,208 | 0 | null | if you are working with one version delete the file
```
C:\Users\user_name\AppData\Roaming\NetBeans\netbeans_version
```
if have other version in this case me be your ide import setting from other version you should delete all version in the directory
```
C:\Users\user_name\AppData\Roaming\NetBeans
```
[](https://i.stack.imgur.com/54x0i.png)
| null | CC BY-SA 4.0 | null | 2022-11-10T21:59:52.283 | 2022-11-10T21:59:52.283 | null | null | 11,878,891 | null |
74,396,428 | 2 | null | 74,395,981 | 0 | null | Assuming:
- - -
This should solve your problem:
```
new_file['Date'] = new_file['Date'].str.replace(r'(\d\d),(\d\d),(\d\d)', r'19\3-\2-\1', regex=True)
```
If you want to just keep it in the file and not do any date operations, you don't really need to import anything from datetime.
I hope that helps.
| null | CC BY-SA 4.0 | null | 2022-11-10T23:24:39.723 | 2022-11-10T23:24:39.723 | null | null | 17,995,694 | null |
74,396,444 | 2 | null | 47,039,979 | 0 | null | You can achieve exactly what you want just in CSS by using explicit column placement and automatic dense row placement:
```
let list = document.getElementById("list");
for (var i = 1; i <= 100; i++) {
let element = document.createElement("div");
element.className = "item";
element.textContent = i;
list.appendChild(element);
}
```
```
@supports (display: grid) {
.list {
width: 80%;
margin: 0 auto;
display: grid;
grid-gap: 25px;
grid-template-columns: repeat(4, 1fr);
grid-template-areas:
"bigLeft bigLeft right1 right2"
"bigLeft bigLeft bigRight bigRight"
"left1 left2 bigRight bigRight";
grid-auto-flow: row dense;
}
.item {
min-height: 200px;
}
.item:nth-of-type(6n + 6),
.item:nth-of-type(6n + 1) {
min-height: 400px;
}
.item:nth-of-type(6n + 1) {
grid-area: auto / bigLeft / span 2;
background: red;
}
.item:nth-of-type(6n + 2) {
grid-area: auto / right1;
background: gray;
}
.item:nth-of-type(6n + 3) {
grid-area: auto / right2;
background: yellow;
}
.item:nth-of-type(6n + 4) {
grid-area: auto / left1;
background: blue;
}
.item:nth-of-type(6n + 5) {
grid-area: auto / left2;
background: lightgray;
}
.item:nth-of-type(6n + 6) {
grid-area: auto / bigRight / span 2;
background: purple;
}
}
```
```
<div class="list" id="list">
</div>
```
The areas are not actually repeating here. The areas are creating implicit named lines, suffixed with `-start` and `-end`. `grid-area: auto / bigLeft / span 2` is shorthand for `grid-row: auto / span 2; grid-column: bigLeft`. `grid-column: bigLeft` will find the implicit named lines `bigLeft-start` and `bigLeft-end` and use those for the column start and end. So we are not really using the areas per se. We could just as easily have used line numbers and left out `grid-template-areas` altogether.
---
Now to answer the title of repeating grid-template-areas:
Grid areas cannot repeat but you can repeat named lines and get a similar effect. Repeating rows requires either a fixed number of repeats or a definite height on the grid container which is not really that useful in this case (I am assuming the list has a variable number of items in it).
For example:
```
let list = document.getElementById("list");
for (var i = 0; i < 60; i++) {
let element = document.createElement("div");
element.className = "item";
element.textContent = i + 1;
let area;
switch (i % 6) {
case 0:
area = "bigLeft";
break;
case 1:
area = "right1";
break;
case 2:
area = "right2";
break;
case 3:
area = "left1";
break;
case 4:
area = "left2";
break;
case 5:
area = "bigRight";
break;
}
let num = Math.floor(i / 6) + 1;
element.style = `grid-row: ${num} ${area}-start / ${num} ${area}-end`;
list.appendChild(element);
}
```
```
@supports (display: grid) {
.list {
width: 80%;
margin: 0 auto;
display: grid;
grid-gap: 25px;
grid-template-columns: [bigLeft-start left1-start] 1fr [left1-end left2-start] 1fr [bigLeft-end left2-end right1-start bigRight-start] 1fr [right1-end right2-start] 1fr [right2-end bigRight-end];
grid-template-rows: repeat(10, [bigLeft-start right1-start right2-start] minmax(200px, 1fr) [right1-end right2-end bigRight-start] minmax(200px, 1fr) [bigLeft-end left1-start left2-start] minmax(200px, 1fr) [left1-end left2-end bigRight-end]);
}
.item {
min-height: 200px;
}
.item:nth-of-type(6n+6),
.item:nth-of-type(6n+1) {
min-height: 400px;
}
.item:nth-of-type(6n+1) {
grid-column: bigLeft;
background: red;
}
.item:nth-of-type(6n+2) {
grid-column: right1;
background: gray;
}
.item:nth-of-type(6n+3) {
grid-column: right2;
background: yellow;
}
.item:nth-of-type(6n+4) {
grid-column: left1;
background: blue;
}
.item:nth-of-type(6n+5) {
grid-column: left2;
background: lightgray;
}
.item:nth-of-type(6n+6) {
grid-column: bigRight;
background: purple;
}
}
```
```
<div class="list" id="list">
</div>
```
This shows that named lines can repeat and items can be positioned using the nth named grid line but that has to be done via JavaScript (sadly the `counter` function cannot be used here).
The biggest issue with this is that it has a fixed number of repeating rows which is unlikely to be very useful. If we set this to `auto-fit`/`auto-fill` then it does not work unless the grid container has a definite `height`, `min-height`, or `max-height`.
| null | CC BY-SA 4.0 | null | 2022-11-10T23:26:41.197 | 2022-11-10T23:26:41.197 | null | null | 367,796 | null |
74,396,617 | 2 | null | 25,513,788 | 0 | null | I recently encountered this where the junit test could not locate a resource in the `src/test/resources` directory.
I had a stray `<packaging>pom</packaging>` in the `pom.xml` file and taking it out solved it in my case.
| null | CC BY-SA 4.0 | null | 2022-11-10T23:53:54.687 | 2022-11-10T23:53:54.687 | null | null | 1,280,060 | null |
74,396,915 | 2 | null | 74,396,861 | 0 | null | The second argument of `useEffect` is an array of dependencies. Since you didn't provide any dependencies, it runs every render. Because it updates the state, it causes a re-render and thus runs again, infinitely. Add `[cooldownDuration]` to your use effect like this:
`useEffect(() => {...}, [cooldownDuration])`
This will make the `useEffect` only run when `cooldownDuration` changes.
| null | CC BY-SA 4.0 | null | 2022-11-11T00:51:17.787 | 2022-11-11T00:58:01.360 | 2022-11-11T00:58:01.360 | 10,049,496 | 10,049,496 | null |
74,397,488 | 2 | null | 74,397,315 | 0 | null | Let's say we have the coordinates of the object-center (x0, y0) along with the set of M coordinates of the object-edge H={(hx1, hy1), (hx2, hy2), ..., (hxM, hyM)}.
In this context, our aim is to find the coordinates of N rings or closed curves that equally segment the object. All the rings have the same center as the object located at (x0, y0).
I suggest that we can do it through calculating the coordinates of N evenly spaced sections segmenting all the lines lying between the object-center and the object edge as L={ {(x0, y0), (hx1, hy1)}, {(x0, y0), (hx2, hy2)}, ..., {(x0, y0), (hxM, hyM)} }.
E.g, utilizing this formula [https://www.geeksforgeeks.org/section-formula-point-divides-line-given-ratio/](https://www.geeksforgeeks.org/section-formula-point-divides-line-given-ratio/)
| null | CC BY-SA 4.0 | null | 2022-11-11T02:43:20.957 | 2022-11-11T02:43:20.957 | null | null | 11,040,577 | null |
74,397,509 | 2 | null | 74,396,281 | 0 | null | Put the if conditions in you try block when emotions are retrived and then based on conditions you can navigate to other activities
```
try {
jsonArray = new JSONArray(result);
String emotions = "";
for(int i = 0;i<jsonArray.length();i++) {
JSONObject jsonParentObject = new JSONObject(jsonArray.get(i).toString());
JSONObject jsonObject = jsonParentObject.getJSONObject("faceAttributes");
JSONObject scores = jsonObject.getJSONObject("emotion");
double max = 0;
String emotion = "";
for (int j = 0; j < scores.names().length(); j++) {
if (scores.getDouble(scores.names().getString(j)) > max) {
max = scores.getDouble(scores.names().getString(j));
emotion = scores.names().getString(j);
}
}
emotions += emotion + "\n";
}
resultText.setText(emotions);
if(emotions=="neutral"){
Intent intent = new Intent(MainActivity.this,activity_body.class);
startActivity(intent);
}
else if(emotions=="happiness") {
Intent intent = new Intent(MainActivity.this,activity_mind.class);
startActivity(intent);
}
}
catch (JSONException e) {
resultText.setText("No emotion detected. Try again later");
}
```
| null | CC BY-SA 4.0 | null | 2022-11-11T02:48:30.160 | 2022-11-11T02:48:30.160 | null | null | 19,213,695 | null |
74,397,896 | 2 | null | 74,397,573 | 0 | null |
```
window.onkeydown =
window.onkeyup =
window.onkeypress =
() => {
window.event.returnValue = false;
return false;
};
```
```
window.oncontextmenu = () => {
alert('No way!!!');
return false;
};
```
If the user opens the Dev Tool, the window size will be changed (unless the Dev Tool and main window are separated).
```
let h = window.innerHeight;
let w = window.innerWidth;
window.onresize = () => {
if (h !== window.innerHeight || w !== window.innerWidth) {
// If the user violates the rules, do anything u want :)
window.location = '...';
}
};
```
Then, combine these ways together!
| null | CC BY-SA 4.0 | null | 2022-11-11T04:01:35.227 | 2022-11-11T04:13:13.763 | 2022-11-11T04:13:13.763 | 14,877,188 | 14,877,188 | null |
74,398,034 | 2 | null | 53,155,979 | 0 | null | For tomcat9 change the protocol to HTTP1.1 for 8443 connector.
```
<Connector port="8443" protocol="HTTP/1.1
```
| null | CC BY-SA 4.0 | null | 2022-11-11T04:30:50.663 | 2022-11-16T17:31:28.237 | 2022-11-16T17:31:28.237 | 6,083,675 | 20,474,561 | null |
74,398,196 | 2 | null | 60,569,673 | 0 | null | To replay the clicks and download the data, you must use Selenium or a similar package.
| null | CC BY-SA 4.0 | null | 2022-11-11T05:01:34.953 | 2022-11-11T05:01:34.953 | null | null | 1,482,088 | null |
74,399,060 | 2 | null | 73,578,470 | 0 | null | I don't know what exactly you want to make.
This might help you.
```
[
{
"id": "64a54fa5e2d177b2",
"type": "tab",
"label": "플로우 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "8f6e87ae744403e1",
"type": "inject",
"z": "64a54fa5e2d177b2",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 120,
"y": 140,
"wires": [
[
"86b1571e0eae5edd"
]
]
},
{
"id": "86b1571e0eae5edd",
"type": "function",
"z": "64a54fa5e2d177b2",
"name": "function 15",
"func": "msg.payload={\"kinput\":\"hi\"};\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 270,
"y": 140,
"wires": [
[
"ba5d6f84c4e04dbf"
]
]
},
{
"id": "ba5d6f84c4e04dbf",
"type": "join",
"z": "64a54fa5e2d177b2",
"name": "",
"mode": "custom",
"build": "merged",
"property": "payload",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": false,
"timeout": "",
"count": "",
"reduceRight": false,
"reduceExp": "",
"reduceInit": "",
"reduceInitType": "num",
"reduceFixup": "",
"x": 430,
"y": 140,
"wires": [
[
"1093997cfdf9092c"
]
]
},
{
"id": "1093997cfdf9092c",
"type": "debug",
"z": "64a54fa5e2d177b2",
"name": "debug 27",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 560,
"y": 140,
"wires": []
},
{
"id": "28c9708ce3385b28",
"type": "inject",
"z": "64a54fa5e2d177b2",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 120,
"y": 180,
"wires": [
[
"33749e60e7a441ae"
]
]
},
{
"id": "33749e60e7a441ae",
"type": "function",
"z": "64a54fa5e2d177b2",
"name": "function 16",
"func": "msg.payload={\"kinout\":\"hi2\"};\nmsg.complete=0;\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 270,
"y": 180,
"wires": [
[
"ba5d6f84c4e04dbf"
]
]
},
{
"id": "91c12d33c114fd4f",
"type": "comment",
"z": "64a54fa5e2d177b2",
"name": "Basic Join uses",
"info": "",
"x": 140,
"y": 100,
"wires": []
}
]
```
This flow is about basic uses of 'join' node.
I made simple function with merging msg.payload objects.
| null | CC BY-SA 4.0 | null | 2022-11-11T07:06:41.160 | 2022-11-15T00:48:05.937 | 2022-11-15T00:48:05.937 | 18,178,239 | 18,178,239 | null |
74,399,325 | 2 | null | 53,337,630 | 0 | null | Just add the following at the top of your code:
```
import os
os.environ["SDL_MOUSE_FOCUS_CLICKTHROUGH"] = '1'
```
See discussion at:
[https://groups.google.com/g/kivy-users/c/b1wXKpjzjkg/m/5HF6WxSyAwAJ](https://groups.google.com/g/kivy-users/c/b1wXKpjzjkg/m/5HF6WxSyAwAJ)
| null | CC BY-SA 4.0 | null | 2022-11-11T07:38:20.357 | 2022-11-11T07:38:20.357 | null | null | 5,708,480 | null |
74,399,482 | 2 | null | 21,852,974 | 0 | null |
```
def create
@manufacture = Manufacture.new(manufacture_params)
@manufactures = Manufactur.all
respond_to do |format|
if @manufacture.save
format.js
else
format.html { redirect_to manufactures_url, alert: @manufacture.errors.full_messages }
end
end
end
```
```
<h1>Manufactures</h1>
<table >
<thead>
<tr>
<th>Date</th>
<th>Product</th>
<th>Quantity</th>
<th>Edit</th>
<th>Delete</th>
</tr>
</thead>
<tbody id="manufacture-table">
<%= render partial: "manufacture_table", locals: { manufacture: @manufactures } %>
</tbody>
</table>
```
```
<% @manufactures.each do |manufacture| %>
<tr>
<td><%= manufacture.date.strftime("%b %d ,%Y") %></td>
<td><%= manufacture.product.name %></td>
<td><%= manufacture.quantity %></td>
<td><%= link_to 'Edit', edit_manufacture_path(manufacture) %></td>
<td><%= link_to 'Destroy', manufacture, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
```
```
$("#manufacture-table").html("<tr><%= j render partial: "manufacture_table", locals: { manufacture: @manufactures } %></tr>");
```
| null | CC BY-SA 4.0 | null | 2022-11-11T07:52:44.763 | 2022-11-11T07:57:09.350 | 2022-11-11T07:57:09.350 | 20,475,511 | 20,475,511 | null |
74,400,042 | 2 | null | 18,409,552 | 0 | null | I faced the same issue.
No need to wait, just go to the App Description, make a small update.
Then in less than 5 minutes, the app is available.
| null | CC BY-SA 4.0 | null | 2022-11-11T08:51:08.830 | 2022-11-11T08:51:08.830 | null | null | 15,838,025 | null |
74,400,242 | 2 | null | 50,213,905 | 0 | null | The first proposed solution by Alexis using UNION and SELECTCOLUMNS functions to unpivot a table works very well. Applied to the problem mentioned here, the single formula for a newly created table in Power BI would be:
```
NewTable = UNION(
SELECTCOLUMNS('DataTable',"Attribute”,”SJ_Time”,”Value",'DataTable'[Value],"Time",'DataTable'[SJ_Time]),
SELECTCOLUMNS('DataTable',"Penang_Time”,”Penang_Time”,”Value",'DataTable'[Value],"Time",'DataTable'[Penang_Time]),
)
```
The formula creates two tables (A) and (B). The function defines the content of each table:
Table (A) gets a first column called , which is filled with the first headline's name into as many rows as the original holds. The second column is called whose data values are fetched from the column of the original table (and will be just repeated in the table (B) later on). The third column is called whose data values are fetched from the column of the original table. The latter are the actual data values we want to unpivot.
Table (B) is created in similar fashion, with the difference that the first column is filled with the second headline's name and the third column gets its data values from column of the original table - which is the actual unpivoting transaction. The data values of the second column are just repeated.
Finally, the function plunges tables (A) and (B) under one another, so the amount of rows doubles and the unpivoting is complete.
| null | CC BY-SA 4.0 | null | 2022-11-11T09:10:11.593 | 2022-11-11T13:15:59.103 | 2022-11-11T13:15:59.103 | 2,227,743 | 20,476,318 | null |
74,400,265 | 2 | null | 27,375,832 | 0 | null | Right-clicked on the "class Qstring" under "Value", then selected "Change value display format" -> "Treat all characters as printable"
| null | CC BY-SA 4.0 | null | 2022-11-11T09:12:21.983 | 2022-11-11T09:12:21.983 | null | null | 6,135,496 | null |
74,400,591 | 2 | null | 23,800,753 | -1 | null | adding two more which is updated and can be used above ios 11 and written in swift
-AztecEditor
[link](https://github.com/wordpress-mobile/AztecEditor-iOS)
-updated version of
RichEditorView
[link](https://github.com/Andrew-Chen-Wang/RichEditorView)
| null | CC BY-SA 4.0 | null | 2022-11-11T09:43:16.410 | 2022-11-11T09:43:16.410 | null | null | 5,108,673 | null |
74,401,362 | 2 | null | 74,398,131 | 1 | null | First off, your current implementation is quite bad.
Doing that with an image + background offset is not a good way of doing things here (SVG + `v-show` would be far better/easier to handle).
Some key points:
- - - -
---
I recommend the following example from the docs: [https://vuejs.org/examples/#tree](https://vuejs.org/examples/#tree)
---
Meanwhile, the final result can be achieved by using the following code
```
<template>
<div class="css-treeview">
<ul>
<li v-for="item in list1" :key="item.a">
<input :id="`item-${item.a}`" type="checkbox" />
<label :for="`item-${item.a}`"
:class="[!item.list2.length && 'hide-when-not-needed', item.list2.length && 'open-if-possible']">
{{ item.a }}
</label>
<ul>
<li v-for="item2 in item.list2" :key="item2.a">
<input :id="`item-${item2.a}`" type="checkbox" />
<label :for="`item-${item2.a}`"
:class="[!item2?.list3?.length && 'hide-when-not-needed', item2?.list3?.length && 'open-if-possible']">
{{ item2.a }}
</label>
</li>
</ul>
</li>
</ul>
</div>
</template>
<script>
export default {
name: 'HelloWorld',
props: {
msg: String,
},
data() {
return {
list1: [
{
a: 'Alex',
list2: [{ a: 'Dog' }],
},
{
a: 'Blex',
list2: [{ a: 'Dogoo' }],
},
{
a: 'Clex',
list2: [],
},
],
}
},
}
</script>
<style scoped>
.css-treeview ul,
.css-treeview li {
padding: 0;
margin: 0;
list-style: none;
}
.css-treeview input {
position: absolute;
opacity: 0;
}
.css-treeview {
font: normal 11px 'Segoe UI', Arial, Sans-serif;
-moz-user-select: none;
-webkit-user-select: none;
user-select: none;
}
.css-treeview a {
color: #00f;
text-decoration: none;
}
.css-treeview a:hover {
text-decoration: underline;
}
.css-treeview input+label+ul {
margin: 0 0 0 22px;
}
.css-treeview input+label+ul {
display: none;
}
.css-treeview label,
.css-treeview label::before {
cursor: pointer;
}
.css-treeview input:disabled+label {
cursor: default;
opacity: 0.6;
}
.css-treeview input:checked:not(:disabled)+label+ul {
display: block;
}
/* this part is interesting */
.css-treeview label,
.css-treeview label::before {
background: url('http://experiments.wemakesites.net/pages/css3-treeview/example/icons.png') no-repeat;
}
.css-treeview label,
.css-treeview a,
.css-treeview label::before {
display: inline-block;
height: 16px;
line-height: 16px;
vertical-align: middle;
}
.css-treeview label {
background-position: 18px 0;
}
.css-treeview label::before {
content: '';
width: 16px;
margin: 0 22px 0 0;
vertical-align: middle;
background-position: 0 -32px;
}
/* this is the fix */
label.hide-when-not-needed::before {
background-position: 0 -48px;
}
/* this one is bad */
input:checked+label.open-if-possible::before {
background-position: 0 -16px;
}
/* webkit adjacent element selector bugfix */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
.css-treeview {
-webkit-animation: webkit-adjacent-element-selector-bugfix infinite 1s;
}
@-webkit-keyframes webkit-adjacent-element-selector-bugfix {
from {
padding: 0;
}
to {
padding: 0;
}
}
}
</style>
```
Here is [a playground](https://sfc.vuejs.org/#eNqdV1Fz4jYQ/itbt3Mkd7EdSOem46btpe1D+5zp9OG4mRP2YivIkkeSgZThv3cl22DAcNyRDFir3W9Xq91P8iZ4qqpoWWOQBI8Wy0owi79OJcBjxpeQCmbML9MgNSa0GnHJcTUN/Dxp1KJ9omfBYRnOlSZlTjjAJQhu7HgaQLLA11YcsZ21t+Kyqi0kPKP5z04h/GHT6G0/k6V9rdB5LzBdzNSaJHHfWrAZCkgar6fme02ApFvJx++8gottEgmUuS3gzRsYFTzDcFWgDKWyoUTMMBvdwbCyqkiPz8NKGcNnAkefDpYFsNk0lgy2217AsY+4v4ReCofSOHF53MdwmMzJUTYvZpSUr0jp5bS2GIfqJ7md/OaDfaCfq9I7qP/FDPeyTGEdpHk41V7G+7mP+/W7n9vJH2NqAXp6jHuNQUOTal5ZesZ1pbSFDOesFhY2zkiyEhMY/YVCqH+VFrRKJ660qkzSqACUJk/g2Woucz+79d8Zs+zmttPRaGstuxE03ZTAx/0CdlPuw8jpk8B14677+Koho42f/1PlI9h+6mk0js/A/f5lOKW+BvCPs4DDEJ3U760T08NjvEu/2wr7KhBMSuWSkSTq8xTUgkwORdRePqqKZRklP4H7n92wZDrnshu5oEKPnIBUEklIjo+hmkZr0JThlisCYDOjRG2dCYCqWMrtawM7gOBt50pa50aXTMB4XK1h9Iy5Qvjnb+qPJ82ZuINnJk1oUPO5Bw5L9V9Y05hkAlNv78OkqRXOFtyemR2SDgTGmtBSJZRO4Pv7+8atxbUNM0yVZs1qLyAkhVqibnBO7GqZoRb8Ymbf+f59V4sGY7dD/m8yqdbX22bcUPfSPpyP1xucVouTJskMiQqxzUmtjUtKpbi0qC8EkZBbRsyVNdEcmreUcVQm0ftLeJ6yMUuIQG924Lfn1joTKl10cPFbsAU3VPZEV/TrY0djqQXgbfzNyZixdJFrRdtJe6rFzaiwtkrimHiRarVEaU20wpItkPoDTSTRxhXL0cSE/LCDJn1G/IoxT5U0USXz0S3tVaixQuZydPWGsWui3qWIS1eDYZcpgAJ5XlBnjN/78nJMQPMnUipsy1MmQiZ4TjVZ8iwTlwrrOFvuVGsJY/wTdfwZfhgqP2ILSitx6ciHsuKZLXqh7dvEtYjrlcsRn4nqHsKHXot15UP/tkCY87WvGh9fNHSynyuTQxc/0tqPXVCHOjczlnkXB5XflHp0fDW4zlmbos5ZQ5PAsheWUkKBONHVKzTkqDTM6rxb54cSM87olKGNkcBkBjcdzZZcErMteYphxdcoQk9x5LA9xgcIf8/RTPKyZcRO0oYTtuG0XK102IbD5ZxL6iUYG797fjkAHzpIuhzONd1AzNWIbUxzrcr9gX10PO78EJery1r+qzmm3QFKZ3JwF/DS3ZPCklXRi1GSXjU8Bt1i/YSZBrub0TSgdxE3ngaOTAyxiZmn7gXlxURK5zE9RbqWluglQlOGM61WdKoR8DRorwseIyYhlT2RiDtsUF/CPFI9we2WFWz/BzySVrQ=).
| null | CC BY-SA 4.0 | null | 2022-11-11T10:46:49.203 | 2022-11-11T10:46:49.203 | null | null | 8,816,585 | null |
74,401,809 | 2 | null | 24,320,347 | 0 | null | You have references that you don’t want to be strong references, in order to avoid circular references. So at some point when the last strong reference to an object gets removed, the object itself gets removed.
What happens to other non-strong references? Obviously they don’t refer to that object anymore, which is problematic. There are two kinds of ways to handle this:
1. Weak reference. When the last strong reference to an object goes away, all weak references are set to nil, so a developer can check if the referenced object is there anymore. Quite obviously a weak reference must be an optional, otherwise it couldn’t be set to nil. The strategy to use a weak reference: You write “if let ref = weakref”. Either the reference was still there, and since you just assigned it to a strong reference, it will remain until the end of the “if let”. If you don’t do it this way then you may access the same weak reference twice, and it may be (unexpectedly) not nil on the first access, but nil on the second.
2. You create an unowned reference. If the object goes away, nobody will tell you. It will look as if you have a reference when to the referred object has gone away. You must only use this if you are 100% sure that the referenced object cannot go away early.
Use unowned if you have measured that it is faster, and when you are 100% that you don’t use the rubbish when the object is gone.
| null | CC BY-SA 4.0 | null | 2022-11-11T11:29:25.680 | 2022-11-11T11:29:25.680 | null | null | 3,255,455 | null |
74,402,103 | 2 | null | 74,401,309 | 0 | null | try:
```
=QUERY(Concerti!A1:AL; "where 1=1"&
IF(A2="TUTTI";;" and E = '"&A2&"'")&
IF(E2="TUTTI";;" and H = '"&E2&"'")&
IF(F2="TUTTI";;" and B = "&F2&" ")&
IF(A4="TUTTI";;" and (I = '"&A$4&"'
or K = '"&A$4&"'
or M = '"&A$4&"'
or O = '"&A$4&"'
or Q = '"&A$4&"'
or S = '"&A$4&"')")&
IF(E4="TUTTI";;" and (J = '"&E$4&"'
or L = '"&E$4&"'
or N = '"&E$4&"'
or P = '"&E$4&"'
or R = '"&E$4&"'
or T = '"&E$4&"')")&
IF(F4="TUTTI";;" and (Y = '"&F$4&"'
or AA= '"&F$4&"'
or AC= '"&F$4&"'
or AE= '"&F$4&"'
or AG= '"&F$4&"'
or AI= '"&E$4&"')"); 1)
```
| null | CC BY-SA 4.0 | null | 2022-11-11T11:53:24.643 | 2022-11-11T11:53:24.643 | null | null | 5,632,629 | null |
74,402,292 | 2 | null | 29,324,184 | 0 | null |
Under Open Window > Preferences > General > Editors > Text Editors > Annotations
For some reason it overrides other defaults. Tested with the Darkest Dark theme on Eclipse 2022-09.
| null | CC BY-SA 4.0 | null | 2022-11-11T12:08:55.477 | 2022-11-11T12:08:55.477 | null | null | 895,245 | null |
74,402,669 | 2 | null | 74,399,953 | 0 | null | Could you try to run queryArray instead of queryObject for insert operation?
```
await client.queryArray`INSERT INTO users(nom,email,password,adresse,prenom) VALUES(${product.fields.nom}, ${product.fields.email}, ${product.fields.password}, ${product.fields.adresse}, ${product.fields.prenom}`;
```
I am not sure if it's gonna work, because I've no deno environment to test it.
| null | CC BY-SA 4.0 | null | 2022-11-11T12:42:00.067 | 2022-11-11T14:16:44.383 | 2022-11-11T14:16:44.383 | 10,749,857 | 10,749,857 | null |
74,402,688 | 2 | null | 74,263,033 | -1 | null | I have faced the same problem. I solved it by exporting classpath into my .zshrc file.
Add this to you shell:
export CLASSPATH=/path/mysql-connector-java-ver.jar:$CLASSPATH
| null | CC BY-SA 4.0 | null | 2022-11-11T12:43:14.057 | 2022-11-11T12:43:14.057 | null | null | 20,477,121 | null |
74,403,219 | 2 | null | 74,401,829 | 0 | null | I guess Swagger UI doesn't render the "Responses" section because of some errors in your route annotations that result in an invalid API definition. Specifically, you should add `*` at the beginning of each line in block comments so that the formatting and indentation is consistent.
Also, there's a typo: `summmary` should be `summary`.
Try changing the route annotations as follows and see if it resolves the issue:
```
/**
* @swagger
* /category/list/:
* get:
* summary: Returns the list of categories and subcategories
* responses:
* 200:
* description: Testing Get
* content:
* application/json:
* schema:
* type: array
* items:
* $ref: '#/components/schemas/Category'
*/
```
| null | CC BY-SA 4.0 | null | 2022-11-11T13:26:51.353 | 2022-11-11T13:26:51.353 | null | null | 113,116 | null |
74,403,485 | 2 | null | 54,107,917 | 0 | null | I had the same problem and the problem has been by doing the following steps.
Click on the
[](https://i.stack.imgur.com/YPWsP.png)
Right-click on the newly opened window. and click on the .
[](https://i.stack.imgur.com/tAhSv.png)
Then after adding `.js`, `.json`, and `.css` file extensions.
Finally new file extensions must be as follow.
[](https://i.stack.imgur.com/y1JPs.png)
| null | CC BY-SA 4.0 | null | 2022-11-11T13:50:25.763 | 2022-11-11T13:50:25.763 | null | null | 5,230,358 | null |
74,403,750 | 2 | null | 74,398,866 | 0 | null | You can set the axes to a given value by providing the `ticks` attribute:
[This thread](https://github.com/recharts/recharts/issues/774) on the Recharts Git discusses how.
> <XAxis ticks={[1.2, 2.8, 4.4, 6]} />
You may want to have a few more ticks in your example, like 12-noon.
But you may have to format your x-axis values into a `number` or `date` value in order to make it work how you expect.
The XAxis Docs from [Recharts](https://recharts.org/en-US/api/XAxis) give some good pointers on how certain props change the behaviour of the XAxis.
| null | CC BY-SA 4.0 | null | 2022-11-11T14:12:43.310 | 2022-11-11T14:12:43.310 | null | null | 15,291,770 | null |
74,404,846 | 2 | null | 74,404,314 | 1 | null | You are using Fusion which means you have to state the problem in conic form. You can read about that in
[https://docs.mosek.com/modeling-cookbook/index.html](https://docs.mosek.com/modeling-cookbook/index.html)
But I suggest you first consider whether the function
a/(b+a*c)
is convex. (I kind of doubt that.) If it is not convex, there is no hope to express it in conic form.
The plot
[https://www.wolframalpha.com/input?i=x%2F%281%2Bx%29](https://www.wolframalpha.com/input?i=x%2F%281%2Bx%29)
shows that the function might be nasty.
Btw this
[https://en.wikipedia.org/wiki/Linear-fractional_programming](https://en.wikipedia.org/wiki/Linear-fractional_programming)
might be useful.
| null | CC BY-SA 4.0 | null | 2022-11-11T15:37:31.630 | 2022-11-14T07:18:44.213 | 2022-11-14T07:18:44.213 | 2,820,047 | 2,820,047 | null |
74,405,216 | 2 | null | 74,405,149 | 3 | null | These lines are the problem:
```
planets[i].moon.col = colArray[i++];
planets[i].moon.centreOfRotationDistance = (100 + (i * 100))/10;
```
In the first of these lines, you're incrementing `i` - which means on the line, `planets[i]` is referring to an array index where the element is still null.
I suspect that just this simple change will fix the problem:
```
planets[i].moon.col = colArray[i];
```
As a side note, I'd also suggest changing your code to create everything about the `Planet` once, assign it into the array:
```
Planet planet = new Planet();
planet.distance = 100 + (i * 100);
planet.angle = 0 + (i * 20);
planet.diameter = 20 + (i * 10);
planet.col = colArray[i];
// etc
planets[i] = planet;
```
(I'd also recommend using private fields and probably a constructor accepting a bunch of the values, but that's a different matter.)
| null | CC BY-SA 4.0 | null | 2022-11-11T16:06:59.517 | 2022-11-11T16:06:59.517 | null | null | 22,656 | null |
74,405,222 | 2 | null | 43,126,064 | 1 | null | Here is how the given code can be adapted to work with multiple subplots, and also to a situation without "middle column".
To adapt the given code, `ax[n,p].transData` is needed instead of `plt.gca().transData`. `plt.gca()` refers to the last created subplot, while now you'll need the transform of each individual subplot.
Another problem is that when only plotting via a transform, matplotlib doesn't automatically sets the lower and upper limits of the subplot. In the given example plots the points "in the middle" without setting a specific transform, and the plot gets "zoomed out" around these points (orange in the example).
If you don't have points at the center, the limits need to be set in another way. The way I came up with, is plotting some dummy points in the middle (which sets the zooming limits), and remove those again.
Also note that the size of the scatter dots in given as the square of their diameter (measured in "unit points"). To have touching dots, you'd need to use the square root for their offset.
```
import matplotlib.pyplot as plt
from matplotlib import transforms
import numpy as np
# Set up data for reproducible example
year = np.random.choice(np.arange(2006, 2017), size=(100))
data = np.random.rand(4, 100, 3)
data2 = np.random.rand(4, 100, 3)
# Create plot and set up subplot ax loop
fig, axs = plt.subplots(2, 2, figsize=(18, 14))
# Set up offset with transform
offset = lambda p: transforms.ScaledTranslation(p / 72., 0, plt.gcf().dpi_scale_trans)
# Plot data in a loop
for ax, q, r in zip(axs.flat, data, data2):
temp_points = ax.plot(year, q, ls=' ')
for pnt in temp_points:
pnt.remove()
ax.plot(year, q, marker='.', ls=' ', ms=10, c='b', transform=ax.transData + offset(-np.sqrt(10)))
ax.plot(year, r, marker='.', ls=' ', ms=10, c='g', transform=ax.transData + offset(+np.sqrt(10)))
plt.show()
```
[](https://i.stack.imgur.com/Yo1AF.png)
| null | CC BY-SA 4.0 | null | 2022-11-11T16:07:14.460 | 2022-11-11T16:07:14.460 | null | null | 12,046,409 | null |
74,405,330 | 2 | null | 74,403,887 | 0 | null | Additional data can be added with suitable `geom_XYZ` functions, overwriting the `aes` values that change from the `ggplot` call. So for this case adding the line is as follows:
Recreated_figure_DHRP <- read.csv("C:\Users\te01\Downloads\Dataframe - sheet1.csv")
```
Recreated_figure_DHRP %>%
ggplot(aes(x = Insurers, y =`INR.BN`,fill = FY,group=FY)) +
geom_bar(stat = "identity", position = position_dodge(), alpha = 0.75,)+
theme(axis.text.x = element_text(angle = 60, hjust = 1)) +
theme(legend.position="top") +
ylim(0,400)+
geom_text(aes(label = `INR.BN`), fontface = "bold", vjust = 1.5,
position = position_dodge(.9), size = 2.25) +
geom_line(aes(y=`YOY.Growth`), col="red")
```
(note very slight differences in the dataframe column names)
That gives:
[](https://i.stack.imgur.com/Hl9mK.png)
| null | CC BY-SA 4.0 | null | 2022-11-11T16:15:31.190 | 2022-11-11T16:15:31.190 | null | null | 3,379,675 | null |
74,405,640 | 2 | null | 70,894,054 | 1 | null | For anyone using expo, run `expo fetch:android:upload-cert`, and the .pem file that you receive can be used in the Huawei app store: at the 'app signing' section, select the option 'Let AppGallery Connect create and manage app signature for me', click browse and select the '.pem' file you just received, and submit. Done!
| null | CC BY-SA 4.0 | null | 2022-11-11T16:40:58.933 | 2022-11-11T16:40:58.933 | null | null | 1,651,636 | null |
74,405,960 | 2 | null | 74,405,739 | 1 | null | With your current data, you have `nan` in the columns that aren't the one you want, and only have a real value in the one you do.
So, I say you just add up those three columns, which will effectively be `the_number_you_want + 0 + 0`. You can use `np.nansum()` to properly add the `nan` as zero.
```
...
import numpy as np
...
df['Quantity'] = np.nansum(df[['Count','Area','Volume']],axis=1)
```
| null | CC BY-SA 4.0 | null | 2022-11-11T17:10:56.503 | 2022-11-11T17:10:56.503 | null | null | 15,804,190 | null |
74,406,046 | 2 | null | 74,404,907 | 0 | null | Switch into the android directory and first call `./gradlew clean`. This gets the android project in flutter to a brand new state. Then go back to your flutter directory and call `flutterfire configure`. This will register your app with the firebase console and sync down all your application keys. Once this is done, you should be able to build like normal. On the first compilation of your app, it will generate a google-services.json file from the API keys within the flutter project.
| null | CC BY-SA 4.0 | null | 2022-11-11T17:17:40.023 | 2022-11-11T17:17:40.023 | null | null | 3,946,096 | null |
74,406,127 | 2 | null | 34,965,325 | 0 | null | Apologies, A bit late BUT ... in my effort to try and help
... Did you try both a transparent pixel PNG?[png here](https://i.stack.imgur.com/QVRVy.png)
... and/or a transparent pixel GIF?[gif here](https://i.stack.imgur.com/tVxzl.gif)
( see 2 attached 1x1px images )
NOTE: I'm not sure what filetype you may need, but the same instance applies. If anyone wants me to supply a transparent image of a certain type eg. png, ico etc let me know.
Else, you can easily generate transparent PNG's ...
[https://png-pixel.com/](https://png-pixel.com/)
and
[https://onlinegiftools.com/create-1x1-pixel-gif](https://onlinegiftools.com/create-1x1-pixel-gif)
| null | CC BY-SA 4.0 | null | 2022-11-11T17:25:44.233 | 2022-11-11T17:27:31.370 | 2022-11-11T17:27:31.370 | 20,175,134 | 20,175,134 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.