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,123,896
2
null
4,870,955
0
null
## TL;DR ### there is no right or wrong. It depends on what you build. This is a question that every web developer asks himself at some point. I had asked myself the question several times. To answer this question, I looked at the source code of Stackoverflow. And SO has the nav tag inside the header tag. Which is absolutely right here, because if you look at the structure of the view of the top bar, it quickly becomes clear that this is the right way to go. Here you can simply work with the flexbox design. Which in turn would only work with a superordinate tag if both tags were not nested. Which would unnecessarily bleach the DOM. like: ``` <div class="flex"> <header></header> <nav></nav> </div> ``` On the other hand, there are headers that are simply a large image with a logo inside. Or a whole line with the logo. Here it doesn't matter whether the nav tag is above or below the header tag. The tags only have a semantic meaning and are not a specification for a template structure. You build the template according to your ideas or the expectations of the users. Both cases are right! ``` <!-- case 1 --> <body> <header></header> <nav></nav> <main></main> </body> <!-- case 2 --> <body> <header> <nav></nav> </header> <main></main> </body> ```
null
CC BY-SA 4.0
null
2023-01-15T08:48:13.587
2023-01-15T08:48:13.587
null
null
14,807,111
null
75,123,934
2
null
30,722,224
1
null
``` line-height: 0.75; ``` It saved may days.
null
CC BY-SA 4.0
null
2023-01-15T08:58:15.317
2023-01-15T08:58:15.317
null
null
12,903,968
null
75,124,138
2
null
75,101,724
1
null
Rebooting macOS, without reopening windows, solved the issue.
null
CC BY-SA 4.0
null
2023-01-15T09:37:45.633
2023-01-15T09:37:45.633
null
null
12,533,832
null
75,124,146
2
null
75,115,909
0
null
I had solve this problem by uninstalled Android Studio (version 2022.1) and download the version of 4.2 to installed, even if it's not a better way to fix this. Maybe it can help you. download the old version url: [https://developer.android.com/studio/archive](https://developer.android.com/studio/archive) When you in Terminal run "flutter doctor -v" to see details, it will suggest you to reinstall or update Android Studio.
null
CC BY-SA 4.0
null
2023-01-15T09:39:00.123
2023-01-15T09:43:05.320
2023-01-15T09:43:05.320
6,947,690
6,947,690
null
75,124,543
2
null
13,028,584
1
null
I had a similar issue on an angular app, Irrespective of the overflow attribute I had in other container elements in the hierarchy, Moved overflow: hidden style from html selector to body selector. It solved issue for me.
null
CC BY-SA 4.0
null
2023-01-15T10:59:18.150
2023-01-15T10:59:18.150
null
null
1,994,646
null
75,124,825
2
null
75,111,535
0
null
This should do the trick: ``` library(tidyverse) KDPL <- max_LnData %>% select(starts_with("KD_PL.")) ``` This function selects all columns from your old dataset starting with "KD_PL." and stores them in a new dataframe KDPL. If you only want the names of the columns to be saved, you could use the following: ``` KDPL_names <- colnames(KDPL) ``` This saves the column names in the vector `KDPL_names`.
null
CC BY-SA 4.0
null
2023-01-15T11:46:51.103
2023-01-15T11:55:18.547
2023-01-15T11:55:18.547
20,883,433
20,883,433
null
75,124,921
2
null
75,099,488
0
null
For the sake of simplicity, the below code assumes that all input, entered by the user, is valid. Consider using class [Scanner](https://docs.oracle.com/javase/tutorial/essential/io/scanning.html) for getting input from the user. (More explanations after the below code.) ``` import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner stdin = new Scanner(System.in)) { int n = stdin.nextInt(); stdin.nextLine(); Map<String, Map<String, Integer>> states = new HashMap<>(); int count; for (int i = 0; i < n; i++) { System.out.print("Enter address: "); String line = stdin.nextLine(); String[] fields = line.split(","); Map<String, Integer> cities = states.get(fields[2]); if (cities == null) { cities = new HashMap<>(); states.put(fields[2], cities); } if (cities.containsKey(fields[1])) { count = cities.get(fields[1]); } else { count = 0; } cities.put(fields[1], count + 1); } for (String state : states.keySet()) { System.out.println("State: " + state); Map<String, Integer> citys = states.get(state); for (String city : citys.keySet()) { System.out.printf("City: %s Count: %d%n", city, citys.get(city)); } } } } } ``` In the code in your question, you are creating a new `address2` map for each line entered by the user. When you create a new `Map`, it is empty, i.e. it has no entries. You want to create a new `address2` map only if there is no entry for the in the address entered by the user, otherwise you want the existing `address2` map. If `address1` map does contain an entry for the , then method [get](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html#get(java.lang.Object)) returns null. Similarly for `address2` map: if it does not contain an entry for the city, its `get` method will also return null. Also refer to [Scanner is skipping nextLine() after using next() or nextFoo()?](https://stackoverflow.com/questions/13102045/scanner-is-skipping-nextline-after-using-next-or-nextfoo) regarding using class `Scanner`. Here is a sample run of the above code: ``` 3 Enter address: Avocado Ave,Newport Beach,california,92660 Enter address: Beachwalk,Honolulu,Hawaii,96815 Enter address: Hana Highway,Maui,Hawaii,96815 State: Hawaii City: Honolulu Count: 1 City: Maui Count: 1 State: california City: Newport Beach Count: 1 ```
null
CC BY-SA 4.0
null
2023-01-15T12:01:43.317
2023-01-15T12:01:43.317
null
null
2,164,365
null
75,125,102
2
null
75,124,256
1
null
If I deciphered your writing correctly, this is what you wrote: > a) `0(10)*`[](https://i.stack.imgur.com/egnUP.png) Correct. But two remarks: - - You could simplify to this: [](https://i.stack.imgur.com/mKSet.png) > b) `a(b+c+d)`[](https://i.stack.imgur.com/00s2s.png) Not correct. There are these issues: - `a`- `a`- Correction: [](https://i.stack.imgur.com/SSZNJ.png) > c) `b*(aa*b*+ε)`[](https://i.stack.imgur.com/fc3ef.png) Correct!
null
CC BY-SA 4.0
null
2023-01-15T12:36:04.887
2023-01-15T12:36:04.887
null
null
5,459,839
null
75,125,173
2
null
75,124,851
1
null
You can't create collection or document without any data into i.e You need to set/insert data into your document first time and that time it will create the collection>document>data ``` String datetime = DateTime.now().toString(); void crearWorkerColeccion(iddeldocumento) { print('DENTRO ${iddeldocumento}'); final String documento = iddeldocumento; FirebaseFirestore.instance .collection('Company') .doc('kGCOpHgRyiIYLr4Fwuys') .collection('WorkingDays') .doc(documento) .collection('trabajadores') .doc(FirebaseAuth.instance.currentUser!.toString()).set({"workingDate"datetime}); } ``` I went through the screenshot you provided of your database,it's look like you want to add time there in that document so i set that.
null
CC BY-SA 4.0
null
2023-01-15T12:48:12.913
2023-01-15T12:48:12.913
null
null
14,562,817
null
75,125,184
2
null
75,124,851
1
null
I think you have to add some data in the new collection "trabajadores", and for the last document id, maybe you have to add some thing for the currentUser, like: (.email or .displayName or blabla..). And in general, all operation that related to FireStore it will be in the Future, so you have to add (async, await): Try this: ``` Future<void> crearWorkerColeccion(iddeldocumento) async{ print('DENTRO ${iddeldocumento}'); final String documento = iddeldocumento; await FirebaseFirestore.instance .collection('Company') .doc('kGCOpHgRyiIYLr4Fwuys') .collection('WorkingDays') .doc(documento) .collection('trabajadores') .doc(FirebaseAuth.instance.currentUser!.toString()).set({ 'id': const Uuid().v4(), 'name': nameController.text, 'email': FirebaseAuth.instance.currentUser!.email, }); } ```
null
CC BY-SA 4.0
null
2023-01-15T12:50:22.057
2023-01-15T12:50:22.057
null
null
19,122,402
null
75,125,374
2
null
75,124,871
-1
null
Thank you guys but i think i fixed by forcing an instalation of the latest nodejs
null
CC BY-SA 4.0
null
2023-01-15T13:25:13.017
2023-01-15T13:25:13.017
null
null
21,012,266
null
75,125,389
2
null
72,493,643
0
null
Note: Before proceeding please enable 2 factor authentication. Less secure apps ([https://myaccount.google.com/u/0/lesssecureapps](https://myaccount.google.com/u/0/lesssecureapps)) is no longer available. We can use apppasswords feature provided by google via following link [https://myaccount.google.com/u/0/apppasswords](https://myaccount.google.com/u/0/apppasswords) Check below image for reference, Use 16 digit code provided by google in-place of password. [](https://i.stack.imgur.com/Xe8Jt.gif)
null
CC BY-SA 4.0
null
2023-01-15T13:27:23.567
2023-01-15T13:27:23.567
null
null
3,128,652
null
75,125,816
2
null
75,124,791
2
null
Based on your tiny code fragment, and not a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) that we can copy into our IDE, compile, run, and test, you can try this: ``` int selectedOption = jComboBox.getSelectedIndex(); int newAMT = Integer.parseInt(buySellField.getText()); System.out.print(selectedOption); if (selectedOption == 0) { Object abcAmtPulled = jTable.getModel().getValueAt(0, 2); int i = (int) abcAmtPulled; int finalABCAmt = newAMT + i; jTable.getModel().setValueAt(finalABCAmt, 0, 2); } else if (selectedOption == 1) { Object bmcAmtPulled = jTable.getModel().getValueAt(1, 2); int i = (int) bmcAmtPulled; int finalBMCAmt = newAMT + i; jTable.getModel().setValueAt(finalBMCAmt, 1, 2); } Object abcAmtPulled = jTable.getModel().getValueAt(0, 2); int i = (int) abcAmtPulled; Object valuationABC = df.format(newABCPrice * i); jTable.getModel().setValueAt(valuationABC, 0, 3); Object bmcAmtPulled = jTable.getModel().getValueAt(1, 2); i = (int) bmcAmtPulled; Object valuationBMC = df.format(newBMCPrice * i); jTable.getModel().setValueAt(valuationBMC, 1, 3); ```
null
CC BY-SA 4.0
null
2023-01-15T14:27:58.113
2023-01-15T14:35:14.970
2023-01-15T14:35:14.970
300,257
300,257
null
75,125,869
2
null
75,124,596
0
null
To my mind, the way to proceed is using multi-index like in the following scripts. - ``` import pandas as pd df = pd.read_html(""" <table> <thead> <tr> <th>Name</th> <th>Age</th> </tr> </thead> <tbody> <tr> <td colspan=2>Test</td> </tr> <tr> <td>Test</td> <td>20</td> </tr> </tbody> </table> """)[0] # >>> df # Name Age # 0 Test Test # 1 Test 20 ``` - ``` # Create MultiIndex DataFrame df.columns = pd.MultiIndex.from_tuples(zip(list(df.iloc[0]), df.columns), names=["first", "second"]) df = df.drop(axis=0, index=0).reset_index(level=0, drop=True) df.to_excel('text.xlsx', merge_cells=True) ``` - ``` first Test second Name Age 0 Test 20 ``` - [](https://i.stack.imgur.com/5GjFsm.png) ``` import pandas as pd import numpy as np arrays = [["bar", "bar", "baz", "baz", "foo", "foo", "qux", "qux"], ["one", "two", "one", "two", "one", "two", "one", "two"]] tuples = list(zip(*arrays)) # [('bar', 'one'), ('bar', 'two'), ('baz', 'one'), ('baz', 'two'), # ('foo', 'one'), ('foo', 'two'), ('qux', 'one'), ('qux', 'two')] index = pd.MultiIndex.from_tuples(tuples, names=["first", "second"]) s = pd.Series(np.random.randn(8), index=index) # first second # bar one 0.469112 # two -0.282863 # baz one -1.509059 # two -1.135632 # foo one 1.212112 # two -0.173215 # qux one 0.119209 # two -1.044236 # dtype: float64 s.to_excel('text.xlsx', merge_cells=True) ``` [](https://i.stack.imgur.com/3QUg9m.png) Note that you need to activate the property `merge_cells` to merge multi-indexes. For more see [https://pandas.pydata.org/pandas-docs/dev/reference/api/pandas.DataFrame.to_excel.html](https://pandas.pydata.org/pandas-docs/dev/reference/api/pandas.DataFrame.to_excel.html) Or you could choose to merge after sending dataframe to excel. For more see there : [Merging Specific Cells in an Excel Sheet with Python](https://stackoverflow.com/questions/67732103/merging-specific-cells-in-an-excel-sheet-with-python)
null
CC BY-SA 4.0
null
2023-01-15T14:35:45.187
2023-01-15T15:46:47.513
2023-01-15T15:46:47.513
13,460,543
13,460,543
null
75,125,986
2
null
75,115,909
37
null
On windows however I fixed it another way: I had to go to C:\Program Files\Android\Android Studio. There is already jre folder in there, but it contained signle empty file. Remove jre folder. Create a copy of jbr folder. Rename the copy to jre.
null
CC BY-SA 4.0
null
2023-01-15T14:52:53.817
2023-01-15T14:52:53.817
null
null
20,171,784
null
75,125,952
2
null
63,678,170
3
null
Updated 2023.01.18 - Started 2023.01.15 Problem description: Jupyter in VS Code got stuck at connecting to Python kernel [](https://i.stack.imgur.com/SgK1B.png) I was using VS Code version 1.74.3 (user setup) with the Python extension version v2022.20.2, having the version details shown below: [](https://i.stack.imgur.com/y6kaB.png) [](https://i.stack.imgur.com/iv4Yg.png) My Python version was 3.10.6 64-bit: [](https://i.stack.imgur.com/JQMw8.png) I tried all methods mentioned in all of the above answers, and none worked for me to get Jupyter unstuck. I ran the Python 3.10.6 setup to repair it, but that did not work: [](https://i.stack.imgur.com/vyZSo.png) I updated various packages, but that did not work either: - - - Some details from the above upgrades: - - - After uninstalling and reinstalling VS Code, Jupyter worked as before. When I installed the Python extension (by mistake), [](https://i.stack.imgur.com/6P3Me.png) Jupyter got stuck again. I uninstalled the Pre-Release Python extension, and re-installed the Python extension shown in the image above; Jupyter worked again. The problem with Method 1 is that once VS Code was ended and reopened, the same problem occurred again. Use below. Run jupyter-notebook, connect to Jupyter server In addition to the Jupyter-related extensions that came with installing the Python extension, [](https://i.stack.imgur.com/OnyEt.png) [](https://i.stack.imgur.com/FXv56.png) [](https://i.stack.imgur.com/ZwyJg.png) install jupyter: ``` > pip install jupyter ... cut ... Successfully installed jupyter-1.0.0 ``` Run jupiter-notebook in a VS Code terminal: ``` > jupyter-notebook [I 11:47:56.970 NotebookApp] Serving notebooks from local directory: C:\Users\USER\Documents\VS Code - learn [I 11:47:56.971 NotebookApp] Jupyter Notebook 6.5.2 is running at: [I 11:47:56.971 NotebookApp] http://localhost:8888/?token=3e14829cf931c6aa61474c740ddf09eb34bd457f3dba20b3 [I 11:47:56.971 NotebookApp] or http://127.0.0.1:8888/?token=3e14829cf931c6aa61474c740ddf09eb34bd457f3dba20b3 [I 11:47:56.971 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [C 11:47:57.000 NotebookApp] To access the notebook, open this file in a browser: file:///C:/Users/USER/AppData/Roaming/jupyter/runtime/nbserver-13876-open.html Or copy and paste one of these URLs: http://localhost:8888/?token=3e14829cf931c6aa61474c740ddf09eb34bd457f3dba20b3 or http://127.0.0.1:8888/?token=3e14829cf931c6aa61474c740ddf09eb34bd457f3dba20b3 [W 11:48:36.001 NotebookApp] Forbidden [W 11:48:36.001 NotebookApp] 403 GET /api/sessions?1673977715999 (127.0.0.1) 1.000000ms referer=None [W 11:48:37.425 NotebookApp] Forbidden [W 11:48:37.426 NotebookApp] 403 GET /api/kernels?1673977717423 (127.0.0.1) 1.000000ms referer=None ... cut ... ``` Jupyter notebook opened up in my browser; I closed this Jupyter notebook tab since I did not need it: [](https://i.stack.imgur.com/y9pOb.png) Open Command Palette (Shift+Ctrl+P) or [](https://i.stack.imgur.com/RYfUt.png) Select Jupyter: Specify Jupyter Server for Connections, and select Existing: [](https://i.stack.imgur.com/VivZQ.png) Put in the box the URI (Uniform Resource Identifier) of the existing server obtained from running jupyter-notebook above, i.e., [](https://i.stack.imgur.com/LAlW7.png) Press Enter. Close the current Jupyter interactive window and Run Cell 1 of my Python code again: [](https://i.stack.imgur.com/Cy2WI.png) Problem solved. The next day, just repeat Method 2 after running VS Code again. Downgrade Jupyter extension Based on the suggestion in the answer [Python VS code does not connect with IPython kernel](https://stackoverflow.com/questions/63678170/python-vs-code-does-not-connect-with-ipython-kernel/75134730#75134730) just below my own answer here, I downgraded the Jupyter extension from v2022.11.1003412109 to v2022.9.1303220346, but it did not work. Below are the details (since I could no longer edit my comment to that answer). Open up the list of extensions: [](https://i.stack.imgur.com/O0LkN.png) Click on the Settings button for Jupyter, and select Install Another Version: [](https://i.stack.imgur.com/7VL0J.png) [](https://i.stack.imgur.com/nc8yC.png) Reload this older Jupyter extension, and do NOT update: [](https://i.stack.imgur.com/aDGlW.png) Click on Run Cell 1, but Jupyter window did not open up: [](https://i.stack.imgur.com/ZtJmL.png) Nothing happened. I uninstalled jupyter package, same problem. So I stick to above with the latest Jupyter extension (not downgraded), and everything was working again.
null
CC BY-SA 4.0
null
2023-01-15T14:48:20.887
2023-01-19T15:45:52.223
2023-01-19T15:45:52.223
5,460,965
5,460,965
null
75,126,146
2
null
75,126,121
0
null
Enter this in your terminal: ``` flutter pub get ```
null
CC BY-SA 4.0
null
2023-01-15T15:16:42.057
2023-01-15T15:16:42.057
null
null
13,275,649
null
75,126,202
2
null
75,123,887
1
null
the following regex would work ``` (?<=\w+\. ?)\w+ ```
null
CC BY-SA 4.0
null
2023-01-15T15:24:47.690
2023-01-15T15:24:47.690
null
null
21,006,440
null
75,126,340
2
null
75,123,887
0
null
So basically +., + is a qualifier that actually for one or more of the preceding characters or group which is making an issue ``` +.( ) ``` I tried to change it to make it run : ``` const regex = /(\w{2,}\.( ){1,})|(, \w+)/g; ``` I tried to modify your regex, simply by using word characters and capturing them in a group and added optional checking on dot ``` const regex = /^\w+[.\s]\s*|\.$/g; ``` ``` const nama = "DR. Tida"; const nama1 = "prof. Sina."; const regex = /^\w+[.\s]\s*|\.$/g; console.log(nama.replace(regex,"")); console.log(nama1.replace(regex,"")); ``` Just mentioning flexible regex where you can use the group as if you want the first name of the last name by using $1 or $2 ``` const regex = /(\w+)\.\s(\w+)(\.?)/; ``` ``` const nama = "DR. Tida"; const nama1 = "prof. Sina."; const regex = /(\w+)\.\s(\w+)(\.?)/g; console.log(nama.replace(regex,"$2")); console.log(nama1.replace(regex,"$2")); ```
null
CC BY-SA 4.0
null
2023-01-15T15:48:56.527
2023-01-15T15:48:56.527
null
null
14,845,251
null
75,126,404
2
null
75,126,335
0
null
The error appears because there is no "MANAGER" table in the FROM clause. If you reference a table in the where clause, it needs to exist in the FROM clause. In your case a simple join would do, there where clause is not needed. This statement does the same as what you're trying to achieve: ``` select name from COMP_EMPL C JOIN MANAGER M ON C.employee_id = M.employee_id ```
null
CC BY-SA 4.0
null
2023-01-15T15:59:04.080
2023-01-15T15:59:04.080
null
null
4,189,814
null
75,126,416
2
null
54,151,351
0
null
I faced the same issue as you and the way I solved it, I keep the directory to shortest as possible: On my side: E:/kafka and the rest of the directories like (bin, config, etc..) will be inside kafka I hope it works for you.
null
CC BY-SA 4.0
null
2023-01-15T16:01:08.727
2023-01-15T16:01:08.727
null
null
15,465,802
null
75,126,419
2
null
62,103,870
0
null
In my case it was because of using custom attr in theme in manifest. Once I replaced attr with style the colores showed up again.
null
CC BY-SA 4.0
null
2023-01-15T16:01:48.657
2023-01-15T16:01:48.657
null
null
19,516,326
null
75,126,477
2
null
75,126,455
1
null
It must be caused by a style that you have not shared. It works with the code here. It works if you remove the `left floated` classes from the original button. ``` $("#csv-button").click(getCSV); function getCSV() { $( "div.success" ).fadeIn( 300 ).delay( 1500 ).fadeOut( 400 ); } ``` ``` .alert-box { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; } .success { color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6; display: none; } ``` ``` <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Scan</title> <link rel="icon" href="data:;base64,="> <script src="https://code.jquery.com/jquery-3.1.1.min.js" crossorigin="anonymous"></script> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/semantic.min.css"> <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/semantic.min.js"></script> <script src="{{url_for('static', filename='clipboard.js')}}"></script> <link href="{{url_for('static', filename='alerts.css')}}" rel="stylesheet"> <body> <br /> <!--<h1 align="center">Please paste text in the box below</h1>--> <div class="ui container left aligned"> <div class="ui top attached segment"> <div class="ui top attached massive green label">HPO Extraction Results</div> <br /><br /> <form class="ui form"> <table class="ui table" id="hpos"> <thead> <tr> <th></th> <th>Id</th> <th>Text</th> <th>Count</th> </tr> </thead> <tbody> <tr> <td class="collapsing"> <div class="ui checked checkbox"> <input type="checkbox" checked=""> <label></label> </div> </td> <td>1</td> <td>2</td> <td>3</td> </tr> </tbody> </table> </form> <br /> <button class="ui positive submit button" id="csv-button">Copy to Clipboard</button> <div style="height:10px; width:100%">&nbsp;</div> <div class="alert-box success" float:left>Copied to clipboard</div> <div class="alert-box failure" float:left>Could not copy results</div> <div style="height:20px; width:100%">&nbsp;</div> </div> </div> </body> </html> ```
null
CC BY-SA 4.0
null
2023-01-15T16:10:50.953
2023-01-15T16:55:03.503
2023-01-15T16:55:03.503
16,634,738
16,634,738
null
75,126,491
2
null
75,123,887
0
null
Javascript does not support possessive quantifier like `\w{2,}+` but apart from that your pattern will not give you the desired results after replacing. Note that the space `( )` does not have to be between parenthesis to make it a group, you have to escape the dot `\.` to match it literally and `{1,}` can be written as `+` What you might do is repeat matching 2 or more word characters followed by a dot and 1+ spaces OR match 1 or more times a non word character except for a whitespace char. In the replacement use an empty string. ``` (?:\w{2,}\.[^\S\n]+)+|[^\w\s]+ ``` See a [regex 101 demo](https://regex101.com/r/Ku5vmR/1). ``` const regex = /(?:\w{2,}\.[^\S\n]+)+|[^\w\s]+/g; const s = `DR. Tida. prof. Sina. DR. prof. Tida.`; console.log(s.replace(regex, "")); ``` --- Although this part `\w{2,}\.` can obviously match more than just titles. You can also list using an alternation what you want to remove to make it more specific: ``` (?:\b(?:DR|prof)\.[^\S\n]+)+|[^\w\s]+ ``` See another [regex101 demo](https://regex101.com/r/1nV8EE/1)
null
CC BY-SA 4.0
null
2023-01-15T16:13:06.017
2023-01-15T16:13:06.017
null
null
5,424,988
null
75,126,647
2
null
75,123,191
0
null
To add to @Corralien's answer, I could also modify my `read_csv` call to pass `parse_dates = True` to automatically parse values as dates in the index column: ``` fb = pd.read_csv("C:\\Users\\me\\Downloads\\META.csv", index_col = 'Date', parse_dates = True) ```
null
CC BY-SA 4.0
null
2023-01-15T16:38:31.023
2023-01-15T16:38:31.023
null
null
132,042
null
75,127,005
2
null
74,891,196
1
null
This latency issue could be because of region differences in Azure. You should have the backend-service, that communicates with the database, in the same region.
null
CC BY-SA 4.0
null
2023-01-15T17:29:22.297
2023-01-15T17:32:42.413
2023-01-15T17:32:42.413
21,014,078
21,014,078
null
75,127,328
2
null
75,126,335
1
null
First of all, code you posted is invalid. It is a you need; you can't reference the `MANAGER` table in `WHERE` clause . Correct syntax is ``` select c."name" from comp_empl c join manager m on m.employee_id = c."employee_id" ``` For example, with some sample data: ``` SQL> with 2 comp_empl ("employee_id", "name") as 3 (select 1, 'Little' from dual), 4 manager ("manager_id", employee_id) as 5 (select 100, 1 from dual) ``` Query you'd use: ``` 6 select c."name" 7 from comp_empl c join manager m on m.employee_id = c."employee_id" 8 / name ------ Little SQL> ``` Note double quotes I used for identifiers. They are necessary because you chose to create tables using double quotes. It means that you have to enclose them into double quotes EVERY TIME you reference them. If you used mixed letter case, you'd have to match letter case as well. Shortly: it is a bad idea to use double quotes when working with Oracle. By default, Oracle stores names (tables, procedures, columns, ...) in uppercase, but lets you reference them using any letter case you want you used double quotes. If you look at e.g. `MANAGER` table, you'll see that `manager_id` is created in lower case (so you have to enclose it into double quotes and write lower case), while `EMPLOYEE_ID` is written in upper case (so you can reference it using upper case, or enclose them into double quotes but also with upper case). On the other hand, columns in `COMP_EMPL` table were created in lower case (which means with double quotes). --- If I were you, I'd drop both tables and create new ones as e.g. ``` create table manager (manager_id number, employee_id number ); ``` Then you can use all this: ``` select * from MAnaGer where EMPLOYEE_id = 1 or select EMPLOYEe_Id from manager where MANAGER_ID = 100 or ... ``` Using sample data from beginning of this post: ``` SQL> with 2 comp_empl (employee_ID, NAme) as 3 (select 1, 'Little' from dual), 4 manager (MANAGER_id, EmPlOyEe_ID) as 5 (select 100, 1 from dual) 6 select c.name 7 from comp_empl c join manager m on m.employee_id = c.employee_id; NAME ------ Little SQL> ```
null
CC BY-SA 4.0
null
2023-01-15T18:12:49.673
2023-01-15T18:18:16.753
2023-01-15T18:18:16.753
9,097,906
9,097,906
null
75,127,381
2
null
28,913,313
0
null
The only way to remove the top blank space is to switch the InterfaceController to mode: [](https://i.stack.imgur.com/XBTQ8.png) To add a color background, I would use an old method, that comes from UIKit. The idea is to stretch 1x1 image for the entire screen. 1. Go to any graphic editor and create a whitePixel.png (or copy it right here): 2. Add it to your project assets and don't forget to select Template rendering mode. This will allow you to change color of the background without changing the asset. 3. Add an image to the controller. Set both width and height Relative to Container. 4. With image set to whitePixel, select any tint color. Here's my settings: And the result: [](https://i.stack.imgur.com/xui3K.png)
null
CC BY-SA 4.0
null
2023-01-15T18:20:00.637
2023-01-15T18:20:00.637
null
null
1,746,142
null
75,127,967
2
null
66,180,011
0
null
I solved a similar issue by following the error logs from the remote ssh extension. I had to install libatomic1 on the remote server with ``` sudo apt-get install libatomic1 ```
null
CC BY-SA 4.0
null
2023-01-15T19:50:43.250
2023-01-15T19:50:43.250
null
null
20,977,692
null
75,128,062
2
null
18,358,816
0
null
Vanilla JS implementation of [https://medium.com/](https://medium.com/) right sidebar. Demo: [JSFiddle](https://jsfiddle.net/1jx743g9/1/) ``` function addThrottledScrollEventListener(element, callback) { let lastScrollPosition = 0; let isAnimationFrameRequested = false; element.addEventListener("scroll", function () { let beforeLastScrollPosition = lastScrollPosition; lastScrollPosition = element.scrollY; if (!isAnimationFrameRequested) { element.requestAnimationFrame(function () { callback(lastScrollPosition, beforeLastScrollPosition); isAnimationFrameRequested = false; }); isAnimationFrameRequested = true; } }); } function setupRightSidebarScroll(sidebar) { let isStickToTop = false; let isStickToBottom = false; addThrottledScrollEventListener(window, (currentScrollPosition, previousScrollPosition) => { let isScrollingDown = previousScrollPosition < currentScrollPosition; let isScrollingUp = !isScrollingDown; let scrollTop = window.scrollY; let scrollBottom = scrollTop + window.innerHeight; let sidebarBottom = sidebar.offsetTop + sidebar.offsetHeight; let isAlwaysSticky = sidebar.offsetHeight <= window.innerHeight; if (isStickToTop && isAlwaysSticky) return; if (!isStickToTop && isScrollingUp && scrollTop <= sidebar.offsetTop || isAlwaysSticky) { sidebar.style.position = "sticky"; sidebar.style.marginTop = `0px`; sidebar.style.top = "0px"; isStickToTop = true; return; } if (isScrollingDown && isStickToTop) { sidebar.style.position = "relative"; sidebar.style.top = `0px`; sidebar.style.marginTop = `${scrollTop}px`; isStickToTop = false; return; } if (!isStickToBottom && isScrollingDown && scrollBottom >= sidebarBottom) { sidebar.style.position = "sticky"; sidebar.style.marginTop = `0px`; sidebar.style.top = `${window.innerHeight - sidebar.offsetHeight}px`; isStickToBottom = true; return; } if (isScrollingUp && isStickToBottom) { sidebar.style.position = "relative"; sidebar.style.marginTop = `${scrollBottom - sidebar.offsetHeight}px`; sidebar.style.top = `0px`; isStickToBottom = false; return; } }); } ```
null
CC BY-SA 4.0
null
2023-01-15T20:08:17.927
2023-01-15T20:18:15.403
2023-01-15T20:18:15.403
13,599,988
13,599,988
null
75,128,401
2
null
75,128,342
0
null
This is a consequence of the way numbers are stored internally in IEEE 754 form. To avoid this, use a BigDecimal library such as this one: [https://www.npmjs.com/package/js-big-decimal](https://www.npmjs.com/package/js-big-decimal)
null
CC BY-SA 4.0
null
2023-01-15T21:04:46.783
2023-01-15T21:04:46.783
null
null
5,898,421
null
75,128,464
2
null
74,032,640
2
null
Option 1 would be the one you should be using. Because you should never be passing the ViewModels down. The reason is that viewModels are marked as `unstable` by compose compiler and it causes the composable function `non-skippable`. The problem with this, recomposition will not be skipped and your UI elements will be redrawn even though the parameters you passed were not changed. With Option 1, you are right that It will be recomposed if 1 parameters changed but since Compose can intelligently recompose only the components that changed, you would not have problem. For detailed information you can check the following resources. [https://twitter.github.io/compose-rules/rules/](https://twitter.github.io/compose-rules/rules/) [https://medium.com/androiddevelopers/jetpack-compose-stability-explained-79c10db270c8](https://medium.com/androiddevelopers/jetpack-compose-stability-explained-79c10db270c8)
null
CC BY-SA 4.0
null
2023-01-15T21:17:41.573
2023-01-15T21:17:41.573
null
null
14,914,512
null
75,128,857
2
null
26,390,072
0
null
I am using Xcode 14.2. If you want to do this using Xcode UI, then select the Navigation controller, then Navigation Bar, then Attributes Inspector and Under Scroll Edge Appearance, set the Shadow Color to clear color. [](https://i.stack.imgur.com/k2LLP.png)
null
CC BY-SA 4.0
null
2023-01-15T22:33:16.447
2023-01-15T22:33:16.447
null
null
20,344,059
null
75,128,934
2
null
75,128,902
0
null
Discord will convert any text in the format of `<t:SECONDS>` into a timestamp. Just replace `SECONDS` with the seconds since 12:00 am on January 1st, 1970 UTC (also known as the UNIX Epoch). Try this code: ``` .setDescription(` Your account was opened on <t:${moment(member.user.createdAt).unix()}>.`) ``` Note that the `.unix()` method in moment.js will return the seconds since the UNIX Epoch. You can also check out [this website](https://discordtimestamp.com/) and play around with it to get the other formats, but in every format, the number you need is always the seconds since UNIX Epoch.
null
CC BY-SA 4.0
null
2023-01-15T22:48:15.083
2023-01-15T22:48:15.083
null
null
13,376,511
null
75,129,029
2
null
53,730,486
0
null
I have just come across this problem. I need to upload the plot to overleaf, so I do not like the dpi solutions. Here is what I came up with, based on the solution of OP: ``` import matplotlib.pyplot as plt import numpy as np import seaborn as sns image = np.array([[1, 1, 2, 2], [3, 3, 3, 3], [4, 5, 4, 5], [6, 6, 6, 6]]) ax = sns.heatmap(image, cmap="rocket_r", linewidths=0.1) colors = ax.collections[0].get_facecolors() ax.collections[0].set_edgecolors(colors) plt.imshow() ``` The idea is to create a thin edge around each cell with the cell's facecolor. This removes the lines without changing the original cell colors.
null
CC BY-SA 4.0
null
2023-01-15T23:09:54.963
2023-01-15T23:09:54.963
null
null
20,412,553
null
75,129,158
2
null
75,126,361
0
null
Seems like you missed a `,` at the end of line 25. ``` Text( text = state.number1 + (state.operation?:"")+state.number2 , textAlign = TextAlign.End ) ```
null
CC BY-SA 4.0
null
2023-01-15T23:40:30.777
2023-01-16T09:44:45.187
2023-01-16T09:44:45.187
2,016,562
10,009,481
null
75,129,269
2
null
48,344,245
0
null
Under advanced settings, ensure it is set to "write if empty" and not append or overwrite if the table is being created for the first time.
null
CC BY-SA 4.0
null
2023-01-16T00:08:31.883
2023-01-16T00:08:31.883
null
null
3,643,012
null
75,129,531
2
null
75,118,483
1
null
You can use the following two ways: 1. Use debug mode, and change "console" to "internalConsole". Your launch.json will look like: { "version": "0.2.0", "configurations": [ { "name": "Python", "type": "python", "request": "launch", "program": "${workspaceFolder}/path/to/your_script.py", "console": "internalConsole" } ] } 2. You can use code-runner extension if you do not want to use debug everytime. Then add the following code to your settings.json: "code-runner.runInTerminal": false, "code-runner.clearPreviousOutput": true, "code-runner.showExecutionMessage": false, In this way, you can click the Run Code button in your first picture, and the path will not be displayed each time you run file, and the last run result will be cleared automatically each time you run if you use code-runner extension.
null
CC BY-SA 4.0
null
2023-01-16T01:27:11.803
2023-01-16T02:00:32.170
2023-01-16T02:00:32.170
4,621,513
18,359,438
null
75,129,555
2
null
75,129,201
1
null
I fixed this by changing the `justify-content` property to `center` for the `footer__socials` class and set the padding to a variable 5% for the `footer__link`s so that it would still have all the links stacked next to each other and get the tab effect I was looking for.
null
CC BY-SA 4.0
null
2023-01-16T01:32:40.430
2023-01-16T09:01:16.987
2023-01-16T09:01:16.987
5,947,043
14,572,611
null
75,129,917
2
null
71,080,518
0
null
My solution was a bit simpler. Uninstall everything all build system's from VS. Then reinstall Visual Studio Community 2022, restart then try again. Might get a warning about nuget but it should fix the issue.
null
CC BY-SA 4.0
null
2023-01-16T03:07:11.393
2023-01-16T03:07:11.393
null
null
1,460,955
null
75,130,153
2
null
75,095,155
2
null
Finally, I could run the app (root level) on my computer. From the installation error section, we could see that this error `verbose stack Error: [email protected] prepare: `rm -rf dist && npm run build`` happened when a Windows-based computer tried to run a Unix-based command. There is no `rm` command on the Windows computer. So I tried to install the WSL on my Windows computer [https://techcommunity.microsoft.com/t5/windows-11/how-to-install-the-linux-windows-subsystem-in-windows-11/td-p/2701207](https://techcommunity.microsoft.com/t5/windows-11/how-to-install-the-linux-windows-subsystem-in-windows-11/td-p/2701207). After strugling with the WSL installation, I could run the `npm install` command on the app and no error message appeared. But then I didn't know how to run the app. Fortunately, we found another similar repository that has the `start` script here [https://github.com/Theofilos-Chamalis/mumble-web](https://github.com/Theofilos-Chamalis/mumble-web). Using the `npm install` and `npm start`, I finally could run a mumble implementation the frontend app. Note: the app from the [https://github.com/Theofilos-Chamalis/mumble-web](https://github.com/Theofilos-Chamalis/mumble-web) was not updated like the [https://github.com/Johni0702/mumble-web](https://github.com/Johni0702/mumble-web) one but I think that's another issue from this question.
null
CC BY-SA 4.0
null
2023-01-16T04:04:14.260
2023-01-16T04:04:14.260
null
null
8,339,172
null
75,130,187
2
null
69,010,561
-1
null
`C:\Program Files\dotnet\` moving this path (env variable - system variable) upward worked for me. In my case there are two paths: one is program files and another one is program files (x86) , so just moved `C:\Program Files\dotnet\` this path above.
null
CC BY-SA 4.0
null
2023-01-16T04:14:10.150
2023-01-18T00:12:45.630
2023-01-18T00:12:45.630
843,953
18,440,367
null
75,130,408
2
null
75,123,851
0
null
This error is mostly due to version conflicts. If you are sure that the framework you introduced is fine, please follow the steps below: TOOLS===>Options===>Text Templating ===>show security message will be false not true
null
CC BY-SA 4.0
null
2023-01-16T05:08:13.193
2023-01-16T05:08:13.193
null
null
20,528,460
null
75,130,546
2
null
35,658,441
0
null
You can use the %f format specifier while commanding printf func.You should see your result accurately. In %d format specifier the value tends to the final answer eg. 5^2=24.9999999999 and hence the answer shown is 24.
null
CC BY-SA 4.0
null
2023-01-16T05:35:22.107
2023-01-16T05:35:22.107
null
null
14,556,895
null
75,130,780
2
null
73,273,384
0
null
``` var claims = keyValuePairs?.Select(kvp => new Claim(kvp.Key, kvp.Value.ToString() ?? string.Empty)); ``` How about this?
null
CC BY-SA 4.0
null
2023-01-16T06:19:00.310
2023-01-16T12:59:22.977
2023-01-16T12:59:22.977
3,968,276
2,136,407
null
75,131,102
2
null
75,130,213
0
null
You can do this by wrapping a `UIPageControl` in a `UIViewRepresentable`, and then overlay that over your `TabView` using a `ZStack` or a `.overlay` modifier. You'll want to use `.tabViewStyle(.page(indexDisplayMode: .never))` to prevent the tab view from displaying its own page control. Here's a wrapper for `UIPageControl`. ``` struct PageControl: UIViewRepresentable { @Binding var currentPage: Int var numberOfPages: Int func makeCoordinator() -> Coordinator { return Coordinator(currentPage: $currentPage) } func makeUIView(context: Context) -> UIPageControl { let control = UIPageControl() control.numberOfPages = 1 control.setIndicatorImage(UIImage(systemName: "location.fill"), forPage: 0) control.pageIndicatorTintColor = UIColor(.primary) control.currentPageIndicatorTintColor = UIColor(.accentColor) control.translatesAutoresizingMaskIntoConstraints = false control.setContentHuggingPriority(.required, for: .horizontal) control.addTarget( context.coordinator, action: #selector(Coordinator.pageControlDidFire(_:)), for: .valueChanged) return control } func updateUIView(_ control: UIPageControl, context: Context) { context.coordinator.currentPage = $currentPage control.numberOfPages = numberOfPages control.currentPage = currentPage } class Coordinator { var currentPage: Binding<Int> init(currentPage: Binding<Int>) { self.currentPage = currentPage } @objc func pageControlDidFire(_ control: UIPageControl) { currentPage.wrappedValue = control.currentPage } } } ``` And here's an example of how to use it: ``` struct ContentView: View { @State var page = 0 var locations = ["Current Location", "San Francisco", "Chicago", "New York", "London"] var body: some View { ZStack(alignment: .bottom) { tabView VStack { Spacer() controlBar.padding() Spacer().frame(height: 60) } } } @ViewBuilder private var tabView: some View { TabView(selection: $page) { ForEach(locations.indices, id: \.self) { i in WeatherPage(location: locations[i]) .tag(i) } } .tabViewStyle(.page(indexDisplayMode: .never)) } @ViewBuilder private var controlBar: some View { HStack { Image(systemName: "map") Spacer() PageControl( currentPage: $page, numberOfPages: locations.count ) Spacer() Image(systemName: "list.bullet") } } } struct WeatherPage: View { var location: String var body: some View { VStack { Spacer() Text("Weather in \(location)") Spacer() } } } ```
null
CC BY-SA 4.0
null
2023-01-16T07:05:57.500
2023-01-16T07:05:57.500
null
null
77,567
null
75,131,320
2
null
75,131,041
0
null
I would advise you to use an array of images instead of objects, and to follow closely the Helm documentation example: [https://helm.sh/docs/chart_template_guide/control_structures/#looping-with-the-range-action](https://helm.sh/docs/chart_template_guide/control_structures/#looping-with-the-range-action) ``` images: - name: wqqwd1 container: nginx - name: wqqwd2 container: nginx ```
null
CC BY-SA 4.0
null
2023-01-16T07:35:11.673
2023-01-16T07:35:11.673
null
null
9,967,831
null
75,131,327
2
null
75,092,526
0
null
Try to make a test with the URL Rewrite rule below. It could help you rewrite `example.com/ui` to `localhost:1880/ui`. ``` <rewrite> <rules> <rule name="test_rule" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTP_HOST}" pattern="example.com" /> <add input="{REQUEST_URI}" pattern="^/ui$" /> </conditions> <action type="Rewrite" url="http://localhost:1880/ui" /> </rule> </rules> </rewrite> ``` Output: [](https://i.stack.imgur.com/8kA1h.gif) Further, you could modify the rule as per your own requirements.
null
CC BY-SA 4.0
null
2023-01-16T07:35:51.587
2023-01-16T07:35:51.587
null
null
10,309,381
null
75,131,390
2
null
75,130,921
0
null
: I added the trackBy in template driven form, else the "focus" is loose when enter anything in the inputs In general, when we have a "series of buttons" we use an array. Imagine some like ``` <div class="group" *ngFor="let bt of buttons;let i=index"> <input> <button>add</button><button>delete</button> </div> ``` If you use a .css like ``` .group:not(:last-child)>input+button{ display:none; } .group:last-child>input+button+button{ display:none; } ``` The last "group" show the button "add" and the others show the button "delete" Well. I imagine you want to store the inputs. So we can use a template driven form (use ngModel) or reactive Forms (use a FormArray) Using template driven form ``` <div class="group" *ngFor="let value of values; let i = index;trackBy:trackFunction "> <input [(ngModel)]="values[i]" /> <button (click)="add()">add</button> <button (click)="remove(i)">delete</button> </div> ``` Where we define ``` values:string[]=["",""] add() { this.values.push("") } remove(index:number) { this.values.splice(index,1) } trackFunction(index:number,item:string){ return index } ``` If we use a FormArray we iterate over formArray.controls ``` <div class="group" *ngFor="let control of formArray.controls; let i = index"> <input [formControl]="getControl(i)" /> <button (click)="addControl()">add</button> <button (click)="removeControl(i)">delete</button> </div> ``` And we use ``` formArray=new FormArray([new FormControl(""),new FormControl("")]) getControl(index:number) { return this.formArray.at(index) as FormControl; } addControl() { this.formArray.push(new FormControl("")) } removeControl(index:number) { this.formArray.removeAt(index) } ``` You have the two approach in this [stackblitz](https://stackblitz.com/edit/angular-ivy-hfrmde?file=src%2Fapp%2Fapp.component.ts) in Angular js it's the same, some like ``` (function () { 'use strict'; angular. module('plunker'). controller('ComponentController', ComponentController); ComponentController.$inject = ['$scope']; function ComponentController($scope) { $scope.values = ['',''] $scope.add = function add() { $scope.values.push(''); }; $scope.remove = function remove(index) { $scope.values.splice(index,1) }; } })(); ``` And ``` <div ng-controller="ComponentController"> <div class="group" ng-repeat="value in values track by $index"> <input type="text" ng-model="values[$index]"> <button ng-click="add()">add</button> <button ng-click="remove($index)">delete</button> </div> </div> </div> ```
null
CC BY-SA 4.0
null
2023-01-16T07:44:03.837
2023-01-17T08:09:50.283
2023-01-17T08:09:50.283
8,558,186
8,558,186
null
75,131,415
2
null
75,131,083
1
null
Simplest solution would be drawing a rectangle with a large shadow on top: ``` .mask2 { position: relative; } .cutout { position: absolute; width: 100px; height: 100px; top: 20px; left: 30px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .7); } ``` ``` <div class="mask2"> <div class="cutout"></div> <img src="https://www.w3schools.com/css/img_5terre.jpg" alt="Cinque Terre" width="600" height="400"> </div> ``` Idea taken from [here](https://stackoverflow.com/questions/45143916/dim-entire-screen-except-a-fixed-area). --- Alternatively, and this isn't a perfect solution but you could duplicate the image, tune opacity down and put masked-out duplicate on top. ``` .mask2 { position: relative; background-color: #000000 } .mask2 img { opacity: 0.3; } .mask2 img.masked { position: absolute; top: 0; left: 0; opacity: 1; clip-path: polygon(30% 30%, 70% 30%, 70% 70%, 30% 70%) } ``` ``` <div class="mask2"> <img src="https://www.w3schools.com/css/img_5terre.jpg" alt="Cinque Terre" width="600" height="400" class="masked"> <img src="https://www.w3schools.com/css/img_5terre.jpg" alt="Cinque Terre" width="600" height="400"> </div> ```
null
CC BY-SA 4.0
null
2023-01-16T07:47:38.230
2023-01-16T08:02:52.787
2023-01-16T08:02:52.787
20,862,292
20,862,292
null
75,131,524
2
null
75,115,909
20
null
On Mac: Go to finder and find Android studio: right click and click show package contents Create a new folder called jre copy the contents of the jbr folder and paste them into jre folder Copied from: [https://github.com/flutter/flutter/issues/118502](https://github.com/flutter/flutter/issues/118502) This one worked for me ...
null
CC BY-SA 4.0
null
2023-01-16T08:01:31.473
2023-01-16T08:01:31.473
null
null
10,003,369
null
75,131,541
2
null
75,129,611
0
null
The easiest way is to use the `width` or `min-width` prop of `v-button`. Another option is to set a custom CSS class on the button which overrides the CSS `min-width` rule of the button.
null
CC BY-SA 4.0
null
2023-01-16T08:03:39.180
2023-01-16T08:03:39.180
null
null
5,962,802
null
75,131,564
2
null
75,131,041
0
null
Looks like the `_deployment.yaml` contains formatting and indentation issues. You need to fix those first. Also, follow the official [debugging instructions](https://helm.sh/docs/chart_template_guide/debugging/) to verify the rendered changes. For debugging, you may also use the [print](https://helm.sh/docs/chart_template_guide/function_list/#print) function. Here's a small example [tested online](https://helm-playground.com/#t=JYWwhg5gpgzgXAKAN5ILQAIBOYB210AkA1gDSEBu6cAvOgHQBqYANgK6x2iSzoC%2BvCDDjAgocdCgp1hovrwD6k4nITp0XaOKXk6mKAAcA9jGAAXQ5gCeKlBig4AJiqA&v=JYWwhg5gpgzgXAKAARNJKBGRKUDswhRyobI4BOUADgPYzAAuN5AnseaSmtAEzY75CxYDzIpKtek1btRQA) and it works fine: `template.yaml` ``` images: {{- range $k, $v := .Values.images }} - name: {{ $v.name }}_{{ $k }} image: {{ $v.repository }} {{- end }} ``` `values.yaml` ``` images: image1: name: i1 repository: r1 image2: name: i2 repository: r2 ``` ``` images: - name: i1_image1 image: r1 - name: i2_image2 image: r2 ``` --- After reducing the updated config (as text) to bareminimum, it is working fine. See it online [here](https://helm-playground.com/#t=IYBwlgagpgTgzmA9gOwFwAJQjgegG4CMAUANZjIAmGAIlCADaICeAtlMgC5FwhQDGqIunQcoLBsFGDhwnv2kzhfFB2DlYcBYoDe2gLToYwZAHMo6ACQkoTADSW8wegFdzqALzoAdBCeu4XmAswGZw6AC%2B4UKK6AbIwGwYug5%2BUF7xbBHhAPrJVjZZ0THocPzOMGAcTADCKlAAHhxaxYbOyACCcAByKABKiIhNIjCuRS0jHXAAqqUwGAQATAAMS2OKQSFQSdopLmkwdIgIHIgwTIUt6BtmAArO9PQ3iPRgfEzbu65eIPePz6-nSJrGQgU4cTTA4QGZScNTIWBPGBDAAcS1RkMMUDgiHKfCxHxOAE0EvRPvssTiYHiwgAfdDIcgUdgcdAEJYXGK6AzsChZIA&v=JYWwhg5gpgzgXAKAARNJKBGRKUDswhRxIBEAFgFYAmMZJyOATlAA4D2MwALm4wJ7FcEYLgAeDFCwCuAGxkAFNjOABjAUgCSAMwBybLvOYwouLhKRdIxEvRypc3YGBkARKDLB8AylBVtcNMQArOZGbFKMKrDYdkjMAI5SsFzw5naEILzqJBgATAAcALLAtrEoKtLWefkgpXbKINypZSgZWVUFxXWxFVIdNaVo0LkxeAREpADWFABGFJPdzOycPPyCwmLm0nKKymrE2noGRiZmdpYQ1t0ijs5uHt6%2B-oFIIXZhEVHNsQlJMCmjWJtNakapdNI4Xr9WoQhpNQHpKCZEE5TolCHlSqggowoA). `template.yaml` ``` apiVersion: apps/v1 kind: Deployment metadata: name: name spec: {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.deploymentReplicas }} {{- end }} minReadySeconds: {{ .Values.deployment.minReadySeconds | default 0 }} strategy: {} selector: matchLabels: template: metadata: labels: spec: {{- if .Values.gitlab.auth.enabled }} imagePullSecrets: {{- end }} serviceAccountName: {{ .Values.serviceAccount.name | quote }} securityContext: fsGroup: {{ .Values.deployment.runAsUser | default 1000 }} runAsUser: {{ .Values.deployment.runAsUser | default 1000 }} runAsNonRoot: {{ .Values.deployment.runAsNonRoot | default true }} affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: app operator: In values: topologyKey: "kubernetes.io/hostname" containers: {{- range $key, $value := .Values.images }} - name: {{ $value.name }}_{{ $key }} securityContext: runAsNonRoot: true runAsUser: 1200 image: {{ $value.repository }} imagePullPolicy: "" ports: - containerPort: 8080 resources: {{ toYaml $value.resources | nindent 10 }} readinessProbe: httpGet: path: /v1/healthCheck port: 8080 initialDelaySeconds: "" periodSeconds: 10 {{- end }} ``` `values.yaml` ``` images: image1: name: "hjdsh" repository: nginx pullPolicy: IfNotPresent tag: "" initialDelaySeconds: 5 resources: requests: memory: "128Mi" cpu: "128m" limits: memory: "128Mi" cpu: "128m" image2: name: "kjbjk" repository: nginx pullPolicy: IfNotPresent tag: "" initialDelaySeconds: 5 resources: requests: memory: "128Mi" cpu: "128m" limits: memory: "128Mi" cpu: "128m" ``` ``` apiVersion: apps/v1 kind: Deployment metadata: name: name spec: replicas: <no value> minReadySeconds: 0 strategy: {} selector: matchLabels: template: metadata: labels: spec: serviceAccountName: securityContext: fsGroup: 1000 runAsUser: 1000 runAsNonRoot: true affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: app operator: In values: topologyKey: "kubernetes.io/hostname" containers: - name: hjdsh_image1 securityContext: runAsNonRoot: true runAsUser: 1200 image: nginx imagePullPolicy: "" ports: - containerPort: 8080 resources: limits: cpu: 128m memory: 128Mi requests: cpu: 128m memory: 128Mi readinessProbe: httpGet: path: /v1/healthCheck port: 8080 initialDelaySeconds: "" periodSeconds: 10 - name: kjbjk_image2 securityContext: runAsNonRoot: true runAsUser: 1200 image: nginx imagePullPolicy: "" ports: - containerPort: 8080 resources: limits: cpu: 128m memory: 128Mi requests: cpu: 128m memory: 128Mi readinessProbe: httpGet: path: /v1/healthCheck port: 8080 initialDelaySeconds: "" periodSeconds: 10 ``` Your issue might be coming from someplace else. You need to debug the rest of the template and fix any intermediate issues that are causing this. As there are `include` also so it cannot be reproduced in entirety without them.
null
CC BY-SA 4.0
null
2023-01-16T08:06:56.557
2023-01-17T07:11:50.063
2023-01-17T07:11:50.063
7,670,262
7,670,262
null
75,131,615
2
null
75,117,554
0
null
HTTP Status 500 means [Internal Server Error](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500) > The HyperText Transfer Protocol (HTTP) `500 Internal Server Error` server error response code indicates that the server encountered an unexpected condition that prevented it from fulfilling the request.This error response is a generic "catch-all" response. Usually, this indicates the server cannot find a better 5xx error code to response. Sometimes, server administrators log error responses like the 500 status code with more details about the request to prevent the error from happening again in the future. 1. So first of all check "Response Data" tab of the s listener for any suspicious entries, it might be the case the server tells you what went wrong. 2. If there is nothing useful there - check your server and/or database logs, it might be the case you will be able to figure out the reason from there 3. Then you could try running your test several more times to see if the behaviour is repeatable, i.e. whether the same requests with the same data failing all the time 4. It might be connected with concurrency, i.e. only one request is allowed at the moment, try decreasing the number of concurrent users to 1 and see whether it resolves your issue 5. Check Sharing Mode setting of the CSV Data Set Config, if it's different from the default value of All threads it might be the case 2 users are sending the same request and your server and/or database doesn't allow duplicate values.
null
CC BY-SA 4.0
null
2023-01-16T08:12:50.243
2023-01-16T08:12:50.243
null
null
2,897,748
null
75,131,883
2
null
67,864,348
0
null
Uninstall mySQL in programfiles, programfiles(x86), programData. Restart your computer and redo the process allover, click 'NO' to autoupdate when you launch the installer.
null
CC BY-SA 4.0
null
2023-01-16T08:44:28.143
2023-01-16T08:44:28.143
null
null
17,817,180
null
75,131,893
2
null
75,131,747
0
null
it seems you dont have these packages installed. You can try to run `npm install clarifai-nodejs-grpc web-vitals`. Also deleting the package.lock.json and node_modules and running `npm install` again should work if you have these two packages listed on your package.json dependencies. --- It seems from your package json that you have installed the clarifai package: github.com/Clarifai/clarifai-javascript, and not the clarifai-nodejs-grpc package: github.com/Clarifai/clarifai-nodejs-grpc. Make sure to install the right one according to your use case, and use the right one on the code. . But it seems you are importing clarifai-nodejs-grpc package in the code while you have clarifai package installed. So: - - `npm install`- `npm install clarifai-nodejs-grpc`
null
CC BY-SA 4.0
null
2023-01-16T08:45:58.437
2023-01-17T20:27:34.833
2023-01-17T20:27:34.833
20,963,771
20,963,771
null
75,132,105
2
null
75,131,342
0
null
try to not use span, or make the display to block for the span. by the way your code cannot produce the result as your image because it's not doing query any data, of course because it's on frontend and we don't have your database
null
CC BY-SA 4.0
null
2023-01-16T09:07:24.350
2023-01-16T09:07:24.350
null
null
11,081,048
null
75,132,298
2
null
75,132,009
0
null
I solved your issue like this: Output of your issue : - [](https://i.stack.imgur.com/ZluDy.jpg) ``` body: Column( mainAxisSize: MainAxisSize.min, children: [ ListTile( title: Row( children: [ const Text( 'Cheese Burger', ), Expanded(child: Text('.' * 100, maxLines: 1)), const Text( '\$ 10', ), ], ), ), const SizedBox( height: 10, ), ListTile( title: Row( children: [ const Text( 'Chicken Masala Soup', ), Expanded(child: Text('.' * 100, maxLines: 1)), const Text( '\$ 10', ), ], ), ), ], ), ```
null
CC BY-SA 4.0
null
2023-01-16T09:29:17.690
2023-01-18T06:02:29.277
2023-01-18T06:02:29.277
20,446,596
19,726,949
null
75,132,387
2
null
20,048,266
0
null
just so you won't waste time for scatter plot the keyword for size is `s` and not `markersize` ``` plt.scatter(x, y, s=20, c=colors, alpha=0.5) ``` but you can still use the marker shape if you want source: [matplotlib's scatter documentation](https://matplotlib.org/stable/gallery/shapes_and_collections/scatter.html#sphx-glr-gallery-shapes-and-collections-scatter-py)
null
CC BY-SA 4.0
null
2023-01-16T09:37:38.043
2023-01-16T09:37:38.043
null
null
1,984,636
null
75,132,786
2
null
75,132,009
1
null
The result that you want to achieve can be done just by using the row widget, you don't have to wrap it up with ListTile. I am writing the code snippet of Row widget for you. You can copy paste it and it will work. Additionally I see that you are generating it in the column widget. If you have a dynamic array then I suggest that you use ListView Divider instead. It will have a divider to add between your rows as well. You can find more about it on flutter official documentation. ``` Row( children:[ //You may add some padding to Text for better looking UI. Text("Chicken Masala"), Expanded(child:Divider()), Text("180") ]) ``` Just replace your column's children with this row and you will be able to see it.
null
CC BY-SA 4.0
null
2023-01-16T10:13:20.083
2023-01-16T10:13:20.083
null
null
16,124,744
null
75,133,004
2
null
75,132,469
0
null
Try something along the lines of using `XLOOKUP()` & `FILTER()` Function [](https://i.stack.imgur.com/l7opK.png) --- • Formula used in cell `D19` ``` =FILTER(A2:A16,XLOOKUP(D18,B1:P1,B2:P16)=1) ``` --- If you need without blanks or 0's then, [](https://i.stack.imgur.com/GMTiW.png) --- ``` =FILTER(A2:A16,XLOOKUP(D18,B1:P1,B2:P16)<>0) ``` --- ## EDIT As per comments of `OP` [](https://i.stack.imgur.com/j2eX2.png) --- [](https://i.stack.imgur.com/nGkqB.png) • Formula used in cell `G19` ``` =LET(_x,XLOOKUP(G18,B1:P1,B2:P16),FILTER(HSTACK(A2:A16,_x),_x<>0)) ``` ---
null
CC BY-SA 4.0
null
2023-01-16T10:33:24.603
2023-01-16T11:02:14.740
2023-01-16T11:02:14.740
8,162,520
8,162,520
null
75,133,681
2
null
64,173,613
0
null
If you want to automatically active virtual env or (venv). Try this. Install virtual env ``` python3 -m venv venv ``` If you have already have venv present. you can refer use this to get the executable python3 file like this. #referred @Arty answer above. ``` import sys print(sys.executable) ``` this will print the python3 path of that venv. later open command pallet ( `ctrl + shift + P` ) and type `python` as shown in image. [](https://i.stack.imgur.com/WZbym.png) Then click on [](https://i.stack.imgur.com/LW1rC.png) and paste that path into the input box. Now the setup is done. Now every time you open a terminal, it will automatically open your terminal in the virtual env, and will auto-run the virtual env for you.
null
CC BY-SA 4.0
null
2023-01-16T11:37:40.753
2023-01-16T11:37:40.753
null
null
18,360,265
null
75,133,711
2
null
27,651,892
0
null
> Instructions from [lukechilds/zsh-nvm#as-an-oh-my-zsh-custom-plugin](https://github.com/lukechilds/zsh-nvm) If you are using mac os + zsh + oh-my-zsh: 1. Clone zsh-nvm into your custom plugins repo git clone https://github.com/lukechilds/zsh-nvm ~/.oh-my-zsh/custom/plugins/zsh-nvm 2. Then load nvm as a plugin in your .zshrc file plugins+=(zsh-nvm) Keep in mind that plugins need to be added before oh-my-zsh.sh is sourced. f.e. $ nano ~/.zshrc // edit .zshrc contents ... # Which plugins would you like to load? # Standard plugins can be found in $ZSH/plugins/ # Custom plugins may be added to $ZSH_CUSTOM/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. # docs: f.e. https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/kubectl plugins=(zsh-nvm) source $ZSH/oh-my-zsh.sh ... 3. Finally reload the configuration $ source ~/.zshrc
null
CC BY-SA 4.0
null
2023-01-16T11:40:38.760
2023-01-16T11:40:38.760
null
null
1,420,433
null
75,133,730
2
null
6,076,154
0
null
You can use [forms.FileInput](https://docs.djangoproject.com/en/4.1/ref/forms/widgets/#fileinput) to remove `Currently:` and a link. For example, there is `Image` below: ``` # "models.py" from django.db import models class Image(models.Model): image = models.ImageField() def __str__(self): return self.image.url ``` Then, there is `Image` below: ``` # "admin.py" from django.contrib import admin from .models import Image @admin.register(Image) class ImageAdmin(admin.ModelAdmin): pass ``` Then, `Currently:` and a link are displayed as shown below: [](https://i.stack.imgur.com/HOFjA.png) Now, if assigning `forms.FileInput` to [formfield_overrides](https://docs.djangoproject.com/en/4.1/ref/contrib/admin/#django.contrib.admin.ModelAdmin.formfield_overrides) as shown below: ``` # "admin.py" from django.contrib import admin from .models import Image from django import forms @admin.register(Image) class ImageAdmin(admin.ModelAdmin): # Here # Here formfield_overrides = {models.ImageField: {"widget": forms.FileInput}} ``` Then, `Currently:` and a link are removed as shown below: [](https://i.stack.imgur.com/iFUTN.png) In addition, if you override `forms.FileInput` and assign `CustomFileInput` to `formfield_overrides` as shown below. (*`</p>` can be removed because `</p>` is automatically added in Django): ``` # "admin.py" from django.contrib import admin from .models import Image from django import forms from django.utils.html import format_html from django.db import models # Here class CustomFileInput(forms.FileInput): def render(self, name, value, attrs=None, renderer=None): result = [] if hasattr(value, "url"): result.append( f'''<p class="file-upload"> Presently: <a href="{value.url}">"{value}"</a><br> Change:''' ) result.append(super().render(name, value, attrs, renderer)) # result.append('</p>') # Here return format_html("".join(result)) @admin.register(Image) class ImageAdmin(admin.ModelAdmin): # Here formfield_overrides = {models.ImageField: {"widget": CustomFileInput}} ``` You can change `Currently:` to `Presently:` as shown below: [](https://i.stack.imgur.com/Fs53I.png)
null
CC BY-SA 4.0
null
2023-01-16T11:42:14.543
2023-01-17T17:10:28.110
2023-01-17T17:10:28.110
3,247,006
3,247,006
null
75,133,785
2
null
75,130,583
0
null
Looking at your screenshots i guess you declared the breadcrumb component in your own BreadcrumbModule. but you are importing the primeNg BreadcrumbModule in the AppModule. you should move or copy the primeNg import to your own BreadcrumbModule (the module where your BreadcrumbComponent is declared)
null
CC BY-SA 4.0
null
2023-01-16T11:46:51.153
2023-01-16T11:46:51.153
null
null
5,934,187
null
75,134,143
2
null
75,134,020
0
null
This can be achieved using `substring()` with a regular expression: ``` select substring(data_column from 'data_as_of_date:([0-9]+)') as data_as_of_date, substring(data_column from 'unique_cc:([0-9]+)') as unique_cc from the_table; ```
null
CC BY-SA 4.0
null
2023-01-16T12:20:37.797
2023-01-16T12:20:37.797
null
null
330,315
null
75,134,203
2
null
62,126,065
0
null
I tried the rangeFillColor to change the range selection active indicator color, but it doesn't work. In the documentation it says it's the Primary container color but nothing happens when I try to override the color in the style. Do you know if it still can be changed ? The doc: [https://m3.material.io/components/date-pickers/specs#89a4fb25-6806-45fa-92fb-bf8d71d5a2d1](https://m3.material.io/components/date-pickers/specs#89a4fb25-6806-45fa-92fb-bf8d71d5a2d1) ``` <style name="ThemeOverlay.App.CustomDatePicker" parent="@style/ThemeOverlay.Material3.MaterialCalendar"> <item name="colorPrimary">@color/darkPurple</item> <item name="colorOnPrimary">@color/white</item> <item name="colorPrimaryContainer">@color/lightPurple</item> <item name="rangeFillColor">@color/lightPurple</item> </style> ```
null
CC BY-SA 4.0
null
2023-01-16T12:24:49.690
2023-01-16T12:33:00.257
2023-01-16T12:33:00.257
17,455,999
17,455,999
null
75,134,420
2
null
75,133,905
0
null
yo, I think issue is in this line of code: ``` pyautogui.typewrite(serial_list[i][i]) ``` Here, you trying to access a specific element of the 2D list serial_list using serial_list[i][i] where i is the index variable. However, this will only give you the first element of the list. You should use the variable serial that you defined in the for loop to access the current element of the list: ``` pyautogui.typewrite(serial) ``` Also, since the serial_list is a 2D list of strings, you want to convert the elements of list to strings before passing it to the pyautogui.typewrite() function like this: ``` for serial in serial_list: pyautogui.typewrite(str(serial)) ``` Also, you should call the file.close method with paranthesis file.close() to close the file properly. Also, you should use the pyautogui.press('tab') function after each pyautogui.typewrite() function call to move to the next input box. So the final code will look like: ``` import csv, pyautogui, time file = open('serials.csv', 'r') serial_list = list(csv.reader(file)) file.close() print(serial_list) time.sleep(5) for serial in serial_list: pyautogui.typewrite(str(serial)) pyautogui.press('tab') ``` Now it will work. why? cuz ️
null
CC BY-SA 4.0
null
2023-01-16T12:45:00.877
2023-01-16T12:45:00.877
null
null
21,018,454
null
75,134,613
2
null
75,134,532
0
null
If jolt failed to convert your input JSON return `null`. So it can be for jolt specification. Let's use the demo version of the site. Maybe the problem is solved. Please update your package with version `0.1.1` like the [jolt-demo](https://jolt-demo.appspot.com/#inception) website, and use the below code. ``` [ { "operation": "shift", "spec": { "id": "&", "name": "fullname", "emailId": "email", "salary": "salary", "address": { "*": "&1" } } }, { "operation": "modify-overwrite-beta", "spec": { "*": "=join(' ',@0)" } } ] ``` If you have any problem please say in the comment.
null
CC BY-SA 4.0
null
2023-01-16T13:03:27.950
2023-01-16T19:29:18.393
2023-01-16T19:29:18.393
8,428,397
8,428,397
null
75,134,730
2
null
63,678,170
0
null
I had the same problem and none of the solutions above worked for me. I succeded to resolve the problem by dowgrading Jupyter version from v2022.11.1003412109 to v2022.9.1303220346 in the extension manager.
null
CC BY-SA 4.0
null
2023-01-16T13:12:59.933
2023-01-16T13:12:59.933
null
null
12,273,992
null
75,135,020
2
null
17,373,751
0
null
This is because in the setting where `thing2` is a factor, this discrete variable gets picked up by the automatic grouping, so you're effectively plotting `nlevel(thing2)` groups, each with their own coordinates for hex bins. To overrule the automatic grouping, you can manually set `group = 1`.< To show that they are the same, below is the plot with the numeric `thing1`: ``` library(ggplot2) DF <- data.frame( xpos = rnorm(1000), ypos = rnorm(1000), thing1 = rep(1:9, length.out=100), thing2 = as.factor(rep(1:9, length.out=100)) ) ggplot(DF, aes(x = xpos, y = ypos, z = thing1)) + stat_summary_hex(fun = function(x) x[which.max(x)]) ``` ![](https://i.imgur.com/I9cjPel.png) Next we plot `thing2`, but set the group manually. The plot is identical to the `thing1` plot. ``` ggplot(DF, aes(x = xpos, y = ypos, z = thing2, group = 1)) + stat_summary_hex(fun = function(x) x[which.max(x)]) ``` ![](https://i.imgur.com/6BxqrXW.png) [reprex package](https://reprex.tidyverse.org) (as time of writing current ggplot2 3.4.0 has a bug with hex bins, reproduce with a different version)
null
CC BY-SA 4.0
null
2023-01-16T13:39:05.190
2023-01-16T14:17:00.080
2023-01-16T14:17:00.080
2,227,743
11,374,827
null
75,135,033
2
null
75,062,659
0
null
Needed to add `--build` flag in my deployment command. `netlify deploy --build context=deploy-preview site=$NETLIFY_WEBBSITE_ID --dir=./dist/apps/webbsite/.next` For those, like me, who needed to deploy from root but needed a `netlify.toml` config file to live in the package/subdir. During the GH action workflow I just added a step to copy a `netlify.toml` config from package/subdir (e.g. `package/app1`) to root prior to executing deployment command mentioned above.
null
CC BY-SA 4.0
null
2023-01-16T13:39:52.877
2023-01-16T13:39:52.877
null
null
8,610,613
null
75,135,734
2
null
75,134,807
0
null
Try the below code: ``` from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as EC wait = WebDriverWait(driver, 10) # to accept the cookies information wait.until(EC.element_to_be_clickable((By.CSS_SELECTOR, ".c-alert_close"))).click() # scroll to the title of the page to view the 'Tak' radio button driver.execute_script("arguments[0].scrollIntoView(true)", driver.find_element(By.CSS_SELECTOR, ".c-headline_title.a-typo.is-primary")) radio_btn = driver.find_element(By.CSS_SELECTOR, ".a-form_radio.is-customCheckbox_label #cc_form_1292_0") # clicking on the radio button using javascript driver.execute_script("arguments[0].click();", radio_btn) ```
null
CC BY-SA 4.0
null
2023-01-16T14:34:56.490
2023-01-16T14:34:56.490
null
null
7,671,727
null
75,135,742
2
null
75,130,362
1
null
The entire model behind translation tables arises from three values: the size of a translation table entry (TTE), the hardware page size (aka "translation granule"), and the amount of bits used for virtual addressing. On arm64, TTEs are always 8 bytes. The hardware page size can be one of 4KiB, 16KiB or 64KiB (0x1000, 0x4000 or 0x10000 bytes), depending on both hardware support and runtime configuration. The amount of bits used for virtual addressing similarly depends on hardware support and runtime configuration, but with a lot more complex constraints. ## By example For the sake of simplicity, let's consider address translation under TTBR0_EL1 with no block mappings, no virtualization going on, no pointer authentication, no memory tagging, no "large physical address" support and the "top byte ignore" feature being inactive. And let's pick a hardware page size of 0x1000 bytes and 39-bit virtual addressing. From here, I find it easiest to start at the result and go backwards in order to understand why we arrived here. So suppose you have a virtual address of `0x123456000` and the hardware maps that to physical address `0x800040000` for you. Because the page size is 0x1000 bytes, that means that for `0 <= n <= 0xfff`, all accesses to virtual address `0x123456000+n` will go to physical address `0x800040000+n`. And because 0x1000 = 2^12, that means the lowest 12 bytes of your virtual address are not used for address translation, but indexing into the resulting page. Though the ARMv8 manual does not use this term, they are commonly called the "page offset". ``` 63 12 11 0 +------------------------------------------------------------+-------------+ | upper bits | page offset | +------------------------------------------------------------+-------------+ ``` Now the obvious question is: how did we get `0x800040000`? And the obvious answer is: we got it from a translation table. A "level 3" translation table, specifically. Let's defer how we found for just a moment and suppose we know it's at `0x800037000`. One thing of note is that translation tables adhere to the hardware page size as well, so we have 0x1000 bytes of translation information there. And because we know that one TTE is 8 bytes, that gives us 0x1000/8 = 0x200, or 512 entries in that table. 512 = 2^9, so we'll need 9 bits from our virtual address to index into this table. Since we already use the lower 12 bits as page offset, we take bits 20:12 here, which for our chosen address yield the value `0x56` (`(0x123456000 >> 12) & 0x1ff`). Multiply by the TTE size, add to the translation table address, and we know that the TTE that gave us `0x800040000` is written at address `0x8000372b0`. ``` 63 21 20 12 11 0 +------------------------------------------------------------+-------------+ | upper bits | L3 index | page offset | +------------------------------------------------------------+-------------+ ``` Now you repeat the same process over for how you got `0x800037000`, which this time came from a TTE in a level 2 translation table. You again take 9 bits off your virtual address to index into that table, this time with an value of `0x11a` (`(0x123456000 >> 21) & 0x1ff`). ``` 63 30 29 21 20 12 11 0 +------------------------------------------------------------+-------------+ | upper bits | L2 index | L3 index | page offset | +------------------------------------------------------------+-------------+ ``` And once more for a level 1 translation table: ``` 63 40 39 30 29 21 20 12 11 0 +------------------------------------------------------------+-------------+ | upper bits | L1 index | L2 index | L3 index | page offset | +------------------------------------------------------------+-------------+ ``` At this point, you used all 39 bits of your virtual address, so you're done. If you had 40-bit addressing, then there'd be another L0 table to go through. If you had 38-bit addressing, then we would've taken the L1 table all the same, but it would only span 0x800 bytes instead of 0x1000. But where did the L1 translation table come from? Well, from `TTBR0_EL1`. Its physical address is just in there, serving as the root for address translation. Now, to perform the actual translation, you have to do this whole process in reverse. You start with a translation table from `TTBR0_EL1`, but you don't know ad-hoc whether it's L0, L1, etc. To figure that out, you have to look at the translation granule and the number of bits used for virtual addressing. With 4KiB pages there's a 12-bit page offset and 9 bits for each level of translation tables, so with 39 bits you're looking at an L1 table. Then you take bits 39:30 of the virtual address to index into it, giving you the address of the L2 table. Rinse and repeat with bits 29:21 for L2 and 20:12 for L3, and you've arrived at the physical address of the target page.
null
CC BY-SA 4.0
null
2023-01-16T14:36:14.397
2023-01-16T14:36:14.397
null
null
2,302,862
null
75,135,766
2
null
11,450,327
0
null
Here is a solution in case you need the checkboxes to act like radio buttons, but still be able to uncheck them all: ``` (function() { // Allow only one selection const checkboxes = document.querySelectorAll('[name="tax_input[event-series][]"][type="checkbox"]'); checkboxes.forEach((item) => { item.addEventListener('click', function() { checkboxes.forEach((el) => { if (item !== el) { el.checked = false; } }); }); }); })(); ``` It's looping through each checkbox and it's adding a click event listener. If you click on a checkbox, it's going to remove the check state on each of the elements, but itself. However, it's still keeping the ability to uncheck an option if it's already selected. I've added the scripts only in the administration. To do so, you can use the [admin_enqueue_scripts](https://developer.wordpress.org/reference/hooks/admin_enqueue_scripts/). Hope this one helps somebody! :)
null
CC BY-SA 4.0
null
2023-01-16T14:37:41.397
2023-01-16T14:37:41.397
null
null
7,296,813
null
75,135,932
2
null
75,071,648
0
null
If you look at `labels` you will see that it contains more labels. You only want to modify `labels(1:12)`: ``` labels = findall(ax, 'Type', 'Text'); for label = labels(1:12)' label.String=[label.String char(176)]; end ``` Also, your `label.String=label.String+char(176);` is not matlab syntax.
null
CC BY-SA 4.0
null
2023-01-16T14:50:53.700
2023-01-16T14:50:53.700
null
null
4,207,760
null
75,136,101
2
null
75,134,896
1
null
The `docker context` data is stored in the user's home directory. When you use `sudo`, that changes users and home directories. Without `sudo` it might look in `/home/yourname/.docker/contexts`, but when you switch to root with `sudo` it also changes home directories and looks in `/root/.docker/contexts`. Installing Docker (what the Docker documentation now calls "Docker Engine") through your OS's package manager is sufficient. If you are on a single-user system, you can [grant your ordinary user access to the Docker socket](https://stackoverflow.com/questions/48957195/how-to-fix-docker-got-permission-denied-issue), but be aware that it's all but trivial to use this access to root the entire host. When you do uninstall Docker Desktop, there are [additional files in your home directory you need to remove](https://docs.docker.com/desktop/uninstall/) ``` rm -rf $HOME/.docker/desktop $EDITOR $HOME/.docker/config.json # and remove `credsStore` and `currentContext` ``` Once you've done this cleanup, you'll revert to Docker's default behavior of using the `$DOCKER_SOCK` environment variable, or without that, `/var/run/docker.sock`. That system-global Docker socket file is the same regardless of which user you are, and it won't be affected by `sudo`.
null
CC BY-SA 4.0
null
2023-01-16T15:04:35.153
2023-01-16T15:04:35.153
null
null
10,008,173
null
75,136,279
2
null
75,136,228
2
null
Move line 8 up to line 6. It should look like: ``` public class move : MonoBehaviour { public float dichuyen; public float tocdo; void Start() {} .. ```
null
CC BY-SA 4.0
null
2023-01-16T15:21:07.963
2023-01-16T15:21:07.963
null
null
16,351,560
null
75,136,505
2
null
75,136,010
0
null
[Space](https://i.stack.imgur.com/MmH6U.jpg) found my problem, there was a space before my Id that had been retreived, I must have accedentally put it there when creating the database...
null
CC BY-SA 4.0
null
2023-01-16T15:40:31.533
2023-01-16T15:40:31.533
null
null
18,866,962
null
75,136,508
2
null
75,136,010
0
null
Looking at the screenshot of the document you shared, the document ID in the second column is different from the value of `authUserID` in the third column. So it seems like you added the document by calling `add`, which means that Firestore generates a unique ID for you. You then create a reference to the document with this code: ``` _firestoreDB.collection('users').doc(dbUserID) ``` But here you are specifying `dbUserID` as the document ID, which doesn't match what you did when you created the document. Firestore now looks for a document with an ID that is the same as the user ID, which doesn't exist and thus gives you a snapshot where `exists` is `false`. If you want to find the document for the user in your current structure, you can use a query to do so: ``` Future<DbUser?> getDBUserByDBUserId({required String dbUserID}) async { final query = _firestoreDB.collection('users').where('authUserID', isEqualTo: dbUserID) final snapshot = await query.get(); if (snapshot.size > 0) { return DbUser.fromJson(snapshot.docs[0]!.data()!); } return null; } ``` But a better solution might be to actually store the user document under its user ID. You can specify the document ID as shown in the documentation on [setting a document](https://firebase.google.com/docs/firestore/manage-data/add-data#set_a_document). So here you'd call `.document('theuserid').set(...)` instead of `add(...)`.
null
CC BY-SA 4.0
null
2023-01-16T15:40:47.433
2023-01-16T15:40:47.433
null
null
209,103
null
75,136,528
2
null
75,135,738
0
null
You can use regular expression substitution to remove any occurrences of "rep" or "_rep" in the Samples column, and then use your existing plotting code. I don't have your `rotate_x_text` function, so instead I'm doing the equivalent via `theme`. I've also modified the plotting code to use a different column name, rather than overwriting Samples. ``` library(tidyverse) data_new <- Data %>% mutate(Samples_grouped = gsub('_*rep$', '', Samples)) ggplot(data_new, aes(x = reorder (Samples_grouped, -Green_norm), y = Green_norm, fill = Samples_grouped)) + geom_boxplot(alpha = 0.5) + geom_point(aes(colour=Samples_grouped))+ theme_bw() + theme(axis.text.x = element_text(angle = 45, hjust = 1, vjust = 1)) ``` [](https://i.stack.imgur.com/EQt1V.png)
null
CC BY-SA 4.0
null
2023-01-16T15:43:04.217
2023-01-16T15:43:04.217
null
null
6,436,545
null
75,136,939
2
null
45,500,977
0
null
Late to the party but for someone with same issue which seems to be the result of using in the application like It solved my issue by adding following line to the Grid/Border ... ``` UseLayoutRounding="True" ```
null
CC BY-SA 4.0
null
2023-01-16T16:18:22.393
2023-01-16T16:18:22.393
null
null
16,426,045
null
75,137,205
2
null
75,137,075
3
null
``` df <- structure(list(y = c(3, 4, 4, 3, 4, 4, 4, 3, 4, 4, 4, 3, 4, 4, 4, 3, 3, 4, 3, 3, 4, 4, 4, 3, 4, 3, 3, 4, 4, 3, 4, 5, 4, 4, 4, 5, 4, 5, 4, 4, 5, 4, 4, 5, 4, 4, 5, 4, 4, 4, 5, 5, 4, 4, 4, 4, 5, 5, 5, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 7, 6, 6, 6, 7, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6), x = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L), .Label = c("0", "1"), class = "factor"), days = c(-8, -50, -84, -91, -69, -87, -89, -19, -61, -18, -46, -26, -35, -51, -88, -55, -36, -44, -24, -45, -78, -41, -38, -81, -74, -22, -82, -86, -39, -64, -66, -58, -25, -5, -29, -34, -30, -75, -57, -37, -32, -77, -31, -59, -67, -83, -70, -1, -65, -15, -27, -56, -71, -80, -12, -3, -76, -54, -52, -6, 35, 20, 53, 61, 43, 71, 88, 31, 17, 85, 21, 25, 16, 46, 45, 41, 15, 48, 72, 63, 24, 12, 83, 40, 13, 10, 11, 79, 81, 64, 38, 59, 3, 77, 39, 26, 68, 49, 87, 69, 75, 33, 34, 76, 78, 86, 14, 36, 0, 44, 54, 58, 18, 80, 82, 89, 56, 2, 28, 74)), row.names = c(NA, -120L), class = c("tbl_df", "tbl", "data.frame")) # https://evalf20.classes.andrewheiss.com/example/rdd/ library(tidyverse) y1 = predict(lm(y ~ days, filter(df, days < 0)), list(days=0)) y2 = predict(lm(y ~ days, filter(df, days >= 0)), list(days=0)) df %>% ggplot(aes(x = days, y = y, color = x)) + geom_point(size = 2, alpha = 0.5, position = position_jitter(seed = 42)) + geom_smooth(data = filter(df, days < 0), method = "lm") + geom_smooth(data = filter(df, days >= 0), method = "lm") + geom_vline(xintercept = 0) + labs(x = "Days from cutoff", y = "Outcome") + guides(color = FALSE) + annotate("segment", x=0,xend=0, y=y1, yend=y2 , color = "yellow", size = 3) ``` ![](https://i.imgur.com/ZU62G7k.png) [reprex v2.0.2](https://reprex.tidyverse.org)
null
CC BY-SA 4.0
null
2023-01-16T16:43:24.367
2023-01-16T16:43:24.367
null
null
6,912,817
null
75,137,227
2
null
75,137,075
4
null
You can extract the intercept for the `geom_smooth` regression lines and add them to your plot as a `geom_segment`: ``` library(tidyverse) df %>% ggplot(aes(x = days, y = y, color = x)) + geom_point(size = 2, alpha = 0.5, position = position_jitter(seed = 42)) + geom_smooth(data = filter(df, days < 0), method = "lm") + geom_smooth(data = filter(df, days >= 0), method = "lm") + geom_vline(xintercept = 0) + labs(x = "Days from cutoff", y = "Outcome") + guides(color = "none") -> gg lm(y~days, data = filter(df, days < 0))-> lm_neg lm(y~days, data = filter(df, days >= 0))-> lm_pos gg + geom_segment(aes(x = 0, y = lm_neg$coefficients[1], xend = 0, yend = lm_pos$coefficients[1]), colour = "yellow", size = 2) ``` ![](https://i.imgur.com/zgbmh5W.png)
null
CC BY-SA 4.0
null
2023-01-16T16:45:04.407
2023-01-16T16:45:04.407
null
null
6,461,462
null
75,137,373
2
null
75,137,039
0
null
I would recommend adding a `DataGridViewButtonColumn` to your GridView. Here's a YouTube tutorial on how to add and use this kind of column: [https://www.youtube.com/watch?v=mCxAvQVpCH0](https://www.youtube.com/watch?v=mCxAvQVpCH0) Hope that helps.
null
CC BY-SA 4.0
null
2023-01-16T16:58:23.320
2023-01-16T16:58:23.320
null
null
9,609,586
null
75,137,459
2
null
75,137,318
1
null
Here an example on how to remove duplicate rows in any order: ``` el <- data.frame(V1 = paste0("id_00", c(3,rep(4,8), rep(9,3))), V2 = paste0("id_00", c(9,1,2,3,5,6,7,8,9,1,2,3))) el #> V1 V2 #> 1 id_003 id_009 #> 2 id_004 id_001 #> 3 id_004 id_002 #> 4 id_004 id_003 #> 5 id_004 id_005 #> 6 id_004 id_006 #> 7 id_004 id_007 #> 8 id_004 id_008 #> 9 id_004 id_009 #> 10 id_009 id_001 #> 11 id_009 id_002 #> 12 id_009 id_003 dups <- duplicated(t(apply(el, 1, sort))) el[!dups, ] #> V1 V2 #> 1 id_003 id_009 #> 2 id_004 id_001 #> 3 id_004 id_002 #> 4 id_004 id_003 #> 5 id_004 id_005 #> 6 id_004 id_006 #> 7 id_004 id_007 #> 8 id_004 id_008 #> 9 id_004 id_009 #> 10 id_009 id_001 #> 11 id_009 id_002 ```
null
CC BY-SA 4.0
null
2023-01-16T17:07:27.803
2023-01-16T17:07:27.803
null
null
6,912,817
null
75,137,654
2
null
75,137,485
2
null
You can use the following JavaScript code to get the actual height of the iframe content: ``` var iframe = document.getElementById('yourIframeID'); var iframeDoc = iframe.contentDocument || iframe.contentWindow.document; var height =iframeDoc.body.scrollHeight; ``` Some resources: 1. HTML DOM contentDocument Property: https://www.w3schools.com/jsref/prop_frame_contentdocument.asp 2. HTML DOM contentWindow Property: https://www.w3schools.com/jsref/prop_frame_contentwindow.asp 3. HTML DOM scrollHeight Property: https://www.w3schools.com/jsref/prop_element_scrollheight.asp Don't forget the vote :)
null
CC BY-SA 4.0
null
2023-01-16T17:25:35.430
2023-01-16T17:25:35.430
null
null
17,345,016
null
75,137,836
2
null
73,129,240
0
null
I am pretty sure you would have not saved your settings file before making migrations. I was facing the same issue, on inspecting I found out that I ran the migrations without saving the settings.py file. After saving it and rerunning the commands my issue was resolved. Hopefully it helps.
null
CC BY-SA 4.0
null
2023-01-16T17:45:00.860
2023-01-16T17:45:00.860
null
null
18,484,872
null
75,137,989
2
null
75,113,827
0
null
The solution that worked for my specific case was to use a combination of BJRINT's answer and a timer to keep checking if the data had finished loading which I found [here](https://stackoverflow.com/questions/17068610/read-a-file-synchronously-in-javascript). ``` async function parseCSV(file) { return await new Promise((resolve, reject) => { let extension = file.name.substring(file.name.lastIndexOf('.')).toUpperCase(); if(extension !== '.CSV') reject('PLEASE UPLOAD A VALID CSV FILE'); try { let reader = new FileReader(); reader.readAsText(file); reader.onload = function(e) { let jsonData = []; let headers = []; let rows = e.target.result.split(/\r\n|\r|\n/); for(let i = 0; i < rows.length; i++) { let cells = rows[i].split(','); let rowData = {}; for(let j = 0; j < cells.length; j++) { if(i == 0) headers.push(cells[j].trim()); else { if(headers[j]) rowData[headers[j]] = cells[j].trim(); } } if(i != 0 && rowData['date'] != '') jsonData.push(rowData); } resolve(jsonData); } } catch(err) { reject(err); } }); } function submitForm(event) { event.preventDefault(); showForm(false); loading.classList.remove('hidden'); let ready = true; const inputs = event.target.querySelectorAll('input'); let newItem = {}; let check = function() { if(ready === true) { console.log(newItem); console.log(JSON.stringify(newItem)); return fetch('server.php', { method: "POST", headers: { 'Content-Type': 'application/json', 'Accept': 'application/json' }, body: JSON.stringify(newItem) }) .then(checkError) .then(data => parseData(data)) .catch(err => console.error('>> ERROR READING JSON DATA', err)); } setTimeout(check, 1000); } inputs.forEach(function(input) { if(intKeys.indexOf(input.name) >= 0) newItem[input.name] = parseInt(input.value); else if(curKeys.indexOf(input.name) >= 0) newItem[input.name] = parseInt(parseFloat(input.value) * 100); else if(chkKeys.indexOf(input.name) >= 0) input.checked ? newItem[input.name] = 1 : newItem[input.name] = 0; else if(fileKeys.indexOf(input.name) >= 0 && input.files.length > 0) { ready = false; parseCSV(input.files[0]).then(data => { ready = true; newItem[input.name] = data; }); } else newItem[input.name] = input.value; }); check(); } ```
null
CC BY-SA 4.0
null
2023-01-16T17:59:32.303
2023-01-16T17:59:32.303
null
null
20,967,629
null
75,138,037
2
null
75,137,476
1
null
The commands you see in the picture are called application commands (also known as slash commands). They are not the same as prefix commands (ex: `!help`). You can check the full guide on how to construct these type commands [here](https://discordjs.guide/creating-your-bot/slash-commands.html#before-you-continue). Application/slash commands are highly recommended as they provide more features and are generally easier to handle over prefix commands. If you already have slash commands set up, you can check the guide on how to register them [here](https://discordjs.guide/creating-your-bot/command-deployment.html#command-registration). If you register your commands they will pop up in the image you linked.
null
CC BY-SA 4.0
null
2023-01-16T18:03:56.753
2023-01-16T18:03:56.753
null
null
15,446,076
null
75,138,047
2
null
75,137,703
1
null
If there won't be the same part on two orders... this will give you the average: [](https://i.stack.imgur.com/faLHh.png) [](https://i.stack.imgur.com/9WrU7.png) [](https://i.stack.imgur.com/YvkuA.png)
null
CC BY-SA 4.0
null
2023-01-16T18:04:42.490
2023-01-16T18:04:42.490
null
null
16,826,729
null
75,138,192
2
null
75,128,834
0
null
I'm not 100% sure if that's what you want to achieve, but if you check your CSS properties in any browser's Developer Tools, it says: `grid-template-rows` and `grid-template-columns` with respective values `1/4` and `1/8` are incorrect. What you most probably wanted to achieve is to tell browser where they should start and where to end and to do so you have to use different properties: `grid-row-start/-end` and `grid-column-start/-end` or shortcuts `grid-row` and `grid-column`. Apply this to `nav` element: ``` grid-column: 1/8; grid-row: 1/4; ```
null
CC BY-SA 4.0
null
2023-01-16T18:20:15.653
2023-01-16T18:20:15.653
null
null
2,517,417
null
75,138,434
2
null
62,889,645
0
null
I still had that error, what I did was install python as I saw on this site [http://www.frlp.utn.edu.ar/materias/sintaxis/tutorialinstalarPython3.pdf](http://www.frlp.utn.edu.ar/materias/sintaxis/tutorialinstalarPython3.pdf), but change the installation folder to C:\Python\Python311. Then add that path and C:\Python\Python311\Scripts to the System Path and User Path. I reinstalled but I got the error You need to install the latest version of Visual Studio and I solved it with npm i -g windows-build-tools
null
CC BY-SA 4.0
null
2023-01-16T18:43:23.353
2023-01-16T18:43:23.353
null
null
21,021,536
null
75,138,843
2
null
58,731,125
0
null
I found out that using from the package fixes the issue. (At least for me). ``` import { resolve } from "path"; module.exports.ViewOption = (transport, hbs) => { const templateDir = resolve(process.cwd(), "static/js/mail/views"); transport.use('compile', hbs({ viewEngine: { extname: ".hbs", // handlebars extension layoutsDir: templateDir, // location of handlebars templates defaultLayout: "contact", // name of main template partialsDir: templateDir, // location of your subtemplates aka. header, footer etc }, viewPath: templateDir, extName: ".hbs", })); } ```
null
CC BY-SA 4.0
null
2023-01-16T19:26:20.263
2023-01-16T19:26:20.263
null
null
3,794,229
null
75,138,872
2
null
75,137,703
0
null
``` Sub aveCount() Dim rng As Range Dim cl As Range Dim partName As String Dim startAddress As String Dim ws As Worksheet Dim count As Double Dim orders As Double Dim i As Integer Set ws = ActiveWorkbook.Worksheets("Sheet1") 'lastrow = .Cells(.Rows.Count, "A").End(xlUp).Row Application.ScreenUpdating = False 'initializing the variable startAddress = ws.Range("A141").Address i = 1 For Each cl In ws.Range(startAddress & ":A433") If cl.Value = cl.Offset(1, 0).Value Then i = i + 1 Debug.Print (i) Debug.Print (cl.Address) If rng Is Nothing Then Set rng = ws.Range(cl.Address).Resize(, 4) orders = cl.Offset(0, 2).Value Else Set rng = Union(rng, ws.Range(cl.Address).Resize(, 4)) orders = orders + cl.Offset(0, 2).Value End If Debug.Print (orders) Else orders = orders + cl.Offset(0, 2).Value Debug.Print (cl.Address) Debug.Print (orders) ws.Range(startAddress).Offset(0, 3) = i ws.Range(startAddress).Offset(0, 4) = orders / i startAddress = ws.Range(startAddress).Offset(i, 0).Address i = 1 End If Next cl 'next row essentially End Sub ```
null
CC BY-SA 4.0
null
2023-01-16T19:29:11.360
2023-01-16T19:29:11.360
null
null
19,082,158
null
75,138,880
2
null
75,137,039
0
null
Your post has several related questions: - `The system cannot find the file specified`- - - There might be a simple solution to avoiding the exception. Try this syntax for opening the file: ``` System.Diagnostics.Process.Start("explorer.exe", path); ``` Since it's hard to say exactly where the problem might be, I will also offer a comprehensive answer to your questions. [](https://i.stack.imgur.com/IY1yf.png) [Boardgame pack v2](https://opengameart.org/content/boardgame-pack) (Creative Commons License) by Kenney Vleugels. --- If the files are part of the install (known at compile time), they can be reliably located by setting the "Copy to Output Directory" property and referencing them as ``` path = Path.Combine( AppDomain.CurrentDomain.BaseDirectory, "Images", "boardgamePack_v2", "PNG", "Cards", "shortFileName.png" // Example filename ); ``` [](https://i.stack.imgur.com/EjQ3l.png) On the other hand, if they can be modified by the user, they belong in ``` path = Path.Combine( Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "AppName", // Example app name "Images", "boardgamePack_v2", "PNG", "Cards", "shortFileName.png" // Example filename )); ``` --- In order to requires a class that has public properties corresponding to the columns in the DataGridView. This class will be bound to the `DataSource` property of the DataGridView, for example by making a `BindingList<Card>`. Here's a minimal example: ``` class Card { public string Name { get; set; } public string FilePath { get; set; } public Image Image{ get; set; } internal static string ImageBaseFolder { get; set; } = string.Empty; public string GetFullPath() => Path.Combine(ImageBaseFolder, FilePath); } ``` --- In this sample a DataGridView control gets initialized in the method that loads the MainForm. Since there is no property of the class corresponding to the Open column, we will have to add it after the columns have been auto-generated from the binding. A handler is added that we can inspect to determine whether a button has been clicked. ``` public partial class MainForm : Form { public MainForm() { InitializeComponent(); Card.ImageBaseFolder = Path.Combine( AppDomain.CurrentDomain.BaseDirectory, "Images", "boardgamePack_v2", "PNG", "Cards" ); } internal BindingList<Card> Cards { get; } = new BindingList<Card>(); protected override void OnLoad(EventArgs e) { base.OnLoad(e); dataGridViewCards.DataSource = Cards; #region F O R M A T C O L U M N S Cards.Add(new Card()); // <- Auto generate columns dataGridViewCards.Columns["Name"].AutoSizeMode= DataGridViewAutoSizeColumnMode.Fill; dataGridViewCards.Columns["FilePath"].AutoSizeMode= DataGridViewAutoSizeColumnMode.Fill; dataGridViewCards.Columns["FilePath"].HeaderText = "File Path"; DataGridViewImageColumn imageColumn = (DataGridViewImageColumn) dataGridViewCards.Columns["Image"]; imageColumn.ImageLayout = DataGridViewImageCellLayout.Zoom; imageColumn.Width = 100; imageColumn.HeaderText = string.Empty; // Add the button column (which is not auto-generated). dataGridViewCards.Columns.Insert(2, new DataGridViewButtonColumn { Name = "Open", HeaderText = "Open", }); Cards.Clear(); #endregion F O R M A T C O L U M N S // Add a few cards Cards.Add(new Card(Value.Ten, Suit.Diamonds)); Cards.Add(new Card(Value.Jack, Suit.Clubs)); Cards.Add(new Card(Value.Queen, Suit.Diamonds)); Cards.Add(new Card(Value.King, Suit.Clubs)); Cards.Add(new Card(Value.Ace, Suit.Hearts)); dataGridViewCards.ClearSelection(); // Detect click on button or any other cell. dataGridViewCards.CellContentClick += onAnyCellContentClick; } ``` --- In the handler, retrieve the card from the bound collection by index and get the full path. You may have better luck with the `Process.Start` if you use the syntax shown: ``` private void onAnyCellContentClick(object? sender, DataGridViewCellEventArgs e) { if (dataGridViewCards.Columns[e.ColumnIndex].Name.Equals("Open")) { var card = Cards[e.RowIndex]; var path = card.GetFullPath(); Process.Start("explorer.exe", path); } } } ```
null
CC BY-SA 4.0
null
2023-01-16T19:30:09.477
2023-01-17T13:31:01.247
2023-01-17T13:31:01.247
5,438,626
5,438,626
null
75,139,001
2
null
75,134,807
0
null
To click on the [radio-button](/questions/tagged/radio-button) associated with either of the text / you need to induce [WebDriverWait](https://stackoverflow.com/a/59130336/7429447) for the [element_to_be_clickable()](https://stackoverflow.com/a/54194511/7429447) and you can use either of the following [locator strategies](https://stackoverflow.com/a/48056120/7429447): - Clicking on :``` WebDriverWait(driver, 5).until(EC.element_to_be_clickable((By.XPATH, "//input[@data-synerise='Tak']//parent::label[@class='a-form_radio is-customCheckbox_label']"))).click() ``` - Clicking on :``` WebDriverWait(driver, 5).until(EC.element_to_be_clickable((By.XPATH, "//input[@data-synerise='Nie']//parent::label[@class='a-form_radio is-customCheckbox_label']"))).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-16T19:42:15.570
2023-01-16T19:42:15.570
null
null
7,429,447
null
75,139,171
2
null
75,138,959
0
null
First of all, use newest bootstrap version. Your image have white border thats why this not fit. Edit your photo or use photo without white border
null
CC BY-SA 4.0
null
2023-01-16T20:04:33.650
2023-01-16T20:04:33.650
null
null
20,957,440
null
75,139,242
2
null
75,138,635
0
null
I use a dictionary to store the various lines and line plots and then update the plots using set_data(xdata, ydata). I'm not sure how your datastream works, so mine just updates when I push the update button and generates a random reading. You'll obviously want to change those parts to match your data input. ``` fig, ax = plt.subplots(1, 1) plt.subplots_adjust(bottom = 0.20) num_sensors = 10 latest_reading = [0]*num_sensors lines = {index: [0] for index in range(num_sensors)} times = [0] line_plots = {index: ax.plot(lines[index])[0] for index in range(num_sensors)} btn_ax = plt.axes([0.475, 0.05, 0.10, 0.05]) def update(event): latest_reading = np.random.randint(0, 10, num_sensors) times.append(times[-1] + 1) for index in range(num_sensors): lines[index].append(latest_reading[index]) line_plots[index].set_data(times, lines[index]) # Adjust limits max_time_window = 20 ax.set_xlim(max(0, max(times)-max_time_window), max(times)) ax.set_ylim(0, max(lines)) plt.draw() btn = mpl.widgets.Button(btn_ax, 'Update') btn.on_clicked(update) ```
null
CC BY-SA 4.0
null
2023-01-16T20:13:01.133
2023-01-16T20:13:01.133
null
null
21,021,990
null
75,139,394
2
null
75,138,475
1
null
This called a [ligature](https://en.wikipedia.org/wiki/Ligature_(writing)). Go look at what font your IDE is using. It's probably [JetBrains Mono](https://www.jetbrains.com/lp/mono/), which supports many ligatures for programming operators and such. To disable it, go to the font settings, and uncheck the box that says "Enable font ligatures". Or alternatively, you can switch to a font that doesn't have ligatures in it.
null
CC BY-SA 4.0
null
2023-01-16T20:33:30.073
2023-01-17T05:21:53.287
2023-01-17T05:21:53.287
11,107,541
11,107,541
null