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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
75,155,258 | 2 | null | 75,154,911 | 0 | null | Nevermind, It's a simple fix
I just have to add these 2 lines in the draw_map function to update it like this:
```
from itertools import chain
def draw_map(m, scale=0.2):
# draw a shaded-relief image
# These 2 lines
im1 = m.shadedrelief(scale=scale) # Value stored in a variable to resolve a bug
im1.axes.add_image(im1) # The line that resolves the "No BG Image" bug
# lats and longs are returned as a dictionary
lats = m.drawparallels(np.linspace(-90, 90, 13))
lons = m.drawmeridians(np.linspace(-180, 180, 13))
# keys contain the plt.Line2D instances
lat_lines = chain(*(tup[1][0] for tup in lats.items()))
lon_lines = chain(*(tup[1][0] for tup in lons.items()))
all_lines = chain(lat_lines, lon_lines)
# cycle through these lines and set the desired style
for line in all_lines:
line.set(linestyle='-', alpha=0.3, color='w')
```
Output:

| null | CC BY-SA 4.0 | null | 2023-01-18T06:11:45.413 | 2023-02-19T12:58:33.183 | 2023-02-19T12:58:33.183 | 16,693,888 | 16,693,888 | null |
75,155,318 | 2 | null | 70,540,788 | 0 | null | There must be a config parameter to change the max row limit in site-packages/superset, DEFAULT_SQLLAB_LIMIT to set the default and SQL_MAX_ROW to set the max in SQL Lab.
| null | CC BY-SA 4.0 | null | 2023-01-18T06:19:27.313 | 2023-01-18T06:19:27.313 | null | null | 21,033,324 | null |
75,155,354 | 2 | null | 75,155,311 | 0 | null | Unpivot the date columns within `Power Query`. Select all date columns and then click `Unpivot Columns` from the `Transform` menu. Rename the resulting `Attribute` column as required.
You can now pivot the resulting table as desired.
.
| null | CC BY-SA 4.0 | null | 2023-01-18T06:23:26.430 | 2023-01-18T06:32:54.543 | 2023-01-18T06:32:54.543 | 17,007,704 | 17,007,704 | null |
75,155,363 | 2 | null | 75,151,901 | 0 | null | so you're using position: fixed; on navbar, so text is behind the navbar (You can learn more on internet about positions and how they work). in your situation i would make div with class page-content and put all things in that div except navbar, and then add this css:
```
.page-content{
padding-left: 30px;
}
```
padding-left will push all content from website except navbar to right. Maybe you will have little problems with responsive later, but its easy to fix with more padding or less.
I'm not 100% sure this is going to work for you, but try it. :D
| null | CC BY-SA 4.0 | null | 2023-01-18T06:24:41.553 | 2023-01-18T06:24:41.553 | null | null | 15,787,629 | null |
75,155,380 | 2 | null | 75,154,839 | 0 | null | You should try these steps:
1. Update Unity hub to latest version.
2. Uninstall Unity.
3. Restart your PC.
4. Re-install unity without unity hub (get the file from the archive directory at https://unity.com/releases/editor/archive ).
5. Point the unity hub to your download path.
This has worked for me before so hopefully it works for you as well.
| null | CC BY-SA 4.0 | null | 2023-01-18T06:26:18.253 | 2023-01-18T06:26:18.253 | null | null | 5,728,859 | null |
75,155,448 | 2 | null | 30,622,599 | 0 | null | try to connect the keycloak database and update the table
```
update REALM set ssl_required='EXTERNAL' where name = 'master';
```
then restart docker
```
docker compose restart
```
| null | CC BY-SA 4.0 | null | 2023-01-18T06:34:20.213 | 2023-01-18T06:34:20.213 | null | null | 13,540,055 | null |
75,155,677 | 2 | null | 34,475,093 | 0 | null | You Can Also Use @csrf like this
```
<form action="{{ route('post.store') }}" method="POST">
@csrf
----------Your Content------
</form>
```
| null | CC BY-SA 4.0 | null | 2023-01-18T07:06:38.843 | 2023-01-18T07:07:53.597 | 2023-01-18T07:07:53.597 | 15,829,858 | 15,829,858 | null |
75,155,688 | 2 | null | 75,154,948 | 1 | null | `Run` doesn't want the full path, so try:
```
objExcelApp.Run "'" & iWb.Name & "'!Sheet3.contract_vba"
```
| null | CC BY-SA 4.0 | null | 2023-01-18T07:08:23.437 | 2023-01-18T07:08:23.437 | null | null | 478,884 | null |
75,155,734 | 2 | null | 43,462,034 | -1 | null | Add an import in particular code file
import scala.collection.JavaConverters._
| null | CC BY-SA 4.0 | null | 2023-01-18T07:15:59.493 | 2023-01-18T07:15:59.493 | null | null | 16,480,051 | null |
75,155,945 | 2 | null | 13,700,114 | 0 | null | try to use different quote types (double and single) inside and outside value. for example
```
SELECT * FROM table 1 WHERE desc = "the values is '10'";
```
or find all rows at once which contain single quote in desc
```
SELECT * FROM table 1 WHERE desc LIKE "%'%";
```
| null | CC BY-SA 4.0 | null | 2023-01-18T07:39:46.273 | 2023-01-18T07:39:46.273 | null | null | 21,033,755 | null |
75,156,269 | 2 | null | 75,156,170 | 1 | null | Try deleting node_modules, .cache folder and package-lock.json and run npm install again.
| null | CC BY-SA 4.0 | null | 2023-01-18T08:13:25.877 | 2023-01-18T08:13:25.877 | null | null | 13,922,073 | null |
75,156,378 | 2 | null | 75,154,457 | 0 | null | I rarely used the method of variable length arguments in my previous studies, so I don't know how to use *bkg. So after reviewing the relevant documentation, I think the above code works like this:
First, after the local function operation of lambda, a series of values of the color channel are obtained, and bkg is an iterator for iterating over the list values processed by lambda above
Then, the SetColor() function can actually receive a different number of arguments (of course, receiving different parameters will have different returns), and the function passes parameters in a variable-length real parameter, that is, *bkg. Therefore, the four values calculated above will be passed into the function as tuples (note that they are converted to tuples, not directly in the form of a list).
If there is still a difference between the above elaboration and the actual operation principle, please point it out under the comment in time
| null | CC BY-SA 4.0 | null | 2023-01-18T08:22:58.640 | 2023-01-18T08:25:02.953 | 2023-01-18T08:25:02.953 | 21,032,520 | 21,032,520 | null |
75,156,608 | 2 | null | 75,156,413 | 0 | null | > I was expecting that the output should keep asking me to enter a
number until a is equal to 0. I'm a bit silly (Please explain me if
I'm right or wrong) I think that running the code until a != 0 and a
== 0 should give the same answer in this code.
---
```
a != 0
```
Add items to the array if they 0
```
a == 0
```
Add items to the array if they 0
---
If you do not want the numbers that do not match adding to the array, then you need to also check this condition before inserting the value (before `push`).
```
let arr = [12, 6, 53];
let a;
do {
a = prompt("Enter a number");
a = Number.parseInt(a);
if (a == 0) {
arr.push(a)
};
}
while (a == 0);
console.log(arr);
```
| null | CC BY-SA 4.0 | null | 2023-01-18T08:45:48.127 | 2023-01-18T08:53:39.637 | 2023-01-18T08:53:39.637 | 2,120,261 | 2,120,261 | null |
75,156,642 | 2 | null | 75,144,870 | 0 | null | By default APIM management will use its built in analytics to get default data with metrics and alerts without Application Insights. If you have created an alert based on default metrics, then changing Application Insight won’t affect that Alert
I created one APIM management instance without connecting Application Insights resource to it, It still monitors basic Metrics with default built in analytics and alerts can be created based on those Metrics -

No Application Insights connected :-

Default Metrics and Alerts :-


I have created another APIM instance where I have added one Application Insights logging at API level :-


API telemetry logs sent to Application Insights :-

Above valleyai application Insights is receiving telemetry data from APIM instance if you have created an alert based on this Application Insights, and you change your Application insight resource to another in APIM, You need to update your Alerts and new data will be sent to the newly connected Application Insight resource.

Changed API level logging to valleyAI2 application insights:-

valleyAI2 started receiving telemetry data :-

New Alert is created and enabled at new application Insight resource connected to APIM :-

The Alerts needs to be created separately if application Insights are connected to API’s at Application Insights level.
| null | CC BY-SA 4.0 | null | 2023-01-18T08:48:43.437 | 2023-01-18T08:48:43.437 | null | null | 20,849,135 | null |
75,156,665 | 2 | null | 73,232,455 | 0 | null | In my limited experience with WinUI 3, I cannot only remove the close button, however, it is possible to hide the whole title bar area.
```
using Microsoft.UI;
using Microsoft.UI.Xaml;
using Microsoft.UI.Windowing;
namespace WinUI3
{
public sealed partial class MainWindow : Window
{
public MainWindow()
{
this.InitializeComponent();
GetAppWindowAndPresenter();
_apw.IsShownInSwitchers = false;
_presenter.SetBorderAndTitleBar(false, false);
}
private void myButton_Click(object sender, RoutedEventArgs e)
{
myButton.Content = "Clicked";
this.Close();
}
public void GetAppWindowAndPresenter()
{
var hWnd = WinRT.Interop.WindowNative.GetWindowHandle(this);
WindowId myWndId = Win32Interop.GetWindowIdFromWindow(hWnd);
_apw = AppWindow.GetFromWindowId(myWndId);
_presenter = _apw.Presenter as OverlappedPresenter;
}
private AppWindow _apw;
private OverlappedPresenter _presenter;
}
}
```
This piece of code will create a window without title bar (minimize button, maximize button and close button).
| null | CC BY-SA 4.0 | null | 2023-01-18T08:51:05.660 | 2023-01-18T08:51:05.660 | null | null | 21,011,090 | null |
75,156,798 | 2 | null | 75,149,459 | 0 | null | i never know that, once the height was fixed, the overflow will automatically happen. –
```
ul.todo-list {
margin: 0;
padding: 0 0 0 0;
height: 150px;
overflow: auto
}
```
| null | CC BY-SA 4.0 | null | 2023-01-18T09:03:39.857 | 2023-01-18T09:03:39.857 | null | null | 16,379,770 | null |
75,156,807 | 2 | null | 75,156,413 | 1 | null | First off, stop using `do..while`. Its usages are very limited and 0.01% of use cases where it actually makes sense are simply not worth the trouble of having yet another syntax construct in your codebase.
In your case, the use of `do` is not justified, because you want to check the condition (`a!=0`) before you perform the action (`arr.push`), not after it. The right pattern here is "loop forever + break":
```
while (true) {
let a = prompt("Enter a number")
a = Number.parseInt(a)
if (a !== 0) {
break
}
arr.push(a)
}
```
Also note that 1) block-scoped variables belong inside the block, not outside it and 2) declaration without initialization (as in `let a;`) is a code smell and should be avoided.
Hope this helps.
| null | CC BY-SA 4.0 | null | 2023-01-18T09:04:10.027 | 2023-01-18T09:04:10.027 | null | null | 3,494,774 | null |
75,156,920 | 2 | null | 75,156,310 | 1 | null | Your `command` callback for the `self.download` is being fired right away during the construction of your GUI.
You should wrap it in a `lambda` so that it is only executed when the button is clicked.
```
self.download = customtkinter.CTkButton(self, text="Download", command=lambda: threading.Thread(target=self.download_event).start())
```
| null | CC BY-SA 4.0 | null | 2023-01-18T09:17:03.730 | 2023-01-18T09:17:03.730 | null | null | 17,829,451 | null |
75,157,313 | 2 | null | 75,142,697 | 0 | null | try to use Carbon in your prject.
```
$inTime = Carbon::parse('10:08:00', 'Asia/Kolkata');
$outTime = Carbon::parse('10:08:00', 'Asia/Taipei');
//You can replace diffInSeconds with other diff methods.
$spentTime = $outTime->diff($inTime)->format('%H:%I:%S');
```
| null | CC BY-SA 4.0 | null | 2023-01-18T09:48:42.203 | 2023-01-18T09:57:55.923 | 2023-01-18T09:57:55.923 | 19,607,785 | 19,607,785 | null |
75,157,344 | 2 | null | 75,134,211 | 0 | null | I figure it out. The logic is that the old data is still in the old retention policy "autogen". I just set "autogen" to 30d, not "0s" which is infinite and it worked. Basically when you set an retention policy in existing database, the new data is stored to that retention policy from now on. The old data is still stored in the old retention policy.
| null | CC BY-SA 4.0 | null | 2023-01-18T09:50:50.443 | 2023-01-18T09:50:50.443 | null | null | 20,509,095 | null |
75,157,606 | 2 | null | 58,862,684 | 0 | null | `<img src="images/grad_summary.png">` works for me now
vscode info
```
Version: 1.74.3 (user setup)
Commit: 97dec172d3256f8ca4bfb2143f3f76b503ca0534
Date: 2023-01-09T16:59:02.252Z
Electron: 19.1.8
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Windows_NT x64 10.0.19044
Sandboxed: No
Jupyter extension: v2022.11.1003412109
```
| null | CC BY-SA 4.0 | null | 2023-01-18T10:12:14.897 | 2023-01-18T10:12:14.897 | null | null | 14,789,892 | null |
75,157,648 | 2 | null | 75,154,570 | 0 | null | Inorder to list [views](https://cloud.google.com/bigquery/docs/information-schema-views#scope_and_syntax) in BigQuery, you can use below queries.
To Return metadata for views in a single dataset
```
SELECT * FROM dataset.INFORMATION_SCHEMA.VIEWS
```
To Return metadata for all views in a region
```
SELECT * FROM region-us.INFORMATION_SCHEMA.VIEWS
```
It's not possible to query only the authorized views using INFORMATION_SCHEMA. As per your requirement to view projectID, datasetID, and tableID details of Authorized Views in a dataset, as you have mentioned you can go to your dataset and click + Sharing > Authorize Views where you can add authorization and view the Currently Authorized Views.
[](https://i.stack.imgur.com/kl26D.png)
For more information you can refer to this [tutorial](https://www.cloudskillsboost.google/focuses/42016?parent=catalog).
If you want the feature to view details of authorized views using `INFORMATION_SCHEMA` as present in BigQuery UI, you can raise a [feature request](https://cloud.google.com/support/docs/issue-trackers) on the issue tracker describing your requirement.
| null | CC BY-SA 4.0 | null | 2023-01-18T10:16:29.057 | 2023-01-18T10:26:41.907 | 2023-01-18T10:26:41.907 | 17,258,510 | 17,258,510 | null |
75,157,932 | 2 | null | 75,157,863 | 0 | null | You can use this tool for easier Flutter Version Management. It will be helpful in your case.
FVM - [https://fvm.app/](https://fvm.app/)
| null | CC BY-SA 4.0 | null | 2023-01-18T10:38:03.647 | 2023-01-18T10:38:03.647 | null | null | 10,970,871 | null |
75,157,998 | 2 | null | 75,156,403 | 1 | null | If that `id` column was a metric (number) on which you can aggregate, then you could do something like this with the `PIVOT` statement:
```
WITH in_table AS (
SELECT 1 AS sku_id, 0.5 AS id
UNION ALL
SELECT 1 AS sku_id, 0.6 AS id
UNION ALL
SELECT 1 AS sku_id, 0.7 AS id
UNION ALL
SELECT 2 AS sku_id, 0.3 AS id
),
out_table AS (
SELECT * FROM
(SELECT sku_id, id FROM in_table)
PIVOT(SUM(id) AS sum_id FOR sku_id IN (1, 2, 3))
)
-- to check the input data as a tabular output
-- SELECT *
-- FROM in_table;
-- to check the output data as a tabular output
SELECT *
FROM out_table;
```
input data:
[](https://i.stack.imgur.com/zd2HS.png)
output data:
[](https://i.stack.imgur.com/CwvnT.png)
Having that `id` field with categorical values, I am not sure you could achieve a similar outcome. If you try to put just `id` in that `PIVOT`, then you could see this error:
> PIVOT expression must be an aggregate function call at [34:9]
Maybe there are other ways to achieve exactly what you ask. However, I hope the sample SQL above helps in putting you towards the right direction.
| null | CC BY-SA 4.0 | null | 2023-01-18T10:44:21.337 | 2023-01-18T10:44:21.337 | null | null | 1,264,920 | null |
75,158,045 | 2 | null | 49,095,692 | 0 | null | This may well not suffice in every case but, for me, the old fashioned approach of restarting my machine fixed this problem!
| null | CC BY-SA 4.0 | null | 2023-01-18T10:47:33.463 | 2023-01-18T10:47:33.463 | null | null | 9,022,913 | null |
75,158,047 | 2 | null | 29,530,185 | 1 | null | With only css
Codepen-[FollowMe Headers](https://codepen.io/danish64/pen/jOpGovv)
```
body {
margin:0;
min-height:200vh;
border:2px solid;
}
.first {
height:50px;
background:red;
height: 10rem;
}
.second {
height:50px;
background:blue;
height: 10rem;
}
.third {
height:50px;
background:green;
height: 10rem;
}
.stickyContainer {
.sticky {
position: sticky;
top: 0;
height: 2rem;
background: white;
}
}
```
```
<div class="first stickyContainer">
<div class="sticky"><h1>1</h1></div>
<p>lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum</p>
</div>
<div class="second stickyContainer">
<div class="sticky"><h1>2</h1></div>
<p>lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum</p>
</div>
<div class="third stickyContainer">
<div class="sticky"><h1>3</h1></div>
<p>lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum</p>
</div>
```
| null | CC BY-SA 4.0 | null | 2023-01-18T10:47:45.660 | 2023-01-18T10:47:45.660 | null | null | 9,090,441 | null |
75,158,100 | 2 | null | 75,157,754 | 0 | null | When using SQL (and other languages) its best to use an unambiguous format such as `yyyy-mm-dd`
Also consider using the `DATE` type instead of `VARCHAR`
```
@FromDate DATE(50),
@ToDate DATE(50)
```
| null | CC BY-SA 4.0 | null | 2023-01-18T10:52:21.207 | 2023-01-18T10:52:21.207 | null | null | 1,856,451 | null |
75,158,367 | 2 | null | 75,156,678 | 1 | null | The issue was that the lsp client only attaches to files ending in `.cmake` instead of `.txt`.
The change to the file type solved the issue of the attachment
| null | CC BY-SA 4.0 | null | 2023-01-18T11:14:20.397 | 2023-01-18T11:14:20.397 | null | null | 17,134,464 | null |
75,158,607 | 2 | null | 75,152,934 | 0 | null | The error is in your spinner, it is not passing the numbers and then the index is not caught and generates an error. try to rewrite
| null | CC BY-SA 4.0 | null | 2023-01-18T11:32:38.580 | 2023-01-18T11:32:38.580 | null | null | 21,035,424 | null |
75,158,627 | 2 | null | 75,157,754 | 0 | null | Though using the wrong datatypes is terrible, sometimes we all have to deal with issues which cannot be changed easily.
You can use:
```
DECLARE @fromDate AS varchar(50);
DECLARE @toDate AS varchar(50);
DECLARE @from AS date;
DECLARE @until AS date;
SET @fromDate = '09-01-2023';
SET @toDate = '10-01-2023';
SET @from = TRY_CONVERT(date, @fromDate, 105);
SET @until = TRY_CONVERT(date, @toDate, 105);
IF @from IS NULL OR @until IS NULL
THROW 51000, 'Parameter is not a valid date ..', 0;
ELSE BEGIN
SELECT DISTINCT
...
FROM
(bunch of tables)
WHERE TRY_CONVERT(date, DefectInspection.DefectInspection_CreatedDate, 110) BETWEEN @from AND @until;
END;
```
[TRY_CONVERT](https://learn.microsoft.com/en-us/sql/t-sql/functions/try-convert-transact-sql) returns NULL if the parsing fails.
The 3rd parameter ([style](https://learn.microsoft.com/en-us/sql/t-sql/functions/cast-and-convert-transact-sql?view=sql-server-ver16#date-and-time-styles)) 105 means format "dd-mm-yyyy" like you use it, 110 means "mm-dd-yyyy".
| null | CC BY-SA 4.0 | null | 2023-01-18T11:33:34.100 | 2023-01-18T11:33:34.100 | null | null | 9,152,504 | null |
75,158,661 | 2 | null | 75,158,307 | 0 | null | ```
def on_enter(e):
code.delete(0, 'end')
code.config(show="*")
def on_leave(e):
name= code.get()
if name=='':
code.insert(0,'password')
code = Entry(frame, width=25, fg='Black', border=0, bg='White', font=('Microsoft YaHei UI Light', 11))`enter code here`
code.place(x=30,y=150)
code.insert(0,'password')
code.bind('<FocusIn>', on_enter)
code.bind('<FocusOut>', on_leave)
```
| null | CC BY-SA 4.0 | null | 2023-01-18T11:37:19.147 | 2023-01-18T11:40:10.190 | 2023-01-18T11:40:10.190 | 7,432 | 13,348,025 | null |
75,158,899 | 2 | null | 10,577,879 | 0 | null | As dwerner and aminadav mentioned, you need to run the node command for the main .js file you're using for your script/app. This file will typically be index.js by default, when you run `npm init` to create the package.json for your NodeJS project.
Maybe you will find this blog post that covers the basics helpful as well. :)
[https://dev.to/bishopwm/my-first-server-and-rest-api-essentials-for-frontenders-2gnk](https://dev.to/bishopwm/my-first-server-and-rest-api-essentials-for-frontenders-2gnk)
| null | CC BY-SA 4.0 | null | 2023-01-18T11:58:09.977 | 2023-01-18T11:58:09.977 | null | null | 20,572,705 | null |
75,159,210 | 2 | null | 75,159,079 | 0 | null | When it seems that the path is not working, the better way to start solving the problem is to gradually remove tags from left to right while in the inspector tool. By removing `/html/body/div[2]` from your xpath I was able to find the element in the HTML
```
xpath = "//div[2]/div[2]/div[3]/section[2]/div/div[2]/div[2]/div[1]/div[3]/div/label/div/select"
select = Select(driver.find_element(By.XPATH, xpath))
```
which if I understood correctly is this one
[](https://i.stack.imgur.com/uu5usm.png)
| null | CC BY-SA 4.0 | null | 2023-01-18T12:25:32.713 | 2023-01-18T12:25:32.713 | null | null | 8,157,304 | null |
75,159,246 | 2 | null | 61,004,592 | 0 | null | If you have the IdeaVim plugin installed, disable it to get it back to normal.
[](https://i.stack.imgur.com/LQ7B3.png)
| null | CC BY-SA 4.0 | null | 2023-01-18T12:29:10.900 | 2023-01-18T12:38:45.327 | 2023-01-18T12:38:45.327 | 10,539,197 | 10,539,197 | null |
75,159,461 | 2 | null | 75,143,971 | 0 | null | ```
LPWSTR FILE{};
OPENFILENAME NameOfFile;
ZeroMemory(&NameOfFile, sizeof(NameOfFile));
NameOfFile.lStructSize = sizeof(NameOfFile);
TCHAR szFile[MAX_PATH];
NameOfFile.lpstrFile = szFile;
NameOfFile.nMaxFile = sizeof(szFile);
NameOfFile.Flags = OFN_ALLOWMULTISELECT;
if (GetOpenFileName(&NameOfFile))
{
FILE = (LPWSTR)szFile;
}
```
This code will open a dialog window with the purpose to "open" a file.
It will save the name of the file and the path int the variable FILE.
The answer to my problem was the variable szFile that can't be an LPWSTR but needed to be for the dialog window to work. In the end the process does this (I skipped some steps):
1. I make a "buffer" variable szfile (array with 260 characters bc MAX_PATH resolves to that)
2. It makes a sort of reference (similar to a pointer) that points to the array [that is the "NameOfFile.lpstrFile"]
3. Its calls the function in the if statement and opens the dialog window
4. After choosing the function "GetOpenFileName" saves the file name and the path in szFile (the TCHAR - array) and converts that one back to LPWSTR [the code writen in the if statement]
5. You got your stuff and can continue
thanks for everyone's help
| null | CC BY-SA 4.0 | null | 2023-01-18T12:47:36.547 | 2023-01-20T05:03:04.260 | 2023-01-20T05:03:04.260 | 12,229,910 | 20,765,214 | null |
75,159,507 | 2 | null | 75,159,079 | 0 | null | To recognise the little button that goes from page 1 to all to view all player stat on single page and select the an option within the [website](https://www.nba.com/stats/players/advanced) you can use the following [locator strategies](https://stackoverflow.com/questions/48369043/official-locator-strategies-for-the-webdriver):
```
from selenium.webdriver.support.ui import Select
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
driver.get('https://www.nba.com/stats/players/advanced')
WebDriverWait(driver, 5).until(EC.element_to_be_clickable((By.CSS_SELECTOR, "button#onetrust-accept-btn-handler"))).click()
Select(driver.find_element(By.XPATH, "//div[starts-with(@class, 'Pagination')]//div[contains(., 'Page')]//following::div[1]//select")).select_by_index(0)
```
| null | CC BY-SA 4.0 | null | 2023-01-18T12:51:25.520 | 2023-01-18T12:51:25.520 | null | null | 7,429,447 | null |
75,159,523 | 2 | null | 30,684,759 | 2 | null | Set the `flex-direction: column`
You're trying to stack the items in a column rather than a row.
```
{
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
```
| null | CC BY-SA 4.0 | null | 2023-01-18T12:52:33.297 | 2023-01-18T12:52:33.297 | null | null | 2,184,747 | null |
75,159,533 | 2 | null | 75,107,507 | 1 | null | You need to install .NET Framework 3.5. The easiest way is to use Windows Features (can also be started with `Win+R` and then enter `control appwiz.cpl,,2`) and then tick `.NET Framework 3.5`.
(Just had the same issue and B&R support helped me :))
| null | CC BY-SA 4.0 | null | 2023-01-18T12:53:15.783 | 2023-01-18T12:53:15.783 | null | null | 271,961 | null |
75,159,834 | 2 | null | 75,108,533 | 0 | null |
# What's going on?
As the error message says, the browser you use with the `webview` library (or actually a [renderer](https://pywebview.github.io/guide/renderer.html)) most probably does not allow popups.
The code you provided does not fire any popups, but as you mentioned Firebase authentication in the tags, I believe it happens during this stage.
# Solution
If this issue happens during the Firebase authentication indeed, the simplest solution would be to use the `auth.signInWithRedirect()` instead of `auth.signInWithPopup()` (see [the documentation](https://firebase.google.com/docs/auth/web/google-signin#handle_the_sign-in_flow_with_the_firebase_sdk) for more info).
If you care about popups in general, you could try to change the renderer settings or even the renderer itself, however, it would be more troublesome.
| null | CC BY-SA 4.0 | null | 2023-01-18T13:17:43.250 | 2023-01-22T20:45:27.203 | 2023-01-22T20:45:27.203 | 9,335,767 | 9,335,767 | null |
75,159,948 | 2 | null | 75,159,885 | 0 | null | Incase you are using [selenium4](/questions/tagged/selenium4) you need to pass the argument:
```
ChromeDriverManager().install()
```
along with the `service` keyword as follows:
```
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.chrome.service import Service
driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()))
driver.get("https://www.nike.com/de/launch/t/air-force-1-07-fresh")
```
| null | CC BY-SA 4.0 | null | 2023-01-18T13:27:13.903 | 2023-01-18T13:27:13.903 | null | null | 7,429,447 | null |
75,160,023 | 2 | null | 74,433,530 | 0 | null | Before clicking or performing any of the click events(mousedown, mouseup, click, etc.) try moving the mouse.
I had the exact same problem. All clicks were successful and at the right coordinates. It just would not work.
Your code would look like this:
```
// Move mouse to some random position
cy.get('#chart-canvas').trigger('mousemove', 100, 100);
// Click
cy.get('#chart-canvas').click(180, 270, { force: true });
```
Tested this on multiple different canvas projects.
| null | CC BY-SA 4.0 | null | 2023-01-18T13:32:34.623 | 2023-01-18T13:32:34.623 | null | null | 5,592,811 | null |
75,161,050 | 2 | null | 75,160,477 | 0 | null | Select the first cell you want to change before running the code.
```
Sub insertBrand()
Do While ActiveCell.Value <> ""
ActiveCell.Value = "Brand " & ActiveCell.Value
Cells(ActiveCell.Row + 1, ActiveCell.Column).Activate
Loop
End Sub
```
| null | CC BY-SA 4.0 | null | 2023-01-18T14:49:19.340 | 2023-01-18T14:49:19.340 | null | null | 13,615,068 | null |
75,161,054 | 2 | null | 75,160,477 | 1 | null | Add a new module in the Visual Basic Editor (VBE).
Add this code to the module:
```
Option Explicit
Public Sub Add_Brand()
Dim Cell As Range
For Each Cell In Selection
Cell = "Brand " & Cell
Next Cell
End Sub
```
Select a range of cells, go to View > Macros on the toolbar and run the Add_Brand macro.
I should add that if the selected range of cells contain a formula then this will overwrite the formula with the new value.
If you did have formula (not an array formula) I guess you could use this code....
```
Public Sub Add_Brand()
Dim Cell As Range
For Each Cell In Selection
If Cell.HasFormula Then
Cell.Formula2 = "=""Brand "" & " & Mid(Cell.Formula2, 2, Len(Cell.Formula2))
Else
Cell = "Brand " & Cell
End If
Next Cell
End Sub
```
| null | CC BY-SA 4.0 | null | 2023-01-18T14:49:28.367 | 2023-01-18T15:10:19.913 | 2023-01-18T15:10:19.913 | 4,677,305 | 4,677,305 | null |
75,161,917 | 2 | null | 75,160,635 | 0 | null | Consider how you would use your model for inference. On new data, you will not know the class, so you can only apply the scaler to all of the cases. That will reduce the model's performance.
| null | CC BY-SA 4.0 | null | 2023-01-18T15:56:37.580 | 2023-01-18T15:56:37.580 | null | null | 1,227,961 | null |
75,161,946 | 2 | null | 75,159,862 | 1 | null | You have two problems here:
1. You are loading your entire 600000 lines JSON file into a single json string. This string will be much larger than 85,000 bytes so will be added to the large object heap, causing problems described in Why Large Object Heap and why do we care?.
2. You are then parsing that huge string into a JArray which will take up even more memory.
I reckon you are creating the intermediate JSON string because you need to use asynchronous file reading, but Json.NET's serializer does not support `async` deserialization. However, `JsonTextReader` does support asynchronous reading via [JsonTextReader.ReadAsync()](https://www.newtonsoft.com/json/help/html/M_Newtonsoft_Json_JsonTextReader_ReadAsync.htm) and `JToken` does support asynchronous loading via [Token.LoadAsync()](https://www.newtonsoft.com/json/help/html/M_Newtonsoft_Json_Linq_JToken_LoadAsync_1.htm). Putting those together, it is possible to iterate through a huge JSON array asynchronously, load each item into a `JToken` asynchronously, then deserialize the token to your final array item (here `Country`) with bounded memory use.
And in fact, [this answer](https://stackoverflow.com/a/72502371/3744182) to [Deserializing to AsyncEnumerable using Newtonsoft.Json](https://stackoverflow.com/q/72451669/3744182) has an extension method that does exactly that:
```
public static partial class JsonExtensions
{
/// <summary>
/// Asynchronously load and synchronously deserialize values from a stream containing a JSON array. The root object of the JSON stream must in fact be an array, or an exception is thrown
/// </summary>
public static async IAsyncEnumerable<T?> DeserializeAsyncEnumerable<T>(Stream stream, JsonSerializerSettings? settings = default, [EnumeratorCancellation] CancellationToken cancellationToken = default)
{
// See https://stackoverflow.com/a/72502371/3744182 for the body of this method
```
So grab all the code from the `JsonExtensions` extension class from [that answer](https://stackoverflow.com/a/72502371/3744182), and now you will be able to create your `countries` list as follows:
```
var fileName = Path.Combine(web.ContentRootPath, "countries.json");
var countries = new List<Country>();
await using var stream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read, bufferSize: 4096, useAsync: true);
await foreach (var country in JsonExtensions.DeserializeAsyncEnumerable<Country>(stream))
{
if (country == null)
continue;
if (country.Cities != null)
foreach (var city in country.Cities)
{
// Do you need another instance of City? If so you may clone the current one as follows:
// city = JToken.FromObject(city).ToObject<City>();
city.CountryId = country.Id;
context.Cities.Add(city);
context.Entry(city).State = Microsoft.EntityFrameworkCore.EntityState.Detached;
}
countries.Add(country);
}
```
Notes:
- In your sample code, you seem to be deserializing `Cities` twice. `item.ToObject<Country>();` will deserialize the `Country.Cities` list, but then you deserialize them again manually in your `foreach (var city in citites)` loop. It's unclear why you are doing this since the list of cities is already present under the country, so I removed the duplication from my sample codeIf for some reason you do you need to create two instances of each `City`, you may need to clone them (e.g. by round-tripping them with the JSON serializer) inside the `foreach (var city in country.Cities)` loop in my sample code.
Demo fiddle #1 [here](https://dotnetfiddle.net/TKJfCn).
, as suggested by [CodeCaster](https://stackoverflow.com/users/266143/codecaster) in [comments](https://stackoverflow.com/questions/75159862/performance-issue-with-deserlizing-large-json-file-into-objects-and-add-them-to#comment132631106_75159862), you could switch to System.Text.Json, which has built-in support for asynchronous deserialization of huge JSON arrays via [JsonSerializer.DeserializeAsyncEnumerable()](https://docs.microsoft.com/en-us/dotnet/api/system.text.json.jsonserializer.deserializeasyncenumerable?view=net-7.0):
```
using System.Text.Json;
using System.Text.Json.Serialization;
var countries = new List<Country>();
await using var stream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read, bufferSize: 4096, useAsync: true);
var options = new JsonSerializerOptions
{
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
//PropertyNameCaseInsensitive is required to deserialize "iso2" and "iso3" correctly
PropertyNameCaseInsensitive = true,
};
await foreach (var country in JsonSerializer.DeserializeAsyncEnumerable<Country>(stream, options))
{
if (country == null)
continue;
if (country.Cities != null)
foreach (var city in country.Cities)
{
// Do you need another instance of City? If so you may clone the current one as follows:
// city = JsonSerializer.Deserialize<City>(JsonSerializer.SerializeToUtf8Bytes(city));
city.CountryId = country.Id;
context.Cities.Add(city);
context.Entry(city).State = Microsoft.EntityFrameworkCore.EntityState.Detached;
}
countries.Add(country);
}
```
Demo fiddle #2 [here](https://dotnetfiddle.net/v256Q4).
| null | CC BY-SA 4.0 | null | 2023-01-18T15:58:57.410 | 2023-01-18T16:06:00.137 | 2023-01-18T16:06:00.137 | 3,744,182 | 3,744,182 | null |
75,162,126 | 2 | null | 75,162,071 | 0 | null | Bootstrap is a CSS framework you can use to easily code forms and other layout
[https://getbootstrap.com/docs/4.0/components/forms/](https://getbootstrap.com/docs/4.0/components/forms/)
there are other wireframes too such as Bulma but I find Bootstrap the easiest to work with
| null | CC BY-SA 4.0 | null | 2023-01-18T16:12:53.120 | 2023-01-18T16:12:53.120 | null | null | 15,198,797 | null |
75,162,217 | 2 | null | 75,162,071 | 0 | null | I feel those white boxes have a transparent background color and a transparent border color. So, the CSS for those boxes will go something along these lines:
```
background-color:rgba(255,255,255,0.2);
border:2px solid rgba(255,255,255,0.6);
```
| null | CC BY-SA 4.0 | null | 2023-01-18T16:19:02.420 | 2023-01-18T16:19:02.420 | null | null | 2,504,989 | null |
75,162,317 | 2 | null | 75,162,071 | 0 | null | I am not sure I understand your question, do you want buttons within the white input boxes? It isn't possible to have a button within an input.
To create those white input boxes, you need to use `<input type="text">` for small text inputs and to create the larger inputs like you want to use CSS to size the input box bigger.
Of course to style those input boxes white and with curved edges you'll need to add a `class="your-css-class"` tag-helper within the tag. Said CSS class will need to have `color:white;` and `border-radius:5%;` for example to add the styling.
To create that default text in the input boxes you can use the tag-helper `value="Enter your adress here..."` in your `<input>` tag.
To get each input label and input box within those green boxes you should use . This is an easy framework, read more here [https://css-tricks.com/snippets/css/a-guide-to-flexbox/](https://css-tricks.com/snippets/css/a-guide-to-flexbox/)
Those green boxes can each be a `<div>` tag with the label and input tags within it, and all the green boxes together should be encompassed in a `<div>` tag. The individual `<div>` tags for each green box can share a class that styles them using flexbox properties like `flex-direction:row;` to get the label and input next to each other horizontally. Lastly, the `<div>` tag encompassing all of those smaller ones can be styled with the flexbox property `flex-direction:column;` to get the green boxes to show vertically.
To add flexbox add the CSS property `display:flex;` to your overall `<div>` tag encompassing all green boxes/`<div>`s and also the individual `<div>` tags representing the individual green boxes.
Hope this helps.
| null | CC BY-SA 4.0 | null | 2023-01-18T16:27:03.283 | 2023-01-18T16:27:03.283 | null | null | 21,035,177 | null |
75,162,365 | 2 | null | 75,160,496 | 1 | null | As suggested in the comments, easiest is to bind the data frames by using a source identifying column as an aesthetic. `dplyr::bind_rows` allows you to easily create an ID column "on the fly".
```
library(tidyverse)
library(ggpattern)
## bind data sets
df <- bind_rows(test = LarvaDataAreas, control = ControlPlots, .id = "control")
ggplot(df, aes(x = Area, y = Hostplant)) +
geom_boxplot_pattern(aes(pattern = control),
pattern_density = 0.02, pattern_spacing = 0.01,
pattern_colour = 'black', alpha = 0.8) +
scale_pattern_manual(NULL, values=c("none", "stripe"))
```

| null | CC BY-SA 4.0 | null | 2023-01-18T16:31:10.080 | 2023-01-18T16:31:10.080 | null | null | 7,941,188 | null |
75,162,650 | 2 | null | 75,160,477 | 1 | null |
## A Worksheet Change: Add a Prefix
- `Sheet1``Module1``ThisWorkbook`- `A2:A1048576``"Brand "`
```
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Const FIRST_CELL As String = "A2"
Const PREFIX As String = "Brand "
On Error GoTo ClearError
Dim trg As Range
With Me.Range(FIRST_CELL)
Set trg = .Resize(Me.Rows.Count - .Row + 1)
End With
Dim irg As Range: Set irg = Intersect(trg, Target)
If irg Is Nothing Then Exit Sub
Dim pLen As Long: pLen = Len(PREFIX)
Dim iCell As Range, iString As String
Application.EnableEvents = False
For Each iCell In irg.Cells
iString = CStr(iCell.Value)
If Len(iString) > 0 Then
'If InStr(1, iString, PREFIX, vbTextCompare) <> 1 Then
iCell.Value = PREFIX & iString
'End If
End If
Next iCell
ProcExit:
On Error Resume Next
If Not Application.EnableEvents Then Application.EnableEvents = True
On Error GoTo 0
Exit Sub
ClearError:
Debug.Print "Run-time error '" & Err.Number & "':" & vbLf & Err.Description
Resume ProcExit
End Sub
```
| null | CC BY-SA 4.0 | null | 2023-01-18T16:54:04.147 | 2023-01-18T16:54:04.147 | null | null | 9,814,069 | null |
75,162,776 | 2 | null | 75,162,212 | 1 | null | iframes have a default display type of inline. Inline elements are initially designed for text and your iframe acts a bit as one giant character. It has a bit of white space beneath for the descenders of the characters (characters like j and g have descenders).
To cut a long story short, try changing the display type with css (and remove the border).
```
body {
margin: 0;
}
iframe {
display: block;
border: 0;
}
```
```
<iframe id="i1" src="yoursource1.html" width="100%" style="height:100vh; background:black"></iframe>
<iframe id="i2" src="yoursource2.html" width="100%" style="height:100vh; background:black"></iframe>
```
| null | CC BY-SA 4.0 | null | 2023-01-18T17:05:05.070 | 2023-01-18T17:23:13.710 | 2023-01-18T17:23:13.710 | 314,565 | 314,565 | null |
75,163,727 | 2 | null | 75,163,607 | 3 | null | That's not a component.. it is a `Material` and what you underlined is the Shader it uses.
You will need to select the shader in the Assets in order to see which properties it exposes.
Then once you know it's name you can use e.g. [SetFloat](https://docs.unity3d.com/ScriptReference/Material.SetFloat.html) on the according material.
Without having Unity open a wild guess would be something like `_GlowPower` but you will need to check.
so basically
```
yourObject.GetComponent<TMP_Text>().fontMaterial.SetFloat("_GlowPower", xy);
```
| null | CC BY-SA 4.0 | null | 2023-01-18T18:26:27.833 | 2023-01-18T18:29:01.157 | 2023-01-18T18:29:01.157 | 7,111,561 | 7,111,561 | null |
75,163,931 | 2 | null | 75,161,179 | 0 | null | Here's one way:
```
library(sf)
library(tidyverse)
# example data
# using the state border of north carolina
nc = st_read(system.file("shape/nc.shp", package="sf")) %>%
st_union()
# create a bounding box
bbox <- st_bbox(nc) %>% st_as_sfc()
# make a hexagonal grid over the bounding box
hex_grid <- st_make_grid(bbox, square = FALSE, n = 40)
hex_sf <- hex_grid %>% st_as_sf()
#index of hexagons fully or partially covered by the state
intersections_index <- st_intersects(nc, hex_grid, sparse = F)
# sf object of only the hexagons we want
intersected_hex <- hex_sf[intersections_index, ]
## plotting it all:
ggplot() +
geom_sf(data = hex_sf, color = 'orange') +
geom_sf(data = intersected_hex, fill = 'gray40')+
geom_sf(data = nc, color = 'blue', fill = NA)
```
Full hexagonal grid in orange, selected hexagons in gray, state outline (bounding shapefile) in blue.

[reprex package](https://reprex.tidyverse.org)
| null | CC BY-SA 4.0 | null | 2023-01-18T18:45:27.390 | 2023-01-18T18:45:27.390 | null | null | 7,547,327 | null |
75,164,115 | 2 | null | 74,856,756 | 0 | null | There's no solution I was using the default mac Terminal, it appears that the Terminal is stuck in the 1970's and doesn't process termguicolors, as a remedy.
I'm using alacritty know, and works fine know.
| null | CC BY-SA 4.0 | null | 2023-01-18T19:06:21.300 | 2023-01-18T19:06:21.300 | null | null | 20,818,360 | null |
75,164,173 | 2 | null | 75,163,483 | 1 | null | If you use `with yerrobars` instead of `with errorlines` it seem to work for gnuplot 5.4.4 and 5.4.5, however, not for gnuplot<=5.4.0 and not for the gnuplot5.5.0 binary which I have. Pretty strange...
(seems to work only for gnuplot 5.4.4 and 5.4.5)
```
### yerrorbars with variable pointtype
reset session
array data = [7, 2, 5, 6]
plot [0.7:4.3] data u 1:2:($2-0.8):($2+0.8):(7-($1==3)) w yerrorbars \
pt var ps 3 lw 2 lc "red"
### end of script
```
[](https://i.stack.imgur.com/6Olnv.png)
| null | CC BY-SA 4.0 | null | 2023-01-18T19:12:02.783 | 2023-01-18T19:12:02.783 | null | null | 7,295,599 | null |
75,164,240 | 2 | null | 75,125,216 | 1 | null | So... the "problem" is that you have a scrolling view of button. That 16 pixels is to show the scrollbar when you drag the view.
Easy fix is to leave space for it by adding padding.
```
ScrollView(.horizontal, showsIndicators: true) {
HStack(spacing: 8) {
ForEach(1..<10) { i in
Button { print(i) } label: {
Text("Button \(i)")
.padding(24)
.background(Color.yellow)
}
}
}
.padding(.bottom, 16)
```
note: while adding the space does make the whole button clickable, if you just finished dragging the buttons, the 16 pixels is increased for a couple seconds after you finish dragging. During that time, part of the button sill won't be clickable, instead it makes the scrollbar tab get bigger.
| null | CC BY-SA 4.0 | null | 2023-01-18T19:16:40.920 | 2023-01-18T19:16:40.920 | null | null | 20,835,263 | null |
75,164,300 | 2 | null | 75,164,022 | 0 | null | I'm guessing what you may want to do. But if you want to filter by formula your range according to the dates match your second range you can do something like this:
```
=FILTER (Sheet1!A:O,INDEX(IFERROR (MATCH(Sheet1!A:A,Sheet2!A:A,0))))
```
Change the ranges accordingly. I used sheet 2 as the set of dates you wanted to filter by
| null | CC BY-SA 4.0 | null | 2023-01-18T19:22:26.357 | 2023-01-18T19:22:26.357 | null | null | 20,363,318 | null |
75,164,336 | 2 | null | 75,155,623 | 1 | null | Add grid lines on the border.
For every grid line, horizontal or vertical, list all the intersection points on it in left-to-right or top-to-bottom order.
Foe every intersection point, store its nearest neighbor along a grid line to the right, and its nearest neighbor along a grid line to the bottom.
For every intersection point A, if it has both neighbors, proceed to the right neighbor B until it has a bottom neighbor. Also, proceed to the bottom neighbor C until it has a right neighbor. The three points A, B, and C are three corners of a rectangle.
If necessary, for each rectangle, detect whether it is inside or outside one of the given polygons.
| null | CC BY-SA 4.0 | null | 2023-01-18T19:25:47.170 | 2023-01-18T19:25:47.170 | null | null | 1,488,799 | null |
75,164,483 | 2 | null | 75,163,483 | 1 | null | Known bug. Fixed recently, not yet in distributed release. Description below is from the commit log.
> ```
fix variable pointtype, pointsize in plot styles yerrorlines and yerrorbars
Despite what the documentation said, these two plot styles did not
correctly track variable point properties, with the exception of
using x:y:ylow:yhigh:(varprop) with yerrorbars
and even there the variable pointsize was lost unless pointintervalbox
was set to 0.
Now both plot styles work for either x:y:ydelta or x:y:ylow:yhigh
and either or both of pointstyle variable and pointtype variable.
It remains a limitation that "pt variable" cannot load character
point types. This is due to field overloading in struct coordinate.
```
| null | CC BY-SA 4.0 | null | 2023-01-18T19:39:44.563 | 2023-01-18T19:39:44.563 | null | null | 6,797,953 | null |
75,164,553 | 2 | null | 75,155,623 | 1 | null | I'd go with a two-pass [sweep-line algorithm](https://en.wikipedia.org/wiki/Sweep_line_algorithm).
The first pass would compute how far the horizontal lines extend to the right: sweep left to right keeping track of the active horizontal lines in a set sorted by y.
- - - - -
The second pass would compute how far the horizontal lines extend to the left, and emit the rectangles on the go: sweep right to left, again keeping track of the active horizontal lines sorted by y.
- - - - -
| null | CC BY-SA 4.0 | null | 2023-01-18T19:47:36.913 | 2023-01-18T19:47:36.913 | null | null | 277,176 | null |
75,164,891 | 2 | null | 75,164,835 | 0 | null | you can use the `.join()` method of strings to append your values
```
...
"".join(buyslist) # int() for number
```
NOTE that `.join()` is a method of the string `""`, so you can use it to inject separators too (such as `","`)
| null | CC BY-SA 4.0 | null | 2023-01-18T20:21:30.077 | 2023-01-18T20:21:30.077 | null | null | 4,541,045 | null |
75,164,947 | 2 | null | 75,164,835 | 0 | null | It sounds like your goal is to select a random row and extract the value found at index `6` in that row. Right now, you're trying to select a random from index `6` in row.
What you want requires no explicit loop at all:
```
import csv
import random
with open('data.csv') as data: # Use with statement for deterministic cleanup
dataList = list(csv.reader(data, delimiter=','))
randomNumber = random.choice(dataList)[6] # Select random row, extract relevant column
```
If you need the whole `list` of just that row, you can convert once up front, then perform the selection, replacing `randomNumber = random.choice(dataList)[6]` with:
```
buyslist = [item[6] for item in dataList] # Simple listcomp to extract relevant column
# from each row in new list
# Optionally, convert to integer upfront with:
buyslist = [int(item[6]) for item in dataList] # listcomp to both extracts *and* parses
randomNumber = random.choice(buyslist) # Select random value from extracted values
```
| null | CC BY-SA 4.0 | null | 2023-01-18T20:28:48.753 | 2023-01-18T20:40:31.257 | 2023-01-18T20:40:31.257 | 364,696 | 364,696 | null |
75,165,051 | 2 | null | 75,164,835 | 0 | null | Thank you very much ShadowRanger!
You helped me a lot!
My Code:
```
import csv
import random
data = open('data.csv')
dataList = list(csv.reader(data, delimiter=','))
buys = [item[6] for item in dataList]
randomNumber = random.choice(buys)
print(randomNumber)
```
| null | CC BY-SA 4.0 | null | 2023-01-18T20:39:21.590 | 2023-01-18T20:39:21.590 | null | null | 18,017,911 | null |
75,165,801 | 2 | null | 75,165,725 | 0 | null | When you create linked server you need to set RPC (and maybe RPC out):
[](https://i.stack.imgur.com/bqhX5.png)
Regarding your second question, sometimes SSMS doesn't correctly parse linked server objects
| null | CC BY-SA 4.0 | null | 2023-01-18T22:12:49.727 | 2023-01-18T22:12:49.727 | null | null | 13,061,224 | null |
75,165,886 | 2 | null | 74,936,131 | 0 | null | Have you looked in the metadata folder to be sure the files are there as well?
| null | CC BY-SA 4.0 | null | 2023-01-18T22:25:27.010 | 2023-01-18T22:25:27.010 | null | null | 14,211,829 | null |
75,165,953 | 2 | null | 75,165,766 | 2 | null | Added an explicit Workbook reference, and cancelling the OERN as suggested by VBasic2008
```
Sub Check_Sheet_Exists()
Dim WS As Worksheet, wb As Workbook
Dim SheetName As String 'Use Const if the name is fixed...
SheetName = "ABCD"
Set wb = ThisWorkbook
On Error Resume Next 'ignore errors
Set WS = wb.Sheets(SheetName)
On Error GoTo 0 'stop ignoring errors
If WS Is Nothing Then
Set WS = wb.Worksheets.Add(before:=wb.Sheets(wb.Sheets.Count))
WS.Name = SheetName
MsgBox "The sheet '" & SheetName & "' was created."
Else
MsgBox "The sheet '" & SheetName & "' already exists."
End If
End Sub
```
| null | CC BY-SA 4.0 | null | 2023-01-18T22:33:49.493 | 2023-01-18T23:34:18.690 | 2023-01-18T23:34:18.690 | 478,884 | 478,884 | null |
75,166,025 | 2 | null | 75,165,591 | 3 | null | I think your confusion comes from the different way functor map property can be represented.
```
trait Functor[F[_]] {
def map1[A, B](f: A => B): F[A] => F[B]
def map2[A, B](f: A => B)(fa: F[A]): F[B]
def map3[A, B](fa: F[A])(f: A => B): F[B]
}
```
Here... `map1` is the haskell aligned definition... and hence the functor law representation used by haskell also works with this one.
So, this haskell
```
fmap (g . f) = fmap g . fmap f
```
translates to following Scala
```
map1( g.compose(f) ) = map1(g).compose( map1(f) )
// or
map1( f.andThen(g) ) <-> map1(f).andThen(map1(g))
```
But, the thing is that we have few more ways to represent the same `map` property as given by `map2` and `map3`. The overall essens is still the same, we just switched the representation.
Now, when we add the full object oriented angle to it... the "object-oriented" `Functor` becomes something like following.
```
trait List[+A] {
def map(f: A => B): List[B]
}
```
So... for the "object oriented functor" like `List`, the same law can be represented as following
```
listA.map(f).map(g) <-> listA.map(f.andThen(g))
```
And, you are seeing exactly this.
| null | CC BY-SA 4.0 | null | 2023-01-18T22:42:18.743 | 2023-01-18T23:41:30.787 | 2023-01-18T23:41:30.787 | 5,249,621 | 1,151,929 | null |
75,166,042 | 2 | null | 64,583,689 | 0 | null | When I tried this on Chrome (109.0.5414.87), numbered font-weights are converted to keywords. 100 to 600 are converted to "normal" and disappeared, and 700 - 900 are converted to "bold".
```
var context = document.createElement("canvas").getContext("2d");
context.font = "100 16px Arial"
console.log(context.font) // prints "16px Arial"
context.font = "700 16px Arial"
console.log(context.font) // prints "bold 16px Arial"
```
| null | CC BY-SA 4.0 | null | 2023-01-18T22:45:11.517 | 2023-01-18T22:45:11.517 | null | null | 9,059,878 | null |
75,166,076 | 2 | null | 75,158,903 | 0 | null | You need to assign `plot_bgcolor`, `paper_bgcolor`, or both in `layout()`.
I've used gray and the color you identified to show which argument does what. Check it out:
```
library(plotly)
(fig <- plot_ly(type = "funnel",
y = c("Invoiced", "Cancelled", "Collected", "Write Off", "Outstanding"),
x = c(1, 3, 5, 7, 8)) %>%
layout(yaxis = list(categoryarray = c("Invoiced", "Cancelled", "Collected",
"Write Off", "Outstanding")),
plot_bgcolor = "#00355c", paper_bgcolor = "gray"))
```
[](https://i.stack.imgur.com/PQHLk.png)
| null | CC BY-SA 4.0 | null | 2023-01-18T22:50:11.263 | 2023-01-18T22:50:11.263 | null | null | 5,329,073 | null |
75,166,157 | 2 | null | 43,669,892 | 0 | null | For anyone who visits this question while googling, this is actually doable.
First of all, anything from one document can be inserted to the other document preserving the basic styles as described in this [GitHub comment](https://github.com/python-openxml/python-docx/issues/182#issuecomment-157500000). Sample code from there:
```
def direct_insert(doc_dest, doc_src):
for p in doc_src.paragraphs:
inserted_p = doc_dest._body._body._insert_p(p._p)
if p._p.get_or_add_pPr().numPr:
inserted_p.style = "ListNumber"
```
The last two lines are called a "dirty hack" for lists in the above mentioned comment. Thought it does not work pretty well. To make it work with lists one will have to dig a bit deeper. `If` clause is okay, but to change the style we will refer to this [comment](https://github.com/python-openxml/python-docx/issues/217#issuecomment-149284813) in another thread.
Code snippet from there:
```
from docx import Document
from docx.shared import Inches
from docx.oxml import OxmlElement
from docx.oxml.ns import qn
def create_list(paragraph, list_type):
p = paragraph._p #access to xml paragraph element
pPr = p.get_or_add_pPr() #access paragraph properties
numPr = OxmlElement('w:numPr') #create number properties element
numId = OxmlElement('w:numId') #create numId element - sets bullet type
numId.set(qn('w:val'), list_type) #set list type/indentation
numPr.append(numId) #add bullet type to number properties list
pPr.append(numPr) #add number properties to paragraph
ordered = "5"
unordered = "1"
document = Document()
paragraph = document.add_paragraph("Hello", "List Paragraph")
create_list(paragraph, unordered)
paragraph = document.add_paragraph("Hello Again", "List Paragraph")
create_list(paragraph, unordered)
paragraph = document.add_paragraph("Goodbye", "List Paragraph")
create_list(paragraph, unordered)
paragraph = document.add_paragraph("Hello", "List Paragraph")
create_list(paragraph, ordered)
paragraph = document.add_paragraph("Hello Again", "List Paragraph")
create_list(paragraph, ordered)
paragraph = document.add_paragraph("Goodbye", "List Paragraph")
create_list(paragraph, ordered)
document.save("bullet list demo.docx")
```
Credits to [berezovskyi](https://github.com/berezovskyi) and [panoptical](https://github.com/panoptical).
---
Now given the information from the research above, the code from question should look like:
```
# -*- coding: utf-8 -*-
from docx import Document
oldDocument = Document("d:/first.docx")
newDocument = Document()
temp = oldDocument.tables[9].rows[1].cells[1]
table = newDocument.add_table(rows=1, cols=1)
for p in temp:
table.rows[0].cells[0]._element._insert_p(p._p)
newDocument.save("d:/second.docx")
```
As the original question does not have lists, `if` clause is not included.
| null | CC BY-SA 4.0 | null | 2023-01-18T23:00:54.070 | 2023-01-18T23:00:54.070 | null | null | 8,489,602 | null |
75,166,243 | 2 | null | 75,154,515 | 1 | null | Since you didn't include definitions of `ListItem` or `API` in your post, here are some simple definitions:
```
struct ListItem: Hashable {
let fileId: String
var name: String
}
class API: ObservableObject {
func getFiles(parentId: String) async throws -> [ListItem]? {
return try FileManager.default
.contentsOfDirectory(atPath: parentId)
.sorted()
.map { name in
ListItem(
fileId: (parentId as NSString).appendingPathComponent(name),
name: name
)
}
}
}
```
With those definitions (and changing the root `fileId` from `"root"` to `"/"`), we have a simple filesystem browser.
Now on to your question. Since you want each column to be the same width, you should put all the columns into a single `HStack`. Since you use recursion to visit the columns, you might think that's not possible, but I will demonstrate that it is possible. In fact, it requires just three simple changes:
- Change `VStack` in `MainView` to `HStack`.- Change the outer `HStack` in `RecursiveFolderListView` to `Group`.- Move the `.task` modifier to the inner `HStack` around the `"Empty"` text, in the `else` branch.
The resulting code (with unchanged chunks omitted):
```
struct MainView: View {
@State private var selectedItem: ListItem? = nil
var body: some View {
HStack { // ⬅️ changed
RecursiveFolderListView(fileId: "/", selectedItem: $selectedItem)
}
}
}
struct RecursiveFolderListView: View {
...
var body: some View {
Group { // ⬅️ changed
if let list = list, list.count > 0 {
...
} else {
HStack {
Spacer()
Text("Empty")
Spacer()
}
.task { // ⬅️ moved to here
list = try? await api.getFiles(parentId: fileId)
}
}
}
// ⬅️ .task moved from here
}
}
```
I don't have the tvOS SDK installed, so I tested by commenting out the use of `.focusSection()` and running in an iPhone simulator:
[](https://i.stack.imgur.com/PT63b.gif)
This works because the subviews of a `Group` are “flattened” into the `Group`'s parent container. So when SwiftUI sees a hierarchy like this:
- `HStack`- `Group`- `ScrollView`- `Group`- `ScrollView`- `Group`- `ScrollView`- `HStack``"Empty"`
SwiftUI flattens it into this:
- `HStack`- `ScrollView`- `ScrollView`- `ScrollView`- `HStack``"Empty"`
I moved the `.task` modifier because otherwise it would be attached to the `Group`, which would pass it on to all of its child views, but we only need the `task` applied to one child view.
| null | CC BY-SA 4.0 | null | 2023-01-18T23:16:44.227 | 2023-01-18T23:16:44.227 | null | null | 77,567 | null |
75,166,275 | 2 | null | 75,164,717 | 2 | null | You can always use the onChange() in the first text area like
```
<textarea id="1" onChange="eraseSec" />
<textarea id="2" />
<script>
function eraseSec(){
x = getelementbyid(1)
y = getelementbyid(2)
if (x.value == ""){
y.value = ""
}
}
</script>
```
This way when you clean the first textarea the second one will be erased
Hope it helps
| null | CC BY-SA 4.0 | null | 2023-01-18T23:21:40.353 | 2023-01-18T23:21:40.353 | null | null | 16,716,210 | null |
75,166,315 | 2 | null | 75,165,764 | 0 | null | What you could do is create a global variable `loop_active` initially set to `False`, and then on the first button click at the end of the `set_breaks` function have it fire a seperate function that controls the 1 second loop, but only if the loop_active is set to false, otherwise it will just perform the regular checks.
It is kind of a combination of what was suggested in the comments to some degree. See inline notes for more details.
for example:
```
from tkinter import *
from tkinter import ttk
from datetime import datetime
root = Tk()
root.title("Fusion Calculator")
root.geometry("700x400")
root.resizable(0, 0)
scheduler_frame = LabelFrame(root, text='Scheduler')
scheduler_frame.pack(fill=X)
scheduler_top_frame = Frame(scheduler_frame)
scheduler_top_frame.pack(fill=X)
hours_label = Label(scheduler_top_frame, text="HH")
hours_label.grid(row=0, column=1, padx=10)
minutes_label = Label(scheduler_top_frame, text="MM")
minutes_label.grid(row=0, column=2, padx=10)
seconds_label = Label(scheduler_top_frame, text="SS")
seconds_label.grid(row=0, column=3, padx=10)
first_break_label = Label(scheduler_top_frame, text="1st Break:")
first_break_label.grid(row=1, column=0, pady=5)
second_break_label = Label(scheduler_top_frame, text="2nd Break:")
second_break_label.grid(row=2, column=0, pady=5)
meal_break_label = Label(scheduler_top_frame, text="Meal Break:")
meal_break_label.grid(row=3, column=0, pady=5)
logout_label = Label(scheduler_top_frame, text="Logout:")
logout_label.grid(row=4, column=0, pady=5)
hour_time_values = ('00', '01', '02', '03', '04', '05', '06', '07', '08', '09',
'10', '11', '12', '13', '14', '15', '16', '17', '18', '19',
'20', '21', '22', '23')
other_time_values = ('00', '01', '02', '03', '04', '05', '06', '07', '08',
'09', '10', '11', '12', '13', '14', '15', '16', '17',
'18', '19', '20', '21', '22', '23', '24', '25', '26',
'27', '28', '29', '30', '31', '32', '33', '34', '35',
'36', '37', '38', '39', '40', '41', '42', '43', '44',
'45', '46', '47', '48', '49', '50', '51', '52', '53',
'54', '55', '56', '57', '58', '59')
first_break_hour_value = StringVar()
first_break_hour_drop = ttk.Combobox(scheduler_top_frame,
width=2,
textvariable=first_break_hour_value)
first_break_hour_drop['values'] = hour_time_values
first_break_hour_drop.grid(row=1, column=1)
first_break_hour_drop.current(0)
first_break_minute_value = StringVar()
first_break_minute_drop = ttk.Combobox(scheduler_top_frame,
width=2,
textvariable=first_break_minute_value)
first_break_minute_drop['values'] = other_time_values
first_break_minute_drop.grid(row=1, column=2)
first_break_minute_drop.current(0)
first_break_second_value = StringVar()
first_break_second_drop = ttk.Combobox(scheduler_top_frame,
width=2,
textvariable=first_break_second_value)
first_break_second_drop['values'] = other_time_values
first_break_second_drop.grid(row=1, column=3)
first_break_second_drop.current(0)
second_break_hour_value = StringVar()
second_break_hour_drop = ttk.Combobox(scheduler_top_frame,
width=2,
textvariable=second_break_hour_value)
second_break_hour_drop['values'] = hour_time_values
second_break_hour_drop.grid(row=2, column=1)
second_break_hour_drop.current(0)
second_break_minute_value = StringVar()
second_break_minute_drop = ttk.Combobox(scheduler_top_frame,
width=2,
textvariable=second_break_minute_value)
second_break_minute_drop['values'] = other_time_values
second_break_minute_drop.grid(row=2, column=2)
second_break_minute_drop.current(0)
second_break_second_value = StringVar()
second_break_second_drop = ttk.Combobox(scheduler_top_frame,
width=2,
textvariable=second_break_second_value)
second_break_second_drop['values'] = other_time_values
second_break_second_drop.grid(row=2, column=3)
second_break_second_drop.current(0)
meal_break_hour_value = StringVar()
meal_break_hour_drop = ttk.Combobox(scheduler_top_frame,
width=2,
textvariable=meal_break_hour_value)
meal_break_hour_drop['values'] = hour_time_values
meal_break_hour_drop.grid(row=3, column=1)
meal_break_hour_drop.current(0)
meal_break_minute_value = StringVar()
meal_break_minute_drop = ttk.Combobox(scheduler_top_frame,
width=2,
textvariable=meal_break_minute_value)
meal_break_minute_drop['values'] = other_time_values
meal_break_minute_drop.grid(row=3, column=2)
meal_break_minute_drop.current(0)
meal_break_second_value = StringVar()
meal_break_second_drop = ttk.Combobox(scheduler_top_frame,
width=2,
textvariable=meal_break_second_value)
meal_break_second_drop['values'] = other_time_values
meal_break_second_drop.grid(row=3, column=3)
meal_break_second_drop.current(0)
logout_hour_value = StringVar()
logout_hour_drop = ttk.Combobox(scheduler_top_frame,
width=2,
textvariable=logout_hour_value)
logout_hour_drop['values'] = hour_time_values
logout_hour_drop.grid(row=4, column=1)
logout_hour_drop.current(0)
logout_minute_value = StringVar()
logout_minute_drop = ttk.Combobox(scheduler_top_frame,
width=2,
textvariable=logout_minute_value)
logout_minute_drop['values'] = other_time_values
logout_minute_drop.grid(row=4, column=2)
logout_minute_drop.current(0)
logout_second_value = StringVar()
logout_second_drop = ttk.Combobox(scheduler_top_frame,
width=2,
textvariable=logout_second_value)
logout_second_drop['values'] = other_time_values
logout_second_drop.grid(row=4, column=3)
logout_second_drop.current(0)
loop_active = False # global variable set to false
def check_breaks(): # new loop function that runs set_breaks and reschedules
set_breaks() # for 1 second later.
root.after(1000, check_breaks)
def set_breaks():
check_break = datetime.now().strftime("%H:%M:%S")
first_break_time = f'{first_break_hour_value.get()}:{first_break_minute_value.get()}:{first_break_second_value.get()}'
second_break_time = f'{second_break_hour_value.get()}:{second_break_minute_value.get()}:{second_break_second_value.get()}'
meal_break_time = f'{meal_break_hour_value.get()}:{meal_break_minute_value.get()}:{meal_break_second_value.get()}'
logout_time = f'{logout_hour_value.get()}:{logout_minute_value.get()}:{logout_second_value.get()}'
if check_break == first_break_time:
popup_first_break = Toplevel(root)
popup_first_break.title('Official Break')
popup_first_break_title_bar = Label(popup_first_break, text='OFFICIAL BREAK', fg='Red')
popup_first_break_title_bar.pack()
print('Working')
elif check_break == second_break_time:
popup_second_break = Toplevel(root)
popup_second_break.title('Official Break 2')
popup_second_break_title_bar = Label(popup_second_break, text='OFFICIAL BREAK 2', fg='Red')
popup_second_break_title_bar.pack()
print('Working')
elif check_break == meal_break_time:
popup_meal_break = Toplevel(root)
popup_meal_break.title('Official Break')
popup_meal_break_title_bar = Label(popup_meal_break, text='MEAL BREAK', fg='Red')
popup_meal_break_title_bar.pack()
print('Working')
elif check_break == logout_time:
popup_logout = Toplevel(root)
popup_logout.title('Official Break')
popup_logout_title_bar = Label(popup_logout, text='LOGOUT', fg='Red')
popup_logout_title_bar.pack()
print('Working')
else:
print(check_break)
global loop_active
if not loop_active: # This will only run when loop_active is false
loop_active = True # Set loop_active to True so it doesn't run again
check_breaks()
set_breaks_button = Button(scheduler_top_frame,
text='Set',
command=set_breaks)
set_breaks_button.grid(row=5, column=3)
root.mainloop()
```
| null | CC BY-SA 4.0 | null | 2023-01-18T23:28:28.550 | 2023-01-18T23:28:28.550 | null | null | 17,829,451 | null |
75,166,363 | 2 | null | 75,165,192 | 0 | null | In newer bootstrap versions there are special "vertical rule" classes / rules which have some transparency.
To avoid that, add `opacity: 1.0;` to your CSS rule.
```
body {
background-color: #1b3b3c !important;
color: white !important;
}
.hr-left-bold {
border: 0.2rem solid #fff;
border-radius: 100rem;
width: 20rem;
opacity: 1.0;
}
```
```
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<h3>Kérdés Cím</h3>
<hr class="hr-left-bold">
<p>Nem kéne így hagyni...</p>
<hr class="hr-left-bold">
<img src="./src/upvote.png" alt="like" class="img-fluid vote-img px-1">
<img src="./src/downvote.png" alt="like" class="img-fluid vote-img px-1">
```
| null | CC BY-SA 4.0 | null | 2023-01-18T23:37:56.970 | 2023-01-18T23:48:45.817 | 2023-01-18T23:48:45.817 | 5,641,669 | 5,641,669 | null |
75,166,438 | 2 | null | 75,077,058 | 0 | null | I got the solution by searching as follows:
```
var flags = [];
consultar (String _option) {
DBRef.child(_option).onValue.listen((event) {
final data = Map<String, dynamic>.from(event.snapshot.value as Map,);
setState(() {
data.forEach((key, value) {
flags.add(value);
});
});
});
}
```
Thanks!
| null | CC BY-SA 4.0 | null | 2023-01-18T23:50:04.380 | 2023-01-18T23:50:04.380 | null | null | 20,978,365 | null |
75,166,437 | 2 | null | 16,411,056 | 1 | null | In my case only this solution worked:
1. In Manifest: <activity
android:name=".TTSpeech"
android:windowSoftInputMode="adjustPan"
android:exported="false" />
2. In Activity call
> clearFocus();
on edittext.
| null | CC BY-SA 4.0 | null | 2023-01-18T23:50:00.410 | 2023-01-18T23:52:36.653 | 2023-01-18T23:52:36.653 | 9,915,617 | 9,915,617 | null |
75,166,495 | 2 | null | 75,165,766 | 1 | null |
## Add Worksheet With Specific Name
```
Sub AddWorksheet()
On Error GoTo ClearError
Const PROC_TITLE As String = "Add Worksheet"
Const SHEET_NAME As String = "A\BCD"
Dim wb As Workbook: Set wb = ThisWorkbook ' workbook containing this code
' Check if sheet name is taken.
Dim sh As Object
On Error Resume Next
Set sh = wb.Sheets(SHEET_NAME)
On Error GoTo ClearError
If Not sh Is Nothing Then
MsgBox "The sheet """ & SHEET_NAME & """ already exists.", _
vbExclamation, PROC_TITLE
Exit Sub
End If
' Add the worksheet.
Dim ws As Worksheet
Set ws = wb.Sheets.Add(Before:=wb.Sheets(wb.Sheets.Count)) ' before last
'Set ws = wb.Sheets.Add(After:=wb.Sheets(wb.Sheets.Count)) ' last
'Set ws = wb.Sheets.Add(Before:=wb.Sheets(1)) ' first
' Rename the worksheet.
Dim ErrNumber As Long, ErrDescription As String
' Atempt to rename.
On Error Resume Next
ws.Name = SHEET_NAME
ErrNumber = Err.Number
ErrDescription = Err.Description
On Error GoTo ClearError
' Invalid Sheet Name.
If ErrNumber <> 0 Then
Application.DisplayAlerts = False ' to delete without confirmation
ws.Delete
Application.DisplayAlerts = True
MsgBox "Run-time error '" & ErrNumber & vbLf & vbLf _
& ErrDescription & vbLf & vbLf & vbLf & PROC_TITLE & " Info" _
& vbLf & "The name """ & SHEET_NAME & _
""" is invalid. Worksheet not added.", vbCritical, PROC_TITLE
Exit Sub
End If
' Valid Sheet Name
MsgBox "The worksheet """ & SHEET_NAME & """ was added.", _
vbInformation, PROC_TITLE
ProcExit:
Exit Sub
ClearError:
MsgBox "Run-time error '" & Err.Number & vbLf & vbLf _
& Err.Description & vbLf & vbLf & vbLf & PROC_TITLE & " Info" _
& vbLf & "An unexpected error occurred.", _
vbCritical, PROC_TITLE
Resume ProcExit
End Sub
```
| null | CC BY-SA 4.0 | null | 2023-01-19T00:02:11.190 | 2023-01-19T00:02:11.190 | null | null | 9,814,069 | null |
75,166,626 | 2 | null | 75,164,047 | 1 | null | It appears there is some missing information in your query. Let me write it out similar to an Excel IF statement:
```
=IF(CaseSame,IF(DateSame,IF(APPR,Appr,IF(DENY,PtDeny,??)),??),??)
```
With the information given, we don't know what to do in all outcomes. The outcomes marked with "??" will show as FALSE, because there is no output given for those criteria. But that formula would look like this:
```
=IF(A2=OFFSET(A2,-1,0),IF(B2=OFFSET(B2,-1,0),IF(C2="APPROVED","Approved",IF(C2="DENIED","Partial Denial",FALSE)),FALSE),FALSE)
```
And even there, I'm having to make the assumptions that you intend to go off the data in the row above for "case ID is the same" and "date is the same".
Are we supposed to assume that if no other criteria is given, to use column C's answer? In that case, there is still one unknown outcome in the IF statement:
```
=IF(C2="APPROVED","Approved",IF(C2="DENIED","Partial Denial",FALSE))
```
As long as no other entry is made in Column C, that should provide consistent results.
Here are what the two statements render in the Final Status column:
[Results of both IF statements against your data and instructions](https://i.stack.imgur.com/sj2gQ.png)
I hope this helps. With clearer information what to do in all circumstances, I may be able to provide a better answer.
| null | CC BY-SA 4.0 | null | 2023-01-19T00:23:07.180 | 2023-01-19T00:23:07.180 | null | null | 21,038,782 | null |
75,166,773 | 2 | null | 75,165,591 | 3 | null | `F(g ∘ f) = F(g) ∘ F(f)` is the same as `∀fa, (F(g ∘ f))(fa) = (F(g) ∘ F(f))(fa)` (equality of functions is equality of images for all arguments, this is in HoTT [1](https://math.stackexchange.com/questions/1403122/when-do-two-functions-become-equal) [2](https://mathoverflow.net/questions/346220/uniqueness-principle-for-functions-types-in-the-hott-book) [3](https://ncatlab.org/nlab/show/function+extensionality)).
The latter is translated as
```
def covariantComposition[A, B, C](fa: F[A], f: A => B, g: B => C): IsEq[F[C]] =
fa.map(f).map(g) <-> fa.map(f.andThen(g))
```
(actually, `fa.map(f.andThen(g)) <-> fa.map(f).map(g)`).
If you'd like to have "point-free" `F(g ∘ f) = F(g) ∘ F(f)` you could write `_.map(f.andThen(g)) <-> _.map(f).map(g)` or `_.map(f.andThen(g)) <-> (_.map(f)).andThen(_.map(g))` (this is `fmap (g . f) = fmap g . fmap f` in Haskell, or more precisely, in some "meta-Haskell").
The 2nd code snippet in your question
```
def covariantComposition[A, B, C](fa: F[A], f: A => B, g: B => C): IsEq[F[C]] =
fa.map(f).andThen(fa.map(g)) <-> fa.map(f.andThen(g))
```
is incorrect. `fa.map(f).andThen...` doesn't make sense as it was mentioned in comments. You seem to confuse `F` and `F[A]`.
In category theory, in general categories, `f: A -> B` can be just arrows, not necessarily functions (e.g. related pairs in a [pre-order](https://en.wikipedia.org/wiki/Preorder) if a category is this pre-order), so `(F(g ∘ f))(fa)` can make no sense. But the category of types in Scala (or Haskell) is a category where objects are types and morphisms are functions.
| null | CC BY-SA 4.0 | null | 2023-01-19T00:48:07.117 | 2023-01-19T01:04:55.933 | 2023-01-19T01:04:55.933 | 5,249,621 | 5,249,621 | null |
75,166,867 | 2 | null | 75,166,726 | 0 | null | You need some brackets to specify the order of operations, try this:
`=query('BH Job Data'!$A:$G, "select * where C>= date '"&text(A8,"yyyy-mm-dd")&"' AND C<= date '"&text(A10,"yyyy-mm-dd")&"' AND (F = '"&$A$3&"' OR F = '"&$A$4&"' OR F = '"&$A$5&"' OR F = '"&$A$6&"')",1)`
You also don't need the absolute references since this formula is not meant to be dragged.
`=query('BH Job Data'!A:G, "select * where C>= date '"&text(A8,"yyyy-mm-dd")&"' AND C<= date '"&text(A10,"yyyy-mm-dd")&"' AND (F = '"&A3&"' OR F = '"&A4&"' OR F = '"&A5&"' OR F = '"&A6&"')",1)`
(You could also omit `select *`, since it's assumed)
---
But if you're just filtering the data, I recommend using FILTER.
`={'BH Job Data'!A1:G1;FILTER('BH Job Data'!A:G,ISBETWEEN('BH Job Data'!C:C,A8,A10),COUNTIF(A3:A6,'BH Job Data!'F:F))}`
| null | CC BY-SA 4.0 | null | 2023-01-19T01:07:47.753 | 2023-01-19T01:13:31.040 | 2023-01-19T01:13:31.040 | 17,887,301 | 17,887,301 | null |
75,167,003 | 2 | null | 29,329,999 | 0 | null | if you using try this :
1. then Install shivammathur/php
add shivammathur php
```
brew tap shivammathur/php
```
change php version with you needed (5.6 or 7.2 or 7.4 or 8.1 or next version)
```
brew install shivammathur/php/[email protected]
```
2.Install shivammathur/extensions it s will add extension to php
then
```
brew tap shivammathur/extensions
brew install shivammathur/extensions/[email protected]
```
then you install mcrypt with same version as php version
```
brew install [email protected]
```
then restart httpd
```
brew services restart httpd
```
Ref :
[https://github.com/shivammathur/homebrew-php](https://github.com/shivammathur/homebrew-php)
[https://github.com/shivammathur/homebrew-extensions](https://github.com/shivammathur/homebrew-extensions)
| null | CC BY-SA 4.0 | null | 2023-01-19T01:41:39.720 | 2023-01-19T01:41:39.720 | null | null | 14,587,143 | null |
75,167,029 | 2 | null | 75,166,986 | 1 | null | There are trailing newline (`"\n"`) characters at the end of the items except the last one.
You can use `file.read().splitlines()` instead to get rid of those newline characters:
```
with open("test.txt", "r") as file:
#lines = file.readlines()
lines = file.read().splitlines()
```
| null | CC BY-SA 4.0 | null | 2023-01-19T01:47:03.900 | 2023-01-20T05:19:43.527 | 2023-01-20T05:19:43.527 | 5,317,403 | 5,317,403 | null |
75,167,250 | 2 | null | 75,166,533 | 1 | null |
# Return Not Matching Items
## Excel
```
=UNIQUE(FILTER(A2:A21,ISNA(XMATCH(A2:A21,B2:B21))))
```
```
=LET(vCol,A2:A21,lCol,B2:B21,fInc,ISNA(XMATCH(vCol,lCol)),
UNIQUE(FILTER(vCol,fInc)))
```
```
vCol - Value Column
lCol - Lookup Column
fInc - Filter Include
```
[](https://i.stack.imgur.com/EYrJi.jpg)
## VBA
`Sheet1`
```
Private Sub Worksheet_Activate()
CheckMappings Me
End Sub
```
`Module1`
```
Sub CheckMappingsTEST()
Dim ws As Worksheet: Set ws = ThisWorkbook.Worksheets("Sheet1")
CheckMappings ws
End Sub
```
```
Sub CheckMappings(ByVal ws As Worksheet)
Const SEARCH_FIRST_CELL As String = "A2"
Const MATCH_FIRST_CELL As String = "B2"
Dim srg As Range: Set srg = RefColumn(ws.Range(SEARCH_FIRST_CELL))
If srg Is Nothing Then Exit Sub
Dim mrg As Range: Set mrg = RefColumn(ws.Range(MATCH_FIRST_CELL))
If mrg Is Nothing Then Exit Sub
Dim sData(): sData = GetColumnRange(srg)
Dim sDict As Object: Set sDict = DictColumn(sData)
If sDict Is Nothing Then Exit Sub
Dim mData(): mData = GetColumnRange(mrg)
Dim mDict As Object: Set mDict = DictColumn(mData)
If mDict Is Nothing Then Exit Sub
RemoveDictFromDict sDict, mDict
If sDict.Count = 0 Then
MsgBox "No items to fix.", vbInformation
Else
MsgBox "The following " & IIf(sDict.Count = 1, "item is", _
sDict.Count & " items are") & " not mapped:" & vbLf & vbLf _
& Join(sDict.Keys, vbLf) & vbLf & vbLf & "Please fix.", vbCritical
End If
End Sub
```
## The Help
```
Function RefColumn( _
ByVal FirstCell As Range) _
As Range
With FirstCell.Cells(1)
Dim cel As Range: Set cel = .Resize(.Worksheet.Rows.Count - .Row + 1) _
.Find("*", , xlFormulas, , , xlPrevious)
If Not cel Is Nothing Then Set RefColumn = .Resize(cel.Row - .Row + 1)
End With
End Function
```
```
Function GetColumnRange( _
ByVal rg As Range, _
Optional ByVal ColumnIndex As Long = 1) _
As Variant
With rg.Columns(ColumnIndex)
If .Rows.Count = 1 Then
ReDim Data(1 To 1, 1 To 1): Data(1, 1) = .Value
Else
Data = .Value
End If
End With
GetColumnRange = Data
End Function
```
```
Function DictColumn( _
Data() As Variant, _
Optional ByVal ColumnIndex As Variant) _
As Object
Dim dict As Object: Set dict = CreateObject("Scripting.Dictionary")
dict.CompareMode = vbTextCompare ' case-insensitive
Dim c As Long
If IsMissing(ColumnIndex) Then
c = LBound(Data, 2) ' use first column index
Else
c = CLng(ColumnIndex)
End If
Dim Key As Variant
Dim r As Long
For r = LBound(Data, 1) To UBound(Data, 1)
Key = Data(r, c)
If Not IsError(Key) Then ' exclude error values
If Len(CStr(Key)) > 0 Then ' exclude blanks
dict(Key) = Empty
End If
End If
Next r
If dict.Count = 0 Then Exit Function ' only error values and blanks
Set DictColumn = dict
End Function
```
```
Sub RemoveDictFromDict( _
ByRef RemoveDict As Object, _
ByVal MatchDict As Object)
Dim rkey As Variant
For Each rkey In RemoveDict.Keys
If MatchDict.Exists(rkey) Then RemoveDict.Remove rkey
Next rkey
End Sub
```
| null | CC BY-SA 4.0 | null | 2023-01-19T02:37:25.600 | 2023-01-19T02:37:25.600 | null | null | 9,814,069 | null |
75,167,422 | 2 | null | 75,167,393 | 2 | null | From [Robo 3T's site](https://robomongo.org/):
> Why is work on Robo 3T being halted?
> Robo 3T is deeply based on the Mongo shell client. This older client has been deprecated in MongoDB 5.0 and is not expected to be maintained in the future. The new Mongosh client is a Node-based tool and is not compatible with the current Robo 3T architecture. Studio 3T took the decision to create a free edition of their tool suite to replace Robo 3T which matched the functionality and would be able to track future MongoDB developments. You can read more about this on the [Robo 3T blog](https://blog.robomongo.org/studio3t-free/).
Seemingly, Robo 3T has been deprecated and will not support for your MongoDB v6.0 version. You should migrate to [Studio 3T for free](https://studio3t.com/download-studio3t-free) as they suggest.
| null | CC BY-SA 4.0 | null | 2023-01-19T03:18:23.620 | 2023-01-19T03:18:23.620 | null | null | 14,732,669 | null |
75,167,421 | 2 | null | 75,154,515 | 0 | null | Although rob's answer is perfect, I want to share another approach.
```
class SaveToPageViewModel: ObservableObject {
@Published var fileIds = [String]()
func tryInsert(fileId: String, parentFileId: String?) {
if parentFileId == nil {
fileIds.append(fileId)
} else if fileIds.last == parentFileId {
fileIds.append(fileId)
} else if fileIds.last == fileId {
// do noting, because this was caused by navigation bug, onAppear called twice
} else {
var copy = fileIds
copy.removeLast()
while copy.last != parentFileId {
copy.removeLast()
}
copy.append(fileId)
fileIds = copy
}
}
}
```
And wrap the container a `GeometryReader` and using the `SaveToPageViewModel` to follow the recursive view's length:
```
@State var itemWidth: CGFloat = 0
...
GeometryReader { proxy in
...
RecursiveFolderListView(fileId: "root", selectedItem: $selectedItem, parentFileId: nil, itemWidth: itemWidth)
.environmentObject(viewModel)
...
}
.onReceive(viewModel.$fileIds) { fileIds in
itemWidth = proxy.size.width / CGFloat(fileIds.count)
}
```
And in the `RecursiveFolderListView`, change the model data:
```
RecursiveFolderListView(fileId: item.fileId, selectedItem: $selectedItem, parentFileId: fileId, itemWidth: itemWidth)
.id(theId)
...
}
.onAppear {
model.tryInsert(fileId: fileId, parentFileId: parentFileId)
}
```
| null | CC BY-SA 4.0 | null | 2023-01-19T03:18:01.350 | 2023-01-19T03:18:01.350 | null | null | 5,303,178 | null |
75,167,937 | 2 | null | 75,167,863 | 0 | null | `fig.layout.yaxis1.ticksuffix` only adds suffix to `tick label` and not `data label`.
If you want to add `% suffix` to data label, you must add it to data itself.
At first you can try creating new `column` with `% suffix`
```
DSAT2022['Waiting on Other team %'] = DSAT2022['Waiting on Other
team'].apply(lambda x: f"{x}%")
DSAT2022['Improper case mgmt %'] = DSAT2022['Improper case
mgmt'].apply(lambda x: f"{x}%")
```
Now you can use new created column into the data
```
fig1 = px.line(DSAT2022, x ='Month', y = 'Waiting on Other team %', text =
'Waiting on Other team %', color_discrete_sequence=['firebrick'])
fig2 = px.line(DSAT2022, x ='Month', y = 'Improper case mgmt %', text =
'Improper case mgmt %', color_discrete_sequence=['darkorange'])
```
| null | CC BY-SA 4.0 | null | 2023-01-19T05:03:20.210 | 2023-01-19T05:03:20.210 | null | null | 8,180,996 | null |
75,168,428 | 2 | null | 75,167,268 | 0 | null | I've found the answer, this is the code that I add in javascript to ensure that it will work
```
function EmailSend(templateID) {
var EmailAttr = new Object();
EmailAttr.templateID = templateID;
$.ajax({
type: "post",
url: "Home/SendEmail/",
dataType: "json",
contentType: 'application/x-www-form-urlencoded',
data: EmailAttr,
success: function (result) {
console.log(result)
}
})};
```
It seems that I need to change content type from
```
contentType: "application/json;charset=utf-8"
```
to
```
contentType: 'application/x-www-form-urlencoded'
```
| null | CC BY-SA 4.0 | null | 2023-01-19T06:21:39.173 | 2023-01-19T06:21:39.173 | null | null | 21,040,478 | null |
75,168,745 | 2 | null | 75,168,429 | 1 | null | Besides doing manual annotations as in the comment you can filter your data to just the data you want to highlight and then let ggplot do all the aesthetic mapping for you. Here is an example using the built in `mtcars` dataset. The dataset is filtered to obtain the minimum or maximum of the value plotted on the x-axis and then those points plotted with an additional geom using that filtered data set:
```
library(dplyr)
library(ggplot2)
data_to_highlight <-
mtcars |>
group_by(cyl) |>
filter(disp == min(disp) | disp == max(disp))
ggplot()+
geom_line(data = mtcars,
aes(x = disp,
y = mpg,
color = as.factor(cyl)))+
geom_point(data = data_to_highlight,
aes(x = disp,
y = mpg,
color = as.factor(cyl)))
```
[](https://i.stack.imgur.com/6N7v9.png)
Note: You also can map the values as text and do some more fun stuff. Here the min/max points of the `disp` variable is highlighted with points and the corresponding `mpg` values written in text:
```
ggplot()+
geom_line(data = mtcars,
aes(x = disp,
y = mpg,
color = as.factor(cyl)))+
geom_point(data = data_to_highlight,
aes(x = disp,
y = mpg,
color = as.factor(cyl)),
size = 6, shape = 16)+
geom_text(data = data_to_highlight,
aes(x = disp,
y = mpg,
label = mpg),
size = 2,
color = "white")
```
[](https://i.stack.imgur.com/5BqTN.png)
| null | CC BY-SA 4.0 | null | 2023-01-19T07:05:02.167 | 2023-01-19T07:12:15.207 | 2023-01-19T07:12:15.207 | 11,437,205 | 11,437,205 | null |
75,168,895 | 2 | null | 75,168,803 | -1 | null | In Postman's headers section, you have to set `Accept` and `content-type` to `application/json`:
[Image](https://i.stack.imgur.com/BuUKW.png)
| null | CC BY-SA 4.0 | null | 2023-01-19T07:24:43.220 | 2023-01-19T20:59:35.570 | 2023-01-19T20:59:35.570 | 21,041,642 | 21,041,642 | null |
75,169,027 | 2 | null | 75,168,717 | 0 | null | Try this:
```
* {
font-size: 16px;
font-family: 'playfair_displayblack';
}
.container {
position: relative;
padding-top: 100px;
height: 100vh;
display: flex;
justify-content: center;
}
.central {
display: flex;
width: 66vw;
height: 55vh;
z-index: 2;
}
.left {
flex: 1;
}
.right {
flex: 2;
background-color: #2b563b;
overflow: hidden;
}
.belle {
max-width: 100%;
max-height: 100%;
display: block;
border: 9px solid whitesmoke;
}
.bas {
display: flex;
flex-direction: row;
}
.pied {
bottom: 100px;
width: 90vw;
height: 30vh;
margin-left: auto;
margin-right: auto;
}
.pied {
font-weight: bolder;
font-family: serif;
position: absolute;
width: 0px;
overflow: visible;
bottom: 35%;
left: 50%;
}
.pied h1 {
position: absolute;
text-align: center;
text-transform: uppercase;
font-size: 16rem;
transform: translate(-50%, 0);
font-family: 'playfair_displayitalic';
top: 0;
left: 50%;
}
```
```
<main class="container">
<div class="central">
<div class="left">
<img src="images/chantal.jpg" alt="" class="belle">
</div>
<div class="right">
<section>
<header>
<h1> <span>strategy</span> </h1>
</header>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
</section>
</div>
</div>
<div class="pied"><h1>lucette</h1></div>
</main>
```
Mind the fact that you might need to tweak the `bottom` attribute of `.pied` as I did not have that font.
Main issue in your code was that you didn't set `position: absolute` for the main container of the text. I did some tweaks to ensure that text is also centered etc.
| null | CC BY-SA 4.0 | null | 2023-01-19T07:39:21.400 | 2023-01-19T07:39:21.400 | null | null | 20,862,292 | null |
75,169,101 | 2 | null | 75,168,717 | 0 | null | Using absolute position removes items from the normal flow of the page, and can often lead to isolation and z-index mistakes.
I'm attaching a method using a grid layout to superimpose items. Grids are usually easier to debug.
Just to be clear absolute positions can be used, this is just an alternative.
```
section {
display: grid;
}
.behind {
height: 5rem;
width: 5rem;
background-color: red;
grid-area: 1 / 1;
}
.front {
height: 3rem;
width: 3rem;
background-color: blue;
/* Can also use grid-area */
grid-column: 1;
grid-row: 1;
}
```
```
<section>
<div class="behind"></div>
<div class="front"></div>
</section>
```
| null | CC BY-SA 4.0 | null | 2023-01-19T07:47:47.943 | 2023-01-19T07:47:47.943 | null | null | 14,393,584 | null |
75,169,497 | 2 | null | 75,164,726 | 0 | null | I would say that the problem is that you are rending the data from the prop data. And if the data prop doesn't update there will be no changes in the dom to update.
So my guess is that the parent (or where the data comes from needs to be updated up there somewhere).
You can test this by changing data for datosPorCopiar and you will see changes. But I guess this is not what you want in the end.
```
// This is the data I'm talking about.
{data
.filter((dat) => dat.mes === mes && dat.anio === anio)
.map((dat) => (
<tr key={dat.id}>
<td>{dat.roomName}</td>
<td>{dat.dni}</td>
<td>{dat.name}</td>
<td>{dat.lastName}</td>
<td>{dat.phone}</td>
<td>{dat.price}</td>
<td>{dat.montoPagado}</td>
<td>{dat.notas}</td>
<td>
<Link
to={`/edit/${dat.id}`}
state={{ names: names }}
className="btn btn-light"
>
<i className="fa-solid fa-pencil"></i>
</Link>
<button
onClick={() => {
confirmDelete(dat.id);
}}
className="btn btn-danger"
>
<i className="fa-solid fa-trash"></i>
</button>
</td>
</tr>
))}
```
| null | CC BY-SA 4.0 | null | 2023-01-19T08:30:19.610 | 2023-01-19T08:30:19.610 | null | null | 2,677,968 | null |
75,169,615 | 2 | null | 20,395,026 | 0 | null | select `Proyect > Build Automatically`
or
clean your proyect in `Proyect > Clean > Select Your Proyect`
or
In Proyect Explorer select `Build Path > Build Path Configure` change to your Java SDK (via JRE System Library -> Alternate JRE).
In my case I had a Library (missing). I deleted it
| null | CC BY-SA 4.0 | null | 2023-01-19T08:43:20.283 | 2023-01-19T08:43:20.283 | null | null | 18,199,036 | null |
75,169,663 | 2 | null | 48,948,259 | 0 | null | I had this problem, with the cause described by Robin Zimmerman, I would add that with VScode can easily be setup to avoid this issue. You simply have to change VScode's Jupyter port (instead of having to kill it), by going to the palette command (`Cmd+Shift+P`), and typing in `>Jupyter: Specify Jupyter Command Line Arguments`, then choose `Custom` and finally `--NotebookApp.port=9999 --notebook-dir=/tmp`
| null | CC BY-SA 4.0 | null | 2023-01-19T08:48:58.367 | 2023-01-19T08:48:58.367 | null | null | 21,042,018 | null |
75,169,705 | 2 | null | 75,169,549 | 0 | null | One option is to use 2 row generators cross joined to your current table.
```
SQL> with
2 work_order (wo_no) as
3 (select 1 from dual union all
4 select 2 from dual
5 ),
6 task (task_no) as
7 (select level from dual connect by level <= 5),
8 step (task_step_no) as
9 (select level from dual connect by level <= 20) --> you'd have 2000 here
10 select y.wo_no, t.task_no, s.task_step_no
11 from work_order y cross join task t cross join step s
12 order by 1, 2, 3;
```
Result:
```
WO_NO TASK_NO TASK_STEP_NO
---------- ---------- ------------
1 1 1
1 1 2
1 1 3
1 1 4
1 1 5
1 1 6
1 1 7
1 1 8
1 1 9
1 1 10
1 1 11
1 1 12
1 1 13
1 1 14
1 1 15
1 1 16
1 1 17
1 1 18
1 1 19
1 1 20
1 2 1
1 2 2
1 2 3
1 2 4
1 2 5
1 2 6
1 2 7
1 2 8
1 2 9
1 2 10
1 2 11
1 2 12
1 2 13
1 2 14
1 2 15
1 2 16
1 2 17
1 2 18
1 2 19
1 2 20
1 3 1
1 3 2
1 3 3
1 3 4
1 3 5
1 3 6
1 3 7
1 3 8
1 3 9
1 3 10
1 3 11
1 3 12
1 3 13
1 3 14
1 3 15
1 3 16
1 3 17
1 3 18
1 3 19
1 3 20
1 4 1
1 4 2
1 4 3
1 4 4
1 4 5
1 4 6
1 4 7
1 4 8
1 4 9
1 4 10
1 4 11
1 4 12
1 4 13
1 4 14
1 4 15
1 4 16
1 4 17
1 4 18
1 4 19
1 4 20
1 5 1
1 5 2
1 5 3
1 5 4
1 5 5
1 5 6
1 5 7
1 5 8
1 5 9
1 5 10
1 5 11
1 5 12
1 5 13
1 5 14
1 5 15
1 5 16
1 5 17
1 5 18
1 5 19
1 5 20
2 1 1
2 1 2
2 1 3
2 1 4
2 1 5
2 1 6
2 1 7
2 1 8
2 1 9
2 1 10
2 1 11
2 1 12
2 1 13
2 1 14
2 1 15
2 1 16
2 1 17
2 1 18
2 1 19
2 1 20
2 2 1
2 2 2
2 2 3
2 2 4
2 2 5
2 2 6
2 2 7
2 2 8
2 2 9
2 2 10
2 2 11
2 2 12
2 2 13
2 2 14
2 2 15
2 2 16
2 2 17
2 2 18
2 2 19
2 2 20
2 3 1
2 3 2
2 3 3
2 3 4
2 3 5
2 3 6
2 3 7
2 3 8
2 3 9
2 3 10
2 3 11
2 3 12
2 3 13
2 3 14
2 3 15
2 3 16
2 3 17
2 3 18
2 3 19
2 3 20
2 4 1
2 4 2
2 4 3
2 4 4
2 4 5
2 4 6
2 4 7
2 4 8
2 4 9
2 4 10
2 4 11
2 4 12
2 4 13
2 4 14
2 4 15
2 4 16
2 4 17
2 4 18
2 4 19
2 4 20
2 5 1
2 5 2
2 5 3
2 5 4
2 5 5
2 5 6
2 5 7
2 5 8
2 5 9
2 5 10
2 5 11
2 5 12
2 5 13
2 5 14
2 5 15
2 5 16
2 5 17
2 5 18
2 5 19
2 5 20
200 rows selected.
SQL>
```
---
As you already have the `work_order` table, you'd just use it in `FROM` clause (not as a CTE):
```
with
task (task_no) as
(select level from dual connect by level <= 5),
step (task_step_no) as
(select level from dual connect by level <= 20)
select y.wo_no, t.task_no, s.task_step_no
from work_order y cross join task t cross join step s
order by 1, 2, 3;
```
| null | CC BY-SA 4.0 | null | 2023-01-19T08:53:14.683 | 2023-01-19T09:29:50.413 | 2023-01-19T09:29:50.413 | 9,097,906 | 9,097,906 | null |
75,169,826 | 2 | null | 75,161,458 | 0 | null | I'm using Intellij IDEA and there is a plugin that create all the file on it, if you really want a clean environment use this to create your project and go back on eclipse after, i can create it and send you the main folder if you can provide you paper version that you want
| null | CC BY-SA 4.0 | null | 2023-01-19T09:04:17.020 | 2023-01-19T09:04:17.020 | null | null | 19,862,958 | null |
75,169,914 | 2 | null | 75,115,909 | 4 | null | I had this issue when I updated android studio from Dolphin to Electric Eel. I believe the patch process might have caused the java bundle in jre directory to be deleted. This is how I solved it.
- -
| null | CC BY-SA 4.0 | null | 2023-01-19T09:12:20.937 | 2023-01-19T09:12:20.937 | null | null | 14,260,995 | null |
75,170,322 | 2 | null | 24,322,896 | 0 | null | My `HTTP_PROXY` and `HTTPS_PROXY` were setup in environment variable(s) for one project. So, removing this from environment variable(s) helped me sort the issue.
| null | CC BY-SA 4.0 | null | 2023-01-19T09:45:47.830 | 2023-02-09T13:47:15.187 | 2023-02-09T13:47:15.187 | 5,211,833 | 12,188,660 | null |
75,170,357 | 2 | null | 75,167,418 | 0 | null | You should be able to use [bindingRedirect](https://learn.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/runtime/bindingredirect-element) to use the specified version.
For example:
```
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="myAssembly"
publicKeyToken="32ab4ba45e0a69a1"
culture="neutral" />
<bindingRedirect oldVersion="1.0.0.0"
newVersion="2.0.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
```
| null | CC BY-SA 4.0 | null | 2023-01-19T09:48:57.690 | 2023-01-19T09:48:57.690 | null | null | 16,764,901 | null |
75,170,383 | 2 | null | 33,175,827 | 0 | null | Just type `python` and then hit `tab-button` You will get the list of all the python available in your os
| null | CC BY-SA 4.0 | null | 2023-01-19T09:50:55.290 | 2023-01-19T09:50:55.290 | null | null | 14,344,009 | null |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.