Id
int64
1.68k
75.6M
PostTypeId
int64
1
2
AcceptedAnswerId
int64
1.7k
75.6M
ParentId
int64
1.68k
75.6M
Score
int64
-60
3.16k
ViewCount
int64
8
2.68M
Body
stringlengths
1
41.1k
Title
stringlengths
14
150
ContentLicense
stringclasses
3 values
FavoriteCount
int64
0
1
CreationDate
stringlengths
23
23
LastActivityDate
stringlengths
23
23
LastEditDate
stringlengths
23
23
LastEditorUserId
int64
-1
21.3M
OwnerUserId
int64
1
21.3M
Tags
sequence
74,638,623
2
null
74,634,880
0
null
1. You can append tables after multiple applied transformation steps 2. Both tables can refresh daily 3. The order of the table queries in query editor doesn't matter. Power BI will determine the order in which they are loaded. E.g. if you want to append a table to another table, that other table is loaded first.
null
CC BY-SA 4.0
null
2022-12-01T08:02:49.243
2022-12-01T08:02:49.243
null
null
7,108,589
null
74,638,733
2
null
74,636,174
0
null
`int rows = ws.getLastRowNum()+1;` This seems to solve the issue, if there is any other better way to solve it please let me know. Thanks
null
CC BY-SA 4.0
null
2022-12-01T08:13:37.833
2022-12-05T09:22:44.030
2022-12-05T09:22:44.030
1,294,283
2,494,852
null
74,638,790
2
null
74,638,159
0
null
Bro, you can write line as
null
CC BY-SA 4.0
null
2022-12-01T08:18:53.930
2022-12-01T08:18:53.930
null
null
20,599,297
null
74,639,348
2
null
73,721,121
3
null
In Eclipse, open Preferences and navigate to General → Workspace. Disable the "Show workspace name" option; this will remove it from the window title, as you would expect, but also from the Dock icon. [](https://i.stack.imgur.com/85x5s.png)
null
CC BY-SA 4.0
null
2022-12-01T09:08:07.357
2022-12-01T09:08:07.357
null
null
4,751,173
null
74,639,368
2
null
74,624,607
1
null
In Dialogflow ES, default @sys.email entity allows empty string for extracting email. I think this cause the problem. You use [regexp entities](https://cloud.google.com/dialogflow/es/docs/entities-regexp) with email regex, so that you might be able to extract only valid email string. --- ## EDIT In my environment, I created regex custom entity for extracting email. ### Entity regex : `[\w-\.]+@([\w-]+\.)+[\w-]{2,4}` ### Test input : `Mark Randel [email protected]` output : | parameters | value | | ---------- | ----- | | person | {'name': 'Mark Randel'} | | regex-email | [email protected] | [](https://i.stack.imgur.com/C78j4.png)
null
CC BY-SA 4.0
null
2022-12-01T09:09:26.620
2022-12-02T04:43:42.803
2022-12-02T04:43:42.803
13,742,758
13,742,758
null
74,639,410
2
null
74,639,303
0
null
It still says your debugger attached when you run "npm install". Try to stop debugging (Debug > Stop Debugging or Shift+F5).
null
CC BY-SA 4.0
null
2022-12-01T09:12:23.723
2022-12-01T09:12:23.723
null
null
16,260,715
null
74,639,453
2
null
17,832,308
0
null
Use JavaScript "" property. By default, in HTML5 you cannot directly add an anchor tag in a table cell element. ``` <html> <title> </title> <head> </head> <body> <table> <thead> <tr> <td>Youtube</td> <td id="assign_anchor_tag_here"></td> </tr> <thead> </table> <script> var td_element = document.getElementById("assign_anchor_tag_here"); td_element.innerHTML = "<a href='https://www.youtube.com'>Click Here!</a>"; </script> ```
null
CC BY-SA 4.0
null
2022-12-01T09:15:49.843
2022-12-01T09:15:49.843
null
null
18,098,372
null
74,639,478
2
null
70,895,306
0
null
Here is an example of how to do it: ``` /** * Get a user's full name * @param {Object} user The user object * @param {String} user.firstName The user's firstName * @param {String} user.lastName The user's lastName * @return {String} The user's fullname */ function getUserName (user) { let {firstName, lastName} = user; return `${firstName} ${lastName}`; } ```
null
CC BY-SA 4.0
null
2022-12-01T09:18:00.560
2022-12-01T09:18:00.560
null
null
5,756,833
null
74,639,703
2
null
74,637,830
0
null
You're trying to fetch the image in the wrong way. Instead you can use this ``` src="/media/{{user_profile.profileimg}}" ``` If it doesn't work try removing "/" before media. Please reply to this message if the issue still persist.
null
CC BY-SA 4.0
null
2022-12-01T09:35:23.213
2022-12-01T09:35:23.213
null
null
19,313,399
null
74,639,724
2
null
74,639,452
1
null
With AutoMapper, [mapping inheritance is opt-in](https://docs.automapper.org/en/stable/Mapping-inheritance.html). Therefore, when you map from `BaseBO` to `BaseVO`, you need to include the derived mappings. ``` public TestConfigProfile() { CreateMap<BaseBO, BaseVO>() .Include<SubBO1, SubVO1>(); // Include necessary derived mappings CreateMap<A_BO, A_VO>(); CreateMap<SubBO1, SubVO1>(); } ``` See [this working example](https://dotnetfiddle.net/szEf4f).
null
CC BY-SA 4.0
null
2022-12-01T09:36:40.613
2022-12-01T09:36:40.613
null
null
8,126,362
null
74,640,055
2
null
74,640,003
0
null
Add the following functions to your program and call it a day (if you wanna be cheeky): ``` static void Sum(int[] nums) => Console.WriteLine($"Sum: {nums.Sum()}"); static void Biggest(int[] nums) => Console.WriteLine($"Biggest: {nums.Max()}"); ```
null
CC BY-SA 4.0
null
2022-12-01T10:00:08.440
2022-12-01T10:00:08.440
null
null
1,025,555
null
74,640,080
2
null
74,637,830
0
null
Oh, Holy Shit. How could I miss it. My friend problem is with view. Add this thing to your function: ``` if request.method == "POST" and "image" in request.FILES: ``` And while requesting for the image place the image only in the variable in list as given below. ``` image= request.FILES['image'] ``` I hope this should resolve. Please revert back if the issue still persist.
null
CC BY-SA 4.0
null
2022-12-01T10:01:35.893
2022-12-01T10:01:35.893
null
null
19,313,399
null
74,640,142
2
null
74,640,003
0
null
This should work: ``` int[] nums= new int[10]; int? maxNum = null; for (int i = 0; i < nums.Length; i++) { { Console.WriteLine("Enter number:"); string strnum = Console.ReadLine(); nums[i] = Convert.ToInt32(strnum); maxNum = (maxNum == null || maxNum < nums[i]) ? nums[i] : maxNum; } } ``` You can read the new line as: if maxNum is null (it's first empty state) or if maxNum is minor than the last number, then maxNum is the last number. Else, maxNum is still maxNum. This is just one way to do it. Good luck!
null
CC BY-SA 4.0
null
2022-12-01T10:05:33.500
2022-12-01T10:05:33.500
null
null
20,653,869
null
74,640,233
2
null
74,637,830
0
null
Thank you for your answers. I found solution ``` <form action="" method ="POST" enctype = "multipart/form-data"> ``` This enctype is missing in setting.html file. This works correctly and image displays correctly.
null
CC BY-SA 4.0
null
2022-12-01T10:13:12.413
2022-12-01T10:13:12.413
null
null
20,652,967
null
74,640,380
2
null
19,800,518
0
null
based on HYRY's answer, I just update some details to make it better: ``` import numpy as np import pylab as pl Y, X = np.mgrid[-10:10:100j, -10:10:100j] def f(x, a, b): return x**3 + a*x + b a = -2 b = 4 # the 1st point: 0, -2 x1 = 0 y1 = -np.sqrt(f(x1, a, b)) print(x1, y1) # the second point x2 = 3 y2 = np.sqrt(f(x2, a, b)) print(x2, y2) # line: y=kl*x+bl kl = (y2 - y1)/(x2 - x1) bl = -x1*kl + y1 # bl = -x2*kl + y2 # y^2=x^3+ax+b , y=kl*x+bl => [-1, kl^2, 2*kl*bl, bl^2-b] poly = np.poly1d([-1, kl**2, 2*kl*bl-a, bl**2-b]) # the roots of the poly x = np.roots(poly) y = np.sqrt(f(x, a, b)) print(x, y) pl.contour(X, Y, Y**2 - f(X, a, b), levels=[0]) pl.plot(x, y, "o") pl.plot(x, -y, "o") x = np.linspace(-5, 5) pl.plot(x, kl*x+bl) ``` And we got the roots of this poly: [3. 2.44444444 0. ] [5. 3.7037037 2. ]
null
CC BY-SA 4.0
null
2022-12-01T10:26:48.643
2022-12-01T10:26:48.643
null
null
2,537,867
null
74,640,382
2
null
68,808,415
0
null
You cannot move files or folders through the TFS interface. You can move projects only from within Visual Studio or through the command line. To do it through Visual Studio (I'm using VS2022 as a reference): 1. Open Visual Studio 2. On the home screen, click 'Continue without code' 3. Go to the 'Team Explorer' tab or search for that tab using Ctrl + Q and typing 'Team Explorer' 4. Open 'Source Control Explorer' from that menu, or search for that menu using Ctrl + Q and typing 'Source Control Explorer' and observe the list of folders. 5. To move anything in here, right-click it and select Move, then go through the dialog. 6. Check in the changes you made when you moved the folders.
null
CC BY-SA 4.0
null
2022-12-01T10:26:58.810
2022-12-01T10:26:58.810
null
null
1,037,960
null
74,640,428
2
null
74,640,274
0
null
It's fine. Try to run this code and you won't get exceptions. To avoid this underscore `pip install autopep8` might help
null
CC BY-SA 4.0
null
2022-12-01T10:31:01.240
2022-12-01T10:31:01.240
null
null
20,631,823
null
74,640,449
2
null
74,638,275
0
null
I guess you want the user to tap the back key twice to exit the app while they are on home screen. You can see the sample code below. ``` class MyWidget extends StatefulWidget { const MyWidget({super.key}); @override State<MyWidget> createState() => _MyWidgetState(); } class _MyWidgetState extends State<MyWidget> { bool willPopScope = false; @override Widget build(BuildContext context) { return WillPopScope( onWillPop: _onWillPop, child: Container(), ); } Future<bool> _onWillPop() async { if (willPopScope) { return true; } else { Fluttertoast.showToast( msg: "Press back button again to exit", toastLength: Toast.LENGTH_SHORT, gravity: ToastGravity.BOTTOM, timeInSecForIosWeb: 1, ); setState(() { willPopScope = true; }); Future.delayed(const Duration(milliseconds: 1200), () { setState(() { willPopScope = false; }); }); return false; } } } ``` You can change duration to any number according to your case.
null
CC BY-SA 4.0
null
2022-12-01T10:32:43.213
2022-12-01T10:32:43.213
null
null
20,279,655
null
74,640,653
2
null
74,640,293
1
null
Since `animateItemPlacement` requires a unique ID/key for the Lazy item to get animated, maybe sacrificing the first item, setting its `key` using its `index` position (no animation) will prevent the issue ``` itemsIndexed( items = checkItems.sortedBy { it.checked.value }, key = { index, item -> if (index == 0) index else item.id } ) { index, entry -> ... } ``` [](https://i.stack.imgur.com/6VS67.gif)
null
CC BY-SA 4.0
null
2022-12-01T10:47:39.003
2022-12-01T16:34:58.390
2022-12-01T16:34:58.390
19,023,745
19,023,745
null
74,641,210
2
null
74,518,256
0
null
I find my own solution- for some reason when I open the UI menu, Unity try to get the maximum FPS and this is why the GPU work hard. my solution is to block the maximum FPS to 30 on the UI menu using Application.targetFrameRate and then on my game the FPS to default like that: ``` void Start() { Application.targetFrameRate = 30; } ``` and to change it to the default do that: ``` void OnDestroy() { Application.targetFrameRate = -1; } ```
null
CC BY-SA 4.0
null
2022-12-01T11:32:41.110
2022-12-01T11:32:41.110
null
null
9,343,039
null
74,641,233
2
null
74,640,911
0
null
I'm ignorant of the human language you use, so this is a guess. You have two [entities](https://en.wikipedia.org/wiki/Entity%E2%80%93relationship_model) in your system. One is `dokter`, the other is `script` (prescription). Your requirement is to store zero or more `script`s for each `dokter`. That is, the [relationship](https://en.wikipedia.org/wiki/Entity%E2%80%93relationship_model) between your entities is one-to-many. In a relational database management system (SQL system) you do that with two tables, one per entity. Your `dokter` table will contain a unique identifier for each doctor, and the doctor's descriptive attributes. ``` CREATE TABLE dokter( dokter_id BIGINT AUTO_INCREMENT PRIMARY KEY NOT NULL, nama VARCHAR (100), kode VARCHAR(10), /* others ... */ ); ``` And you'll have a second table for script ``` CREATE TABLE script ( script_id BIGINT AUTO_INCREMENT PRIMARY KEY NOT NULL, dokter_id BIGINT NOT NULL, kode VARCHAR(10), nama VARCHAR(100), dosis VARCHAR(100), /* others ... */ ); ``` Then, when a doctor writes two prescriptions, you insert one row in `dokter` and two rows in `script`. You make the relationship between `script` and `dokter` by putting the correct `dokter_id` into each `script` row. Then you can retrieve this information with a query like this: ``` SELECT dokter.dokter_id, dokter.nama, dokter.kode, script.script_id, script.kode, script.nama, script.dosis FROM dokter LEFT JOIN script ON dokter.dokter_id = script.dokter_id ``` Study up on [entity-relationship](https://en.wikipedia.org/wiki/Entity%E2%80%93relationship_model) data design. It's worth your time to learn and will enhance your career immeasurably.
null
CC BY-SA 4.0
null
2022-12-01T11:35:02.403
2022-12-01T11:35:02.403
null
null
205,608
null
74,641,377
2
null
74,640,911
0
null
You can't multiple values in a single field but there are various options to achieve what you're looking for. If you know that a given field can only have a set number of values then it make sense to simply create multiple columns to hold these values. In your case, perhaps `Nama obat` only ever has 2 different values so you could break out that column into two columns: `Nama obat primary` and `Nama obat secondary`. But if a given field could have any amount of values, then it would likely make sense to create a table to hold those values so that it looks something like: | NoRM | NamaObat | | ---- | -------- | | RM001 | Sulfa | | RM001 | Anymiem | | RM001 | ABC | | RM002 | XYZ | And then you can combine that with your original table with a simple join: ``` SELECT * FROM table_RekamMedis JOIN table_NamaObat ON table_RekamMedis.NoRM = table_NamaObat.NoRM ``` The above takes care of storing the data. If you then want to query the data such that the results are presented in the way you laid out in your question, you could combine the multiple `NamaObat` fields into a single field using `GROUP_CONCAT` which could look something like: ``` SELECT GROUP_CONCAT(NamaObat SEPARATOR '\n') ... GROUP BY NoRM ```
null
CC BY-SA 4.0
null
2022-12-01T11:46:23.397
2022-12-01T11:46:23.397
null
null
17,843,144
null
74,641,478
2
null
27,298,178
0
null
Thanks to all the other answers, the following is probably the most concise and feels more natural. Using `df.groupby("X")["A"].agg()` aggregates over one or many selected columns. ``` df = pandas.DataFrame({'A' : ['a', 'a', 'b', 'c', 'c'], 'B' : ['i', 'j', 'k', 'i', 'j'], 'X' : [1, 2, 2, 1, 3]}) A B X a i 1 a j 2 b k 2 c i 1 c j 3 df.groupby("X", as_index=False)["A"].agg(' '.join) X A 1 a c 2 a b 3 c df.groupby("X", as_index=False)[["A", "B"]].agg(' '.join) X A B 1 a c i i 2 a b j k 3 c j ```
null
CC BY-SA 4.0
null
2022-12-01T11:55:23.473
2022-12-01T11:55:23.473
null
null
2,641,825
null
74,641,480
2
null
74,634,600
0
null
I think I did not provide a name dict in the customJS call in my code. So the issue was there that even if I click the checkboxes the graphs were not showing
null
CC BY-SA 4.0
null
2022-12-01T11:55:37.347
2022-12-01T11:55:37.347
null
null
19,091,058
null
74,643,032
2
null
74,641,980
0
null
This is actually a pain. Mongodb [does not allow multiple positional operators](https://stackoverflow.com/questions/14855246/multiple-use-of-the-positional-operator-to-update-nested-arrays) (meaning you cannot use `$` directly within your query). Instead, you could use [positional filters](https://www.mongodb.com/docs/manual/reference/operator/update/positional-filtered/) with [arrayFilters](https://www.mongodb.com/docs/manual/release-notes/3.6/#std-label-3.6-arrayFilters). Playground example - [https://mongoplayground.net/p/tDGYeNIYco4](https://mongoplayground.net/p/tDGYeNIYco4) ``` db.collection.update({ "commandes.noCommande": 1 }, { $set: { "commandes.$.lignesCommande.$[lig].quantite": 100 } }, { arrayFilters: [ { "lig.article.noArticle": 1 } ] }) ```
null
CC BY-SA 4.0
null
2022-12-01T13:57:53.493
2022-12-01T13:57:53.493
null
null
3,265,253
null
74,643,332
2
null
74,585,812
2
null
hi Nazchanel i think you have to add a absolute address on that you are using > `<link rel="shortcut icon" type="image/x-icon" href="/assets/favicon.ico">` please try this may helps you > `<link rel="icon" type="image/x-icon" href="{{site.baseurl}}/assets/favicon.ico" />` if this will not work then add > `<link rel="icon" type="image/x-icon" href="www.YourDomain.com/assets/favicon.ico" />`
null
CC BY-SA 4.0
null
2022-12-01T14:19:37.743
2022-12-01T14:19:37.743
null
null
17,891,149
null
74,643,386
2
null
74,643,201
1
null
In ``` Python - 3.9.10 matplotlib: 3.5.1 ``` Uisng [Tick_formatter](https://matplotlib.org/stable/gallery/ticks/tick-formatters.html) ``` plt.xticks(np.arange(min(locs), max(locs)+1, 2)) ax.xaxis.get_major_ticks()[1].draw = lambda *args:None ``` Gives # [](https://i.stack.imgur.com/HN2KD.png) if you want to keep ticks ``` plt.xticks(np.arange(min(locs), max(locs)+1, 2)) labels = [item.get_text() for item in ax.get_xticklabels()] labels[1] = '' ax.set_xticklabels(labels) ``` Gives # [](https://i.stack.imgur.com/XO8Nl.png)
null
CC BY-SA 4.0
null
2022-12-01T14:22:33.143
2022-12-01T15:38:53.083
2022-12-01T15:38:53.083
15,358,800
15,358,800
null
74,643,607
2
null
74,639,267
1
null
As far as I can tell there is no array in the document you shared. In that case you can use the `arrayRemove` operator to [remove a unique item from the array](https://firebase.google.com/docs/firestore/manage-data/add-data#update_elements_in_an_array): ``` const cityRef = doc(db, "cities", "capital"); await updateDoc(cityRef, { region: arrayRemove({ type: "A" }) }); ``` A few things to note here: - `arrayRemove`- `arrayRemove``{ type: "A" }`- If your use-case can't satisfy any of the requirements above, the way to remove the item would be to: 1. Load the document and get the array from it. 2. Update the array in your application code. 3. Write the entire top-level array back to the database.
null
CC BY-SA 4.0
null
2022-12-01T14:37:28.233
2022-12-01T14:37:28.233
null
null
209,103
null
74,643,797
2
null
46,553,848
0
null
Clear the browser cache. It happens sometimes. [https://support.google.com/accounts/answer/32050?hl=en&co=GENIE.Platform%3DDesktop](https://support.google.com/accounts/answer/32050?hl=en&co=GENIE.Platform%3DDesktop)
null
CC BY-SA 4.0
null
2022-12-01T14:50:11.970
2022-12-01T14:50:11.970
null
null
8,716,887
null
74,643,836
2
null
74,639,267
1
null
1. you have to get the doc and clone properties into temporary object 2. you modify your temp object (remove item form region array) 3. update original doc with temp object > a cleanest way is to do that throught a firestore/transaction a small example to have a small approach ``` const doc = await cityRef('cities/capital').get() const temp = JSON.parse(JSON.stringify(doc.data())) temp.region = temp.region.filter(item => item.type !== 'A') await cityRef('cities/capital').update(temp) ```
null
CC BY-SA 4.0
null
2022-12-01T14:52:40.610
2022-12-01T14:52:40.610
null
null
7,032,224
null
74,643,825
2
null
74,628,459
0
null
Google Earth does not know how to decode the "16,5037993382" format for coordinates as you described above. Google Earth supports longitude and latitude as Degrees-Minutes-Seconds (DMS) in the following forms: 1. Use a single quote for minutes and a double quote for seconds: Example: 49 7'20.06" 2. Direction notation (North/South, East/West): Use N, S, E, or W to indicate direction. Example: N 37 24 23.3 or 37 24 23.3 N 3. Use the minus sign (-) for western or southern positions: When you use this, do not specify a letter. Example: 37 25 19.07, -122 05 08.40 Note: Don’t use a plus sign (+) for northerly/easterly directions. All 3 forms of the coordinate represented in DMS are depicted in this CSV example. If you change your CSV file to one of these formats then Google Earth Pro will correctly import it. ``` Latitude,Longitude "16 50'37.993382""N","25 01'39.206899""W" "N 16 50 37.993382","W 25 01 39.206899" "16 50 37.993382","-25 01 39.206899" ```
null
CC BY-SA 4.0
null
2022-12-01T14:51:56.580
2022-12-02T22:30:34.100
2022-12-02T22:30:34.100
543,969
543,969
null
74,643,896
2
null
74,513,251
0
null
can you please try to add `<meta name="twitter:card" content="summary_large_image" />` and `<meta name="twitter:card" content="app">` ``` <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:image" content="https://avatars.githubusercontent.com/u/86535168?v=4"> ... </head> ``` and ``` <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="twitter:card" content="app"> <meta name="twitter:image" content="https://avatars.githubusercontent.com/u/86535168?v=4"> ... </head> ``` this will resolve your problem, Twitter may take some time to redirect before posting on Twitter validate your link [here](https://cards-dev.twitter.com/validator) 2-3 times
null
CC BY-SA 4.0
null
2022-12-01T14:56:03.610
2022-12-01T14:56:03.610
null
null
17,891,149
null
74,644,305
2
null
74,641,473
0
null
I have managed to embed 2 `for` loops. Makes the script look much cleaner this way. Check it out: ``` <script> var table = document.getElementById("table"), avgVal, sumVal = 0, rowCount = table.rows.length - 1; for (var x = 1; x < 5; x++) { for (var i = 1; i < table.rows.length; i++) { sumVal = sumVal + parseInt(table.rows[i].cells[x].innerHTML); } if (x == 1) { var text = "Average Education = "; } else if (x == 2) { var text = "Average Shopping = "; } else if (x == 3) { var text = "Average Browsing = "; } else if (x == 4) { var text = "Average Social = " } document.getElementById(String(x)).innerHTML = text + parseFloat(sumVal / rowCount); avgVal, sumVal = 0; } </script> ``` Then `span` tags like this: ``` <span id="education"></span><br> <span id="shopping"></span><br> <span id="browsing"></span><br> <span id="social"></span> ``` they look like this: ``` <span id="1"></span><br> <span id="2"></span><br> <span id="3"></span><br> <span id="4"></span> ```
null
CC BY-SA 4.0
null
2022-12-01T15:25:27.893
2022-12-01T15:30:05.043
2022-12-01T15:30:05.043
446,594
20,572,636
null
74,644,380
2
null
74,636,602
0
null
Kitty.Flanagan's answer is a good one but should be cautious when using [Cypress.on()](https://docs.cypress.io/api/events/catalog-of-events#Cypress) as it will have a global impact, whereas [cy.on()](https://docs.cypress.io/api/events/catalog-of-events#cy) will only persist for the test file. Furthermore, returning false will bypass all uncaught exceptions and can lead to issues not being caught by your tests. Ultimately, you want raise issues for any uncaught exceptions to your dev team. In the chance that the uncaught exception is something thrown by 3rd party and cannot be addressed, then I would suggest adding the following to your test file. ``` cy.on('uncaught:exception', (err, runnable) => { return !e.message.includes('ReferenceError: gtag is not defined in Cypress') }) ```
null
CC BY-SA 4.0
null
2022-12-01T15:31:58.107
2022-12-21T15:16:34.570
2022-12-21T15:16:34.570
17,917,809
17,917,809
null
74,644,776
2
null
69,709,251
0
null
I fixed this problem by first deleting my current venv folder. Then I went back to PyCharm to Configure Local Environment>Add Local Interpreter> and made sure the location is in an empty directory. I did this by just adding /venv at the end of my path.
null
CC BY-SA 4.0
null
2022-12-01T16:00:01.527
2022-12-01T16:00:01.527
null
null
20,658,139
null
74,645,431
2
null
74,634,369
0
null
Look into this default demo: [www.leafletjs.com/edit.html](http://www.leafletjs.com/edit.html) html: ``` <!DOCTYPE html> <html> <head> <title>Leaflet</title> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link type="text/css" rel="stylesheet" href="https://unpkg.com/leaflet/dist/leaflet.css" /> <style> body { margin: 0; } html, body, #map { height: 100% } </style> </head> <body> <div id="map"></div> <script src="https://unpkg.com/leaflet/dist/leaflet-src.js"></script> <script src="script.js"></script> </body> </html> ``` JavaScript: ``` var map = L.map('map', { layers: [ L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', { 'attribution': 'Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors' }) ], center: [0, 0], zoom: 0 }); ```
null
CC BY-SA 4.0
null
2022-12-01T16:51:18.367
2022-12-01T16:51:18.367
null
null
8,283,938
null
74,645,637
2
null
74,524,640
0
null
The reason your signals are initially set to `U` or `X` is because the values of all signals, variables, etc. are initialized to the left hand side of the type definition. From the IEEE 1076 code (see [here](https://gitlab.com/IEEE-P1076/packages/-/blob/master/ieee/std_logic_1164.vhdl)): ``` ------------------------------------------------------------------- -- logic state system (unresolved) ------------------------------------------------------------------- type STD_ULOGIC is ( 'U', -- Uninitialized 'X', -- Forcing Unknown '0', -- Forcing 0 '1', -- Forcing 1 'Z', -- High Impedance 'W', -- Weak Unknown 'L', -- Weak 0 'H', -- Weak 1 '-' -- Don't care ); -------------------------------- ``` And `std_logic` is just a resolved version of `std_ulogic`. So any signal of type `std_logic` will have its default value be `U`, unless set otherwise. Consider the following code: ``` signal A : std_logic; signal B : std_logic := '1'; ``` Signal `A` would be `U` until set otherwise. Signal `B` will be `0` until set otherwise. This is why you are seeing `U` in your simulation. (As for `X` you see in your waveform window, many simulators that collapse vectors into a single value in the waveform view treat collections with `U` as `X`. Expand that vector and I suspect you will see several `U`'s.)
null
CC BY-SA 4.0
null
2022-12-01T17:07:51.930
2022-12-01T17:07:51.930
null
null
4,367,824
null
74,645,969
2
null
74,645,710
3
null
After I've uninstalled Anrdoid Studio works properly as before upgrade with Secure Folder installed. It's not a solution if you want to keep your Secure Folder but Device File Explorer can be used this way. ![Device File Explorer screenshot](https://i.stack.imgur.com/SUp6E.jpg)
null
CC BY-SA 4.0
null
2022-12-01T17:35:25.083
2022-12-16T13:37:02.517
2022-12-16T13:37:02.517
11,564,663
11,564,663
null
74,646,147
2
null
74,641,473
0
null
This becomes much easier if you give the `td`s a class for the column they are in. Then you can just loop through an array of classnames which match the id of the output `span`. Collect the values into an array determine the average and render in the `span`. ``` const cols = ["education", "shopping", "browsing", "social"] const table = document.getElementById("table") for (const col of cols) { const cells = table.querySelectorAll('.' + col) const values = [] for (const cell of cells) { values.push(Number(cell.innerHTML)) } const average = values.reduce((partialSum, a) => partialSum + a, 0) / values.length document.getElementById(col).innerHTML = `Average ${col}: ${average}` } ``` ``` <div class="banner"> <form action="/phone/find" method="post"></form> <div class="table-wrapper"> <table class="tableData" id="table"> <caption> title </caption> <thead> <tr> <th>Name</th> <th>Education Usage</th> <th>Shopping Usage</th> <th>Searching/Browsing usage</th> <th>Social Media usage</th> <th>Date and Time</th> <th></th> </tr> </thead> <tbody> <tr> <td> phonelist[i].name </td> <td class="education"> 1 </td> <td class="shopping"> 1 </td> <td class="browsing"> 1 </td> <td class="social"> 1 </td> <td> phonelist[i].createdAt </td> <td> <div class="secret"> <form action="/phone/delete" method="post"> <input type="String" value="phonelist[i].id" name="id" readonly><button type="Submit">Delete</button></form> <form action="/phone/update" method="post"> <input type="String" value="phonelist[i].id" name="id" readonly><button type="Submit">Update</button></form> </div> </td> </tr> <tr> <td> phonelist[i].name </td> <td class="education"> 1 </td> <td class="shopping"> 2 </td> <td class="browsing"> 3 </td> <td class="social"> 4 </td> <td> phonelist[i].createdAt </td> <td> <div class="secret"> <form action="/phone/delete" method="post"> <input type="String" value="phonelist[i].id" name="id" readonly><button type="Submit">Delete</button></form> <form action="/phone/update" method="post"> <input type="String" value="phonelist[i].id" name="id" readonly><button type="Submit">Update</button></form> </div> </td> </tr> </tbody> </table> </div> <span id="education"></span><br> <span id="shopping"></span><br> <span id="browsing"></span><br> <span id="social"></span> <script> </script> ```
null
CC BY-SA 4.0
null
2022-12-01T17:49:53.323
2022-12-01T17:49:53.323
null
null
6,127,393
null
74,646,398
2
null
74,646,355
0
null
Change `data` with `data()` to get the `Map<String, dynamic>` of your document. ``` void _userData() async { DocumentReference documentReference = FirebaseFirestore.instance .collection("Users") .doc("[email protected]"); documentReference.get().then((datasnapshot) { data = datasnapshot.data() as Map<String, dynamic>; // set it like this return print("pseudo: ${data['pseudo']}"); }); } ``` Passing the `data` will pass the definition of `Map<String, dynamic> Function` ( `() => Map<String, dynamic>` ), not the actual `Map<String, dynamic>` of the document data.
null
CC BY-SA 4.0
null
2022-12-01T18:11:34.730
2022-12-01T18:20:18.833
2022-12-01T18:20:18.833
18,670,641
18,670,641
null
74,647,106
2
null
74,645,787
0
null
You can rotate the first view to achieve this: ``` HStack(spacing: -5) { ZStack(alignment: .leading){ Rectangle() .trim(from:0, to:0.8) // << Same as second view .rotation(Angle(degrees: 180)) // << Rotation .fill(Color.init( red: 0.965, green: 0.224, blue: 0.49)) .frame(width: 55, height: 11) Text(String(951)) .font(.system(size: 8)) .bold() .foregroundColor(Color.white) } ZStack(alignment: .trailing){ Rectangle() .trim(from:0, to: 0.8) .fill(Color.init( red: 0.208, green: 0.231, blue: 0.314)) .frame(width: 55, height: 11) Text(String(231)) .font(.system(size: 8)) .bold() .foregroundColor(Color.white) } } ```
null
CC BY-SA 4.0
null
2022-12-01T19:15:40.327
2022-12-01T19:15:40.327
null
null
15,161,794
null
74,647,369
2
null
70,608,914
4
null
You can check according to here: ``` @Composable fun MainScreen() { . . Box(modifier = Modifier.size(height = 90.dp, width = 290.dp)) { Text("TopStart", Modifier.align(Alignment.TopStart)) Text("TopCenter", Modifier.align(Alignment.TopCenter)) Text("TopEnd", Modifier.align(Alignment.TopEnd)) Text("CenterStart", Modifier.align(Alignment.CenterStart)) Text("Center", Modifier.align(Alignment.Center)) Text(text = "CenterEnd", Modifier.align(Alignment.CenterEnd)) Text("BottomStart", Modifier.align(Alignment.BottomStart)) Text("BottomCenter", Modifier.align(Alignment.BottomCenter)) Text("BottomEnd", Modifier.align(Alignment.BottomEnd)) } } ``` [](https://i.stack.imgur.com/Njpeb.png)
null
CC BY-SA 4.0
null
2022-12-01T19:43:50.247
2022-12-01T19:43:50.247
null
null
8,471,798
null
74,647,489
2
null
26,092,281
0
null
In case of mixed type dictionaries you can compare each key individually, if you know the keys and their types upfront. However, this does not generalize into a universal comparison function. ``` let dict1: [String: Any] = ["a": "a", "b": 2] let dict2: [String: Any] = ["a": "a", "b": 2] XCTAssertEqual(dict1["a"] as? String, dict2["a"] as? String) XCTAssertEqual(dict1["b"] as? Int, dict2["b"] as? Int) ```
null
CC BY-SA 4.0
null
2022-12-01T19:55:01.637
2022-12-01T19:55:01.637
null
null
4,873,972
null
74,647,555
2
null
19,564,862
0
null
To fix the above added a null check to avoid Null Pointer at line 295 ``` if(str!=null) { scanner = new Scanner(str); String firstLine = scanner.nextLine()+"<br>"; m_out.println(firstLine); } ```
null
CC BY-SA 4.0
null
2022-12-01T20:00:47.143
2022-12-01T20:00:47.143
null
null
10,863,237
null
74,648,147
2
null
74,647,979
0
null
Try changing the order of your installed apps to this: ``` INSTALLED_APPS = [ "blog", "django.contrib.admin", "django.contrib.auth", "django.contrib.contenttypes", "django.contrib.sessions", "django.contrib.messages", "django.contrib.staticfiles", ] ``` My guess is the `django.contrib.contenttypes` isn't working properly because you have it listed before your `blog` app instead of after it.
null
CC BY-SA 4.0
null
2022-12-01T21:03:58.080
2022-12-01T21:03:58.080
null
null
9,638,991
null
74,648,195
2
null
74,647,710
2
null
Whilst `ColorOverlay` can be used to recolor an image, I found that the way how it does it was rather brute-force. Alternatively, many components actually have a built-in way for recoloring an `SVG` image via the icon property. For example: ``` Button { Layout.preferredWidth: 64 Layout.preferredHeight: 64 background: Rectangle { color: "#2e2e2e" border.color: checked ? "#c9a86b" : "transparent" radius: 8 } icon.source: "youtube.svg" icon.width: 48 icon.height: 40 icon.color: checked ? "#c9a86b" : "white" checkable: true } ``` You see in the above, we control the size, and the color and we also implement a clickable component with just the `Button` component. Since `Button` is being used, your "switchable" requirement can be implemented by setting `checkable` to true and watching the value of the `checked` property. The only thing we don't want is the default rendering of the `Button` so we replace the background with the look you're seeking. In the following example, I used slightly different `SVG` assets than the one shown in your screenshot. To use `SVG` as an icon, they are effectively monochrome since whatever color was specified within will be replaced when it is recolored. The original `youtube.svg` had two polygons one for the outer polygon and one for the inner polygon in different colors. I had to edit this so that it was done as a single polygon with a donut play button hole. I refactored the checkable SVG button as `AppButton.qml`. ``` import QtQuick import QtQuick.Controls import QtQuick.Layouts Page { background: Rectangle { color: "black" } ColumnLayout { anchors.centerIn: parent spacing: 32 RowLayout { spacing: 32 AppButton { id: btnPlay icon.width: 48 icon.height: 40 icon.source: "youtube.svg" checked: true } AppButton { id: btnImage icon.source: "image.svg" } AppButton { id: btnSound icon.source: "headset.svg" } } Text { Layout.alignment: Qt.AlignHCenter text: btnPlay.checked + "," + btnImage.checked + "," + btnSound.checked color: "#c9a86b" } } } // AppButton.qml import QtQuick import QtQuick.Controls import QtQuick.Layouts Button { Layout.preferredWidth: 64 Layout.preferredHeight: 64 background: Rectangle { color: "#2e2e2e" border.color: checked ? "#c9a86b" : "transparent" radius: 8 } icon.width: 48 icon.height: 48 icon.color: checked ? "#c9a86b" : "white" checkable: true } // youtube.svg <svg xmlns="http://www.w3.org/2000/svg" height="800" width="1200" viewBox="-35.20005 -41.33325 305.0671 247.9995"> <path d="M229.763 25.817c-2.699-10.162-10.65-18.165-20.747-20.881C190.716 0 117.333 0 117.333 0S43.951 0 25.651 4.936C15.554 7.652 7.602 15.655 4.904 25.817 0 44.237 0 82.667 0 82.667s0 38.43 4.904 56.85c2.698 10.162 10.65 18.164 20.747 20.881 18.3 4.935 91.682 4.935 91.682 4.935s73.383 0 91.683-4.935c10.097-2.717 18.048-10.72 20.747-20.88 4.904-18.422 4.904-56.851 4.904-56.851s0-38.43 -4.904 -56.85 L93.333 117.558 l0 -69.9 61.334 34.89 -61.334 34.893 z" fill="#282828"/> </svg> // image.svg <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M2 5v22h28V5zm27 21H3v-5.474l4.401-3.5 1.198.567L14 13.106l5 4.531 3.506-3.123L29 20.39zm-5.997-12.422a.652.652 0 0 0-.926-.033L19 16.293l-4.554-4.131a.652.652 0 0 0-.857-.013L8.45 16.417l-.826-.391a.642.642 0 0 0-.72.117L3 19.248V6h26v13.082zM19 8a2 2 0 1 0 2 2 2.002 2.002 0 0 0-2-2zm0 3a1 1 0 1 1 1-1 1.001 1.001 0 0 1-1 1z"/><path fill="none" d="M0 0h32v32H0z"/></svg> // headset.svg <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M28.76 12.716l-1.207-.605a1.057 1.057 0 0 0-.263-.09C26.125 6.69 22.513 2.201 16 2.201 7.906 2.2 4.084 9.13 4.084 16H3v1h2.132c-.027-.33-.048-.663-.048-1a14.703 14.703 0 0 1 2.72-8.871A9.89 9.89 0 0 1 16 3.2c5.956 0 9.26 4.163 10.326 9.108a1.074 1.074 0 0 0-.325.762v5.86a1.07 1.07 0 0 0 .215.628 11.247 11.247 0 0 1-7.651 7.886A1.495 1.495 0 0 0 17.5 27h-2a1.5 1.5 0 0 0 0 3h2a1.5 1.5 0 0 0 1.5-1.5c0-.047-.01-.092-.014-.138a12.252 12.252 0 0 0 8.138-8.367 1.06 1.06 0 0 0 .429-.106l1.206-.605A2.23 2.23 0 0 0 30 17.276v-2.552a2.232 2.232 0 0 0-1.24-2.008zM17.5 29h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 0 1zM29 17.276a1.237 1.237 0 0 1-.688 1.114l-1.207.604-.103-.064v-5.86l.103-.064 1.208.604A1.238 1.238 0 0 1 29 14.724z"/><path fill="none" d="M0 0h32v32H0z"/></svg> ``` You can [Try it Online!](https://stephenquan.github.io/qmlonline/?zcode=AAAMWnicrVVtb9s2EP7uX0FoHzfR5PFFpNF0SPMlBVygL0P3WZZVS6gsebJsdxny33dHyrGdpO0CTIopknc8PvfcS+r1pusH9mH4sKuLr5P6Yslvunbou2b7eH+e/93thu3kfb4q2T8Ths8iL76u+m7XLmfsY1kMebtqUMaKrun6GUsWDSok7D4o33TNbt1GK+N5evK2qLp+y4uyHcr+bTtjm7zH+YPCdpMXdbuaMQUPex+7wxND39Ol53qzebMbhq59pE9PjeAXQ/u+yf9+Kiu6lh/q5VDNmHbPi6uyXlUDysXz8m2364sS2SC8u0XJt/tV8kS1qMria4lQhn5XXkjvX+rJ2zVG6CdYatJ5iuTFd32i4P/krqrMl9ty+NFtp9kf5bfHQY2R5nlTr9o1ZsYMU5Jf0+r2JiTNhfaABh4Cykda2a8s+S3B8UjPc4Lgy1FwYfOYz78UPnd2kTzCfT+5n0ym0xNf/K9186h8XlplkwvmRwo2ffml7Pty+WdMSaufld6OGTmKv1OlkyfeQUnvybtF1y/Lno/yI2O/n3hgeGro83YbS/Z0ss+X9W47Y25yYumZWrqsn7O9H195qOphhBk08kVTjoUTA3FWaZNXOLBv66bdXiXVMGxm0+nhcOAHxbt+NQUhxJQSk0UYV4kTImEB5lUigRb7ujy86b5dJakynA4YlmrJlVJgmBKGC5tJBjrj3nuTvJ682uRDxZZXyTsAzzOrGBjuZFakwK33qRRcWqCPNal0uDApCJ7pjD7OyRvpcSktE0zKjG46n33SinsjcQvNWpxo7pW9kYYbo1mGW0CjACZJbkgu9IgBT2nNQdHEIRx7mmwFU45rNeoby50pCLFjETELiFlAjPYCYhYR02Y4qAzzklsHzyy2meLKkS9hV6Vht0CrwqPr6HFGdoR2xE0G7JyUiIro0gDjIkCUF4utSKMTafQibk/mXgXyiERjHGsES63nnlkKpGZKc+dx62yl2F3CvtRNc4WV4ehNphhbypbXIcseeuh/zrGHTBLIgQL8S16fJQsze4AK3GdztwZkVt6qfWq4znSjuRYyVRzZ59I7bmw2l5pJxaWwDYXYKMlQLixqSVBz8ESf8ndrNOGRXwnEXE7pEVKEMIiUe7ApF0rNpWfScvCqQeowk3CUSj7RdyZDfanmyLKhE1pmDW6TGeVJXwP9jvoZcCR9jtR7Dtp9thXYPeIWDu7e4Z0uxzhTelM+08uFOI7RBKRwt0a+chmUaJQp/lDlOJJi2LvDGEVGY+Tari2TwC6qVAr2Cm5FUDrF8ez/0/8VSYdVzyRltG1SiU0DObPC5IjWZCyOIz9gFfLpb8Bi2AyzWG8MgBuJXQMPok92nGB/EWGO0RZOM4/xGafSYqrICqlWUKA5wPsU2cVSwtIeZzKXmmcCQxE/gTU0mEHquMvktaciCEMU4dWKQ4H5Y6gXYQAtXiixoWF9KlwgBOHIq0yzOI5eYWtECmCPPccGeRBHKeNAjQmwrSA12ELGTwxiFlpahhVvryXXnjKexniUypdBVqWAVkl0FGAUqsd7OEPyTSHI/ZC1xDTQRKdIFSJHNjG1x0885UiChCgbQNs4jMg1+DSUHAXVhqBe4+EQK3UEEmBCZvfY04yBnGTA4hj5IYdTynGHNRBc8uQSNyN2STrV5QYm9zss6mgaPaUeLsdOTsRhR3XUHaQeUw7BkZuCom81dRJnm4c1nRWOdK7JimNxHHPChxwB/cJ6+hfrFPRR)
null
CC BY-SA 4.0
null
2022-12-01T21:09:24.660
2022-12-04T20:56:24.833
2022-12-04T20:56:24.833
881,441
881,441
null
74,648,339
2
null
74,647,979
0
null
You forgot to wrap you content in a block. But, let me share a basic example, where you can render styles and scripts per page, in addition to general css and js files. base.html ``` {% load static %} <!DOCTYPE html> <html lang='en'> <head> <link rel="stylesheet" href="{% static 'base.css' %}"> {% block style %}{% endblock %} <title>{% block title %}My amazing site{% endblock %}</title> <meta charset='utf-8'> </head> <header> <!-- Include a Navbar for instance --> </header> <body> <div id="content"> {% block content %}{% endblock %} </div> </body> <footer> {% block script %}{% endblock %} </footer> </html> ``` extended_base.html ``` {% extends 'base.html' %} {% load static %} {% block style %} <link rel="stylesheet" href="{% static 'base_extended.css' %}"> {% endblock %} {% block content %} <h1 class="from-extended-base"> My awesome Content</h1> <h2 id="demo"> </h2> {% endblock %} {% block script %} <script> window.onload = function() { console.log('hello!') document.getElementById("demo").innerHTML = 'cool!'; } </script> {% endblock %} ```
null
CC BY-SA 4.0
null
2022-12-01T21:25:08.053
2022-12-01T21:25:08.053
null
null
7,100,120
null
74,648,434
2
null
27,092,164
1
null
For anyone going through this in 2022, use a [pg.GraphicsLayoutWidget](https://pyqtgraph.readthedocs.io/en/latest/api_reference/widgets/graphicslayoutwidget.html#pyqtgraph.GraphicsLayoutWidget) : ``` # GraphicsLayoutWidget is now recommended w = pg.GraphicsLayoutWidget(border=(30,20,255)) win.centralWidget.layout.setContentsMargins(0,0,0,0) win.centralWidget.layout.setSpacing(0) ``` Notice how there is no spacing between each blue border of each plot : [](https://i.stack.imgur.com/Q9ZzC.png)
null
CC BY-SA 4.0
null
2022-12-01T21:35:58.143
2022-12-01T21:35:58.143
null
null
4,530,214
null
74,649,190
2
null
71,285,192
0
null
I had the same problem, that after a certain time, all cars froze and there wasn't a signle error. The problem on my side was that the was too , so I moved it a .
null
CC BY-SA 4.0
null
2022-12-01T23:17:08.503
2022-12-01T23:17:08.503
null
null
20,660,983
null
74,649,291
2
null
74,615,984
0
null
It turns out the solution to my question is the `extract_nested_train_split()` function. I.e, rather than using `training(nested_data_tbl$.splits[[1]])`, I would just use `extract_nested_train_split(nested_data_tbl)`
null
CC BY-SA 4.0
null
2022-12-01T23:31:10.260
2022-12-01T23:31:10.260
null
null
5,162,253
null
74,649,653
2
null
48,948,259
1
null
One reason this can happen is if you already have Jupyter running on the same port. In my case VS Code was automatically starting the jupyter daemon on the background so whenever I tried to spin up Jupyter outside of VS Code on port `8888` I would see the 404 page because my browser was actually navigating to the VS Code instance of Jupyter. One way to identify this is as follows: 1. In bash run lsof -i -P -n | grep "8888 (LISTEN)". You should see output like: ``` Python 2085 <user> 9u IPv4 0xfa77315aec2b468b 0t0 TCP 127.0.0.1:8888 (LISTEN) Python 2085 <user> 10u IPv6 0xfa7731561f2fad13 0t0 TCP [::1]:8888 (LISTEN) ``` 1. The second item is the process id, use ps u <pid> to inspect it: ``` » ps u 2085 USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND <user> 2085 0.0 0.3 409501984 94656 ?? S 3:34PM 0:02.23 /<path-to-python>/Python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v -- ``` To fix this you can either try to kill the VS Code process (but this might mess up jupyter support in your VS Code environment) or you can simply start your external jupyter on a different port, e.g. `jupyter lab --port=10000`
null
CC BY-SA 4.0
null
2022-12-02T00:30:34.053
2022-12-02T00:30:34.053
null
null
5,948,647
null
74,650,773
2
null
70,947,699
0
null
Look on [this](https://stackoverflow.com/q/58554760/9640177) thread. You will have to do a little bit of trial and error to get this right. But [this](https://stackoverflow.com/a/73989946/9640177) answer will get us in the right direction.
null
CC BY-SA 4.0
null
2022-12-02T04:02:36.957
2022-12-02T04:02:36.957
null
null
9,640,177
null
74,650,813
2
null
70,986,751
1
null
I have struggled quite a bit with this and none of the 'obvious' solutions worked. The way I ended up solving the issue is by creating a new Java Project and looking at the difference in the config of the files. Especially in the `.project` file, there were missing entries. Some also in the `.settings/*.prefs` files After updating those in my own project, it got detected properly.
null
CC BY-SA 4.0
null
2022-12-02T04:09:04.513
2022-12-02T04:09:04.513
null
null
2,494,262
null
74,651,341
2
null
74,651,083
1
null
Do you have the [ADB Command-line tools](https://developer.android.com/studio/command-line)? If not [install](https://www.xda-developers.com/install-adb-windows-macos-linux/) this then uninstall the app with adb using: ``` adb uninstall com.example.app (your app id) ``` I think this will help.
null
CC BY-SA 4.0
null
2022-12-02T05:39:16.120
2022-12-02T06:27:02.280
2022-12-02T06:27:02.280
16,985,146
13,575,682
null
74,651,374
2
null
74,650,794
0
null
> ``` var body: some View { HStack{ VStack{ ScrollView(showsIndicators: false) { ForEach(0...puntajeMaximo, id: \.self) { score in HStack { if puntajeMaximo / 2 >= score { Text("\(score) -> \(score).\(score)") .frame(width: 100, height: 50) .background(.white) .cornerRadius(10) .foregroundColor(.red) } } } } }.frame(width: UIScreen.main.bounds.width/2, height: UIScreen.main.bounds.height - 100) .background(Color.orange) VStack{ ScrollView { ForEach(0...puntajeMaximo, id: \.self) { score in HStack { if puntajeMaximo / 2 < score { Text("\(score) -> \(score).\(score)") .frame(width: 100, height: 50) .background(.white) .cornerRadius(12) } } } } }.frame(width: UIScreen.main.bounds.width/2, height: UIScreen.main.bounds.height) .background(Color.yellow) } } ``` [Answer 1 Output Image](https://i.stack.imgur.com/FbGdZ.png) Here you can check scroll hidden and some other difference in two scrollview > ANSWER 2 (Preferred) ``` // Need to create Item in List which requires to conform Identifiable protocol struct ListItem: Identifiable { let id = UUID() let score: Int } struct ContentViews: View { // @StateObject private var vm = notaViewModel() @State var puntajeMaximo: Int init(puntajeMaximo: Int) { self.puntajeMaximo = puntajeMaximo getData() } var leftData: [ListItem] = [] var rightData: [ListItem] = [] var body: some View { HStack{ VStack{ List(leftData) { data in Text("\(data.score) -> \(data.score).\(data.score)") .frame(width: 100, height: 50) .background(.gray.opacity(0.3)) .cornerRadius(10) .foregroundColor(.red) .listRowBackground(Color.clear) } }.frame(width: UIScreen.main.bounds.width/2, height: UIScreen.main.bounds.height - 100) .background(Color.orange) VStack{ List(rightData) { data in Text("\(data.score) -> \(data.score).\(data.score)") .frame(width: 100, height: 50) .background(.gray.opacity(0.3)) .cornerRadius(10) .foregroundColor(.black) } }.frame(width: UIScreen.main.bounds.width/2, height: UIScreen.main.bounds.height) .background(Color.yellow) } } // Must be called in init or before rendering the view mutating func getData() { for score in 0...puntajeMaximo { if (puntajeMaximo / 2 >= score) { leftData.append(ListItem(score: score)) } else if puntajeMaximo / 2 < score { rightData.append(ListItem(score: score)) } } } } struct ContentViews_Previews: PreviewProvider { static var previews: some View { ContentViews(puntajeMaximo: 30) } } ``` [Answer 2 Output Image](https://i.stack.imgur.com/hEmfE.png) 1. A mutating method that separates the list for left and right view 2. A struct that conforms Identifiable protocol to pass in ListView as a row. 3. You can make changes to design as per you requirement. 4. As this method runs loop only 1 time and separates the list instead of Answer 1 which runs loop twice for both view
null
CC BY-SA 4.0
null
2022-12-02T05:45:20.103
2022-12-02T05:52:25.530
2022-12-02T05:52:25.530
13,301,227
13,301,227
null
74,651,466
2
null
49,310,461
0
null
The code linked in the question is no longer available, so I can't give you a full working example for your case. However, one thing that will likely work is using `mainAxisAlignment` as follows: ``` Column( mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisSize: MainAxisSize.max, children: [ Text("Some title"), Text("Address"), Text("Description") ], ), ``` (`mainAxisSize: MainAxisSize.max` is actually the default value, butthis only works if you do not set it to `MainAxisSize.min`, so I included it here.) Setting `mainAxisAlignment` to `MainAxisAlignment.spaceAround` or `MainAxisAlignment.spaceEvenly` will also expand the column, but spacing between/around children will be handled differently. Try it out and see which you like best! This will cause the column to take all the space it can - if it still doesn't expand then that is due to its parent widget, and we can no longer access the code so I can't speak to that.
null
CC BY-SA 4.0
null
2022-12-02T05:57:27.320
2022-12-02T05:57:27.320
null
null
7,650,718
null
74,651,674
2
null
74,645,787
0
null
Here is the full code you can modify and optimize the code as you want. ``` struct Triangle: Shape { func path(in rect: CGRect) -> Path { var path = Path() path.move(to: CGPoint(x: 0, y: 0)) path.addLine(to: CGPoint(x: rect.minX, y: rect.maxY)) path.addLine(to: CGPoint(x: rect.maxX, y: rect.maxY)) path.addLine(to: CGPoint(x: rect.maxX/1.2, y: 0)) return path } } struct LeadingTriangle: Shape { func path(in rect: CGRect) -> Path { var path = Path() path.move(to: CGPoint(x: rect.maxX/1.2-rect.maxX, y: 0)) path.addLine(to: CGPoint(x: rect.minX, y: rect.maxY)) path.addLine(to: CGPoint(x: rect.maxX, y: rect.maxY)) path.addLine(to: CGPoint(x: rect.maxX, y: 0)) return path } } var body: some View { HStack{ ZStack(alignment: .leading){ Rectangle() .fill(Color.white) .frame(width: 150, height: 30) .overlay( Triangle() .fill(Color.red) ) Text(String(23.32)) .font(.system(size: 8)) .bold() .foregroundColor(Color.white) } ZStack(alignment: .trailing){ Rectangle() .fill(Color.white) .frame(width: 150, height: 30) .overlay( LeadingTriangle() .fill(Color.blue) ) Text(String(23.32)) .font(.system(size: 8)) .bold() .foregroundColor(Color.white) } } } ```
null
CC BY-SA 4.0
null
2022-12-02T06:25:31.753
2022-12-02T06:25:31.753
null
null
19,572,222
null
74,651,913
2
null
61,629,450
3
null
Good news! This bug in implementation was by a patch in upstream WebRTC repo (it's my contribution!): [https://webrtc.googlesource.com/src/+/7eea6672285f765599fd883a5737f5cae8d20917](https://webrtc.googlesource.com/src/+/7eea6672285f765599fd883a5737f5cae8d20917) The upstream WebRTC code with the patch applied begins to be included on Chromium with [version 110.0.5452.0](https://chromiumdash.appspot.com/commit/7eea6672285f765599fd883a5737f5cae8d20917). Thus `110.0.5452.0` Since the patch was committed on [WebRTC repo](https://webrtc.googlesource.com/src), . --- UPDATE: The upstream patch was [cherry-picked in Webkit](https://commits.webkit.org/257481@main). It turned out that, for Firefox, [a separate patch for itself](https://hg.mozilla.org/mozilla-central/rev/587eb0272431) was needed. (This patch also is my contribution.) Firefox [uses a different library, other than from upstream WebRTC, for its ICE stack](https://wiki.mozilla.org/Media/WebRTC/Architecture#List_of_Components). So applying the patch in upstream did not work for Firefox. (Regarding this, it seems interesting Firefox had the same bug too.)
null
CC BY-SA 4.0
null
2022-12-02T06:55:47.343
2022-12-31T02:23:21.547
2022-12-31T02:23:21.547
8,581,025
8,581,025
null
74,652,144
2
null
74,652,010
0
null
Try to 1. Delete the 'poi-ooxml' folder 2. Reimport the project
null
CC BY-SA 4.0
null
2022-12-02T07:23:30.150
2022-12-02T07:23:30.150
null
null
1,527,287
null
74,652,705
2
null
74,652,010
0
null
Navigate to the project folder via terminal. Execute this command from inside: ``` mvn clean install -U ```
null
CC BY-SA 4.0
null
2022-12-02T08:21:16.247
2022-12-02T08:21:16.247
null
null
7,031,148
null
74,652,795
2
null
74,652,226
0
null
My jupyter extension version is v2022.9.1303220346. If your are pre-release version. You can switch to release version. And you can try the following way to find python interpreter. Open your settins and search for `Python Path`. [](https://i.stack.imgur.com/q2mMZ.png) Enter the absolute path here manually.
null
CC BY-SA 4.0
null
2022-12-02T08:27:51.880
2022-12-02T08:27:51.880
null
null
18,359,438
null
74,652,948
2
null
74,652,010
0
null
base on the error message, looks like your repository path has a extra char '>'. Should be: C:\Users\xxxx.m2\repository\org... But Eclipse read: C:\Users\xxxx.m2\reposoitory**>**org this path should be set with maven setting.xml, so suggest: 1. make sure the maven pack from apache offical site 2. override the setting.xml, under the maven_install_foleder/conf 3. check the Eclipse property settings about maven, if something override the repository path with a extra charareter
null
CC BY-SA 4.0
null
2022-12-02T08:42:19.403
2022-12-02T08:42:19.403
null
null
20,458,097
null
74,652,991
2
null
74,652,010
0
null
I just deleted the `.m2` folder and tried to import the project then it started to work correctly. Also execute `mvn clean intsall -u` in the project folder.
null
CC BY-SA 4.0
null
2022-12-02T08:45:33.230
2022-12-07T10:17:46.290
2022-12-07T10:17:46.290
145,971
19,616,469
null
74,654,018
2
null
74,653,918
2
null
The immediate issue is that your `over` clause is in the wrong place: ``` (SALARY/SUM(SALARY)) * 100 over (partition by DEPARTMENT_ID) ``` should be ``` (SALARY/SUM(SALARY) over (partition by DEPARTMENT_ID)) * 100 ``` But the reference to `DEPARTMENT_ID` in there is ambiguous as that column is in both tables, so it should be: ``` (SALARY/SUM(EMPLOYEES.SALARY) over (partition by DEPARTMENTS.DEPARTMENT_ID)) * 100 ``` You might want to consider using table aliases to make the code a bit shorter. You may also want to round (or truncate/floor) the percentages to, say, one or two decimal places. I'm not sure you really want a full outer join though - that will include all departments with no employees (e.g. 'Recruiting'). A left outer join looks more appropriate - so 'Kimberley Grant', who is not linked to any department, will still be included. --- > I have to calculate percent about what part of the salary employee get within all organization and im confused why do i get "not a single-group group function" error here Because the version you added as a comment has: ``` SALARY/SUM(EMPLOYEES.SALARY)*100 ``` which is the aggregate form of the function, not the analytic form. As you don't want to aggregate here, you still need an `over` clause to make it analytical, but that can be empty: ``` SALARY/SUM(EMPLOYEES.SALARY) over () * 100 ``` And you can of course do both together: ``` select employees.first_name, employees.last_name, employees.department_id, departments.department_name, employees.salary, salary / sum(employees.salary) over (partition by departments.department_id) * 100 as "PercentWithinDepartment", salary / sum(employees.salary) over () * 100 as "PercentWithinOrganization" from hr.employees left join hr.departments on employees.department_id = departments.department_id; FIRST_NAME LAST_NAME DEPARTMENT_ID DEPARTMENT_NAME SALARY PercentWithinDepartment PercentWithinOrganization -------------------- ------------------------- ------------- ------------------------------ ---------- ----------------------- ------------------------- Jennifer Whalen 10 Administration 4400 100 .636389933 Michael Hartstein 20 Marketing 13000 68.4210526 1.88024299 Pat Fay 20 Marketing 6000 31.5789474 .867804455 ... Kimberely Grant 7000 100 1.01243853 ``` You might also want to add an `order by` clause...
null
CC BY-SA 4.0
null
2022-12-02T10:09:42.520
2022-12-02T11:00:47.320
2022-12-02T11:00:47.320
266,304
266,304
null
74,654,035
2
null
74,653,918
1
null
I don't have HR schema (but I have Scott) so - here's how. I'm using SQL*Plus' formatting capabilities to make it look prettier. ``` SQL> set numformat 999g990d00 SQL> break on deptno on dname SQL> compute sum of pct_sal on deptno SQL> SQL> select e.deptno, d.dname, e.ename, e.sal, 2 sum(e.sal) over (partition by e.deptno) dept_sal, 3 -- 4 round((e.sal / sum(e.sal) over (partition by e.deptno)) * 100, 2) pct_sal 5 from emp e join dept d on d.deptno = e.deptno 6 order by e.deptno, e.ename; ``` Result: ``` DEPTNO DNAME ENAME SAL DEPT_SAL PCT_SAL ----------- -------------- ---------- ----------- ----------- ----------- 10,00 ACCOUNTING CLARK 2.450,00 8.750,00 28,00 KING 5.000,00 8.750,00 57,14 MILLER 1.300,00 8.750,00 14,86 *********** ************** ----------- sum 100,00 20,00 RESEARCH ADAMS 1.100,00 10.915,00 10,08 FORD 3.000,00 10.915,00 27,49 JONES 2.975,00 10.915,00 27,26 SCOTT 3.000,00 10.915,00 27,49 SMITH 840,00 10.915,00 7,70 *********** ************** ----------- sum 100,02 30,00 SALES ALLEN 1.600,00 9.400,00 17,02 BLAKE 2.850,00 9.400,00 30,32 JAMES 950,00 9.400,00 10,11 MARTIN 1.250,00 9.400,00 13,30 TURNER 1.500,00 9.400,00 15,96 WARD 1.250,00 9.400,00 13,30 *********** ************** ----------- sum 100,01 14 rows selected. SQL> ``` (Sum isn't exactly 100% because of rounding.)
null
CC BY-SA 4.0
null
2022-12-02T10:11:02.860
2022-12-02T10:11:02.860
null
null
9,097,906
null
74,654,419
2
null
29,753,234
-1
null
[enter image description here](https://i.stack.imgur.com/scdhy.png) ``` <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script> ```
null
CC BY-SA 4.0
null
2022-12-02T10:40:12.280
2022-12-02T10:40:12.280
null
null
20,665,314
null
74,654,606
2
null
74,653,918
1
null
I might be mistaking, but it seems to me that all you need is to use ratio_to_report analytic function. Try this one please ``` SELECT E.FIRST_NAME, E.LAST_NAME, E.DEPARTMENT_ID, D.DEPARTMENT_NAME, E.SALARY, 100 * ratio_to_report(e.salary) over (partition by d.department_id) FROM HR.EMPLOYEES e JOIN hr.departments d on e.department_id = d.department_id order by d.department_id; ```
null
CC BY-SA 4.0
null
2022-12-02T10:55:04.740
2022-12-02T11:01:54.103
2022-12-02T11:01:54.103
266,304
6,033,601
null
74,654,859
2
null
74,654,277
0
null
The rules for the expected output aren't clear. It could be the "last" row based on some order, or each column returns the maximum value in a group. If the maximum value is needed, the following should work: ``` SELECT Name, Max(Age) as Age, Max(X) as X, Max(Y) as Y FROM SomeTable GROUP BY Name ``` If the "last" row is needed, there must be a way to order the results. Table rows have no implicit order. Assuming there's an incrementing ID, one could use `ROW_NUMBER` to find and return the latest row per group: ``` with rows as ( SELECT ID,Name,Age,X,Y,ROW_NUMBER(PARTITION BY Name ORDER BY ID DESC) as RN FROM SomeTable ) SELECT Name,Age,X,Y FROM rows WHERE RN=1 ``` This will split (partition) the data by name and calculate a row_number based on descending order inside each partition. Since the rows are ordered by ID descending, the first row will the the latest one.
null
CC BY-SA 4.0
null
2022-12-02T11:12:32.267
2022-12-02T11:12:32.267
null
null
134,204
null
74,655,081
2
null
74,654,932
2
null
Yes, it is possible to load limited data from the Realtime Database using the `limitToFirst()` or `limitToLast()` methods in combination with the `orderByChild()` method. For example, if you want to load the first 2 users in your database, you can use the following query: ``` const query = database.ref('users').orderByChild('timestamp').limitToFirst(2); ``` Then, when the admin clicks on the "Load More" button, you can load the next 2 users using the following query: ``` const query = database.ref('users') .orderByChild('timestamp') .startAt(lastLoadedTimestamp) .limitToFirst(2); ``` Where `lastLoadedTimestamp` is the timestamp of the last user that was loaded previously. This way, you can paginate the data and load it in small chunks instead of loading all of it at once. You can find more information about paginating data in the Realtime Database in the Firebase documentation: [https://firebase.google.com/docs/database/web/lists-of-data#paginate_data](https://firebase.google.com/docs/database/web/lists-of-data#paginate_data) Edit: To get the timestamp of the last time data was saved to a snapshot in Firebase, you can use the `.getMetadata()` method on the snapshot object. This method returns an object containing metadata about the snapshot, including the timestamp. Here is an example: ``` var ref = firebase.database().ref("my_data"); ref.on("value", function(snapshot) { // Get the timestamp of the last time the data was saved var timestamp = snapshot.getMetadata().timestamp; }); ``` Note that this method will only return a timestamp if the snapshot was saved with a server-side timestamp. If the snapshot was saved with a client-side timestamp, this method will not return a value. Additionally, this method will only work if you are using the Realtime Database in Firebase. If you are using Cloud Firestore, you will need to use a different approach to get the timestamp.
null
CC BY-SA 4.0
null
2022-12-02T11:28:43.127
2022-12-03T03:44:33.323
2022-12-03T03:44:33.323
330,697
330,697
null
74,655,114
2
null
74,652,799
0
null
This is not really an answer at the moment as I can't see enough to be certain but... Looking at the report design, it 'appears' that you don't have anything in the details row(s). The details group rows have been reduced in height so I'm guessing there is nothing in there. That means that the text boxes below this must be in a group header or footer which is why they will only appear once. The best way to get your head round this is to dump all the data from your dataset into a simple flat table, then see what you want repeating. For exmaple, it looks like `Label ID` (`MGAItemLabelName` ?) should only be shown once, so there needs to be a group for that - which it looks like you have. Then within that label name group, you have two rows of data that you want to show, so these must be at a lower level than their parent group. That might be the details row group, or another row group between the header and details depending on your needs. The details row group typically contains fields that you want to show every instance of and that does not have any subordinate/child data.
null
CC BY-SA 4.0
null
2022-12-02T11:30:44.450
2022-12-02T11:30:44.450
null
null
1,775,389
null
74,655,290
2
null
74,634,669
0
null
So I contact the ARM's support and this is their answer about my problem : > Which MDK version do you use? I assume that you use version 5.38, which was released almost two weeks ago. If not, please let me know. This week we found an issue with the new ST-Link driver, which is included in MDK 5.38. We have seen this with only two customers, and one of my colleagues can duplicate it. We are currently in discussion with ST to find the real reason for this issue. Because of this and another (even more important) issue, we have withdrawn MDK version 5.38. Currently, you can download MDK 5.37 from our webserver again. See [https://www.keil.com/demo/eval/arm.htm](https://www.keil.com/demo/eval/arm.htm) With MDK 5.37 this issue should not exist. Please try and let me know. We will soon release an MDK version 5.38a. Please don't install this version because it will contain the same ST-Link drivers as the version 5.38. I was using MDK 5.38 so I've uninstalled MDK 5.38 and Keil µVision, and after reintall Keil µVision and the MDK 5.37. And I can now use the debug ST-Link of the nucleo F103RB.
null
CC BY-SA 4.0
null
2022-12-02T11:44:13.483
2022-12-02T11:44:13.483
null
null
18,433,570
null
74,655,456
2
null
74,638,309
0
null
Add the following `@Parameter` annotation to your parameter (line breaks added for readability). The `style` and `explode` attributes specify that the map parameter should be serialized as `?key1=value1&key2=value2&...` without including the parameter name ("params"). ``` @GetMapping(value = "") public String Hello( @Parameter(name = "params", in = ParameterIn.QUERY, required = true, schema = @Schema(type = "object", additionalProperties = true), style = ParameterStyle.FORM, explode = Explode.TRUE) @RequestParam Map<String, String> params ) ```
null
CC BY-SA 4.0
null
2022-12-02T12:00:14.217
2022-12-02T12:00:14.217
null
null
113,116
null
74,656,290
2
null
74,656,090
0
null
I tried following, it works. ``` df<-read.delim("~/Documents/sample.csv" ,sep = ";",row.names = 1) ```
null
CC BY-SA 4.0
null
2022-12-02T13:07:23.330
2022-12-02T13:07:23.330
null
null
2,894,345
null
74,656,919
2
null
72,864,056
0
null
I've included two different options here, one for just changing the public directory name, and one for also putting the core files in their own directory: 1. Rename public folder to public_html (or any desired name) 2. Edit AppServiceProviver.php and add below code in register method: > ``` $this->app->bind('path.public', function() { return realpath(base_path().'/public_html'); }); ``` 1. Add publicDirectory: 'public_html' to laravel-core/vite.config.js within the plugins / laravel object, eg. > ``` export default defineConfig({ plugins: [ laravel({ publicDirectory: 'public_html', input: [ 'resources/sass/app.scss', 'resources/js/app.js', ], refresh: true, }), ], }); ``` 1. Rename public folder to public_html (or any desired name) 2. Create a laravel-core directory and move all files and folders except public_html into the laravel-core folder. 3. Edit index.php in public_html folder and find/replace __DIR__.'/../ with __DIR__.'/../laravel-core/ (3 cases) 4. Edit AppServiceProviver.php and add below code in register method: > ``` $this->app->bind('path.public', function() { return realpath(base_path().'/../public_html'); }); ``` 1. Add publicDirectory: 'public_html' to laravel-core/vite.config.js within the plugins / laravel object, eg. > ``` export default defineConfig({ plugins: [ laravel({ publicDirectory: '../public_html', input: [ 'resources/sass/app.scss', 'resources/js/app.js', ], refresh: true, }), ], }); ```
null
CC BY-SA 4.0
null
2022-12-02T13:58:51.493
2022-12-02T13:58:51.493
null
null
907,724
null
74,657,137
2
null
72,887,109
0
null
It looks like the issue you've described is a known issue on our end. I've added another instance of the bug report to let our engineers know the growing numbers of the affected users. While our team continues to investigate this behavior, we've yet to provide details or timelines as to when the fix will be available. For now, I suggest keeping an eye out for updates on our [official blog](https://firebase.googleblog.com/) and [release notes](https://firebase.google.com/support/releases) for any updates.
null
CC BY-SA 4.0
null
2022-12-02T14:13:31.473
2022-12-02T14:13:31.473
null
null
20,393,543
null
74,657,434
2
null
74,657,410
0
null
Access the items using `?` ``` data?.list?.[1]?.main.temp_min ``` Also, update the interface like this ``` interface Data { list: { main: { temp: number; temp_min: number; temp_max: number; } weather: { main: string; description: string; }[] clouds: { all: number; }[] dt_txt: string; }[] dt: number; } ```
null
CC BY-SA 4.0
null
2022-12-02T14:38:16.170
2022-12-02T14:38:16.170
null
null
6,428,638
null
74,657,618
2
null
28,592,652
0
null
This issue is super annoying, but it has something to do with the pixel scale on some operating systems. Essentially, the browser will attempt to round border widths to the nearest device pixel causing the appearance of inconsistent border widths. A super ugly solution is to use a border width less than 1px so that it rounds to the nearest device pixel correctly. ``` tr { border-bottom: solid .5px #d3d3d3; } ```
null
CC BY-SA 4.0
null
2022-12-02T14:52:32.750
2022-12-02T14:52:32.750
null
null
5,919,714
null
74,657,683
2
null
74,657,410
0
null
Within an array, it is not guaranteed that you will have something in index 1. Scenarios: ``` [undefined, undefined, <object>] [<object>] ``` When possible, best practice is not to access arrays by index directly but use a methods like '.map' or '.forEach' to programatically go through each one.
null
CC BY-SA 4.0
null
2022-12-02T14:56:51.310
2022-12-02T14:56:51.310
null
null
8,366,031
null
74,657,918
2
null
74,657,661
1
null
It's not an error, it's only a warning. Pycharm is telling you that you have imported a library but you're not using this library (request). If you use the library the warning disappears
null
CC BY-SA 4.0
null
2022-12-02T15:16:42.337
2022-12-02T15:16:42.337
null
null
20,666,840
null
74,657,981
2
null
74,657,480
1
null
The App Service will not change your appsettings.json file. It will inject any app settings (including Connection Strings) in addition to your appsettings.json file into your application (as ENV vars).
null
CC BY-SA 4.0
null
2022-12-02T15:21:39.083
2022-12-02T15:21:39.083
null
null
1,537,195
null
74,657,991
2
null
74,657,410
0
null
In TS you should make sure that the data at index in an array is not undefined or null in order to access the properties of that index. So you have 2 options to fix your issue: 1. Add ? to check if your data is undefined or not: ``` console.log(data?.list[1]?.main?.temp_min); ``` 1. Add if condition: ``` if(data && !!data.list && data.list[1] && data.list[1].main) { console.log(data.list[1].main.temp_min); } ```
null
CC BY-SA 4.0
null
2022-12-02T15:22:31.383
2022-12-02T15:22:31.383
null
null
11,342,834
null
74,658,210
2
null
50,887,790
0
null
A solution with `TabController` + `Streams` Pass a stream into the state object. Pass the new tab index through the stream for the state to update itself. Here's how I'm doing it. ``` import 'package:flutter/material.dart'; class TabsWidget extends StatefulWidget { const TabsWidget({Key? key, this.tabs = const [], this.changeReceiver}) : super(key: key); final List<Tab> tabs; // To change the tab from outside, pass in the tab index through a stream final Stream<int>? changeReceiver; @override State<TabsWidget> createState() => _TabsWidgetState(); } class _TabsWidgetState extends State<TabsWidget> with SingleTickerProviderStateMixin { int _index = 0; late TabController _tabController; @override void initState() { _tabController = TabController(length: widget.tabs.length, vsync: this, initialIndex: _index); // Listen to tab index changes from external sources via this stream widget.changeReceiver?.listen((int newIndex) { setState(() { _index = newIndex; _tabController.animateTo(newIndex); }); }); super.initState(); } @override Widget build(BuildContext context) { if (widget.tabs.isEmpty) return const SizedBox.shrink(); // If no tabs, show nothing return TabBar(tabs: widget.tabs, controller: _tabController, ); } } ``` ``` // Sample usage - main import 'dart:async'; import 'package:flutter/material.dart'; import 'tabs_widget.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatefulWidget { const MyApp({Key? key}) : super(key: key); @override State<MyApp> createState() => _MyAppState(); } class _MyAppState extends State<MyApp> { final StreamController<int> tabChangeNotifier = StreamController(); @override Widget build(BuildContext context) { return MaterialApp( title: 'Tab Change Demo', home: Scaffold( appBar: AppBar( title: const Text('Tab Change Demo'), ), body: SingleChildScrollView(child: Column( children: [ const SizedBox(height: 30,), Row(mainAxisAlignment: MainAxisAlignment.spaceAround, children: [ ElevatedButton(onPressed: () => tabChangeNotifier.add(0), child: const Text('Go Orange')), ElevatedButton(onPressed: () => tabChangeNotifier.add(1), child: const Text('Go Red')), ElevatedButton(onPressed: () => tabChangeNotifier.add(2), child: const Text('Go Green')), ],), const SizedBox(height: 30,), TabsWidget(changeReceiver: tabChangeNotifier.stream, tabs: const [ Tab(icon: Icon(Icons.circle, color: Colors.orange,),), Tab(icon: Icon(Icons.circle, color: Colors.red,),), Tab(icon: Icon(Icons.circle, color: Colors.green,),), ],), ], ),), // This trailing comma makes auto-formatting nicer for build methods. ), ); } @override void dispose() { tabChangeNotifier.close(); super.dispose(); } } ``` This is how the above sample looks. [](https://i.stack.imgur.com/ffzFd.gif)
null
CC BY-SA 4.0
null
2022-12-02T15:40:30.490
2022-12-02T15:40:30.490
null
null
483,628
null
74,658,226
2
null
15,517,878
0
null
``` public class Utils { public static float getInternalStorageSpace() { StatFs statFs = new StatFs(Environment.getDataDirectory().getAbsolutePath()); return ((float) statFs.getBlockCountLong() * statFs.getBlockSizeLong()) / 1048576; } public static float getInternalUsedSpace() { StatFs statFs = new StatFs(Environment.getDataDirectory().getAbsolutePath()); float total = ((float) statFs.getBlockCountLong() * statFs.getBlockSizeLong()) / 1048576; float free = ((float) statFs.getAvailableBlocksLong() * statFs.getBlockSizeLong()) / 1048576; return total - free; } public static float getUsedSpace() { StatFs statFs = new StatFs(Environment.getDataDirectory().getAbsolutePath()); return ((float) statFs.getAvailableBlocksLong() * statFs.getBlockSizeLong()); } public static float getStorageSpace() { StatFs statFs = new StatFs(Environment.getDataDirectory().getAbsolutePath()); return ((float) statFs.getBlockCountLong() * statFs.getBlockSizeLong()); } public static String readableFileTotalSize() { if (getStorageSpace() <= 0) return "0"; final String[] units = new String[]{"B", "kB", "MB", "GB", "TB"}; int digitGroups = (int) (Math.log10(getStorageSpace()) / Math.log10(1024)); return new DecimalFormat("#,##0.#").format(getStorageSpace() / Math.pow(1024, digitGroups)) + " " + units[digitGroups]; } public static String readableFileUseSize() { if (getUsedSpace() <= 0) return "0"; final String[] units = new String[]{"B", "kB", "MB", "GB", "TB"}; int digitGroups = (int) (Math.log10(getUsedSpace()) / Math.log10(1024)); return new DecimalFormat("#,##0.#").format(getUsedSpace() / Math.pow(1024, digitGroups)) + " " + units[digitGroups]; } ``` } ``` <androidx.appcompat.widget.LinearLayoutCompat android:layout_width="match_parent" android:orientation="vertical" android:layout_marginTop="@dimen/_10sdp" android:paddingStart="@dimen/_5sdp" android:paddingBottom="@dimen/_100sdp" android:paddingEnd="@dimen/_5sdp" android:layout_height="wrap_content" tools:ignore="UnusedAttribute"> <TextView android:text="@string/file_manager" android:layout_width="match_parent" android:textColor="?colorOnBackground" android:textSize="@dimen/_13sdp" android:layout_margin="@dimen/_5sdp" android:includeFontPadding="false" android:fontFamily="@font/roboto_bold" android:layout_height="wrap_content"/> <androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/cl_internal" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/_7sdp" android:paddingStart="@dimen/_10sdp" android:paddingEnd="@dimen/_10sdp" android:background="@drawable/bg_internal"> <RelativeLayout android:id="@+id/rl_support" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/_8sdp" android:layout_marginBottom="@dimen/_8sdp" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toBottomOf="parent"> <com.google.android.material.progressindicator.CircularProgressIndicator android:id="@+id/pb_progress" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_centerInParent="true" app:indicatorSize="@dimen/_45sdp" app:trackColor="?android:colorBackground" app:indicatorColor="?colorPrimary"/> <ImageView android:id="@+id/iv_image" android:layout_width="@dimen/_25sdp" android:layout_height="@dimen/_25sdp" android:layout_centerInParent="true" android:layout_marginBottom="@dimen/_8sdp" android:contentDescription="@string/list_sort" android:src="@drawable/ic_sdcard" /> </RelativeLayout> <TextView android:id="@+id/tv_title" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="@dimen/_10sdp" android:layout_marginEnd="@dimen/_10sdp" android:text="@string/internal_storage" android:singleLine="true" android:textSize="@dimen/_13sdp" android:textColor="?android:textColorPrimary" android:fontFamily="@font/roboto_medium" android:ellipsize="middle" android:includeFontPadding="true" android:layout_marginTop="@dimen/_13sdp" app:layout_constraintBottom_toTopOf="@+id/tv_content" app:layout_constraintLeft_toRightOf="@+id/rl_support" app:layout_constraintRight_toLeftOf="@+id/iv_menu" app:layout_constraintTop_toTopOf="parent" /> <TextView android:id="@+id/tv_content" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginStart="@dimen/_10sdp" android:layout_marginEnd="@dimen/_10sdp" android:singleLine="true" android:fontFamily="@font/roboto_regular" android:text="@string/app_name" android:textSize="@dimen/_10sdp" android:includeFontPadding="true" android:layout_marginBottom="@dimen/_13sdp" android:textColor="?android:textColorHint" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toRightOf="@+id/rl_support" app:layout_constraintTop_toBottomOf="@+id/tv_title" app:layout_constraintRight_toLeftOf="@+id/iv_menu"/> <ImageView android:id="@+id/iv_menu" android:layout_width="@dimen/_20sdp" android:layout_height="@dimen/_20sdp" android:src="@drawable/ic_arrow_right" android:layout_marginTop="@dimen/_8sdp" android:layout_marginBottom="@dimen/_8sdp" android:background="?actionBarItemBackground" android:contentDescription="@string/list_sort" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toBottomOf="parent"/> </androidx.constraintlayout.widget.ConstraintLayout> </androidx.appcompat.widget.LinearLayoutCompat> final float totalSpace = Utils.getInternalStorageSpace(); final float occupiedSpace = Utils.getInternalUsedSpace(); CircularProgressIndicator indicator = binding.pbProgress; indicator.setMax((int) totalSpace); indicator.setProgress((int)occupiedSpace); String total = Utils.readableFileUseSize()+" free / "+Utils.readableFileTotalSize(); binding.tvContent.setText(total); ```
null
CC BY-SA 4.0
null
2022-12-02T15:42:01.653
2022-12-02T15:42:01.653
null
null
10,655,452
null
74,658,735
2
null
74,658,662
1
null
It just means that there is no `tnsnames.ora` file for SQL Developer to use, so you can't use TNS entries when defining connections. It won't stop you defining other connection types - 'Basic', 'Custom JDBC' etc. - you just won't be able to use 'TNS' as there won't be any options to pick from in the 'Network alias' drop-down; and if you're previously picked one and then removed the `tnsnames.ora` then it won't be recognised any more.
null
CC BY-SA 4.0
null
2022-12-02T16:23:56.630
2022-12-02T16:23:56.630
null
null
266,304
null
74,658,899
2
null
74,652,232
0
null
Yes, that sounds possible and is in fact quite close to what the example on [notifying users when something interesting happens does](https://firebase.google.com/docs/functions/use-cases#notify_users_when_something_interesting_happens). To send a message to a specific device, you 'll need to know the token for that device. If you want to broadcast a message to multiple users, you could subscribe those users to a topic. Just keep in mind that anyone can subscribe to a topic if they know its name, so you can't use that to send messages that only a certain group of users is allowed to see.
null
CC BY-SA 4.0
null
2022-12-02T16:40:38.060
2022-12-02T16:40:38.060
null
null
209,103
null
74,658,940
2
null
74,647,514
0
null
thanks for helping me out its done! ``` def treeview_click(self, event): iid = self.cuadro_blanco_facturas.focus() # id name = self.cuadro_blanco_facturas.item(iid)["values"][2] #column name espacio = " " file = os.startfile(f"facturas\\{iid}{espacio}{nombre}.pdf") ```
null
CC BY-SA 4.0
null
2022-12-02T16:44:53.293
2022-12-02T16:44:53.293
null
null
20,004,593
null
74,658,998
2
null
74,657,554
2
null
A little ugly, and certainly some risk involved, but using JSON may be an alternative ``` Select value From ( Select [key] ,Value = case when trim(Value) like '[0-9]%' then trim(Value) else null end +case when lead(trim(Value),1,'') over (order by [key]) like '[0-9]%' then '' else ', '+lead(trim(Value),1,'') over (order by [key]) end From OpenJSON( '["'+replace(string_escape('1. Archiviazione, 2. Conservazione in archivi, ad accesso selezionato, 3. Conservazione in contenitori muniti di serratura, 4. Controllo degli accessi fisici, 5. Controllo degli accessi logici, 6. Custodia atti e documenti, 7. Formazione degli incaricati, 8. Sicurezza dei siti web','json'),',','","')+'"]' ) ) A Where Value is not null Order By [key] ``` ``` 1. Archiviazione 2. Conservazione in archivi, ad accesso selezionato 3. Conservazione in contenitori muniti di serratura 4. Controllo degli accessi fisici 5. Controllo degli accessi logici 6. Custodia atti e documenti 7. Formazione degli incaricati 8. Sicurezza dei siti web ```
null
CC BY-SA 4.0
null
2022-12-02T16:49:27.457
2022-12-02T16:54:57.390
2022-12-02T16:54:57.390
1,570,000
1,570,000
null
74,659,113
2
null
74,602,715
0
null
This is going to be long but here it goes. The issue is the whole ViewModel setup. You detail view now is only using the product view model, you need to rethink your approach. But what makes the whole thing "complicated" is the 2 different types, Item and Product which you seem to want to combine into one list and use the same subviews for them both. In swift you have `protocol` that allows this, protocols require `struct` and `class` "conformance". ``` //Protocols are needed so you can use reuse views protocol ObjectModelProtocol: Hashable, Identifiable{ var id: UUID {get} var name: String {get set} init(name: String) } //Protocols are needed so you can use reuse views protocol ListModelProtocol: Hashable, Identifiable{ associatedtype O : ObjectModelProtocol var id: UUID {get} var name: String {get set} //Keep the individual items with the list var items: [O] {get set} init(name: String, items: [O]) } extension ListModelProtocol{ mutating func addItem(name: String) { items.append(O(name: name)) } } ``` Then your models start looking something like this. Notice the conformance to the protocols. ``` //Replaces the ListViewModel struct ListItemModel: ListModelProtocol{ let id: UUID var name: String var items: [ItemModel] init(name: String, items: [ItemModel]){ self.id = .init() self.name = name self.items = items } } //Replaces the ProductlistViewModel struct ListProductModel: ListModelProtocol{ let id: UUID var name: String var items: [ProductModel] init(name: String, items: [ProductModel]){ self.id = .init() self.name = name self.items = items } } //Uniform objects, can be specialized but start uniform struct ItemModel: ObjectModelProtocol { let id: UUID var name: String init(name: String){ self.id = .init() self.name = name } } //Uniform objects, can be specialized but start uniform struct ProductModel: ObjectModelProtocol { let id: UUID var name: String init(name: String){ self.id = .init() self.name = name } } class ModelStore: ObservableObject{ @Published var items: [ListItemModel] = [ListItemModel(name: "fruits", items: [.init(name: "peach"), .init(name: "banana"), .init(name: "apple")])] @Published var products: [ListProductModel] = [ListProductModel(name: "vegetable", items: [.init(name: "tomatoes"), .init(name: "paprika"), .init(name: "zucchini")])] } ``` Now your views can look something like this ``` struct ComboView: View { @StateObject private var store = ModelStore() @State var firstPlusButtonPressed: Bool = false @State var secondPlusButtonPressed: Bool = false var body: some View { NavigationView { List { //The next part will address this ItemLoop(list: $store.items) ItemLoop(list: $store.products) } .toolbar(content: { ToolbarItem { AddList(store: store) } }) } } } struct ItemLoop<LM: ListModelProtocol>: View { @Binding var list: [LM] var body: some View{ ForEach($list, id: \.id) { $item in NavigationLink { DetailView<LM>(itemList: $item) .navigationTitle(item.name) .toolbar { NavigationLink { AddItem<LM>( item: $item) } label: { Image(systemName: "plus") } } } label: { Text(item.name) } } } } struct AddList: View { @Environment(\.presentationMode) var presentationMode @ObservedObject var store: ModelStore var body: some View { Menu { Button("add item"){ store.items.append(ListItemModel(name: "new item", items: [])) } Button("add product"){ store.products.append(ListProductModel(name: "new product", items: [])) } } label: { Image(systemName: "plus") } } } struct AddItem<LM>: View where LM : ListModelProtocol { @State var textFieldText: String = "" @Environment(\.presentationMode) var presentationMode @Binding var item: LM var body: some View { VStack { TextField("Add an item...", text: $textFieldText) Button(action: { item.addItem(name: textFieldText) presentationMode.wrappedValue.dismiss() }, label: { Text("SAVE") }) } } } struct DetailView<LM>: View where LM : ListModelProtocol{ @Environment(\.editMode) var editMode @Binding var itemList: LM var body: some View { VStack{ TextField("name", text: $itemList.name) .textFieldStyle(.roundedBorder) List (itemList.items, id:\.id) { item in Text(item.name) } } .navigationTitle(itemList.name) .toolbar { NavigationLink { AddItem(item: $itemList) } label: { Image(systemName: "plus") } } } } ``` If you notice the `List` in the `ComboView` you will notice that the `items` and `products` are separated into 2 loop. That is because SwiftUI requires concrete types for most views, view modifiers and wrappers. You can have a list of `[any ListModelProtocol]` but at some point you will have to convert from an existential to a concrete type. In your case the `ForEach` in de `DetailView` requires a concrete type. ``` class ModelStore: ObservableObject{ @Published var both: [any ListModelProtocol] = [ ListProductModel(name: "vegetable", items: [.init(name: "tomatoes"), .init(name: "paprika"), .init(name: "zucchini")]), ListItemModel(name: "fruits", items: [.init(name: "peach"), .init(name: "banana"), .init(name: "apple")]) ] } struct ComboView: View { @StateObject private var store = ModelStore() @State var firstPlusButtonPressed: Bool = false @State var secondPlusButtonPressed: Bool = false var body: some View { NavigationView { List { ConcreteItemLoop(list: $store.both) } .toolbar(content: { ToolbarItem { AddList(store: store) } }) } } } struct ConcreteItemLoop: View { @Binding var list: [any ListModelProtocol] var body: some View{ ForEach($list, id: \.id) { $item in NavigationLink { if let concrete: Binding<ListItemModel> = getConcrete(existential: $item){ DetailView(itemList: concrete) } else if let concrete: Binding<ListProductModel> = getConcrete(existential: $item){ DetailView(itemList: concrete) }else{ Text("unknown type") } } label: { Text(item.name) } } } func getConcrete<T>(existential: Binding<any ListModelProtocol>) -> Binding<T>? where T : ListModelProtocol{ if existential.wrappedValue is T{ return Binding { existential.wrappedValue as! T } set: { newValue in existential.wrappedValue = newValue } }else{ return nil } } } struct AddList: View { @Environment(\.presentationMode) var presentationMode @ObservedObject var store: ModelStore var body: some View { Menu { Button("add item"){ store.both.append(ListItemModel(name: "new item", items: [])) } Button("add product"){ store.both.append(ListProductModel(name: "new product", items: [])) } } label: { Image(systemName: "plus") } } } ``` I know its long but this all compiles so you should be able to put it in a project and disect it. Also, at the end of all of this you can create specific views for the model type. ``` struct DetailView<LM>: View where LM : ListModelProtocol{ @Environment(\.editMode) var editMode @Binding var itemList: LM var body: some View { VStack{ TextField("name", text: $itemList.name) .textFieldStyle(.roundedBorder) List (itemList.items, id:\.id) { item in VStack{ switch item{ case let i as ItemModel: ItemModelView(item: i) case let p as ProductModel: Text("\(p.name) is product") default: Text("\(item.name) is unknown") } } } } .navigationTitle(itemList.name) .toolbar { NavigationLink { AddItem(item: $itemList) } label: { Image(systemName: "plus") } } } } struct ItemModelView: View{ let item: ItemModel var body: some View{ VStack{ Text("\(item.name) is item") Image(systemName: "person") } } } ```
null
CC BY-SA 4.0
null
2022-12-02T16:59:57.923
2022-12-02T17:23:20.630
2022-12-02T17:23:20.630
12,738,750
12,738,750
null
74,659,353
2
null
74,659,300
2
null
To do it the way you suggested (with one column for group 1 and one column for group 2), you could do: ``` library(dplyr) library(ggplot2) df %>% mutate(group1 = sample(c(-1, 1), n, TRUE), group2 = -group1) %>% ggplot(aes(x = x, y = y, color = factor(group1))) + geom_point() + scale_color_brewer('group', palette = 'Set1', labels = c('Group 1', 'Group 2')) + labs(title = "y = f(x)") ``` [](https://i.stack.imgur.com/tRndr.png) However, it seems a bit redundant to me having two mutually exclusive binary columns. You could just have a single column called `group` which is either group 1 or group 2: ``` df %>% mutate(group = sample(c('Group 1', 'Group 2'), n, TRUE)) %>% ggplot(aes(x = x, y = y, color = group)) + geom_point() + scale_color_brewer(palette = 'Set1') + labs(title = "y = f(x)" ``` [](https://i.stack.imgur.com/tRndr.png)
null
CC BY-SA 4.0
null
2022-12-02T17:22:59.720
2022-12-02T17:22:59.720
null
null
12,500,315
null
74,659,365
2
null
74,657,554
2
null
To the other answers, it is of course better to separate the data in a more appropriate fashion on input. When you are faced with existing data, `STRING_SPLIT` will not do what you are looking for so you will need to "parse the string manually". I would search back for SQL answers prior to the availability of `STRING_SPLIT` for good references on this type of logic, however some other features have come out since that makes this a little nicer. Because your format is based on incrementing numbers, you can take advantage of the following steps: a) Generate a "numbers" table/subquery and make a string for each number , eg. '1.' '2.' '3.', etc... b) Find the `PATINDEX` of each number as well as the `PATINDEX` of the "next" number via `LEAD` c) Use the two indices to create parameters for `SUBSTRING` and do some string cleanup See below for a sample query that will split the substrings. You could replace @theString with an iTVF parameter or however you need to apply this in your code. ``` DECLARE @theString VARCHAR(MAX) = '1. Archiviazione, 2. Conservazione in archivi**,** ad accesso selezionato, 3. Conservazione in contenitori muniti di serratura, 4. Controllo degli accessi fisici, 5. Controllo degli accessi logici, 6. Custodia atti e documenti, 7. Formazione degli incaricati, 8. Sicurezza dei siti web' --SET @theString = '1. Apples, 2. Oranges, 3. Peaches, 4. Pears, 5. Cheese, 6. Kiwis, 7. Toast' ;WITH CTE_Nums AS ( SELECT CONCAT(', ',CAST([NumValue] AS VARCHAR(10)),'. ') [NumString],[NumValue] FROM ( SELECT ones.n + tens.n * 10 + huns.n * 100 [NumValue] FROM (VALUES(0),(1),(2),(3),(4),(5),(6),(7),(8),(9)) ones(n), (VALUES(0),(1),(2),(3),(4),(5),(6),(7),(8),(9)) tens(n), (VALUES(0),(1),(2),(3),(4),(5),(6),(7),(8),(9)) huns(n) ) n1 ) SELECT N.NumValue, N.Pos1, f1.Pos1 pos1f, N.Pos2, f1.Pos2 pos2f, f1.Pos2 - N.Pos1 SubLen, SUBSTRING(@theString,f1.Pos1,(f1.Pos2 - f1.Pos1 ) ) SubStr FROM ( SELECT nn.NumValue, PATINDEX('%'+nn.[NumString]+'%',@theString) Pos1, PATINDEX('%'+ LEAD(nn.[NumString]) OVER ( ORDER BY nn.NumValue ASC ) + '%',@theString) Pos2 FROM CTE_Nums nn ) N CROSS APPLY (SELECT IIF(N.NumValue = 1,N.Pos1,N.Pos1+LEN(',-')) Pos1, IIF(N.Pos2 > 0,N.Pos2,LEN(@theString)) Pos2 ) f1 WHERE N.Pos1 > 0 OR N.NumValue = 1 ORDER BY N.NumValue ASC ``` I have left the other columns but the [SubStr] column is the one you want that returns: > 1. Archiviazione 2. Conservazione in archivi**,** ad accesso selezionato 3. Conservazione in contenitori muniti di serratura 4. Controllo degli accessi fisici 5. Controllo degli accessi logici 6. Custodia atti e documenti 7. Formazione degli incaricati 8. Sicurezza dei siti we
null
CC BY-SA 4.0
null
2022-12-02T17:24:28.360
2022-12-05T15:00:08.287
2022-12-05T15:00:08.287
20,187,370
20,187,370
null
74,659,418
2
null
28,770,687
0
null
I have made below custom logic and it is working perfectly fine for me ``` public static async Task Main(string[] args) { List<string> properties = new List<string>(); var acc = new CloudStorageAccount( new StorageCredentials("YOUR STORAGE ACCOUNT NAME", "YOUR STORAGE ACCOUNT CONNECTION STRING"), true); var tableClient = acc.CreateCloudTableClient(); CloudTable table = tableClient.GetTableReference("YOUR TABLE NAME"); IEnumerable<DynamicTableEntity> results = table.ExecuteQuery(new TableQuery()); foreach (var item in results) { if(item.Properties != null && item.Properties.Count > 0) { foreach(var property in item.Properties) { if(properties != null && properties.Count > 0) { string s1 = property.Key.ToString(); if(!properties.Contains(s1)) { properties.Add(s1); } } else { string s2 = property.Key.ToString(); properties.Add(s2); } } } } if(properties != null && properties.Count > 0) { foreach(var item in properties) { Console.WriteLine(item.ToString()); } } ``` partition key,row key and timestamp are common properties for all tables you can add by default while creating list
null
CC BY-SA 4.0
null
2022-12-02T17:29:05.303
2022-12-02T17:29:05.303
null
null
11,630,241
null
74,659,706
2
null
13,685,386
0
null
- for the time beeing `ax.set_aspect('equal')` araises an error (version `3.5.1` with Anaconda).- `ax.set_aspect('auto',adjustable='datalim')` did not give a convincing solution either.- a lean work-aorund with `ax.set_box_aspect((asx,asy,asz))` and `asx, asy, asz = np.ptp(X), np.ptp(Y), np.ptp(Z)` seems to be feasible (see my code snippet)- Let's hope that version `3.7` with the features @Scott mentioned will be successful soon.``` import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D #---- generate data nn = 100 X = np.random.randn(nn)*20 + 0 Y = np.random.randn(nn)*50 + 30 Z = np.random.randn(nn)*10 + -5 #---- check aspect ratio asx, asy, asz = np.ptp(X), np.ptp(Y), np.ptp(Z) fig = plt.figure(figsize=(15,15)) ax = fig.add_subplot(projection='3d') #---- set box aspect ratio ax.set_box_aspect((asx,asy,asz)) scat = ax.scatter(X, Y, Z, c=X+Y+Z, s=500, alpha=0.8) ax.set_xlabel('X-axis'); ax.set_ylabel('Y-axis'); ax.set_zlabel('Z-axis') plt.show() ``` [](https://i.stack.imgur.com/ePEYs.png)
null
CC BY-SA 4.0
null
2022-12-02T17:56:24.557
2022-12-02T17:56:24.557
null
null
7,227,627
null
74,659,778
2
null
74,618,952
0
null
The SALES_GROUP table is there to allow you to allocate the value of a sale proportionately to multiple sales people. So in your example the sales amount of 1000 would be allocated as 750/250 between the 2 sales people
null
CC BY-SA 4.0
null
2022-12-02T18:02:28.447
2022-12-02T18:02:28.447
null
null
13,658,399
null
74,659,937
2
null
74,659,864
0
null
You have 2 different query sentences. You should use `;` after first query and then write the update query. Also you need to use some field on the where clause, your where is empty.
null
CC BY-SA 4.0
null
2022-12-02T18:16:17.477
2022-12-02T18:16:17.477
null
null
16,404,907
null
74,660,513
2
null
16,840,054
0
null
This reference may not have been around when the original question was posted but it is a very official source with clear instructions. A11y is a learning process. [https://www.w3.org/WAI/ARIA/apg/example-index/carousel/carousel-1-prev-next](https://www.w3.org/WAI/ARIA/apg/example-index/carousel/carousel-1-prev-next)
null
CC BY-SA 4.0
null
2022-12-02T19:15:11.453
2022-12-02T19:15:11.453
null
null
6,298,239
null
74,661,299
2
null
74,616,569
0
null
Thank you for the comments, I solved my problem using the idea of firing sensors so I can get the point on the wall when the "bullet" hits it. [](https://i.stack.imgur.com/yRdPT.png) As we can see when the bullet hits the wall we can create a line that connects the point to the car. This is not the best solution, as it takes time for the bullet to hit the wall and in the meantime, the car is "blind". As Rabbid76 commented, using raycasting may be the solution I was looking for. Code for reference: Sensor Bullet class ``` class SensorBullet: def __init__(self, car, base_angle, vel, color): self.x = car.x + CAR_WIDTH/2 self.y = car.y + CAR_HEIGHT/2 self.angle = car.angle self.base_angle = base_angle self.vel = vel self.color = color self.img = pygame.Surface((4, 4)) self.fired = False self.hit = False self.last_poi = None def draw(self, win): pygame.draw.circle(win, self.color, (self.x, self.y), 2) def fire(self, car): self.angle = car.angle + self.base_angle self.x = car.x + CAR_WIDTH/2 self.y = car.y + CAR_HEIGHT/2 self.fired = True self.hit = False def move(self): if(self.fired): radians = math.radians(self.angle) vertical = math.cos(radians) * self.vel horizontal = math.sin(radians) * self.vel self.y -= vertical self.x -= horizontal def collide(self, x=0, y=0): bullet_mask = pygame.mask.from_surface(self.img) offset = (int(self.x - x), int(self.y - y)) poi = TRACK_BORDER_MASK.overlap(bullet_mask, offset) if poi: self.fired = False self.hit = True self.last_poi = poi return poi def draw_line(self, win, car): if self.hit: pygame.draw.line(win, self.color, (car.x + CAR_WIDTH/2, car.y + CAR_HEIGHT/2), (self.x, self.y), 1) pygame.display.update() def get_distance_from_poi(self, car): if self.last_poi is None: return -1 return math.sqrt((car.x - self.last_poi[0])**2 + (car.y - self.last_poi[1])**2) ``` Methods the car must perform to use the sensor ``` # Inside car's __init__ method self.sensors = [SensorBullet(self, 25, 12, (100, 0, 255)), SensorBullet(self, 10, 12, (200, 0, 255)), SensorBullet(self, 0, 12, (0, 255, 0)), SensorBullet(self, -10, 12, (0, 0, 255)), SensorBullet(self, -25, 12, (0, 0, 255))] # ------ # Cars methods def fireSensors(self): for bullet in self.sensors: bullet.fire(self) def sensorControl(self): #print(contains(self.sensors, lambda x: x.hit)) for bullet in self.sensors: if not bullet.fired: bullet.fire(self) for bullet in self.sensors: bullet.move() def get_distance_array(self): return [bullet.get_distance_from_poi(self) for bullet in self.sensors] ```
null
CC BY-SA 4.0
null
2022-12-02T20:49:47.767
2022-12-02T20:49:47.767
null
null
6,204,546
null
74,661,761
2
null
74,638,642
0
null
Your example doesn't work because of a few reasons: First of all, you have to set `series.colsize` and `series.rowsize` which are 1 by default. In `datetime` axis, you should set them to equal to your time period/unit on a particular axis. Example code based on your data: ``` series: [{ colsize: 36e5, // one hour rowsize: 50, data: [..] }] ``` Secondly, `colorAxis.stops` are defined incorrectly. As API says: Example code: ``` colorAxis: { stops: [ [0, '#3060cf'], // corresponds to the lowest value (-382.249) [0.5, '#ffffff'], [1, '#c4463a'] // corresponds to the highest value (0) ], /* min: - 300, max: -10 */ // You can set min and max in the scope of values }, ``` [http://jsfiddle.net/BlackLabel/veo4dybq/](http://jsfiddle.net/BlackLabel/veo4dybq/) You can read more about `colorAxis.stops` in the following article: [https://highcharts.freshdesk.com/support/solutions/articles/44002324217](https://highcharts.freshdesk.com/support/solutions/articles/44002324217) [https://api.highcharts.com/highcharts/colorAxis.stops](https://api.highcharts.com/highcharts/colorAxis.stops) [https://api.highcharts.com/highcharts/series.heatmap.colsize](https://api.highcharts.com/highcharts/series.heatmap.colsize) [https://api.highcharts.com/highcharts/series.heatmap.rowsize](https://api.highcharts.com/highcharts/series.heatmap.rowsize)
null
CC BY-SA 4.0
null
2022-12-02T21:40:08.923
2022-12-02T21:58:57.317
2022-12-02T21:58:57.317
10,601,917
10,601,917
null
74,662,035
2
null
74,646,112
0
null
Can you confirm that the user that you have configured in Jenkins for the Xray instance has access to Jira project where you have your Test Execution issue? Can you try to import it without specifying testExecKey field, with importToSameExecution: 'false', and specifying the projectKey field using something like projectKey: 'TSTLKS' ? If this last option returns an error (e.g. "project does not exist") then it's for sure a permission issue, so you'll either need to use a different Jira user/pass or fix the permissions on Jira side.
null
CC BY-SA 4.0
null
2022-12-02T22:12:50.700
2022-12-02T22:12:50.700
null
null
2,850,180
null
74,662,195
2
null
67,025,661
0
null
It might be late but hopefully, this will help someone. I came here to find a solution but found @Nikhil code which gave me an idea of how to do it (But failed to do it). So based on his answer I have improved the composable and fixed the issues. Have not heavily tested it yet but it acts the same as you want: ``` @Composable fun DecoratedTextField( value: String, length: Int, modifier: Modifier = Modifier, boxWidth: Dp = 38.dp, boxHeight: Dp = 38.dp, enabled: Boolean = true, keyboardOptions: KeyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Number), keyboardActions: KeyboardActions = KeyboardActions(), onValueChange: (String) -> Unit, ) { val spaceBetweenBoxes = 8.dp BasicTextField(modifier = modifier, value = value, singleLine = true, onValueChange = { if (it.length <= length) { onValueChange(it) } }, enabled = enabled, keyboardOptions = keyboardOptions, keyboardActions = keyboardActions, decorationBox = { Row( Modifier.size(width = (boxWidth + spaceBetweenBoxes) * length, height = boxHeight), horizontalArrangement = Arrangement.spacedBy(spaceBetweenBoxes), ) { repeat(length) { index -> Box( modifier = Modifier .size(boxWidth, boxHeight) .border( 1.dp, color = MaterialTheme.colors.primary, shape = RoundedCornerShape(4.dp) ), contentAlignment = Alignment.Center ) { Text( text = value.getOrNull(index)?.toString() ?: "", textAlign = TextAlign.Center, style = MaterialTheme.typography.h6 ) } } } }) } ``` Here is what it looks like: [](https://i.stack.imgur.com/8T62v.png) You can customize the size of the font + the border color to your liking. The only drawback is that you don't have a cursor and cannot edit each box separately. Will try to fix these issues and if I do, I will update my answer
null
CC BY-SA 4.0
null
2022-12-02T22:29:22.103
2022-12-02T22:35:14.827
2022-12-02T22:35:14.827
10,633,906
10,633,906
null
74,662,205
2
null
7,073,484
0
null
After reading through the other answers here I see there are great explanations as to why the CSS triangle works the way it does. I would consider it to be somewhat of a trick, versus something that you could apply generically. For something that's easier to read and maintain, I would recommend you define your geometry in SVG. Then you can convert that SVG using data uri by adding the `data:image/svg+xml,` prefix. As a data uri, it can now be used as a `background-image` in a CSS. Because the SVG is in clear text, you can readily make updates to the geometry, stroke, and fill color. ``` div.tri { width: 100px; height: 100px; display: inline-block; background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="red" d="M31.345 29H1.655L16.5 1.96z"/></svg>'); } ``` ``` <div> <div class="tri"></div> <div class="tri"></div> <div class="tri"></div> </div> ```
null
CC BY-SA 4.0
null
2022-12-02T22:31:23.480
2022-12-02T22:47:16.977
2022-12-02T22:47:16.977
881,441
881,441
null