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,170,427 | 2 | null | 75,170,265 | 0 | null | You are using a SingleChildScrollView inside a Stack, remember that the SingleChildScrollView has a variable height or width, so if you want to have both widgets you need to wrap the stack into a container and wrap this container into your SingleChildScrollView.
| null | CC BY-SA 4.0 | null | 2023-01-19T09:54:26.140 | 2023-01-19T09:54:26.140 | null | null | 17,989,173 | null |
75,170,504 | 2 | null | 10,068,566 | 0 | null | Please follow these below steps
[](https://i.stack.imgur.com/VVdlA.png)
Right click on private key and select "Get Info"
[](https://i.stack.imgur.com/uE3zK.png)
[](https://i.stack.imgur.com/tKcNA.png)
click "Save changes" then enter your credentials- username and password when prompted. Close the popup of private key. Quit Keychain and follow the above steps again to check if the changes have been saved successfully.
Quit Xcode app and open it again. Now when you run your iOS project with this certificate it should not ask for password.
| null | CC BY-SA 4.0 | null | 2023-01-19T10:00:21.397 | 2023-01-19T10:00:21.397 | null | null | 7,642,568 | null |
75,170,542 | 2 | null | 75,170,446 | 0 | null | Error you got (ORA-06550) suggests that
- `TEST`- `TEST`
In other words, make sure you're connected to the same user.
| null | CC BY-SA 4.0 | null | 2023-01-19T10:03:33.973 | 2023-01-19T10:03:33.973 | null | null | 9,097,906 | null |
75,170,619 | 2 | null | 27,755,169 | 0 | null | [Activity monitor ss](https://i.stack.imgur.com/dhM9D.png)
For those who are on MAC, go to activity monitor, Under 'CPU' tab, search for 'mysqld' process and Terminate.
I'd assume the same for Windows in Task Manager
| null | CC BY-SA 4.0 | null | 2023-01-19T10:10:06.453 | 2023-01-19T10:11:31.777 | 2023-01-19T10:11:31.777 | 13,614,170 | 13,614,170 | null |
75,170,707 | 2 | null | 75,168,803 | 0 | null | You need to send data from raw section in JSON Format, and try to send your image in base64 format (because its very convenient way to store a image into file system via the API).
Example:`{"profile_pic":"data:image/png;base64,iVBORw0KGgoAAAANSUh (base64 image string)"}`
you can convert base64 image here [https://www.base64-image.de/](https://www.base64-image.de/)
and in Android and iOS has some libraries for converting image to base 64 while sending data to API
Welcome in Advance.
| null | CC BY-SA 4.0 | null | 2023-01-19T10:15:53.207 | 2023-01-19T10:15:53.207 | null | null | 20,962,369 | null |
75,170,821 | 2 | null | 75,170,400 | 0 | null | Easiest way is to use child theme. You can then copy across the appropriate template and add in the code for the button.
It sounds complicated but it's really quite simple. It's all explained in the theme documentation:
[https://docs.mylistingtheme.com/article/installing-child-theme/](https://docs.mylistingtheme.com/article/installing-child-theme/)
| null | CC BY-SA 4.0 | null | 2023-01-19T10:25:52.020 | 2023-01-19T10:25:52.020 | null | null | 2,192,756 | null |
75,170,817 | 2 | null | 75,170,605 | 0 | null | Possibly [Selenium](https://stackoverflow.com/a/54482491/7429447) is still not compatible with [java-17](/questions/tagged/java-17).
Try to enforce the `source` and `target` argument for the Java compiler to within `maven-compiler-plugin` as follows:
```
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
```
---
Here is the complete `<build>` dependency:
```
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<configuration>
<suiteXmlFiles>
<suiteXmlFile>testng.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<dependencies>
...
...
</dependencies>
```
| null | CC BY-SA 4.0 | null | 2023-01-19T10:25:12.377 | 2023-01-19T12:52:03.067 | 2023-01-19T12:52:03.067 | 7,429,447 | 7,429,447 | null |
75,170,886 | 2 | null | 75,170,466 | 0 | null | Currently because the session is not started in the right place in the `login.php` script you are always redirecting back to the `login.php` script
So start the session before using and `$_SESSION` values and it will no longer jump back to the login script
```
start_session();
include 'conn/config.php';
if ( ! isset($_SESSION['user']) ){
header('Location: login.php');
exit;
}
//session_start() // remove this
```
| null | CC BY-SA 4.0 | null | 2023-01-19T10:31:09.373 | 2023-01-19T10:41:12.257 | 2023-01-19T10:41:12.257 | 2,310,830 | 2,310,830 | null |
75,171,260 | 2 | null | 75,167,551 | 1 | null | I was very confused when I first try to use VS for Mac too. Everything seemed to be in the wrong place.
The button in the editor you're looking for is the Play button at the top left of the screenshot. The Configuration selector next to it is `Debug` which means `Play` will start debugging the application. The options are available in the application's menus as well, in the `Run` menu.
Check [Debugging with Visual Studio for Mac](https://learn.microsoft.com/en-us/visualstudio/mac/debugging?view=vsmac-2022)
The reason for this confusion is that Visual Studio for Mac is actually Xamarin Studio rebranded as Visual Studio. The IDE was built following MacOS conventions, menus and shortcuts. The IDE is still focused on Xamarin development primarily.
You should consider using JetBrains Rider alongside VS for Mac. Both IDEs have their strengths and weaknesses, with Rider being a better all-around IDE but VS for Mac getting some core features, eg Blazor WASM debugging, earlier
| null | CC BY-SA 4.0 | null | 2023-01-19T11:02:27.880 | 2023-01-19T11:10:05.193 | 2023-01-19T11:10:05.193 | 134,204 | 134,204 | null |
75,171,566 | 2 | null | 75,166,930 | 2 | null | Define a range name in Excel as and the contents of that cell would be:
```
http://www.apartmenthomeliving.com/Houston-OK/zip-code/77055-apartments
```
In powerquery,
```
let URL= Excel.CurrentWorkbook(){[Name="url"]}[Content]{0}[Column1],
Source = Web.Page(Web.Contents(URL)),
Data = Source{0}[Data],
#"Changed Type" = Table.TransformColumnTypes(Data,{{"Bedroom", type text}, {"Average Rent", Currency.Type}, {"Cheapest Rent", Currency.Type}, {"Highest Rent", Currency.Type}})
in #"Changed Type"
```
In the future, when asking questions, please post code as code not as images
| null | CC BY-SA 4.0 | null | 2023-01-19T11:29:35.107 | 2023-01-19T12:30:18.510 | 2023-01-19T12:30:18.510 | 9,264,230 | 9,264,230 | null |
75,171,669 | 2 | null | 70,323,990 | 0 | null |
## iframe x video
A Video element allows you to add media to your event page by pasting the HTML embed code or a YouTube or Vimeo URL link. You also have the option to set the video to loop.
Video elements are more responsive and can be resized across devices like Phones and tablets.
An iframe element, short for the inline frame, is an HTML element that allows an external webpage to be embedded in an HTML document. or loop iframes.
[https://support.splashthat.com/hc/en-us/articles/360037963911-What-s-the-difference-between-Iframe-elements-and-Video-elements-](https://support.splashthat.com/hc/en-us/articles/360037963911-What-s-the-difference-between-Iframe-elements-and-Video-elements-)
As an alternative instead of using `<iframe>` use just the `video` tag, e.g.:
```
<video
allow="fullscreen"
frameBorder="0"
width="100%"
height="700"
controls
controlsList="nodownload"
>
<source :src="<SOME URL TO VIDEO>" />
</video>
```
| null | CC BY-SA 4.0 | null | 2023-01-19T11:37:43.247 | 2023-01-19T11:37:43.247 | null | null | 11,898,172 | null |
75,171,755 | 2 | null | 71,201,292 | 0 | null | each line is detected by the equation:
y=mx+c
so you have to calculate the m,c so and use the average accumulator to detect all the ting liens into one line that has the m,c
| null | CC BY-SA 4.0 | null | 2023-01-19T11:44:45.457 | 2023-01-19T11:44:45.457 | null | null | 20,829,290 | null |
75,171,753 | 2 | null | 75,171,552 | 0 | null | your SQL-File is not a file to configure the mariadb instance. You can split up your commands like the following code snippet:
```
docker rm ctnr-mariadb --force
docker pull mariadb:latest
docker run --name ctnr-mariadb -e MYSQL_ROOT_PASSWORD=example -e MARIADB_USER=user -e MARIADB_PASSWORD=password -e MARIADB_DATABASE=repo -p 1234:3306 -detach mariadb
docker exec -i ctnr-mariadb sh -c 'exec mariadb -uroot -pexample repo' < ./sql/init.sql
```
Attention: I have hard coded the environment variables in the last command.
| null | CC BY-SA 4.0 | null | 2023-01-19T11:44:22.907 | 2023-01-19T11:44:22.907 | null | null | 4,578,611 | null |
75,171,816 | 2 | null | 74,191,324 | 0 | null | first, in the gradle build file, change the implementation from 1.7.0 to 1.6.0
Next, open the colors file and change the color of the tag (#) which has 7 digits to a 6 digit tag. Because usually the default color of tags on Android Studio is sometimes 7 digits or 6 digits
| null | CC BY-SA 4.0 | null | 2023-01-19T11:50:58.630 | 2023-01-19T11:50:58.630 | null | null | 21,043,089 | null |
75,171,831 | 2 | null | 75,171,552 | 0 | null | As per `docker run` [documentation](https://docs.docker.com/engine/reference/commandline/run/) all Docker arguments must be placed before the image name. Everything after the image name is a command to be run inside the image (equivalent to CMD in Dockerfile).
With that in mind your `docker run` command should be:
```
docker run --name ctnr-mariadb -e MYSQL_ROOT_PASSWORD=example -e MARIADB_USER=user -e MARIADB_PASSWORD=password -e MARIADB_DATABASE=repo -p 1234:3306 --detach -v sql/init.sql:/docker-entrypoint-initdb.d/init.sql mariadb
```
| null | CC BY-SA 4.0 | null | 2023-01-19T11:52:18.250 | 2023-01-19T11:52:18.250 | null | null | 9,624,452 | null |
75,171,931 | 2 | null | 75,158,014 | 1 | null | I made my own version because I could not get yours to work, but if you want to make yours work, at least one problem with I found is with this line:
```
img=cv2.resize(img,(500,500))
```
by printing all the variables after the supposed "conversion", I found that your variable `img` in the previous line is not an image but the result of `image_file.write(data)` which returns the number of bytes written to the file and not the image itself, which is probably why it always prints the same image.
Here is my version
```
root=Tk()
root.withdraw()
file_path = filedialog.askopenfilename(
initialdir = "C:\Binaries\Images",
title = "Select Hexadecimal Text File",
filetypes = (("Text Files", "*.txt"),)
)
with open(file_path, "r") as hex_file:
hex_data = hex_file.read().replace("\n", "")
#replaces white spaces and new lines from file
binary_data = binascii.a2b_hex(hex_data)
#converts the hexadecimal data to binary
pathname, extension = os.path.splitext(file_path)
image_path = pathname + ".png"
#image path and format
with open(image_path, "wb") as image_file:
image_file.write(binary_data)
#writing the binary data to image file
img = cv2.imread(image_path, cv2.IMREAD_UNCHANGED)
#if txt file is empty
if img is None:
print("Error: Image not loaded!")
else:
cv2.imshow("image", img)
#waits for key input and closes when pressing any key
cv2.waitKey(0)
cv2.destroyAllWindows()
```
| null | CC BY-SA 4.0 | null | 2023-01-19T12:01:22.640 | 2023-01-19T16:32:07.223 | 2023-01-19T16:32:07.223 | 14,270,816 | 14,270,816 | null |
75,171,941 | 2 | null | 75,143,971 | 0 | null | If this project was being compiled as UNICODE we would expect to see that NameOfFile.lpstrFile would be of type `LPWSTR`.
However, as seen by the error message it is actually of type `LPSTR`.
The error `E0513 A value of type ""LPWSTR"" cannot be assigned to an entity of type ""LPSTR"""` is therefore highlighting that the two types don’t match.
Interestingly the screenshot does show that Unicode has been selected for All builds.
Whilst the exact cause of this issue is not known, the solution here is to add `/D "_UNICODE" /D "UNICODE"` to the Configuration Properties->C/C++->Additional Options section.
This will ensure that all builds are in fact being compiled using the Unicode option.
| null | CC BY-SA 4.0 | null | 2023-01-19T12:02:06.240 | 2023-01-19T12:02:06.240 | null | null | 20,716,902 | null |
75,172,236 | 2 | null | 28,754,323 | 0 | null | For me the problem was solved when using the correct version of `logback-classic`.
SLF4J in version `1.7.36` only seems to work with `logback-classic` in version `1.2.11`.
| null | CC BY-SA 4.0 | null | 2023-01-19T12:28:59.493 | 2023-01-19T12:28:59.493 | null | null | 3,067,148 | null |
75,172,326 | 2 | null | 75,171,969 | 0 | null | The element is within an [<iframe>](https://stackoverflow.com/a/53276478/7429447) so you have to:
- Induce [WebDriverWait](https://stackoverflow.com/a/59130336/7429447) for the desired .- Induce [WebDriverWait](https://stackoverflow.com/a/52607451/7429447) for the desired .- You can use either of the following [locator strategies](https://stackoverflow.com/questions/48369043/official-locator-strategies-for-the-webdriver):- Using :```
driver.get('https://vb.rebelbetting.com/login?r=%2f')
WebDriverWait(driver, 20).until(EC.frame_to_be_available_and_switch_to_it((By.CSS_SELECTOR,"iframe[title='usercom widget']")))
WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.CSS_SELECTOR, "span.close.top-right"))).click()
```
- Using :```
driver.get('https://vb.rebelbetting.com/login?r=%2f')
WebDriverWait(driver, 20).until(EC.frame_to_be_available_and_switch_to_it((By.XPATH,"//iframe[@title='usercom widget']")))
WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, "//span[@class='close top-right']"))).click()
```
- : You have to add the following imports :```
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
```
| null | CC BY-SA 4.0 | null | 2023-01-19T12:34:59.100 | 2023-01-19T12:40:43.190 | 2023-01-19T12:40:43.190 | 7,429,447 | 7,429,447 | null |
75,172,690 | 2 | null | 75,172,589 | 0 | null | You can use this package: [another_stepper](https://pub.dev/packages/another_stepper)
You can create a list of your steps and then you can directly make stepper in horizontal and vertical direction with ease.
| null | CC BY-SA 4.0 | null | 2023-01-19T13:06:27.147 | 2023-01-19T13:06:27.147 | null | null | 15,638,854 | null |
75,172,700 | 2 | null | 75,172,536 | -2 | null | You can use setBounds method for setting the size of components
From the code You have given, You can try this modified code:
```
JLabel placeNumberT = new JLabel( "<html><span bgcolor=\"lime\">place n°</span></html>");
placeNumberT.setBounds(50,50, 100,30);
placeNumberP.add(placeNumberT);
JTextField inputField = new JTextField(1);
inputField.setBounds(50,100, 100,30);
placeNumberP.add(inputField);
```
| null | CC BY-SA 4.0 | null | 2023-01-19T13:07:30.230 | 2023-01-19T13:07:30.230 | null | null | 21,034,796 | null |
75,172,734 | 2 | null | 20,855,979 | 0 | null | The summation is as a result of all the rows in the respective groupings.
From your example, it counts the 1 twice only that it does not show the values except for the credit values.
To handle this, you can use nested aggregates: I.e, if using a table matrix, with say a parent and a child group, then you can do it as below:
=SUM(MAX(Fields!debit.Value,"Child_group_Name"))
This worked for me.
The link below may give more insight to this:
[https://www.magenium.com/resources/ssrs-reports/](https://www.magenium.com/resources/ssrs-reports/)
| null | CC BY-SA 4.0 | null | 2023-01-19T13:09:52.687 | 2023-01-20T06:05:00.003 | 2023-01-20T06:05:00.003 | 13,265,751 | 13,265,751 | null |
75,172,801 | 2 | null | 20,336,807 | 0 | null | Try to add this line to your project file, works for me:
```
<None Remove="bin\**\*.*"/>
```
| null | CC BY-SA 4.0 | null | 2023-01-19T13:13:59.827 | 2023-01-19T13:13:59.827 | null | null | 21,043,616 | null |
75,172,898 | 2 | null | 75,171,858 | 2 | null | I tried debugging this in VS2022, and it gets the line-numbers mixed up sometimes. Better to debug in the Disassembly window ... Also, there was some pretty weird stuff happening in the Disassembly window regarding the on-the-fly pointer arithmetic. For example, this line:
```
mov[edx + 4 * k2], edi;
```
... became this:
```
mov dword ptr k2[edx*4],edi
```
It's been 20+ years since I last wrote assembly, but that looks weird to me. It looks like it's treating k2 as a dword array, and edx as the offset into that array ... which isn't right.
Anyway, I had a go at fixing it.
```
#include <iostream>
using namespace std;
int main()
{
//I want to put the elements >=10 in the vmic[] array, and the others int the vmare[] array.
//until the element in the array is 0
int x[] = { 11,2,3,4,5,14,22,0 };
int vmic[10];
int vmare[10];
int n = 10;
_asm {
mov eax, 0; //index
lea ecx, vmic;
lea edx, vmare;
mov esi, n; //val 10
bucla:
lea ebx, x;
add ebx,eax
cmp dword ptr[ebx], 0;
je afara;
cmp [ebx], esi;
jge mai_mare_egal;
mov edi, [ebx];
mov [ecx], edi;
add ecx,4;
add eax, 4;
jmp bucla;
mai_mare_egal:
mov edi, [ebx];
mov [edx], edi;
add edx,4;
add eax, 4;
jmp bucla;
afara:
mov dword ptr [edx], 0
mov dword ptr [ecx], 0
}
int i;
for (i = 0; x[i]; i++)
printf("% d", x[i]);
printf("\n");
for (i = 0; vmic[i]; i++)
printf("% d", vmic[i]);
printf("\n");
for (i = 0; vmare[i]; i++)
printf("% d", vmare[i]);
return 0;
}
```
| null | CC BY-SA 4.0 | null | 2023-01-19T13:22:37.100 | 2023-01-19T13:31:56.080 | 2023-01-19T13:31:56.080 | 10,444,879 | 10,444,879 | null |
75,173,129 | 2 | null | 75,172,779 | 0 | null | If you want the inserted row to be identical to the row above, all you need to do is to copy the row above and insert that like follows:
```
wks.Rows(i).Copy
wks.Rows(i).Insert xlShiftDown
```
This will insert the exact data on the previous row and the rest of your code will amend the date as necessary.
| null | CC BY-SA 4.0 | null | 2023-01-19T13:39:10.023 | 2023-01-19T13:39:10.023 | null | null | 11,936,678 | null |
75,173,177 | 2 | null | 75,167,133 | 0 | null | With just looking at the summary table, we cannot tell the root cause of the problem.
Possible reasons could be
- -
Watch for the pattern of spikes and correlate the Time of Spike occurrence with server side statistics to find more on root cause.
| null | CC BY-SA 4.0 | null | 2023-01-19T13:43:21.497 | 2023-01-19T13:43:21.497 | null | null | 4,644,419 | null |
75,173,331 | 2 | null | 57,800,119 | 0 | null | The key file should be owned by `mongod:mongod` user on linux and have `400` read permissions
| null | CC BY-SA 4.0 | null | 2023-01-19T13:56:01.677 | 2023-01-19T13:56:01.677 | null | null | 6,498,237 | null |
75,173,521 | 2 | null | 75,151,581 | 0 | null |
### Fields that are not in the form need to be optional
You have to make sure the fields that you're not displaying in the form are optional in the model. If you don't do this, validation always fails. Please set `blank=True null=True` on them, and then run `makemigrations` followed by `migrations`. This includes the following fields on the `Employee` model: "mail_id", "mobile_no", "ctc_pa", "pan_no", "epfno", "bank", "bank_account", and "bank_ifsc".
### Side notes on the model code
- `education``dependents`[this](https://www.django-antipatterns.com/antipattern/plural-model-class-names.html)- `max_length``models.IntegerField``Employee.ctc_pa``Employee.mobile_no``Dependent.age``Education.percentage`- `auto_now_add``default`[this antipattern](https://www.django-antipatterns.com/antipattern/use-datetime-now-as-default-for-a-created-on-field.html)
### The form code
I added the formsets as properties of the `EmployeeForm` so we can encapsulate initialization, validation, and persisting to the database in one class. Like this, the view code is very simple as we can treat the `EmployeeForm` like any other form.
```
# forms.py
class EmployeeForm(forms.ModelForm):
class Meta:
model = Employee
fields = ['first_name', 'last_name', 'account', 'designation',
'address', 'emergency_contact', 'photo']
widgets = {
'first_name': TextInput(attrs={'class': 'form-control'}),
'last_name': TextInput(attrs={'class': 'form-control'}),
'account': TextInput(attrs={'class': 'form-control'}),
'designation': TextInput(attrs={'class': 'form-control'}),
'address': TextInput(attrs={'class': 'form-control'}),
'emergency_contact': TextInput(attrs={'class': 'form-control'}),
'photo': Textarea(attrs={'class': 'form-control'}),
}
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
# Initialize the formsets
self.dependent_formset = DependentFormSet(
data=kwargs.get('data'), files=kwargs.get('files'),
instance=kwargs.get('instance'),
)
self.education_formset = EducationFormSet(
data=kwargs.get('data'), files=kwargs.get('files'),
instance=kwargs.get('instance'),
)
def is_valid(self):
# Check the validity of formsets when you validate this form
is_valid = super().is_valid()
is_valid &= self.dependent_formset.is_valid()
is_valid &= self.education_formset.is_valid()
return is_valid
def save(self, **kwargs):
# After saving the base instance, also save the formsets
saved_employee_instance = super().save(**kwargs)
# Update the instance before saving. The initial instance have no PK.
self.dependent_formset.instance = saved_employee_instance
self.dependent_formset.save()
self.education_formset.instance = saved_employee_instance
self.education_formset.save()
class DependentForm(forms.ModelForm):
class Meta:
model = Dependent
fields = '__all__'
widgets = {
'name': TextInput(attrs={'class': 'form-control'}),
'relationship': TextInput(attrs={'class': 'form-control'}),
'age': NumberInput(attrs={'class': 'form-control'}),
'contact_number': TextInput(attrs={'class': 'form-control'}),
}
class EducationForm(forms.ModelForm):
class Meta:
model = Education
fields = '__all__'
widgets = {
'course': TextInput(attrs={'class': 'form-control'}),
'branch': TextInput(attrs={'class': 'form-control'}),
'college': TextInput(attrs={'class': 'form-control'}),
'location': TextInput(attrs={'class': 'form-control'}),
'completion_date': DateInput(attrs={'class': 'form-control',
'type': 'date'}),
'percentage': NumberInput(attrs={'class': 'form-control'}),
}
DependentFormSet = inlineformset_factory(
Employee, Dependent, form=DependentForm
)
EducationFormSet = inlineformset_factory(
Employee, Education, form=EducationForm
)
```
### View code
Assuming you need the code for create purposes. For update purposes, it's just a matter of creating another subclass of `UpdateView`.
```
# views.py
class EmployeeCreateView(CreateView):
model = Employee
form_class = EmployeeForm
template_name = 'employee_form.html'
def get_success_url(self):
return reverse('success')
```
### HTML Template code
I used Bootstrap grid to create the layout you proposed in the question. For the formsets, I used a table. Although this gives you a lot of room for customization, consider using `django-crispy-forms` package. It can reduce the amount of code in the template to a couple of lines which makes if more maintainable and less prone to errors.
```
{# employee_form.html #}
<head>...</head>
<body>
<form method="post">
{% csrf_token %}
<div class="container my-5">
{{ form.non_field_errors.as_p }}
<div class="row">
<div class="col-8">
<div class="row">
<div class="col">
<div class="row">
<div class="col-3">
{{ form.first_name.label_tag }}
</div>
<div class="col">
{{ form.first_name }} {{ form.first_name.errors }}
</div>
</div>
</div>
<div class="col">
<div class="row">
<div class="col-3">
{{ form.last_name.label_tag }}
</div>
<div class="col">
{{ form.last_name }} {{ form.last_name.errors }}
</div>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="row">
<div class="col-3">
{{ form.account.label_tag }}
</div>
<div class="col">
{{ form.account }} {{ form.account.errors }}
</div>
</div>
</div>
<div class="col">
<div class="row">
<div class="col-3">
{{ form.designation.label_tag }}
</div>
<div class="col">
{{ form.designation }} {{ form.designation.errors }}
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-2">
{{ form.address.label_tag }}
</div>
<div class="col">
{{ form.address }} {{ form.address.errors }}
</div>
</div>
<div class="row">
<div class="col-2">
{{ form.emergency_contact.label_tag }}
</div>
<div class="col">
{{ form.emergency_contact }} {{ form.emergency_contact.errors }}
</div>
</div>
</div>
<div class="col">
{{ form.photo }} {{ form.photo.errors }}
</div>
</div>
<div class="row">
<h2>Dependents</h2>
{{ form.dependent_formset.non_field_errors }}
<table class="table">
<thead>
<tr>
<th>Name</th>
<th>Relationship</th>
<th>Age</th>
<th>Contact No.</th>
<th></th> <!-- For edit button -->
<th></th> <!-- For delete button -->
</tr>
</thead>
{{ form.dependent_formset.management_form }}
<tbody id="dependent-formset">
{% for dependent_form in form.dependent_formset %}
<tr>
<td>{{ dependent_form.name }} {{ dependent_form.name.errors }}</td>
<td>{{ dependent_form.relationship }} {{ dependent_form.relationship.errors }}</td>
<td>{{ dependent_form.age }} {{ dependent_form.age.errors }}</td>
<td>{{ dependent_form.contact_number }} {{ dependent_form.contact_number.errors }}</td>
<td>
<!-- TODO: replace "href" attribute with a real URL to the edit view -->
<a class="btn btn-sm btn-secondary" href="#">Edit</a>
</td>
<td>
<!-- TODO: replace "href" attribute with a real URL to the delete view -->
<a class="btn btn-sm btn-danger" href="#">Delete</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<button class="btn btn-outline-secondary add-dependent-button" type="button">Add dependent</button>
{% with dependent_empty_form=form.dependent_formset.empty_form %}
<table class="d-none">
<tbody id="dependent-empty-form">
<tr>
<td>{{ dependent_empty_form.name }} {{ dependent_empty_form.name.errors }}</td>
<td>{{ dependent_empty_form.relationship }} {{ dependent_empty_form.relationship.errors }}</td>
<td>{{ dependent_empty_form.age }} {{ dependent_empty_form.age.errors }}</td>
<td>{{ dependent_empty_form.contact_number }} {{ dependent_empty_form.contact_number.errors }}</td>
<td>
<!-- TODO: replace "href" attribute with a real URL to the edit view -->
<a class="btn btn-sm btn-secondary" href="#">Edit</a>
</td>
<td>
<!-- TODO: replace "href" attribute with a real URL to the delete view -->
<a class="btn btn-sm btn-danger" href="#">Delete</a>
</td>
</tr>
</tbody>
</table>
{% endwith %}
</div>
<div class="row">
<h2>Education</h2>
{{ form.education_formset.non_field_errors }}
<table class="table">
<thead>
<tr>
<th>Course</th>
<th>Branch</th>
<th>College</th>
<th>Location</th>
<th>Completion Date</th>
<th>Grade / %</th>
<th></th> <!-- For edit button -->
<th></th> <!-- For delete button -->
</tr>
</thead>
{{ form.education_formset.management_form }}
<tbody id="education-formset">
{% for education_form in form.education_formset %}
<tr>
<td>{{ education_form.course }} {{ education_form.course.errors }}</td>
<td>{{ education_form.branch }} {{ education_form.branch.errors }}</td>
<td>{{ education_form.college }} {{ education_form.college.errors }}</td>
<td>{{ education_form.location }} {{ education_form.location.errors }}</td>
<td>{{ education_form.completion_date }} {{ education_form.completion_date.errors }}</td>
<td>{{ education_form.percentage }} {{ education_form.percentage.errors }}</td>
<td>
<!-- TODO: replace "href" attribute with a real URL to the edit view -->
<a class="btn btn-sm btn-secondary" href="#">Edit</a>
</td>
<td>
<!-- TODO: replace "href" attribute with a real URL to the delete view -->
<a class="btn btn-sm btn-danger" href="#">Delete</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<button class="btn btn-outline-secondary add-education-button" type="button">Add education</button>
{% with education_empty_form=form.education_formset.empty_form %}
<table class="d-none">
<tbody id="education-empty-form">
<tr>
<td>{{ education_empty_form.course }} {{ education_empty_form.course.errors }}</td>
<td>{{ education_empty_form.branch }} {{ education_empty_form.branch.errors }}</td>
<td>{{ education_empty_form.college }} {{ education_empty_form.college.errors }}</td>
<td>{{ education_empty_form.location }} {{ education_empty_form.location.errors }}</td>
<td>{{ education_empty_form.completion_date }} {{ education_empty_form.completion_date.errors }}</td>
<td>{{ education_empty_form.percentage }} {{ education_empty_form.percentage.errors }}</td>
<td>
<!-- TODO: replace "href" attribute with a real URL to the edit view -->
<a class="btn btn-sm btn-secondary" href="#">Edit</a>
</td>
<td>
<!-- TODO: replace "href" attribute with a real URL to the delete view -->
<a class="btn btn-sm btn-danger" href="#">Delete</a>
</td>
</tr>
</tbody>
</table>
{% endwith %}
</div>
<div class="row mt-5">
<div class="col">
<label for="submit"><button class="btn btn-primary">Save</button></label>
<input id="submit" type="submit" value="Save" class="d-none" />
</div>
</div>
</div>
</form>
</body>
<footer>
<!-- We need JQuery for the code below -->
<script src="https://code.jquery.com/jquery-3.6.3.slim.min.js"
integrity="sha256-ZwqZIVdD3iXNyGHbSYdsmWP//UBokj2FHAxKuSBKDSo="
crossorigin="anonymous"></script>
<!-- Script for dynamically adding forms to the formsets -->
<script>
/**
* Adds an empty form to the formset.
* NOTE: id args should be used without the "#" symbol.
*/
function copyForm(formsetPrefix, formsetId, emptyFormId) {
const total_forms = $(`#id_${formsetPrefix}-TOTAL_FORMS`);
const total_forms_value = total_forms.val();
// Use the value of total forms for the ID of the new form
let empty_form_html = $(`#${emptyFormId}`).html();
empty_form_html = empty_form_html.replace(/__prefix__/g, total_forms_value);
$(`#${formsetId}`).append(empty_form_html);
// Increment the value in the management form
total_forms.val(parseInt(total_forms_value) + 1);
}
$('.add-dependent-button').click(function(e) {
copyForm('dependent_set', 'dependent-formset', 'dependent-empty-form');
});
$('.add-education-button').click(function(e) {
copyForm('education_set', 'education-formset', 'education-empty-form');
})
</script>
</footer>
</html>
```
| null | CC BY-SA 4.0 | null | 2023-01-19T14:07:48.447 | 2023-01-19T14:36:55.310 | 2023-01-19T14:36:55.310 | 8,810,865 | 8,810,865 | null |
75,174,122 | 2 | null | 75,164,717 | 1 | null | use Onchange() on your textarea and set it to empty if other textarea have value.
| null | CC BY-SA 4.0 | null | 2023-01-19T14:52:30.457 | 2023-01-19T14:52:30.457 | null | null | 13,735,028 | null |
75,174,135 | 2 | null | 48,668,974 | 0 | null | Hey I have locate this by following code:
1.WebElement arrow=driver.findElement(By.xpath("(//i[@class='google-material-icons VfPpkd-kBDsod W7A5Qb' and @aria-hidden='true'])[4]"));
2.arrow.click();
3.driver.findElement(By.xpath("//a[@href='http://www.delta.com/app']")).click();;
}
**//**located first website from dropdown list using xpath ****
| null | CC BY-SA 4.0 | null | 2023-01-19T14:54:11.980 | 2023-01-19T14:54:47.173 | 2023-01-19T14:54:47.173 | 21,044,256 | 21,044,256 | null |
75,174,307 | 2 | null | 69,215,174 | 0 | null | I have the opposite problem (detecting where the signal becomes noisy) but the previous answer helped me to code the solution!
I leave the code in case you need it.
```
def get_variance_by_chunks(signal, chunk_size):
t = np.arange(0, signal.size)
# create a sliding window view (50% overlap)
chunks = np.lib.stride_tricks.sliding_window_view(signal, chunk_size)[::chunk_size // 2]
# take the variance of the windows
var = np.var(chunks, axis=1)
t_var = t[::chunk_size // 2][:var.size]
return t_var, var
def min_max_normalization(vector):
return (vector - np.nanmin(vector)) / (np.nanmax(vector) - np.nanmin(vector))
variance_window = 25
t_var, variance_by_windows = get_variance_by_chunks(signal, variance_window)
variance_by_windows = min_max_normalization(variance_by_windows)
# find point where variance overpass the threshold
variance_threshold = 2 # in percentage
over_threshold_index = np.nanmin(np.where(variance_by_windows > variance_threshold/100))
noise_starting_point_over_signal = t_var[over_threshold_index]
```
[signal and variance by chunks](https://i.stack.imgur.com/8CLdW.png)
| null | CC BY-SA 4.0 | null | 2023-01-19T15:06:20.910 | 2023-01-19T15:06:20.910 | null | null | 16,115,520 | null |
75,174,836 | 2 | null | 75,174,776 | 2 | null | In `ggpubr` you could also use [grids](https://rpkgs.datanovia.com/ggpubr/reference/grids.html) function to add grid lines. Here is a reproducible example using the ToothGrowth dataset:
```
library(ggpubr)
ggboxplot(ToothGrowth,
x = "dose",
y = "len",
facet.by = "supp",
) +
grids(axis = c("xy"), color = "black", size = 0.5, linetype = 2)
```

[reprex v2.0.2](https://reprex.tidyverse.org)
| null | CC BY-SA 4.0 | null | 2023-01-19T15:48:16.053 | 2023-01-19T15:48:16.053 | null | null | 14,282,714 | null |
75,174,854 | 2 | null | 75,174,776 | 1 | null | And a second option would be to add your grid lines or any theme adjustments as an additional layer to your plot:
```
library(ggpubr)
#> Loading required package: ggplot2
df <- ToothGrowth
ggboxplot(
df,
x = "dose", y = "len",
fill = "supp", palette = "RdBu",
facet.by = "supp",
xlab = "Treatment", ylab = "Chloride (mg/L)"
) +
theme(panel.grid.major = element_line(
color = "black",
size = 0.5,
linetype = 2
))
#> Warning: The `size` argument of `element_line()` is deprecated as of ggplot2 3.4.0.
#> ℹ Please use the `linewidth` argument instead.
```

| null | CC BY-SA 4.0 | null | 2023-01-19T15:50:01.923 | 2023-01-19T15:50:01.923 | null | null | 12,993,861 | null |
75,174,952 | 2 | null | 75,160,467 | 3 | null | Your model is already pretty good, but you should fix/improve the following issues:
1. By setting the multiplicity 1 at the sides of Company and Person, the current model states that each client must be associated both with a company and a person! You have to fix this by changing the multiplicity to 0..1 and possibly add an invariant that requires each client to be either a company or a person (in a constraint box attached to the class rectangle).
2. Since, in general, not every company and not every person is a client, you should either change the multiplicities of their association ends at the Client side to 0..1 or rename these classes/tables to CompanyClient and PrivateClient.
3. In UML, the names of classes should not be underlined.
4. In UML, the standard ID attribute(s) of a class (called primary key in databases) have to be desginated by "{id}" appended at the end of the attribute declaration line, and not by underlining the attribute(s) concerned.
5. It's not good practice in UML, to redundantly represent reference properties both with associations and in the form of attributes, as you do with your #-prefixed attributes. Just drop these non-UML syntax attribute declaration lines.
6. Better rename your AccountCompany class to AccountsByCompany.
| null | CC BY-SA 4.0 | null | 2023-01-19T15:56:45.283 | 2023-01-19T16:16:13.040 | 2023-01-19T16:16:13.040 | 2,795,909 | 2,795,909 | null |
75,174,975 | 2 | null | 48,821,917 | 1 | null | One command solution.
```
pip install git+https://github.com/pybluez/pybluez.git#egg=pybluez
```
| null | CC BY-SA 4.0 | null | 2023-01-19T15:58:02.807 | 2023-01-19T15:58:02.807 | null | null | 12,009,768 | null |
75,175,049 | 2 | null | 45,962,354 | 0 | null | Another solution for Big Sur (probably works up to, but not including, Ventura) if you are trying to get the contents of your VM working as well.
1. Rename the current .bitnami/stackman folder to something else like stackman_old
2. Open up the Bitnami VM and it should rebuild the stackman folder and reassign a new localhost IP address.
3. Make sure that VM works by starting it up and checking it's all green
4. If good, quit the VM again
5. Move the stackman_old/machines/xampp/ssh folder into the same place into the new stackman folder.
6. Move the stackman_old/machines/xampp/vm folder into the same place into the new stackman folder.
After doing these two folder replacements, open up the VM again and it should start up fine, just will have the new IP address so if you are referencing that ip in your `etc/hosts` file, you'll have to update those so it's pointing to the right place.
Hopefully this helps someone!
| null | CC BY-SA 4.0 | null | 2023-01-19T16:02:57.753 | 2023-01-19T16:02:57.753 | null | null | 3,711,988 | null |
75,175,120 | 2 | null | 75,174,844 | -1 | null | If the application is DPI-unaware, there's little you can do it make it otherwise -- the developers chose to build it that way.
The only two things you can try are:
- Start it with DPI-unaware compatibility settings: [](https://i.stack.imgur.com/rykO3.png)- Set your monitor's DPI to 100% (with the obvious drawback): [](https://i.stack.imgur.com/6mAcl.png)
| null | CC BY-SA 4.0 | null | 2023-01-19T16:08:52.450 | 2023-01-19T16:08:52.450 | null | null | 108,796 | null |
75,175,302 | 2 | null | 16,784,460 | 0 | null | You can use something like
style="min-width: 12rem"
| null | CC BY-SA 4.0 | null | 2023-01-19T16:23:42.120 | 2023-01-19T16:23:42.120 | null | null | 2,111,630 | null |
75,175,767 | 2 | null | 75,175,467 | 1 | null | You could substitute the default minus sign using the arithmetic minus sign (unicode 2212). This can be done via a little lambda function passed to the `labels` argument of `scale_color_continuous`
```
library(tibble)
library(ggplot2)
set.seed(1)
tibble(
y = 1:10,
x = 1:10,
c = -runif(10)
) %>%
ggplot(aes(x, y, color = c)) +
geom_point() +
scale_color_continuous(labels = ~paste(ifelse(sign(.x) == -1, "\u2212", ""),
sprintf("%2.2f", abs(.x)))) +
theme(
legend.position = c(.5, .5),
legend.text = element_text(size = 12),
legend.spacing.x = unit(.1, 'pt')
)
```

[reprex v2.0.2](https://reprex.tidyverse.org)
| null | CC BY-SA 4.0 | null | 2023-01-19T16:59:27.277 | 2023-01-19T16:59:27.277 | null | null | 12,500,315 | null |
75,175,809 | 2 | null | 75,167,481 | 0 | null | I put your data in a table variable (which is SQL Server) to write the query. The actual `SELECT` statement I wrote should work in all RDBMSs - I think it is all ANSI standard SQL. You didn't mention what data you wanted to see, nor did you mention what should happen in MONTH 1 where there is no previous month, but hopefully you will be able to get your final query from seeing this.
To do it, `JOIN` the table to itself. I use two aliases, `d1` and `d2`. For `d1` I want to find CHURN and `d2` I want to find ACTIVE. Also, the MONTHS of `d2` should be one less than the MONTHS of `d1`. Finally, since I declared the SUM column as an `INT`, I multiply it by 1.0 to force it to an approximate data type, otherwise the division would come back as zero or a truncated `INT` (since it is integer division).
```
DECLARE @Data TABLE
(
[ID] INT,
[MONTHS] INT,
[THIS_MONTH_VALUE] VARCHAR(10),
[SUM] INT
);
INSERT INTO @Data
(
[ID],
[MONTHS],
[THIS_MONTH_VALUE],
[SUM]
)
VALUES
(1, 0, 'NEW', 4987),
(2, 1, 'ACTIVE', 3849),
(3, 1, 'CHURN', 1138),
(4, 1, 'NEW', 884),
(5, 2, 'ACTIVE', 3821),
(6, 2, 'CHURN', 912),
(7, 2, 'NEW', 818),
(9, 3, 'ACTIVE', 3954),
(10, 3, 'CHURN', 942);
-- the following statement should work in any RDBMS but you might have to change
-- the square brackets to whatever your RDBMS uses to escape
SELECT [d1].[ID],
[d1].[MONTHS],
[d1].[THIS_MONTH_VALUE],
[d1].[SUM],
[d2].[ID],
[d2].[MONTHS],
[d2].[THIS_MONTH_VALUE],
[d2].[SUM],
1.0 * [d1].[SUM] / [d2].[SUM] AS [CHURN_RATE]
FROM @Data AS [d1]
INNER JOIN @Data AS [d2]
ON [d1].[THIS_MONTH_VALUE] = 'CHURN'
AND [d2].[THIS_MONTH_VALUE] = 'ACTIVE'
AND [d2].[MONTHS] = [d1].[MONTHS] - 1;
```
The output is:
| ID | MONTHS | THIS_MONTH_VALUE | SUM | ID | MONTHS | THIS_MONTH_VALUE | SUM | CHURN_RATE |
| -- | ------ | ---------------- | --- | -- | ------ | ---------------- | --- | ---------- |
| 6 | 2 | CHURN | 912 | 2 | 1 | ACTIVE | 3849 | 0.236944660950 |
| 10 | 3 | CHURN | 942 | 5 | 2 | ACTIVE | 3821 | 0.246532321381 |
Again, you might have to modify the query to get exactly what you want.
| null | CC BY-SA 4.0 | null | 2023-01-19T17:03:25.080 | 2023-01-19T17:03:25.080 | null | null | 9,089,350 | null |
75,176,001 | 2 | null | 75,171,139 | 2 | null | Make the macro enclose the whole pattern you want to produce. This compiles:
```
macro_rules! MyEnumVariant {
["1" ( $p:pat )] => { MyEnum::Variant1($p) }
}
```
```
match t {
MyEnumVariant!["1"(test)] => println!("Value of test is: {}", test.0)
}
```
| null | CC BY-SA 4.0 | null | 2023-01-19T17:20:33.937 | 2023-01-19T17:20:33.937 | null | null | 99,692 | null |
75,176,027 | 2 | null | 75,175,886 | 0 | null | i figured it out.
all i had to do was
const line: any = {
symbol: 'none',
}
| null | CC BY-SA 4.0 | null | 2023-01-19T17:22:33.423 | 2023-01-19T17:22:33.423 | null | null | 20,522,590 | null |
75,176,378 | 2 | null | 75,138,179 | 0 | null | I solved the issue..
Apparently this code at the sidebar.php was the culprit.
```
</div>
<?php if ( $post->post_parent ) { ?>
<a href="<?php echo get_permalink( $post->post_parent ); ?>" >
<?php echo get_the_title( $post->post_parent ); ?>
</a>
<?php } ?>
```
I deleted this part of the code from the editor and now the echo is gone..
| null | CC BY-SA 4.0 | null | 2023-01-19T17:52:39.837 | 2023-01-19T17:52:39.837 | null | null | 21,021,697 | null |
75,176,778 | 2 | null | 75,168,717 | 0 | null | [enter image description here](https://i.stack.imgur.com/FWTZG.jpg)
Now the result is better but the problem now i want move the bloc center ho contain the picture and the texte in the the middle on the page but i can 't
| null | CC BY-SA 4.0 | null | 2023-01-19T18:29:51.200 | 2023-01-19T18:29:51.200 | null | null | 20,364,400 | null |
75,176,955 | 2 | null | 27,014,901 | 0 | null | for Linux , create an executable script that contains this (depends on package psmisc ,Artix Linux):
```
#!/bin/bash
#kill x86 + x86_64 emulator instances
killall qemu-system-x86_64 -9
killall qemu-system-i386 -9
# delete all lock-files
for n in `find ~/.android/avd/ -name "*.lock"`; do rm -v $n;done
```
| null | CC BY-SA 4.0 | null | 2023-01-19T18:45:38.393 | 2023-01-19T18:45:38.393 | null | null | 524,355 | null |
75,177,556 | 2 | null | 75,177,510 | 0 | null | I am not sure if your image is not showing or if it is showing in the wrong place.
using the css below you will allow you to set your background image properly.
```
body {
background-image: url('png1.png');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
```
| null | CC BY-SA 4.0 | null | 2023-01-19T19:49:51.333 | 2023-01-19T19:49:51.333 | null | null | 16,465,140 | null |
75,177,601 | 2 | null | 9,719,605 | 0 | null | I had once a less obvious, maybe rare case where no errors and warnings were shown in the problems view. I was wondering why I don't see any entries, although I see a certain number of errors and warnings in the header of the problems view. All filters were switched off. It looked like that:
[](https://i.stack.imgur.com/I876Y.png)
I found out that in my case the "Description" column was so small that I didn't realize, there is another column with entries that are just not visible. Resizing the column made the grouped warnings and entries visible again.
[](https://i.stack.imgur.com/gR7On.png)
| null | CC BY-SA 4.0 | null | 2023-01-19T19:54:15.050 | 2023-01-19T19:54:15.050 | null | null | 15,003,766 | null |
75,177,593 | 2 | null | 75,177,510 | 4 | null | You appear to try generating a random background image using PHP but then do nothing with that, unless somehow you are hoping that it will exist within your stylesheet? As the stylesheet is a `.css` file any PHP code within will not be executed by the server so to have a dynamic style you could simply add an inline style tags to the page that sets the body background
```
<?php
session_start();
$png = array( 'png1.jpg', 'png2.jpeg', 'png3.jpg', 'png4.jpg' );
$random = rand(0,count($png)-1);
$picture = $png[ $random ];
?>
<!DOCTYPE HTML>
<html>
<head>
<link rel='stylesheet' href='index.css'>
<style>
body{
background-image:url(<?php echo $picture; ?>);
background-size: cover;
}
</style>
</head>
<body>
<form action='login.php' method='post'>
<label>Name: <input type='text' name='name' /></label>
<label>Password: <input type='text' name='password' /></label>
<input type='submit'>
</form>
</body>
</html>
```
---
Thinking that perhaps the above, being untested, had an issue overlooked when writing the answer I have just put together a working example using images on my system &/or on the web.
```
<?php
session_start();
//local images within subdirectory
$png = array( 'bck1.jpg','bck2.jpg','bck3.jpg','bck4.jpg','bck5.jpg','bck6.jpg','bck7.jpg' );
$random = rand(0,count($png)-1);
$picture = './images/' . $png[ $random ];
// globally accessible images on interwebs
$png=array(
'https://undsgn.com/wp-content/uploads/2018/04/ltotbngnzzu-uai-1600x900.jpg',
'https://cdn.wallpapersafari.com/54/86/cU6JWo.jpg',
'https://cdn.nimbusthemes.com/2017/09/09233338/Free-Nature-Backgrounds-Sunset-by-Pixabay.jpg',
'https://img.youtube.com/vi/V-FgQ2NAGFc/maxresdefault.jpg'
);
$random = rand(0,count($png)-1);
$picture = $png[ $random ];
?>
<!DOCTYPE HTML>
<html>
<head>
<style>
body{
/*
If the background image is to entirely cover the available space
and maintaining the aspect ratio is not important then you can
set the size as below. Other settings ( such as cover or 100% auto )
will cause blank space when image bounds are reached
*/
background-image:url(<?php echo $picture; ?>);
background-size: 100% 100vh;
background-repeat:no-repeat;
}
form{
width:300px;
padding:1rem;
border:1px solid silver;
background:white;
box-sizing:border-box;
border-radius:1rem;
box-shadow:0 0 25px white;
margin:2rem;
font-family:monospace;
}
label{
display:flex;
flex-direction:row;
justify-content:space-between;
align-items:center;
background:white;
margin:0.25rem 0;
}
[type='submit']{
width:100%;
padding:0.5rem;
margin:1rem 0 0 0;
}
</style>
</head>
<body>
<form action='login.php' method='post'>
<label>Name: <input type='text' name='name' /></label>
<label>Password: <input type='text' name='password' /></label>
<input type='submit'>
</form>
</body>
</html>
```
The above, when saved with a `.php` extension will yield output like this:
[](https://i.stack.imgur.com/qFWYG.jpg)
| null | CC BY-SA 4.0 | null | 2023-01-19T19:53:13.637 | 2023-01-20T08:50:19.927 | 2023-01-20T08:50:19.927 | 3,603,681 | 3,603,681 | null |
75,177,638 | 2 | null | 74,154,665 | 0 | null | You will need to use Zephyr scale API token as authorization to get a response for the APIs.
[https://support.smartbear.com/zephyr-scale-cloud/api-docs/#section/Authentication](https://support.smartbear.com/zephyr-scale-cloud/api-docs/#section/Authentication)
| null | CC BY-SA 4.0 | null | 2023-01-19T19:57:36.687 | 2023-01-19T19:57:36.687 | null | null | 21,046,098 | null |
75,177,637 | 2 | null | 39,892,622 | 0 | null | The Google docs during the Android setup process didn't quite work for me. It seems like Google need to update their docs. The only solution that worked for me was:
1. As part of enabling Google APIs or Firebase services in your Android application you may have to add the google-services plugin to your project level build.gradle file.
```
dependencies {
classpath 'com.google.gms:google-services:4.3.14'
// ...
}
```
This plugin will allow to process the `google-services.json` file and produce Android resources that can be used in your application's code. Also, it will allow to install dependencies for Firebase related libraries, which is going to be the next step.
1. Add this line to the app level build.gradle file:
```
apply plugin: 'com.google.gms.google-services'
```
Sources:
- [https://developers.google.com/android/guides/google-services-plugin](https://developers.google.com/android/guides/google-services-plugin)
| null | CC BY-SA 4.0 | null | 2023-01-19T19:57:31.707 | 2023-01-19T19:57:31.707 | null | null | 13,278,127 | null |
75,177,676 | 2 | null | 75,103,994 | -1 | null | Try to dynamically import your whole component, not only the apex-chart library.
I mean, go down in the tree:
```
Root|
|
|Page.js| <- use next/dynamic here to import "Component.js"
|
|Component.js| <- instead of use next/dynamic here.
|
|apex-chart component
```
| null | CC BY-SA 4.0 | null | 2023-01-19T20:02:29.610 | 2023-01-19T20:26:42.917 | 2023-01-19T20:26:42.917 | 21,046,081 | 21,046,081 | null |
75,177,713 | 2 | null | 75,168,219 | 1 | null | You can use package [PyGraphviz](https://pypi.org/project/pygraphviz/) for reading, modifying, writing and rendering Graphviz graphs.
### PyGraphviz
Prerequisite: `graphviz` binaries have to be installed on your system.
Install the Python package using pip:
```
pip install pygraphviz
```
See [Install — PyGraphviz 1.10 documentation](https://pygraphviz.github.io/documentation/stable/install.html).
### Removal of overlapping subgraphs
Note: Instead loading from source string, you can also pass a file-handle or file-name as parameter to constructor [AGraph(filename='Final_Graph.gv')](https://pygraphviz.github.io/documentation/stable/reference/agraph.html?highlight=filename#agraph-class) or `AGraph('Final_Graph.gv')`.
```
import pygraphviz as pgv
import itertools
s = '''digraph Final_Graph {
graph [center=true rankdir=LR ratio=compress size="15,10"]
a
b
c
d
a -> b [label = 1]
a -> c [label = 2]
a -> d [label = 3]
b -> d [label = 4]
c -> d [label = 5]
subgraph cluster_1{
color=lightgrey style=filled
label="A"
a
b
}
subgraph cluster_2{
color=lightgrey style=filled
label="B"
a
b
}
subgraph cluster_3{
color=lightgrey style=filled
label="C"
c
d
}
}'''
# print some information of the parsed graph
def print_info(G):
print(f"Graph '{G.get_name()}' has:")
print(f"* {len(G.nodes())} nodes")
print(f"* {len(G.edges())} edges")
print(f"* {len(G.subgraphs())} subgraphs")
def combine_subgraphs(G):
combinations = itertools.combinations(G.subgraphs(), 2) # iterator returned
pairs = list(combinations) # store iterator results in a list
return pairs
def overlapping(pair_of_subgraphs):
left_nodes = pair_of_subgraphs[0].nodes()
right_nodes = pair_of_subgraphs[1].nodes()
shared_nodes = set(left_nodes).intersection(set(right_nodes))
return shared_nodes
def remove_subgraph(G, subgraph_name):
# the first file could have clusters 1 and 3
G_copy = G.copy() # Return a copy of the graph.
G_copy.remove_subgraph(subgraph_name) # Remove subgraph with given name.
print(f"## Copy: without {subgraph_name}\n{G_copy.string()}") # Return a string (unicode) representation of graph in dot format.
return G_copy
G = pgv.AGraph(string=s) # loading a graph from source string
print_info(G)
pairs = combine_subgraphs(G)
print(f"Searching for overlapps in {len(pairs)} combinations:")
for i, pair in enumerate(pairs):
if overlapping(pair):
print(f"{i}: Overlapped ❌️")
left_name = pair[0].name
right_name = pair[1].name
print(f"Removing left subgraph: {left_name} ..")
left_removed = remove_subgraph(G, left_name)
#left_removed.write(f"without_{left_name}.dot") # Write graph in dot format to file on path.
print(f"Removing right subgraph: {right_name} ..")
right_removed = remove_subgraph(G, right_name)
#right_removed.write(f"without_{right_name}.dot") # Write graph in dot format to file on path.
else:
print(f"{i}: Non-Overlapping ✔️")
print("Done.")
```
Output on console (tested with pygraphviz version 1.6):
```
Graph 'Final_Graph' has:
* 4 nodes
* 5 edges
* 3 subgraphs
Searching for overlapps in 3 combinations:
0: Overlapped ❌
Removing left subgraph: cluster_1 ..
## Copy: without cluster_1
digraph Final_Graph {
graph [center=true,
rankdir=LR,
ratio=compress,
size="15,10"
];
subgraph cluster_2 {
graph [color=lightgrey,
label=B,
style=filled
];
a;
b;
}
subgraph cluster_3 {
graph [color=lightgrey,
label=C,
style=filled
];
c;
d;
}
a -> b [label=1];
a -> c [label=2];
a -> d [label=3];
b -> d [label=4];
c -> d [label=5];
}
Removing right subgraph: cluster_2 ..
## Copy: without cluster_2
digraph Final_Graph {
graph [center=true,
rankdir=LR,
ratio=compress,
size="15,10"
];
subgraph cluster_1 {
graph [color=lightgrey,
label=A,
style=filled
];
a;
b;
}
subgraph cluster_3 {
graph [color=lightgrey,
label=C,
style=filled
];
c;
d;
}
a -> b [label=1];
a -> c [label=2];
a -> d [label=3];
b -> d [label=4];
c -> d [label=5];
}
1: Non-Overlapping ✔️
2: Non-Overlapping ✔️
Done.
```
To save removal-results to files uncomment the respective write-lines.
| null | CC BY-SA 4.0 | null | 2023-01-19T20:06:11.763 | 2023-01-21T19:26:49.553 | 2023-01-21T19:26:49.553 | 5,730,279 | 5,730,279 | null |
75,178,000 | 2 | null | 72,532,485 | 0 | null | This worked on M1.
```
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
git config --global core.compression 0
git config --global http.postBuffer 1048576000
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
```
| null | CC BY-SA 4.0 | null | 2023-01-19T20:35:43.130 | 2023-01-19T20:35:43.130 | null | null | 1,292,218 | null |
75,178,529 | 2 | null | 75,171,868 | 0 | null | If you would like to select always the cell group at the bottom, filled with data, you can navigate to the concerning range.
```
import xlwings as xw
path = r"test.xlsx"
wb = xw.Book(path)
ws = wb.sheets[0]
ws.used_range[-1:,:].end("up").expand().select() # Selects the range.
range_data = ws.used_range[-1:,:].end("up").expand().value # Stores the range as list of lists.
```
You could also store the data as a pandas dataframe, which might be a more common use case:
```
df = ws.used_range[-1:,:].end("up").expand().options(pd.DataFrame()).value
```
| null | CC BY-SA 4.0 | null | 2023-01-19T21:36:23.913 | 2023-01-19T21:36:23.913 | null | null | 13,968,392 | null |
75,178,738 | 2 | null | 13,865,218 | 0 | null | firstly be careful that which file is feeding your views as you know there is 2 types
of js files first of them is usual one here is bootstrap-datapicker.js and the other one which is mainly used is called bootstrap-datapicker.min.js its better to find the same parts in each file and edit it.
try this yearRange: "c-100:c+0"
if you just do this and save the file your date picker is able to pick last 100 and feature 10 years.
| null | CC BY-SA 4.0 | null | 2023-01-19T22:00:20.663 | 2023-01-19T22:00:20.663 | null | null | 7,924,987 | null |
75,178,803 | 2 | null | 75,178,755 | 0 | null | In order to drill down in a specific column of a Reactable table, you can use the onClick function to handle the click event on that column's cells and toggle the visibility of the detailed information. You can also use the expandable prop to make the entire row expandable and toggle the visibility of the detailed information. Additionally, you can use the Expander component to create a custom expand/collapse toggle for the detailed information.
| null | CC BY-SA 4.0 | null | 2023-01-19T22:08:59.457 | 2023-01-19T22:08:59.457 | null | null | 12,197,274 | null |
75,178,884 | 2 | null | 24,898,684 | 0 | null | If setting JAVA_HOME not works, install Visual Studio C++, you can download "all versions in one" installer here: [https://www.techpowerup.com/download/visual-c-redistributable-runtime-package-all-in-one/](https://www.techpowerup.com/download/visual-c-redistributable-runtime-package-all-in-one/)
| null | CC BY-SA 4.0 | null | 2023-01-19T22:21:08.457 | 2023-01-19T22:21:08.457 | null | null | 5,322,146 | null |
75,178,911 | 2 | null | 75,176,663 | 0 | null | Complicated problem of which Unity already has a solution. Here is a script to automatically align it to the normal. I've also added a LayerMask option so you only hit the correct layer on your check as well as a max height value. Remember to set both from the Inspector.
```
public class NormalRotation : MonoBehaviour
{
public float maxHeight = 2f;
public LayerMask layer;
void Update() => RotateTransformToNormal();
void RotateTransformToNormal() =>
transform.rotation = Quaternion.FromToRotation(transform.up, GetNormal()) * transform.rotation;
Vector3 GetNormal()
{
// Raycast down from the transform
Ray ray = new Ray(transform.position, Vector3.down);
RaycastHit hit;
if (Physics.Raycast(ray, out hit, maxHeight, layer))
{
return hit.normal;
}
return transform.up;
}
}
```
| null | CC BY-SA 4.0 | null | 2023-01-19T22:25:14.153 | 2023-01-19T22:25:14.153 | null | null | 15,119,845 | null |
75,178,938 | 2 | null | 52,537,329 | 0 | null | I answered a question very similar to this one on another page. I will copy it here because I added a bit for the lookup function.
[Embedded Power BI: Add Multiple Users in Row Level Security and assign different roles](https://stackoverflow.com/questions/49427633/embedded-power-bi-add-multiple-users-in-row-level-security-and-assign-different/75178645#75178645)
If you have more than one data to filter against in a role, pass the list as a string path to RLS, parse it into a table, then return the row when it matches with a value in the column.
We do this if we are not actually passing username, but for cases like multiple sales offices, or making a view that compares data from multiple user accounts, or when a user belongs to different hierarchies in an organization, or basically any time you want to use multiple filters..
example input using sales ids
```
//Username() = "020104010|020104061|020104303|020104304"
//DAX
var userIds = Username()
VAR tbl=
GENERATE (
GENERATESERIES(1,PATHLENGTH(UserIds),1),
ROW ( "Key", PATHITEM ( userIds, [value]))
)
VAR valueList =
SELECTCOLUMNS ( tbl, "Key", [Key] )
return [sales_id_column] in valueList
```
If you need to add lookup functions, you can apply it when the ROW() statement is called.. it will look like this:
```
VAR tbl=
GENERATE (
GENERATESERIES(1,PATHLENGTH(UserIds),1),
VAR CurrentKey = [Value]
RETURN
ROW ( "Key", LOOKUPVALUE(Table[c1],Table[c2], PATHITEM ( userIds, CurrentKey )))
)
```
There is also a case when the table has a many to many relationship and cannot use multiple roles as identity. Or for this case specifically when you only want to use one role to filter many tables. In that case the username looks like this:
```
Username() = "Username:Bob|Location:A|Location:C"
```
The code will have an extra step to parse the inner path after you change the ":" to a "|". Then use a if conditional to check if the current table filters for this role. This approach supports a claims-based authorization where only one role needs to be created in RLS and everything can be done client-application side.
runtime is O(k(n log m)) where m is the number of claims you have applying RLS in the current table, n is the number of rows in the table, and k is the number of tables you are applying RLS on
| null | CC BY-SA 4.0 | null | 2023-01-19T22:27:58.670 | 2023-01-19T22:46:23.967 | 2023-01-19T22:46:23.967 | 6,377,569 | 6,377,569 | null |
75,178,995 | 2 | null | 75,137,582 | 1 | null | - `python 3.11``pandas 1.5.2``matplotlib 3.6.2``seaborn 0.12.1`
## Sample DataFrame
```
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
data = {'Media size': [1.7, 1.7, 1.7, 1.7, 1.7, 3.0, 3.0, 3.0, 3.0, 3.0, 1.7, 1.7, 1.7, 1.7, 1.7, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 1.7, 3.0, 1.7, 3.0, 1.7, 1.7, 1.7, 1.7, 1.7, 3.0, 3.0, 3.0, 3.0, 3.0, 1.7, 1.7, 1.7, 1.7, 1.7, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0, 3.0],
'Material': ['A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'B', 'B', 'B', 'B', 'B', 'B', 'B', 'B', 'B', 'B', 'B', 'B', 'B', 'B', 'B', 'B', 'B', 'B', 'B', 'B', 'B', 'B', 'B', 'B', 'B'],
'Impeller speed (rpm)': [400, 650, 900, 1150, 1400, 400, 650, 900, 1150, 1400, 400, 650, 900, 1150, 1400, 400, 650, 900, 1150, 1400, 400, 650, 900, 1150, 1400, 869, 859, 885, 918, 400, 650, 900, 1150, 1400, 400, 650, 900, 1150, 1400, 400, 650, 900, 1150, 1400, 400, 650, 900, 1150, 1400, 400, 650, 900, 1150, 1400],
'Energy input (kWh/t)': [3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000, 3000],
'Mineral': ['IC60', 'IC60', 'IC60', 'IC60', 'IC60', 'IC60', 'IC60', 'IC60', 'IC60', 'IC60', 'MinFree', 'MinFree', 'MinFree', 'MinFree', 'MinFree', 'MinFree', 'MinFree', 'MinFree', 'MinFree', 'MinFree', 'GIC', 'GIC', 'GIC', 'GIC', 'GIC', 'IC60', 'IC60', 'BHX', 'BHX', 'MinFree', 'MinFree', 'MinFree', 'MinFree', 'MinFree', 'MinFree', 'MinFree', 'MinFree', 'MinFree', 'MinFree', 'IC60', 'IC60', 'IC60', 'IC60', 'IC60', 'IC60', 'IC60', 'IC60', 'IC60', 'IC60', 'GIC', 'GIC', 'GIC', 'GIC', 'GIC'],
'Mineral content (g/g fibre)': [4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4], 'Result': [3.42980002276166, 5.6349292302978, 6.1386616444364, 5.02677117937851, 3.0654271029038, 8.06973541574516, 4.69110601906018, 10.2119514553564, 7.3271067522139, 4.86901883487513, 1.30614274245145, 0.80632268273782, 1.35958635068886, 1.38784671261469, 1.12365621425779, 4.61104587078813, 4.40934493149759, 5.06333415444978, 3.85940865344646, 3.75572328102963, 6.05239906571977, 7.9023202316634, 6.97774277141699, 11.0705742735252, 9.37948091546579, 2.39416757908564, 10.2373958352881, 87.7569689333017, 104.135074642339, 1.87573877068556, 1.99555403904079, 2.54989484285768, 3.67636872311402, 3.5664978541551, 2.62948341485392, 3.0066638279753, 2.79255446831386, 5.64970870330824, 7.40595580787647, 0.38040036521839, 0.515922221163329, 3.06358032815653, 4.04800689693192, 3.69967975589305, 1.35706340378197, 1.91317966458018, 0.874227487043329, 2.71732337235447, 4.96743231003956, 0.325743752029247, 3.12776074994155, 3.25564762321322, 5.99730462724499, 7.51312624370307],
'ster': [0.21806853183829, 0.63877270588513, 0.150420705145224, 1.05459146256349, 0.917937247698497, 2.07869756201064, 1.21725878149246, 1.80680816945106, 0.438931805677489, 2.04826541508181, 0.341512517371074, 0.311762840996982, 0.360649049944933, 0.0052483812677852, 0.561737044169193, 0.147526557483362, 0.985706944001226, 0.0016505550303325, 0.731238210429852, 0.275897272330075, 0.0646300937591957, 0.458062146361444, 0.171777036954104, 1.3960974547215, 0.0650589433632627, 0.394947207603093, 1.55162686552938, 10.2502550323564, 4.77467275433362, 0.34648345153664, 0.482200923313764, 0.398071770532481, 0.662270521850053, 0.164453275639932, 0.0209463845730038, 0.305024483713006, 0.472851866083359, 0.251859240942665, 0.629256778750272, 0.231869270120922, 0.434661621954815, 0.959408177590503, 0.255594912271896, 0.469944383688801, 0.134829945730943, 1.77106692180411, 0.493348110823194, 0.0703901684702626, 0.45853815499614, 0.325743752029247, 0.452049425276085, 0.319567445434468, 1.03439035936441, 0.38399627585515]}
df = pd.DataFrame(data)
```
## Map plt.errorbar onto sns.relplot
```
# filter the dataframe by Mineral
filtered = df[(df['Mineral']=='IC60') | (df['Mineral']=='MinFree')]
# plot the filtered dataframe
g = sns.relplot(data=filtered, x="Impeller speed (rpm)", y="Result", col="Media size", row='Material', hue="Mineral content (g/g fibre)", size="Media size", sizes=(50, 200))
# add the errorbars
g.map(plt.errorbar, "Impeller speed (rpm)", "Result", "ster", marker="none", color='r', ls='none')
```
[](https://i.stack.imgur.com/CwPLh.png)
## Specify color for each group of errorbars
- `plt.errorbar``color`-
```
# create a palette dictionary for the unique values in the hue column
palette = dict(zip(filtered['Mineral content (g/g fibre)'].unique(), ["#fdae61", "#abd9e9"]))
# plot the filtered dataframe
g = sns.relplot(data=filtered, x="Impeller speed (rpm)", y="Result", col="Media size", row='Material', hue="Mineral content (g/g fibre)", size="Media size", sizes=(50, 200), palette=palette)
# iterate through each facet of the facetgrid
for (material, media), ax in g.axes_dict.items():
# select the data for the facet
data = filtered[filtered['Material'].eq(material) & filtered['Media size'].eq(media)]
# select the data for each hue group
for group, selected in data.groupby('Mineral content (g/g fibre)'):
# plot the errorbar with the correct color for each group
ax.errorbar(data=selected, x="Impeller speed (rpm)", y="Result", yerr="ster", marker="none", color=palette[group], ls='none')
```
[](https://i.stack.imgur.com/bbHuM.png)
| null | CC BY-SA 4.0 | null | 2023-01-19T22:36:13.103 | 2023-01-23T18:37:16.203 | 2023-01-23T18:37:16.203 | 7,758,804 | 7,758,804 | null |
75,179,094 | 2 | null | 75,178,042 | 0 | null | ENTITY_INFO filters PAYMENTS but not Cost.
To calculate the total cost of all payments for a company, add a measure like
```
TotalPaymentCost = sumx(PAYMENTS,RELATED(Cost[Cost]))
```
. Most commonly this measure would be added to the PAYMENTS table, but it doesn't actually matter what table you put measures on.
| null | CC BY-SA 4.0 | null | 2023-01-19T22:51:50.770 | 2023-01-19T22:51:50.770 | null | null | 7,297,700 | null |
75,179,662 | 2 | null | 20,732,660 | 0 | null | You can override `forms.ModelForm` then assign `ChangeForm` to [form](https://docs.djangoproject.com/en/4.1/ref/contrib/admin/#django.contrib.admin.InlineModelAdmin.form) to change in Django Admin as shown below. *[My answer](https://stackoverflow.com/questions/910169/resize-fields-in-django-admin#answer-72847861) also explains other options to change in Django Admin:
```
class ChangeForm(forms.ModelForm): # Here
class Meta:
widgets = {
'RFC': forms.TextInput(attrs={'size':'20'}),
'Ticket_Number' : forms.NumberInput(attrs={
'style': 'width:20ch'
}),
'User_Email' : forms.EmailInput(attrs={
'style': 'width:20ch'
}),
# ...
}
class ChangeAdmin(GuardedModelAdmin):
form = ChangeForm # Here
search_fields = ('RFC', 'Ticket_Number', 'User_Email', 'Change_Details')
list_display = ('RFC', 'Ticket_Number', 'User_Requested_Time', ...)
# ...
```
| null | CC BY-SA 4.0 | null | 2023-01-20T00:46:58.653 | 2023-01-20T00:46:58.653 | null | null | 3,247,006 | null |
75,180,164 | 2 | null | 75,179,486 | 0 | null | You need to add a little spacing between your `HeaderView` and `ScrollView` to show the bottom shadow of `HeaderView`.
You can achieve this by either setting spacing for your `VStack` or by adding top padding to your `ScrollView`.
`VStack`
```
VStack(spacing: 5) {
HeaderView()
.padding(.top, safeAreaTop)
.background(Color.white)
.shadow(color: .black.opacity(0.1), radius: 5, x: 0, y: 5)
ScrollView(.vertical, showsIndicators: false) {
//Content of ScrollView
}
}
```
`ScrollView`
```
VStack(spacing: 0) {
HeaderView()
.padding(.top, safeAreaTop)
.background(Color.white)
.shadow(color: .black.opacity(0.1), radius: 5, x: 0, y: 5)
ScrollView(.vertical, showsIndicators: false) {
//Content of ScrollView
}
.padding(.top, 5)
}
```
| null | CC BY-SA 4.0 | null | 2023-01-20T05:41:49.173 | 2023-01-20T05:41:49.173 | null | null | 6,433,023 | null |
75,180,192 | 2 | null | 49,278,707 | 0 | null | I have faced the same issue and tried all above solutions.
It killed couple of days, finally I found issue in my app i.e, we are adding view controllers as subviews to root view controller and they enabled in `viewDidAppear`
```
guard let TabBarVC = self.storyboard?.instantiateViewController(withIdentifier: "MainTabController") as? MainTabController else {return}
addChild(TabBarVC)
TabBarVC.view.translatesAutoresizingMaskIntoConstraints = false
```
I removed `TabBarVC.view.translatesAutoresizingMaskIntoConstraints = false`
| null | CC BY-SA 4.0 | null | 2023-01-20T05:46:26.310 | 2023-01-20T05:46:26.310 | null | null | 4,263,824 | null |
75,180,255 | 2 | null | 71,608,084 | 0 | null | you can try
```
var toggl;
setInterval(function(){
toggl=document.querySelector('.all-networks-table div.material-toggle[aria-checked=false]');
if (toggl==null){
document.querySelector('.all-networks-table material-button.next').click()
}else{
toggl.click()
}
}, 100);
```
| null | CC BY-SA 4.0 | null | 2023-01-20T05:55:14.333 | 2023-01-20T06:09:47.053 | 2023-01-20T06:09:47.053 | 4,826,457 | 18,304,088 | null |
75,180,431 | 2 | null | 75,180,382 | 0 | null | Your question is a bit confusing to me but if you want to go to the link on clicking the url you can do so by holding the "ctrl" key on your keyboard and clicking on the url simultaneously.
| null | CC BY-SA 4.0 | null | 2023-01-20T06:22:18.597 | 2023-01-20T06:22:18.597 | null | null | 16,408,373 | null |
75,180,604 | 2 | null | 66,269,729 | 0 | null | Is it expected to have reponame two times on path ?
$HOME/work//:
| null | CC BY-SA 4.0 | null | 2023-01-20T06:44:33.827 | 2023-01-20T06:44:33.827 | null | null | 8,561,462 | null |
75,180,754 | 2 | null | 75,180,672 | 0 | null | It is a complex calculation. Your statement includes lots of computation(multiplication and division) and type conversion. You should separate conversions and castings.
| null | CC BY-SA 4.0 | null | 2023-01-20T07:05:29.047 | 2023-01-20T07:05:29.047 | null | null | 3,468,394 | null |
75,180,760 | 2 | null | 75,118,207 | 0 | null | The most likely explanation is that you have multiple CSPs. Adding another CSP can only make it stricter. Check your response headers for a csp with "script-src 'self';" and change/remove it.
| null | CC BY-SA 4.0 | null | 2023-01-20T07:06:18.680 | 2023-01-20T07:06:18.680 | null | null | 9,239,311 | null |
75,180,818 | 2 | null | 75,156,678 | 1 | null | Thanks to @starball I decided to see if I somehow could modify the filetypes requirements for the `cmake client`. It seems like there are multiple ways of achieving that, for the record the first one is more for a more general neovim configuration search for `config.filetypes` [link](https://github.com/kabouzeid/nvim-lspinstall/wiki).
And for my specific setup I did the following:
1. Add a cmake.lua file under the path /lua/user/lsp/settings/
2. Configure the desired CMake filetypes
Result in the previously defined buffer, as well as some other `.cmake` files:
[](https://i.stack.imgur.com/Zr5CC.png)
| null | CC BY-SA 4.0 | null | 2023-01-20T07:14:41.767 | 2023-01-20T07:18:26.307 | 2023-01-20T07:18:26.307 | 11,107,541 | 17,134,464 | null |
75,180,868 | 2 | null | 75,172,779 | 0 | null | If I understand you correctly...
```
Sub test()
dim c as range: dim dif
Set c = Range("D2")
Do Until c.Value = ""
dif = DateDiff("d", c.Value, c.Offset(1, 0).Value)
If dif > 1 Then
With c.Offset(1, -3)
.EntireRow.Copy
Range(.Cells, .Offset(dif - 2, 0)).Insert Shift:=xlDown
End With
c.AutoFill Destination:=Range(c, c.Offset(dif - 1, 0)), Type:=xlFillDefault
Set c = c.Offset(dif, 0)
Else
Set c = c.Offset(1, 0)
End If
Loop
End Sub
```
The sub assumes that there is no blank cell in between the rows of data in column D.
> the new line to copy the data from the cells for columns A to c
and E to L.
the "below" here is the yellow and orange before running the sub.
[](https://i.stack.imgur.com/OUZTs.png) ===> [](https://i.stack.imgur.com/Ih1qd.png)
| null | CC BY-SA 4.0 | null | 2023-01-20T07:20:47.500 | 2023-01-20T07:47:57.083 | 2023-01-20T07:47:57.083 | 7,756,251 | 7,756,251 | null |
75,180,906 | 2 | null | 75,180,028 | 1 | null | SubAddress has to be passed as address - not the value of the cell.
And you have to look for the cell on the target sheet to get the address.
That's what the function `getAddressOfCell` returns.
```
Sub addHyperlink()
Dim wsQueries As Worksheet
Set wsQueries = ThisWorkbook.Worksheets("Queries")
Dim rgType As Range
Set rgType = wsQueries.Range("B2:B6")
Dim subAddress As String
Dim reference As Range
For Each reference In rgType.Cells
subAddress = getAddressOfCell(reference.Offset(, -1), _
ThisWorkbook.Worksheets(reference.Value).Cells(1, 1).CurrentRegion)
If subAddress <> vbNullString Then
wsQueries.Hyperlinks.Add anchor:=reference, Address:="", subAddress:=subAddress ', TextToDisplay:=reference.Value
End If
Next reference
End Sub
Private Function getAddressOfCell(strFind As String, rgSearchIn As Range) As String
Dim rgFound As Range
With rgSearchIn
Set rgFound = .Find(what:=strFind)
If Not rgFound Is Nothing Then
getAddressOfCell = rgFound.Address(True, True, , True)
End If
End With
End Function
```
| null | CC BY-SA 4.0 | null | 2023-01-20T07:24:36.037 | 2023-01-20T07:24:36.037 | null | null | 16,578,424 | null |
75,180,927 | 2 | null | 24,535,720 | 0 | null | [enter image description here](https://i.stack.imgur.com/Dp8SJ.png)I created my own method for element disappearing from dom....
In Conditions class (In .m2\repository\org\seleniumhq\selenium\selenium-support\3.141.59\selenium-support-3.141.59.jar!\org\openqa\selenium\support\ui\ExpectedConditions.class)
we can see that 'isInvisible' method with 'isDisplayed' method,,, i wrote the same with 'isEnabled'
```
public static ExpectedCondition<Boolean> invisibilityOf(final WebElement element) {
return new ExpectedCondition<Boolean>() {
@Override
public Boolean apply(WebDriver webDriver) {
return isRemovedFromDom(element);
}
@Override
public String toString() {
return "invisibility of " + element;
}
};
}
private static boolean isRemovedFromDom(final WebElement element) {
try {
return !element.isEnabled();
} catch (StaleElementReferenceException ignored) {
return true;
}
}
```
| null | CC BY-SA 4.0 | null | 2023-01-20T07:26:51.037 | 2023-01-20T07:28:55.887 | 2023-01-20T07:28:55.887 | 21,048,033 | 21,048,033 | null |
75,180,957 | 2 | null | 75,180,893 | 1 | null | Instead of `float:left` you can use `position:absolute`
```
.progress-outer {
width: 96%;
margin: 10px 2%;
padding: 3px;
text-align: center;
background-color: #f4f4f4;
border: 1px solid #dcdcdc;
color: #fff;
border-radius: 20px;
position: relative;
}
.progress-inner {
min-width: 15%;
white-space: nowrap;
overflow: hidden;
padding: 5px;
border-radius: 20px;
background-color: orange;
}
.progressBarCurrent {
color: black;
float: left;
}
.progressBarGoal {
color: black;
position: absolute;
right: 5px;
}
```
```
<div class="progress-outer">
<div class="progress-inner" style="width:27%;">
<span class="progressBarCurrent">50g</span>
<span class="progressBarGoal">180g</span>
</div>
</div>
```
| null | CC BY-SA 4.0 | null | 2023-01-20T07:30:15.150 | 2023-01-20T07:30:15.150 | null | null | 5,385,381 | null |
75,180,996 | 2 | null | 67,751,833 | 0 | null | I had the same problem a while ago. What solved the issue was, that when using es6 modules you have to run live-server in order to render your code correctly.You can't run JS with "type='module" directly in the browser without server.
| null | CC BY-SA 4.0 | null | 2023-01-20T07:34:04.673 | 2023-01-20T07:34:04.673 | null | null | 13,082,464 | null |
75,181,199 | 2 | null | 75,146,008 | 0 | null | All you need to do – is to remove the @ManyToOne annotation from your getId() method.
By the way, I've just checked that Hibernate doesn't complain about such annotations over methods, so we'll try to do the same in the next JPA Buddy releases. Here you can track the status of this task: [https://issues.jpa-buddy.com/issue/JPAB-2246](https://issues.jpa-buddy.com/issue/JPAB-2246).
| null | CC BY-SA 4.0 | null | 2023-01-20T07:58:27.530 | 2023-01-20T07:58:27.530 | null | null | 3,111,662 | null |
75,181,416 | 2 | null | 75,180,893 | 2 | null | I have an interesting solution using linear-gradients, its pretty close, try playing around with the margins and outline to get border right.
```
.progress-outer {
width: 96%;
display: flex;
height: 35px;
margin: 10px 2%;
text-align: center;
border: 1px solid #dcdcdc;
background-image: linear-gradient( 80deg, orange 37% , #f4f4f4 37% );
border-radius: 20px;
justify-content: center;
align-items: center;
}
.progressBarCurrent {
color: black;
text-align: left;
width: 50%;
position: relative;
margin: 0px;
margin-left: 20px;
}
.progressBarGoal {
color: black;
position: relative;
text-align: right;
width: 50%;
margin: 0px;
margin-right: 20px;
}
```
```
<div class="progress-outer">
<span class="progressBarCurrent">50g</span>
<span class="progressBarGoal">180g</span>
</div>
```
| null | CC BY-SA 4.0 | null | 2023-01-20T08:25:13.187 | 2023-01-20T11:07:03.470 | 2023-01-20T11:07:03.470 | null | null | null |
75,181,565 | 2 | null | 73,220,580 | 1 | null | In my case what worked was actually to use an older version of Node by using [NVM](https://github.com/nvm-sh/nvm). That way I could use Node v14 instead of Node v16 that I had installed. It kind of makes sense as it was an app that I created some time ago and probably used Node v14 back then. Nvm is really useful to switch between Node versions.
| null | CC BY-SA 4.0 | null | 2023-01-20T08:41:36.163 | 2023-03-01T08:39:21.297 | 2023-03-01T08:39:21.297 | 4,353,460 | 4,353,460 | null |
75,182,376 | 2 | null | 75,180,028 | 0 | null |
## Add Hyperlinks
```
Option Explicit
Sub AddHyperlinksToQueries()
Dim sNames(): sNames = VBA.Array("TB", "RD Schedule")
Dim sAddresses(): sAddresses = VBA.Array("A2", "A2")
Dim wb As Workbook: Set wb = ThisWorkbook ' workbook containing this code
Dim dws As Worksheet: Set dws = wb.Sheets("Queries")
Dim drg As Range
Set drg = dws.Range("B3", dws.Cells(dws.Rows.Count, "B").End(xlUp))
Dim dCell As Range, sIndex, sName As String, sAddress As String
For Each dCell In drg.Cells
sName = CStr(dCell.Value)
sIndex = Application.Match(sName, sNames, 0)
If IsNumeric(sIndex) Then ' 'sIndex' is one-based...
sIndex = sIndex - 1 ' ... the arrays are zero-based
sName = sNames(sIndex)
sAddress = sAddresses(sIndex)
dCell.Hyperlinks.Add Anchor:=dCell, Address:="", _
SubAddress:="'" & sName & "'!" & sAddress, TextToDisplay:=sName
sAddresses(sIndex) = dws.Range(sAddress).Offset(1).Address(0, 0)
Else ' not in array
dCell.Clear
End If
Next dCell
MsgBox "Hyperlinks created.", vbInformation
End Sub
```
| null | CC BY-SA 4.0 | null | 2023-01-20T09:55:28.367 | 2023-01-20T09:55:28.367 | null | null | 9,814,069 | null |
75,182,837 | 2 | null | 75,181,927 | 0 | null | I'll help with few steps so you can clarify some of your problems.
You have a List of question so you need to go throw them with a for loop or foreach loop then access your description text and then assign it to your text UI.
`string allDescriptions = "";`
```
foreach (var q in myQuestionList)
{
allDescriptions += q.questiondesc+" \n";
}
desc.text = allDescriptions;//this will display all the question descriptions
```
If you want to display one specific question description make a function that take an index or an id and then like Mr. @derHugo said just call `desc.text = myQuestionList.questions[someIndex].questiondesc`
I'll provide with an example :
```
public void DisplayQuestionDescription(int index)
{
if (string.IsNullOrEmpty(myQuestionList.questions[index].questiondesc))
{
desc.text = myQuestionList.questions[index].questiondesc;
}
else
{
desc.text = "No Description";
}
}
```
To Use this you simply call `DisplayQuestionDescription(0);` for example to get first question description
| null | CC BY-SA 4.0 | null | 2023-01-20T10:34:53.440 | 2023-01-20T10:34:53.440 | null | null | 10,670,947 | null |
75,183,067 | 2 | null | 75,182,822 | 3 | null | Instead of using a mask, you could use `background-clip: text` and then transition your background position (you'll have to change your background so it matches what you want better):
```
.box {
aspect-ratio: 1/1; /* use this instead of psuedo element to make square */
font-weight: bold; /* you can change the font style as you please */
font-size: 125px;
color: blue;
display: inline-flex; /* used flex so we can centre the text */
justify-content: center;
align-items: center;
width: 200px;
background: #9b59b6;
background:
radial-gradient(ellipse, rgba(255, 255, 255, 1) 0%, rgba(197, 251, 255, 1) 5%, rgba(64, 188, 255, 1) 20%, rgba(4, 15, 51, 0.5) 40%) -30px -30px,
radial-gradient(ellipse, rgba(255, 255, 255, 1) 0%, rgba(197, 251, 255, 1) 5%, rgba(64, 188, 255, 1) 20%, rgba(4, 15, 51, 0.9) 40%) 40px 40px;
text-fill-color: transparent; /* the following 2 styles and their webkit equivalents are to add the radial background to the text */
background-clip: text;
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
transition: background-position 1s ease;
}
.box:hover {
background-position: 65px -15px, 150px 40px; /* this is for animating the background */
}
```
```
<div class="box">2.0</div>
```
| null | CC BY-SA 4.0 | null | 2023-01-20T10:55:40.840 | 2023-01-20T11:25:43.410 | 2023-01-20T11:25:43.410 | 1,790,982 | 1,790,982 | null |
75,183,178 | 2 | null | 75,177,357 | 0 | null | Clone master branch from given link: [https://github.com/apache/age](https://github.com/apache/age).
And then install it will work but make sure you have created separate folders for both age and postgresql.
| null | CC BY-SA 4.0 | null | 2023-01-20T11:06:33.433 | 2023-01-20T17:45:29.953 | 2023-01-20T17:45:29.953 | 20,904,241 | 20,904,241 | null |
75,183,563 | 2 | null | 75,182,822 | 1 | null | Maybe use background-position to push the gradient around using keyframes?
```
.box {
display: inline-block;
width: 300px;
aspect-ratio: 1/1;
-webkit-mask: url(https://media.discordapp.net/attachments/710815377852071976/1065738517101154324/thunder20only100white.png) center/cover;
mask: url(https://media.discordapp.net/attachments/710815377852071976/1065738517101154324/thunder20only100white.png) center/cover;
background: #9b59b6;
/*Fallback if gradients don't work */
background: radial-gradient(ellipse, rgba(255, 255, 255, 1) 0%, rgba(197, 251, 255, 1) 6%, rgba(64, 188, 255, 1) 12%, rgba(4, 15, 51, 1) 28%);
animation: moveBackground 2s infinite;
animation-timing-function: linear;
}
@keyframes moveBackground {
0% {
background-position: -50px -50px;
}
25% {
background-position: 50px -50px;
}
50% {
background-position: 50px 50px;
}
75% {
background-position: -50px 50px;
}
100% {
background-position: -50px -50px;
}
}
```
```
<div class="box"></div>
```
| null | CC BY-SA 4.0 | null | 2023-01-20T11:42:48.290 | 2023-01-20T13:52:00.273 | 2023-01-20T13:52:00.273 | 12,571,484 | 12,571,484 | null |
75,183,792 | 2 | null | 60,508,944 | 0 | null | SDK Manager >> Plugins >> Installed
You need to disable IdeaVim plugin.
Restart Android Studio.
[https://www.youtube.com/watch?v=GSXCi41eNKk](https://www.youtube.com/watch?v=GSXCi41eNKk)
| null | CC BY-SA 4.0 | null | 2023-01-20T12:05:24.133 | 2023-01-20T12:05:24.133 | null | null | 14,126,675 | null |
75,183,805 | 2 | null | 75,167,690 | 0 | null | The reason why all your modals get the same content in the modal body after clicking on the "view" button is because you're targeting the `.modal-body` of every modal on your page in your jQuery `$.ajax()` function: `$(".modal-body").html(result);`.
You need to target the modal ID first in the jQuery selector `$()`:
`$("#ShowRecordModal .modal-body").html(result);`
| null | CC BY-SA 4.0 | null | 2023-01-20T12:06:45.130 | 2023-01-20T12:06:45.130 | null | null | 1,437,029 | null |
75,183,872 | 2 | null | 31,365,467 | 0 | null | In my case, it was the docker with MongoDB running on the same port. So after I stopped the container, the service is then successfully starting.
| null | CC BY-SA 4.0 | null | 2023-01-20T12:12:42.623 | 2023-01-20T12:12:42.623 | null | null | 8,534,088 | null |
75,184,727 | 2 | null | 75,177,357 | 0 | null | Create new folders for both Apache AGE and PostgreSQL:
Install Apache AGE in its folder using:
```
git clone -b AGE_PG12.1.0_ALPHA --single-branch https://github.com/apache/age.git
```
Install PostgreSQL in its folder using:
```
git clone -b REL_12_STABLE --single-branch https://github.com/postgres/postgres.git
```
And then perform the necessary steps, should work fine.
| null | CC BY-SA 4.0 | null | 2023-01-20T13:37:08.373 | 2023-01-20T13:37:08.373 | null | null | 20,939,573 | null |
75,185,031 | 2 | null | 75,184,884 | 0 | null | Before you need to initialize all widget
like
> Button done_fab;//in JAVA
> private lateinit var done_fab: Button //in Kotlin
//Add other here
and after you need to initialize the same widget with name like
> done_fab=findViewById(R.id.done_fab);//in java
> done_fab= findViewById(R.id.done_fab)//in Kotlin
//Add other here
it will be ready to use in overall activity class.
| null | CC BY-SA 4.0 | null | 2023-01-20T14:00:23.780 | 2023-01-20T14:00:23.780 | null | null | 18,362,930 | null |
75,185,251 | 2 | null | 75,172,818 | 0 | null | Not sure if this would work with user defined functions.... possible disable "Update links to other documents" in the Advanced options. Pretty certain it wouldn't work.
For your second question I can think of two ways to do it.
Either go through each sheet, copy the cells and paste values back:
```
Sub PlaceValues()
Dim wrkBk As Workbook
Set wrkBk = ThisWorkbook 'This is the file containing the code.
'You could change it to look at some other open workbook.
Dim wrksht As Worksheet
For Each wrksht In wrkBk.Worksheets
With wrksht
.Cells.Copy
.Cells.PasteSpecial Paste:=xlPasteValues
End With
Next wrksht
End Sub
```
A more targeted approach would be to replace the specified formula.
One downfall here would be replacing `SUM` formula would also replace `SUMIF` as it contains the text SUM.
```
Public Sub Test()
ReplaceFormula "FIN_G_EN"
ReplaceFormula "SUM"
End Sub
Public Sub ReplaceFormula(FormulaText As String)
Dim wrkBk As Workbook
Set wrkBk = ThisWorkbook
Dim wrksht As Worksheet
For Each wrksht In wrkBk.Worksheets
Dim rFound As Range
With wrksht.Cells
Set rFound = .Find(What:=FormulaText, _
LookIn:=xlFormulas, _
LookAt:=xlPart, _
MatchCase:=True)
If Not rFound Is Nothing Then
Do
rFound.Value = rFound.Value
Set rFound = .FindNext(rFound)
Loop While Not rFound Is Nothing
End If
End With
Next wrksht
End Sub
```
| null | CC BY-SA 4.0 | null | 2023-01-20T14:18:26.537 | 2023-01-20T14:18:26.537 | null | null | 4,677,305 | null |
75,185,273 | 2 | null | 75,185,050 | 2 | null | Having looked at other data the problem is that the default shape for a colour legend of a `geom_point` doesn't have a fill. Change it using `guides` like so:
```
library(ggplot2)
mtcars |>
ggplot(aes(cyl, wt, fill = factor(gear), shape = factor(carb))) +
geom_jitter(position = position_jitter(width = 0.22), size = 4) +
scale_shape_manual(values=c(24,21,22,23,24,25)) +
guides(fill = guide_legend(override.aes = list(shape = 24)))
```

| null | CC BY-SA 4.0 | null | 2023-01-20T14:20:25.313 | 2023-01-20T14:20:25.313 | null | null | 10,744,082 | null |
75,185,316 | 2 | null | 75,182,020 | 0 | null | Found solution , set Outline and Compact to false for each fields of pivot table.
```
pivotTable.Fields.ForEach(field => { field.Outline = false; field.Compact = false; });
```
| null | CC BY-SA 4.0 | null | 2023-01-20T14:23:59.803 | 2023-01-20T14:23:59.803 | null | null | 21,048,518 | null |
75,185,754 | 2 | null | 75,185,466 | 0 | null | I guess you are looking for `showline` as can be seen [here](https://stackoverflow.com/a/65944207/8107362)
```
df %>%
plot_ly() %>%
add_trace(x = ~group, y = ~values, type = "scatter", mode = "line") %>%
layout(#yaxis = list(ticks = "outside"),
xaxis = list(showline = TRUE),
yaxis = list(showline = TRUE,
zeroline = FALSE)
)
```
[](https://i.stack.imgur.com/cBrVr.png)
| null | CC BY-SA 4.0 | null | 2023-01-20T15:00:23.137 | 2023-01-20T15:00:23.137 | null | null | 8,107,362 | null |
75,185,885 | 2 | null | 75,182,560 | 0 | null | One way of doing this is to start with the full list of branches (subquery b) and then left join to the aggregated data of the other two tables (sub queries p & e) -
```
SELECT
b.branch AS Branch,
IFNULL(p.amount, 0) AS Payments,
IFNULL(e.amount, 0) AS Expenses,
IFNULL(p.amount, 0) - IFNULL(e.amount, 0) AS Profit
FROM (SELECT DISTINCT branch FROM expenses UNION SELECT DISTINCT branch FROM payments) AS b
LEFT JOIN (SELECT branch, SUM(amount) amount FROM payments GROUP BY branch) AS p ON b.branch = p.branch
LEFT JOIN (SELECT branch, SUM(amount) amount FROM expenses GROUP BY branch) AS e ON b.branch = e.branch;
```
As you are using MariaDB >= 10.2.1 we can use [Common Table Expressions](https://mariadb.com/kb/en/non-recursive-common-table-expressions-overview/) to improve readability. And as you have stated that you have a separate table for `branches`, I will assume `branches (branchid, name)` and `branchid` instead of `branch` in `expenses` and `payments` tables.
```
WITH payments AS (
SELECT branchid, SUM(amount) total FROM payments GROUP BY branchid
), expenses AS (
SELECT branchid, SUM(amount) total FROM expenses GROUP BY branchid
)
SELECT
b.name AS Branch,
IFNULL(p.total, 0) AS Payments,
IFNULL(e.total, 0) AS Expenses,
IFNULL(p.total, 0) - IFNULL(e.total, 0) AS Profit
FROM branches AS b
LEFT JOIN payments AS p ON b.branchid = p.branchid
LEFT JOIN expenses AS e ON b.branchid = e.branchid;
```
| null | CC BY-SA 4.0 | null | 2023-01-20T15:10:01.463 | 2023-01-21T14:14:39.227 | 2023-01-21T14:14:39.227 | 1,191,247 | 1,191,247 | null |
75,185,928 | 2 | null | 74,855,429 | 0 | null | I had the same problem with pyCharm 2022.3 and Docker for Mac. Restarting Docker for Mac does not help, but after reboot of Macbook i got alert with password authorization request from Docker (about symlinking). Since authorization, everything is working properly.
| null | CC BY-SA 4.0 | null | 2023-01-20T15:14:23.277 | 2023-01-20T15:14:23.277 | null | null | 10,649,264 | null |
75,185,933 | 2 | null | 26,978,418 | 0 | null | for me the project had created file which exceeded maximum character length path of OS.
problem solved by deleting those file
| null | CC BY-SA 4.0 | null | 2023-01-20T15:14:34.350 | 2023-01-20T15:14:34.350 | null | null | 2,442,652 | null |
75,186,139 | 2 | null | 75,184,702 | 1 | null | Prettier wraps the lines at the setted length. And in most causes Prettier makes it good to read. In VS Code on bottom right you see the Prettier symbol. Click on it you and see what it does.
[](https://i.stack.imgur.com/oVt61.png)
```
"parser": "typescript",
"useTabs": false,
"tabWidth": 2,
"singleQuote": true,
"printWidth": 100,
"trailingComma": "all",
"semi": true,
"bracketSpacing": true,
"arrowParens": "avoid",
"endOfLine": "lf"
}
["INFO" - 2:23:00 PM] Formatting completed in 130ms.
```
What you need is to change the Prettier settings itself. The good news: You can do it for each project, if you want! Read more about it [here](https://prettier.io/docs/en/configuration.html).
> Configuration File
Prettier uses cosmiconfig for configuration file support. This means you can configure Prettier via (in order of precedence):
- - - - -
So create the file and set (I think) the `printWidth`.
| null | CC BY-SA 4.0 | null | 2023-01-20T15:30:51.670 | 2023-01-20T15:30:51.670 | null | null | 4,472,932 | null |
75,186,603 | 2 | null | 75,183,167 | 0 | null | Problem Solved!!!!!
Here is what I did after an hour of debugging the libraries
in `WebMvcConfig.java` I revomed the `public InternalResourceViewResolver resolver()` method as it is sed to configure jsp.
Now in `ThymeleafViewResolver viewResolver()` remove these two:
`viewResolver.setOrder(1);`
`viewResolver.setViewNames(new String[] {".html", ".xhtml"});`
got help through debgging and [this post](Problem Solved!!!!!
Here is what I did after an hour of debugging the libraries
in `WebMvcConfig.java` I revomed the `public InternalResourceViewResolver resolver()` method as it is sed to configure jsp.
Now in `ThymeleafViewResolver viewResolver()` remove these two:
`viewResolver.setOrder(1);`
`viewResolver.setViewNames(new String[] {".html", ".xhtml"});`
got help through debgging and [this post](https://stackoverflow.com/a/59222630/16439993).
As to why I will answer if anyone is interested. :)
| null | CC BY-SA 4.0 | null | 2023-01-20T16:12:49.283 | 2023-01-20T16:15:27.760 | 2023-01-20T16:15:27.760 | 16,439,993 | 16,439,993 | null |
75,186,688 | 2 | null | 75,186,493 | 0 | null | I would change `onclick="deleteFavorites();` to:
```
onclick="deleteFavorites(response.Items[i].restaurant_name);
```
And change the `deleteFavorites` function signature to be:
```
function deleteFavorites(restaurant_name) {
```
| null | CC BY-SA 4.0 | null | 2023-01-20T16:19:02.697 | 2023-01-20T16:19:02.697 | null | null | 13,070 | null |
75,186,925 | 2 | null | 75,103,994 | 0 | null | ```
import dynamic from 'next/dynamic';
import { Props } from 'react-apexcharts';
const ReactApexChart = dynamic(() => import("react-apexcharts"), { ssr: false })
const state: Props = {
series: [{
name: "Desktops",
data: [10, 41, 35, 51, 49, 62, 69]
}],
options: {
chart: {
height: 350,
type: 'line',
zoom: {
enabled: false
}
},
dataLabels: {
enabled: false
},
stroke: {
curve: 'straight'
},
grid: {
row: {
colors: ['#f3f3f3', 'transparent'], // takes an array which will be repeated on columns
opacity: 0.5
},
},
xaxis: {
categories: ['Sun', 'Mon', 'Tue', 'Wed', 'Thur', 'Fri', 'Sat',],
}
},
};
export function DashboardChartComponent() {
return <ReactApexChart options={state.options} series={state.series} type="line" width={"100%"} height={350} />
}
```
| null | CC BY-SA 4.0 | null | 2023-01-20T16:40:04.847 | 2023-01-20T16:40:04.847 | null | null | 15,844,433 | null |
75,187,024 | 2 | null | 75,186,765 | 0 | null | Your HTML should look like so:
```
<!DOCTYPE html>
<html>
<head>
<title>EMBÄR</title>
<link src="style.css" type="stylesheet">
<!-- Import maps polyfill -->
<!-- Remove this when import maps will be widely supported -->
<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
<script type="importmap">
{
"imports": {
"three": "./three.js-master/build/three.module.js",
"three/addons/": "./three.js-master/examples/jsm/"
}
}
</script>
<script src="Main.js" type="module"> </script>
</head>
<body>
</body>
</html>
```
In your `Main.js` file, use the following imports:
```
import * as THREE from 'three';
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
```
The imports in your JS should look exactly like the ones from the [official examples](https://threejs.org/examples/). The only thing that differs is the import map. In your case, you refer to your locally hosted version of the `three.js` repo. Keep in mind to always use the `module.js` version of `three.js`. Not the UMD build.
You find more information about the setup/installation of `three.js` in this [guide](https://threejs.org/docs/index.html#manual/en/introduction/Installation).
| null | CC BY-SA 4.0 | null | 2023-01-20T16:49:12.410 | 2023-01-20T16:49:12.410 | null | null | 5,250,847 | 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.