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,339,799
2
null
74,339,694
0
null
Simply create another class for the other nav items and remove the :hover from the Apperance nav item
null
CC BY-SA 4.0
null
2022-11-06T21:14:11.040
2022-11-06T21:14:11.040
null
null
20,400,911
null
74,340,085
2
null
74,340,013
0
null
As a quick by-hand solution, you could use your x-values just as labels and equidistant ones for the plotting: ``` x = np.array([0, 15, 20, 25]) y = np.array([3500, 4239, 5239, 6239]) x_new = np.arange(len(x)) plt.bar(x_new, y, width = 0.5, edgecolor='black', color=['olive', 'seagreen', 'green', 'darkgreen'] ) plt.xticks(x_new, labels =x) plt.legend() plt.grid(color = 'slategrey', linestyle = '--', linewidth = 0.15) plt.show() ```
null
CC BY-SA 4.0
null
2022-11-06T21:56:16.943
2022-11-06T21:56:16.943
null
null
20,434,902
null
74,340,502
2
null
74,334,289
0
null
I think you want to replace the Chinese ellipsis with an alternative right? We can use `TextMetrics` to determine the `elidedText` and we can suppress or replace Chinese ellipsis before it is shown in the `Text` component: ``` import QtQuick import QtQuick.Controls Page { Frame { width: 200 Text { id: itemLabel width: parent.width property TextMetrics textMetrics: TextMetrics { text: "The quick brown fox jumped over the lazy dog" elideWidth: itemLabel.width elide: Text.ElideRight } text: textMetrics.elidedText.replace(/…$/,"...") } } } ``` You can [Try it Online!](https://stephenquan.github.io/qmlonline/?zcode=AAAByXicbU/LTsMwELz7K1ZRD0VCbsUxVwSnIlFUibMbL8m2Tuxut/SBIvE1fBhfQp1AqAVzmvWMZ2epDp4F5jLfUbFWlIz61jfC3m2VejQlwpuCM+7Z1D88Yk9WqhxuptPhaYEHuXBEkM2BBOuZWaJLlO//wTA2orsp0QP7gCzHLvUBhanYgvzyPBHSrRHRmkO2qBA28SpYst838OIPsNrVAS34V2SQs+7M6QjWl9mfEHRk8blvOpzxT9nB27fSd5E/UVlJYmuTqW94cZLuImyXwBicKXA8+Xz/GE2uM611dqXSoFa1X8C/gYw=)
null
CC BY-SA 4.0
null
2022-11-06T23:19:20.277
2022-11-07T04:02:29.377
2022-11-07T04:02:29.377
881,441
881,441
null
74,340,508
2
null
74,340,115
0
null
The issue comes from your method of reading the CSV files. You initially keep the subheaders as values, then craft a MultiIndex. This results in the dtype of your data being `object`. Directly read the headers as MultiIndex: ``` household_income_sample = pd.read_csv('household_income_sample.csv', index_col=0, header=[0, 1]) housing_prices_sample = pd.read_csv('housing_prices_sample.csv', index_col=0, header=[0, 1]) housing_prices.divide(household_income) ``` Output: ``` StateName AK AL AR Region other south south Year 1996 1.708353 2.219466 1.754600 1997 1.962881 2.130431 1.910632 ```
null
CC BY-SA 4.0
null
2022-11-06T23:20:28.980
2022-11-06T23:20:28.980
null
null
16,343,464
null
74,340,618
2
null
10,361,779
0
null
I stumbled into this problem recently as well and implemented a fairly nice approach using proximity sorting - which is not how Sortable does it, curiously enough. Article can be found [here](http://live.julik.nl/2022/10/drag-reorders). The basic premise is this: ``` const orderables = Array.from(parent.children).map((element, i) => { return {i, element, centroid: computeCentroid(element)}; }); ``` and then in the `drag` event handler: ``` const byDistance = orderables.map((orderable) => { return {distance: distanceBetweenCursorAndPoint(evt, orderable.centroid), ...orderable}; }).sort((a, b) => a.distance - b.distance); ``` The first element in `byDistance` is the one you are reordering relative to, and there is some more code to determine direction.
null
CC BY-SA 4.0
null
2022-11-06T23:42:02.640
2022-11-06T23:42:02.640
null
null
153,886
null
74,341,135
2
null
74,341,103
0
null
With your current structure, the best you can do is loop over the results you currently get, and access the `messages` subcollection for each of them. If you want to retrieve documents from the `messages` collection you'll have to ensure those documents contain the same `users` information that you have in the `conversations` document now. With that you can then do a collection group query on `messages` instead of `conversations`. --- To get a reference to the subcollection of the `conversations` results: ``` querySnapshot.forEach((doc) => { const messagesRef = collection(doc.ref, "messages"); }) ```
null
CC BY-SA 4.0
null
2022-11-07T01:38:57.967
2022-11-07T01:51:04.827
2022-11-07T01:51:04.827
209,103
209,103
null
74,341,912
2
null
74,266,555
1
null
This is because bootstrap label has property display: inline-block and text-truncate property work only for block.so either override inline-block property or replace label with div.
null
CC BY-SA 4.0
null
2022-11-07T04:14:50.517
2022-11-07T04:14:50.517
null
null
16,833,415
null
74,341,916
2
null
22,116,518
3
null
Just found a simple solution for this myself - functionality can be found in the `ggh4x` package under `facet_wrap2(~carb, axes = "all", remove_labels = "all")`. ``` library(ggplot2) library(ggh4x) ggplot(mtcars, aes(mpg, hp)) + geom_point() + facet_wrap2(~carb, axes = "all", remove_labels = "all") + # this can also just by "x" or "y" to remove axis labels theme(panel.grid = element_blank(), panel.background = element_rect(fill = "white", colour = "black"), panel.border = element_rect(fill = NA, colour = "white"), axis.line = element_line(), strip.background = element_blank(), panel.margin = unit(2, "lines")) ``` [](https://i.stack.imgur.com/xaJRx.png)
null
CC BY-SA 4.0
null
2022-11-07T04:15:38.590
2022-11-07T04:15:38.590
null
null
17,980,565
null
74,342,138
2
null
61,593,986
0
null
``` mkdir resources/js ``` should solve it then run ``` php artisan ui bootstrap ``` after ``` php artisan ui vue ``` or ``` php artisan ui react ```
null
CC BY-SA 4.0
null
2022-11-07T04:58:40.817
2022-11-09T06:26:43.180
2022-11-09T06:26:43.180
5,515,287
20,436,956
null
74,342,178
2
null
74,339,694
0
null
You can use this CSS trick ``` .active.nav-link:hover::after { width: 0; } ``` there should be no space between these two classes. It says that if an element has these two classes then what CSS should appear.
null
CC BY-SA 4.0
null
2022-11-07T05:06:15.663
2022-11-07T05:06:15.663
null
null
10,835,518
null
74,342,275
2
null
74,342,210
1
null
What you want to do is separate the words you want to search for with pipe ('|') characters and place them inside a set of parens. Here's how to do that with a list of valid street types: ``` import re street_types = ['Way', 'Ave', 'Rd', 'Blvd', 'St.', 'Pl.', 'Dr.', 'Cir.', 'Ln', 'Ct', 'Hwy', 'Pkwy', 'Plaza', 'Highway', 'Court', 'Lane', 'Circle', 'Boulevard', 'Street', 'Road', 'Avenue', 'Drive', 'Place', 'Temple', 'Parkway'] # Escape the '.' characters so that they match literally rather # than matching any character. street_types = [st.replace('.', r'\.') for st in street_types] str = "123 Random Boulevard" regex_partialaddress = fr"[0-9]{{1,4}} \w+ ({'|'.join(street_types)})" m = re.match(regex_partialaddress, str) if m: print(f"Street type: {m.group(1)}") ``` Result: ``` Street type: Boulevard ``` UPDATE: @tripleee pointed out that there are periods in the street types that should be matched literally. Leaving them as is will cause them to match any character in that position. I added a preprocessing step to the code to escape the periods so that the produce the right behavior in the regex.
null
CC BY-SA 4.0
null
2022-11-07T05:24:01.820
2022-11-07T06:59:42.050
2022-11-07T06:59:42.050
7,631,480
7,631,480
null
74,343,057
2
null
74,336,151
1
null
Have you tried setting the width and height to auto? CSS should automatically scale it up to its original size. ``` <div className='flex items-center gap-x-[4.375rem]'> <div className='flex gap-x-[4.375rem] gap-y-[1.875rem] max-w-[48.125rem] flex-wrap'> <CreateNumericItems /> </div> <video className='w-auto h-auto' autoPlay loop src="/video/page1Block2.mp4"></video> </div> ```
null
CC BY-SA 4.0
null
2022-11-07T07:11:54.780
2022-11-09T06:31:23.487
2022-11-09T06:31:23.487
5,515,287
20,317,839
null
74,343,447
2
null
74,343,151
2
null
You can use a `UDF` function and a `pivot`: ``` import numpy as np from pyspark.sql import SparkSession, functions as F, types as T @F.udf(T.DoubleType()) def cos_sim(a, b): return float(np.dot(a, b) / (np.linalg.norm(a) * np.linalg.norm(b))) # Columns representing the values of the vectors vector_columns = [c for c in df.columns if c.startswith('val')] df2 = ( df.alias('a') .crossJoin(df.alias('b')) .withColumn( 'cs', cos_sim( F.array(*[F.col(f'a.{c}') for c in vector_columns]), F.array(*[F.col(f'b.{c}') for c in vector_columns]), ) ) .groupby('a.id') .pivot('b.id') .sum('cs') ) ``` The result is: ``` +-----+------------------+------------------+------------------+------------------+ | id| user1| user2| user3| user4| +-----+------------------+------------------+------------------+------------------+ |user1|1.0000000000000002|0.9994487303346109|0.9975694083904585|0.9991881714548081| |user2|0.9994487303346109| 1.0|0.9947592087399117|0.9980077882931742| |user3|0.9975694083904585|0.9947592087399117| 1.0|0.9985781309458447| |user4|0.9991881714548081|0.9980077882931742|0.9985781309458447| 1.0| +-----+------------------+------------------+------------------+------------------+ ``` Clearly, you can use a plain pyspark implementation. It depends on the quantity of data you have to process. Usually UDFs are slower, but simpler and faster to play with, especially when you want to try some quick thing. Here a possible plain pyspark implementation: ``` from functools import reduce from operator import add def mynorm(*cols): return F.sqrt(reduce(add, [F.pow(c, 2) for c in cols])) def mydot(a_cols, b_cols): return reduce(add, [a * b for a, b in zip(a_cols, b_cols)]) def cos_sim_ps(a_cols, b_cols): return mydot(a_cols, b_cols) / (mynorm(*a_cols) * mynorm(*b_cols)) df3 = ( df.alias('a') .crossJoin(df.alias('b')) .withColumn( 'cs', cos_sim_ps( [F.col(f'a.{c}') for c in vector_columns], [F.col(f'b.{c}') for c in vector_columns], ) ) .groupby('a.id') .pivot('b.id') .sum('cs') ) ```
null
CC BY-SA 4.0
null
2022-11-07T07:54:10.257
2022-11-07T10:42:07.310
2022-11-07T10:42:07.310
5,359,797
5,359,797
null
74,343,500
2
null
74,342,788
0
null
Try something like this: ``` import pandas as pd df = pd.DataFrame({ 'age': [30,25,40,12,16,17,14,50,22,10], 'actual_result': [0,1,1,1,0,0,1,1,1,0] }) count = 0 lst_count = [] for i in range(len(df)): if df['actual_result'][i] == 1: count+=1 lst_count.append(count) else: lst_count.append('-') df['count'] = lst_count print(df) ``` ``` age actual_result count 0 30 0 - 1 25 1 1 2 40 1 2 3 12 1 3 4 16 0 - 5 17 0 - 6 14 1 4 7 50 1 5 8 22 1 6 9 10 0 - ```
null
CC BY-SA 4.0
null
2022-11-07T07:57:47.637
2022-11-07T07:57:47.637
null
null
13,379,052
null
74,344,028
2
null
74,341,575
0
null
You are containing everything within the same stack. Add the image itself in another Stack widget. Try this example: ``` return Scaffold( backgroundColor: Colors.white, body: Stack( alignment: AlignmentDirectional.bottomCenter, children: <Widget>[ Image.asset( "assets/home.jpg", ), Stack( children: [ PageView( controller: _controller, children: [ AddImageProfile1(), AddImageProfile2(), AddImageProfile3(), AddImageProfile4(), ], ), Column( children: [ SizedBox( height: 60, ), Padding( padding: const EdgeInsets.symmetric(horizontal: 25), child: Row( mainAxisAlignment: MainAxisAlignment.end, children: [ SvgPicture.asset('assets/Skip.svg'), // poppinsTextWidget('hi') ], ), ), SizedBox( height: 60, ), Row( mainAxisAlignment: MainAxisAlignment.center, children: [ poppinsTextWidget('Let' 's Talk About You!', fontSize: 20) ], ), ], ), Container( alignment: Alignment(0, 0.75), child: Row( children: [ SmoothPageIndicator(controller: _controller, count: 4), ], mainAxisAlignment: MainAxisAlignment.center, ), ), ], ), ], ), ); ```
null
CC BY-SA 4.0
null
2022-11-07T08:58:08.230
2022-11-07T10:57:27.850
2022-11-07T10:57:27.850
10,841,432
10,841,432
null
74,344,063
2
null
71,643,722
0
null
There is no any straight way, but you can use following formula: ``` var D2R = Math.PI / 180; var R2D = 180 / Math.PI; var Coord = function(lon, lat) { this.lon = lon; this.lat = lat; this.x = D2R * lon; this.y = D2R * lat; }; Coord.prototype.view = function() { return String(this.lon).slice(0, 4) + ',' + String(this.lat).slice(0, 4); }; Coord.prototype.antipode = function() { var anti_lat = -1 * this.lat; var anti_lon = (this.lon < 0) ? 180 + this.lon : (180 - this.lon) * -1; return new Coord(anti_lon, anti_lat); }; var LineString = function() { this.coords = []; this.length = 0; }; LineString.prototype.move_to = function(coord) { this.length++; this.coords.push(coord); }; var Arc = function(properties) { this.properties = properties || {}; this.geometries = []; }; Arc.prototype.json = function() { if (this.geometries.length <= 0) { return { 'geometry': { 'type': 'LineString', 'coordinates': null }, 'type': 'Feature', 'properties': this.properties }; } else if (this.geometries.length == 1) { return { 'geometry': { 'type': 'LineString', 'coordinates': this.geometries[0].coords }, 'type': 'Feature', 'properties': this.properties }; } else { var multiline = []; for (var i = 0; i < this.geometries.length; i++) { multiline.push(this.geometries[i].coords); } return { 'geometry': { 'type': 'MultiLineString', 'coordinates': multiline }, 'type': 'Feature', 'properties': this.properties }; } }; Arc.prototype.strip = function() { var s = H.geo.Strip ? new H.geo.Strip() : new H.geo.LineString(); for (var i = 0; i < this.geometries.length; i++) { if (this.geometries[i].coords.lenght !== 0) { var coords = this.geometries[i].coords; for (var j = 0; j < coords.length; j++) { var p = new H.geo.Point(coords[j][1], coords[j][0]); s.pushPoint(p); } } } return s; } ``` For detailed example, I have created a sample, please check - [https://demo.support.here.com/examples/v3.1/geodesic_polyline](https://demo.support.here.com/examples/v3.1/geodesic_polyline)
null
CC BY-SA 4.0
null
2022-11-07T09:00:46.050
2022-11-07T09:00:46.050
null
null
null
null
74,344,133
2
null
74,339,694
1
null
You can use `:not()` to prevent a specific class from being selected. ``` .nav-item .nav-link:not(.active):hover::after { left: 0; width: 100%; } ``` --- Here's an example of how to use `:not()` ``` .class { color: red; } .class:not(.bad_class) { color: green; font-weight: bold; } ``` ``` <p class="class bad_class">Hello</p> <p class="class bad_class">Hello</p> <p class="class">Hello</p> <p class="class bad_class">Hello</p> ```
null
CC BY-SA 4.0
null
2022-11-07T09:06:58.637
2022-11-07T09:06:58.637
null
null
16,909,741
null
74,344,360
2
null
74,343,579
0
null
``` 1. Add following tags in your scrollview android:fadeScrollbars="false" android:scrollbarStyle="insideInset" android:scrollbarThumbVertical="@drawable/scrollview_thumb" android:scrollbarTrackVertical="@drawable/vertical_scrollview_track" 2. Create following drawable in your drawable folder scrollview_thumb.xml <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <solid android:color="@color/common_google_signin_btn_text_light_focused" /> <corners android:radius="15dp" /> </shape> 3.vertical_scrollview_traack.xml <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <solid android:color="#E2E0EB" /> <stroke android:width="1dp" android:color="#b3a9a9" /> <size android:width="15dp" /> <corners android:radius="15dp" /> </shape> ```
null
CC BY-SA 4.0
null
2022-11-07T09:26:44.727
2022-11-07T09:26:44.727
null
null
13,387,235
null
74,344,447
2
null
74,343,151
1
null
There is another way to do it for large amount of data. We had a requirement to compute cosine similarity for large number of entities and we compared multiple solutions. The `UDF` based solution was very slow as lot of data has to be broadcasted for each pairwise computation. Following is another version of this implementation which scaled very well for us: ``` data_cols = [c for c in df.columns if c != "id"] df_cos_sim = df.withColumn("others", F.array(*data_cols)).drop(*data_cols) df_cos_sim = df_cos_sim.withColumnRenamed("others", "this").crossJoin(df_cos_sim) df_cos_sim = df_cos_sim.withColumn("dot_prod", F.lit(sum([F.col("this")[i] * F.col("others")[i] for i in range(len(data_cols))]))) df_cos_sim = df_cos_sim.withColumn("norm_1", F.lit(F.sqrt(sum([F.col("this")[i] * F.col("this")[i] for i in range(len(data_cols))])))) df_cos_sim = df_cos_sim.withColumn("norm_2", F.lit(F.sqrt(sum([F.col("others")[i] * F.col("others")[i] for i in range(len(data_cols))])))) df_cos_sim = df_cos_sim.withColumn("cosine_similarity", F.lit(F.col("dot_prod") / (F.col("norm_1") * F.col("norm_2")))) df_cos_sim = df_cos_sim.drop("this", "others", "dot_prod", "norm_1", "norm_2") ``` Output is pairwise cosine similarity: ``` +-----+-----+------------------+ | id| id| cosine_similarity| +-----+-----+------------------+ |user1|user1|1.0000000000000002| |user1|user2|0.9994487303346109| |user1|user3|0.9975694083904585| |user1|user4|0.9991881714548081| |user2|user1|0.9994487303346109| |user2|user2| 1.0| |user2|user3|0.9947592087399117| |user2|user4|0.9980077882931742| |user3|user1|0.9975694083904585| |user3|user2|0.9947592087399117| |user3|user3| 1.0| |user3|user4|0.9985781309458447| |user4|user1|0.9991881714548081| |user4|user2|0.9980077882931742| |user4|user3|0.9985781309458447| |user4|user4| 1.0| +-----+-----+------------------+ ```
null
CC BY-SA 4.0
null
2022-11-07T09:34:13.073
2022-11-07T09:34:13.073
null
null
2,847,330
null
74,344,572
2
null
74,343,565
0
null
add this line in l10n.yaml: ``` nullable-getter: false ```
null
CC BY-SA 4.0
null
2022-11-07T09:43:41.843
2022-11-07T09:43:41.843
null
null
20,407,048
null
74,344,752
2
null
70,448,183
-1
null
I just went to another direction and used other library. EDIT: When I wrote this post I was a beginner on Stackoverflow and in programming generally. I don't remember how I solved this inquiry unfortunately. How can I close this post?
null
CC BY-SA 4.0
null
2022-11-07T09:58:44.823
2022-11-09T10:26:06.310
2022-11-09T10:26:06.310
17,029,032
17,029,032
null
74,345,071
2
null
74,344,520
0
null
Two issues. First, your property names are not capital. It should match the same case sensitivity like this ``` <h5>{{stores.Product_Purchased}}</h5> ``` the error was caused because of the image values. since image data return an array you either need to loop it through `ngFor` or access it through index ``` <img src="http://localhost:3000/{{stores.Product_Image.data[0]}}" height="150px" alt=""> ```
null
CC BY-SA 4.0
null
2022-11-07T10:23:43.483
2022-11-07T10:23:43.483
null
null
6,428,638
null
74,345,115
2
null
26,566,911
0
null
I had the same issue and the simplest solution in case you have an horizontal collection having that issue is to make the collection height equal to the items height.
null
CC BY-SA 4.0
null
2022-11-07T10:27:01.133
2022-11-07T10:27:01.133
null
null
7,786,080
null
74,346,324
2
null
12,380,670
0
null
For those running , there is no `php.ini` file in the php directory by default. You need to: 1. create a php.ini file in your PHP directory (it should be under C:\php\, or wherever your php directory is located) 2. Copy the content of either php.ini-development or php.ini-production into the php.ini file you've created. 3. Finally remove the semicolon (;) before extension=curl
null
CC BY-SA 4.0
null
2022-11-07T12:06:48.870
2022-11-07T12:06:48.870
null
null
11,156,297
null
74,346,433
2
null
53,373,840
1
null
For folks struggling with this error using and already : Take a look if you are not trying to modify bucket policy when you have set `"blockPublicAccess: s3.BlockPublicAccess.BLOCK_ALL"` or any other blocking `s3.BlockPublicAccess` in Bucket properties. You have to turn it off or remove that property if you want to modify the policy. After deploying (modifying) policy you can set the `blockPublicAccess` property back again.
null
CC BY-SA 4.0
null
2022-11-07T12:16:08.820
2022-11-07T12:16:08.820
null
null
8,690,830
null
74,346,489
2
null
61,708,812
1
null
yes You can maintain index by other manual index but you need to keep the relation between the new index and the listview index to not have trouble when listview index is decrementing. here is my code: ``` ListView.builder( padding: EdgeInsets.only(bottom: 0, top: 10), physics: disableScroll ? NeverScrollableScrollPhysics() : ClampingScrollPhysics(), shrinkWrap: true, itemCount: getCountClassic(), itemBuilder: (context2, j) { int a = j + 2; if (j == 0) { a = 0; } if (j == 1) { a = 2; } int b = a + 1; log("j=$j , a= $a , b=$b"); return j % 2 == 0 || j == 1 ? Container( decoration: BoxDecoration( color: context.isDarkMode ? null : ColorConstants.white, ), padding: const EdgeInsets.symmetric( horizontal: 12.0, vertical: 6), child: Row( children: [ Expanded( child: ClassicItemGrid2( item: items[a], ), ), (b < items.length) ? Expanded( child: ClassicItemGrid2( item: items[(b)], )) : Expanded(child: SizedBox()), ], ), ) : SizedBox(); }); ```
null
CC BY-SA 4.0
null
2022-11-07T12:19:30.753
2022-11-07T12:19:30.753
null
null
18,950,326
null
74,346,701
2
null
74,344,705
0
null
This assignment is an assignment in the realm of `pandas`, not `plotly`. I'm sure there are other smarter ways, but I would find the number of columns excluding NA for each row, subtract the number of columns obtained from the maximum number of columns, and divide that by 2 to get a symmetrical form. Combine that into a new data frame. Finally, I transpose which data frame to use. ``` df_new = pd.DataFrame() for i,cols in enumerate(df.count(axis=1).tolist()): all_cols = len(df.columns) offset = int((all_cols - cols) / 2) df_new = pd.concat([df_new, df.iloc[i].shift(offset)], axis=1) import plotly.express as px import numpy as np fig = px.imshow(df_new.T) fig.update_layout(template=None, autosize=False, width=800) fig.update_xaxes(tickvals=np.arange(1,31)) fig.update_yaxes(tickvals=np.arange(1,20)) fig.show() ``` [](https://i.stack.imgur.com/rWFtL.png)
null
CC BY-SA 4.0
null
2022-11-07T12:35:45.457
2022-11-07T12:35:45.457
null
null
13,107,804
null
74,346,714
2
null
63,111,877
0
null
I was also facing this issue and I removed the "auth" from the keycloak.init at "app.init.ts" file and It's solved my issue: config: { url: 'http://localhost:8080', // 'http://localhost:8080/auth', realm: 'NybSys-Dev', clientId: 'angular-web-client' } [](https://i.stack.imgur.com/2wTFL.png)
null
CC BY-SA 4.0
null
2022-11-07T12:36:31.460
2022-11-07T12:42:58.350
2022-11-07T12:42:58.350
7,014,220
7,014,220
null
74,347,621
2
null
40,600,814
0
null
Both are correct, you can choose 0,1 for low level and high level and visa versa. Also, your middle diagram shows nonreturn to zero inverted (NRZI), in which the sender transitions from the current signal to encode a 1 and stays at the current signal to encode a 0. This solves the problem of consecutive 1s but obviously does nothing for consecutive 0s. For more information see : [Encoding](https://book.systemsapproach.org/direct/encoding.html)
null
CC BY-SA 4.0
null
2022-11-07T13:47:38.390
2022-11-07T13:47:38.390
null
null
5,252,023
null
74,347,689
2
null
72,027,053
0
null
Include this code in index.js in server: ``` app.use(express.json()); ```
null
CC BY-SA 4.0
null
2022-11-07T13:53:05.443
2022-11-07T13:53:05.443
null
null
14,982,115
null
74,347,879
2
null
74,332,878
0
null
I have found the solution works for me; I am the only one working in the repository, so it may not be appropriate for other situations. On the settings page, select "Branches". Select "Edit" in the Branch Protection Rule. Make sure that these two checkboxes are unchecked: 1. Require approvals When enabled, pull requests targeting a matching branch require a number of approvals and no changes requested before they can be merged. 2. Require approval from someone other than the last pusher Require review approval from someone other than the last pusher to the pull request branch.
null
CC BY-SA 4.0
null
2022-11-07T14:05:29.777
2022-11-07T14:05:29.777
null
null
19,978,043
null
74,348,463
2
null
74,348,171
1
null
Try this one for b ``` SELECT distinct Agents.City -- Distinct becuase you dont want more then one of the same city being returned FROM Agents JOIN Orders ON orders.aid = agents.aid WHERE orders.cid = 'c002' -- Checks the orders table for any cid equal to c002 ```
null
CC BY-SA 4.0
null
2022-11-07T14:48:47.677
2022-11-07T14:48:47.677
null
null
17,701,650
null
74,348,511
2
null
73,369,568
1
null
I'm not exactly using the same onvif package you are, and I'm not so sure myself how to achieve this, but this is what I've got so far: Both the package python-onvif, that you are using, and the [Valkka inspired implementation](https://elsampsa.github.io/valkka-examples/_build/html/onvif.html) I'm using, rely on a folder WSDL which contains pretty old versions of Onvif operations. It seems we both were using version 2.2 while the current version is 20.12. So what I did was to download the newer versions at their [repository](https://github.com/onvif/specs) and replace the contents of the WSDL folder with the content of the new WSDL folder. I also had to replace how the paths were built since now there is some folder hierarchy inplace to reach the WSDL files, but after that I was able to call `GetSupportedMetadata` successfully.
null
CC BY-SA 4.0
null
2022-11-07T14:51:42.560
2022-11-07T14:51:42.560
null
null
2,107,786
null
74,349,032
2
null
30,862,099
0
null
The problem with the currently accepted answer, recommending the use of the `ssl` module, is that it'll work only if the certificate of interest can be successfully verified. If, for any reason, verification fails, like, for example, with expired or a self-signed certificate, we'll get `ssl.SSLCertVerificationError` instead of the requested info. This is because the `SSLContext`'s default `verify_mode` is `CERT_REQUIRED`. We can change it: ``` context = ssl.create_default_context()
 context.check_hostname = False
 context.verify_mode = ssl.CERT_NONE ``` But then we'll find out that secure socket's `getpeercert()` method returns an empty dictionary. That's a bummer! We can workaround this by asking for the certificate in the binary form: ``` getpeercert(binary_form=True) ``` But now we have to convert it, and thus we need a third party `cryptography` module: ``` from cryptography.x509 import load_der_x509_certificate # create SSLContext and wrap the socket as ssock here certificate_content = ssock.getpeercert(binary_form=True)
 cert = load_der_x509_certificate(certificate_content) certificate_subject_info = cert.subject.rfc4514_string()
 ``` This example is adapted from Henry's answer with the DER loader being used instead of the PEM loader. Now, I do understand why anyone would prefer built-in modules instead of additional dependencies, but, since a third party module is needed anyway (by "anyway" I mean if we want to handle corner cases), I believe an easier choice for this task would be to use pyOpenSSL: ``` import socket from OpenSSL import SSL context = SSL.Context(SSL.TLS_CLIENT_METHOD)
 conn = SSL.Connection(context, socket.socket())
 conn.connect(address) print(conn.get_peer_certificate().get_subject())
 # or: print(conn.get_peer_certificate().get_subject().get_components()) # or: print(conn.get_peer_certificate().to_cryptography().subject.rfc4514_string()) ``` pyOpenSSL uses `cryptography` module under the hood and provides convenient methods to access certificate's properties.
null
CC BY-SA 4.0
null
2022-11-07T15:29:09.523
2022-11-07T15:50:19.340
2022-11-07T15:50:19.340
1,438,906
1,438,906
null
74,349,112
2
null
74,342,788
0
null
Actually, you don't need to loop over the dataframe, which is mostly a Pandas-antipattern that should be avoided. With `df` your dataframe you could try the following instead: ``` m = df["Actual Result"] == 1 df["Count"] = m.cumsum().where(m, "-") ``` Result for the following dataframe ``` df = pd.DataFrame({"Actual Result": [1, 1, 0, 1, 1, 1, 0, 0, 1, 0]}) ``` is ``` Actual Result Count 0 1 1 1 1 2 2 0 - 3 1 3 4 1 4 5 1 5 6 0 - 7 0 - 8 1 6 9 0 - ```
null
CC BY-SA 4.0
null
2022-11-07T15:34:40.850
2022-11-08T11:53:52.890
2022-11-08T11:53:52.890
14,311,263
14,311,263
null
74,349,486
2
null
74,325,433
0
null
The problem seems to be with Dropbox not implementing `NSExtensionFileProviderSupportsPickingFolders`. That's why it's greyed out in the `fileImporter` but also in the `UIDocumentPickerViewController`. More information: [https://stackoverflow.com/a/71379422/225833](https://stackoverflow.com/a/71379422/225833)
null
CC BY-SA 4.0
null
2022-11-07T16:03:16.360
2022-11-07T16:03:16.360
null
null
225,833
null
74,350,654
2
null
30,219,807
0
null
I have read that changing the way bundles are created in BundleConfig.cs could solve the issue. So I tried to replace : ``` bundles.Add(new ScriptBundle(“~/bundles/bootstrap”).Include(“~/Scripts/bootstrap.js”)); ``` by ``` bundles.Add(new Bundle(“~/bundles/bootstrap”).Include(“~/Scripts/bootstrap.js”)); ``` With this change, project runs without exception, webpage is displayed, but it looks rendered without css. Display does not look as it should.
null
CC BY-SA 4.0
null
2022-11-07T17:35:43.770
2022-11-13T08:44:28.187
2022-11-13T08:44:28.187
5,515,287
14,246,983
null
74,351,400
2
null
74,096,430
0
null
You can't have it ! If user forgot his password, you can send him a link to create a new one (with questions to check his identity).
null
CC BY-SA 4.0
null
2022-11-07T18:42:36.260
2022-11-07T18:42:36.260
null
null
17,385,299
null
74,351,401
2
null
74,339,068
0
null
I imagine there are some issues when creating the subnet resource outside of the vnet resource. I would advice creating the subnet inside the vnet resource. Here are few related issues regarding VNET/Subnet creation. - [Create VNET without destroying all subnets](https://github.com/Azure/azure-quickstart-templates/issues/2786)- [resource virtualNetworks with subnets wants to delete the existing subnet](https://github.com/Azure/bicep/issues/4653)
null
CC BY-SA 4.0
null
2022-11-07T18:42:38.550
2022-11-07T18:42:38.550
null
null
4,167,200
null
74,351,476
2
null
64,997,553
0
null
This is how the problem is solved for me: I ran this: ``` pip install --upgrade --force jupyter-console ``` Then I got an error for `botocore` conflict (You may get an error for another package). I installed `botocore`: ``` pip uninstall botocore ``` An then rerun the above code: ``` pip install --upgrade --force jupyter-console ``` If you received a conflict error for other packages, continue removing them and taking the same steps until there is no error. When jupyter-console successfully installs, you won't see the Kernel error again.
null
CC BY-SA 4.0
null
2022-11-07T18:50:00.923
2022-11-07T18:50:00.923
null
null
8,899,386
null
74,351,629
2
null
16,676,166
1
null
This is the same as @Madan Sapkota and for the exception of border-radius: 10px; in the scrollbar and track classes no inner div needed ``` ::-webkit-scrollbar { width: 10px; height: 10px; border-radius: 10px; } ::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; } ::-webkit-scrollbar-thumb { background: #888; border-radius: 5px; } ::-webkit-scrollbar-thumb:hover { background: #555; } ```
null
CC BY-SA 4.0
null
2022-11-07T19:02:34.300
2022-11-07T19:02:34.300
null
null
5,152,183
null
74,351,789
2
null
74,238,705
0
null
use two object, one for image in blob and other to URL, use URL.createObjectURL for get URL from image file: ``` <script setup> import { ref } from 'vue' const fotos = ref(null) const fotos = ref(null) const fotosURL = ref([]) const slide = ref(1) function obtenerURL () { if (fotos.value) { fotos.value.forEach(element => { fotosURL.value.push(URL.createObjectURL(element)) }) } } </script> <q-file v-model="fotos" label="Seleccione los archivos" filled multiple accept=".jpg, image/*" style="max-width: 400px" @update:model-value="obtenerURL" /> <q-carousel animated v-model="slide" arrows navigation infinite v-if="fotosURL.length>0" > <q-carousel-slide v-for="(img,id) in fotosURL" :key="id" :name="id+1" :img-src="img" /> </q-carousel> ```
null
CC BY-SA 4.0
null
2022-11-07T19:16:14.693
2022-11-07T19:16:14.693
null
null
19,277,828
null
74,353,106
2
null
74,352,314
1
null
Your code could greatly be reduced to an array of regular expressions and mapping over them: ``` function main(workbook: ExcelScript.Workbook, inputString: string): Array<string> { const regex = [ /(?<![0-9])([0-9]{2,3})[- ]([0-9]{3})[- ]([0-9]{3})(?![0-9])/g, /[Nn][Zz][Dd]/g, /([aA-zZ]{1,3})-([0-9]{6})-([0-9]{3})(?![0-9])/g, /(?<![0-9])([0-9]{2})[- ]([0-9]{4})[- ]([0-9]{7})[- ]([0-9]{2,3})(?![0-9])/g, ]; // for each pattern we have return regex.map((re) => { // matches for this particular regex const match = inputString.match(re); // no match if (match === null) return "no match"; // first match return match[0]; }); } ```
null
CC BY-SA 4.0
null
2022-11-07T21:24:16.637
2022-11-07T21:24:16.637
null
null
18,244,921
null
74,353,467
2
null
74,351,406
0
null
The default [since January 20, 2022](https://blog.vuejs.org/posts/vue-3-as-the-new-default.html) is to [use Vue3](https://vuejs.org/guide/quick-start.html#creating-a-vue-application) (and you should), even if you still want to use Options API because [Vue2 will be end of life](https://vuejs.org/about/faq.html#what-s-the-difference-between-vue-2-and-vue-3) next year (and is just slower/with more cons). So make yourself a favor and start with this rather ``` npm init vue@latest ```
null
CC BY-SA 4.0
null
2022-11-07T22:08:17.453
2022-11-07T22:08:17.453
null
null
8,816,585
null
74,353,829
2
null
70,049,667
1
null
[EDIT] For future generations, for example process INIT is its own parent so calling kidCount on INIT triggers infinity loop. You have to add extra statement to if in KidCount e.g. (process_ID != Parent_process_ID)
null
CC BY-SA 4.0
null
2022-11-07T22:49:27.877
2022-11-13T10:40:39.210
2022-11-13T10:40:39.210
20,444,528
20,444,528
null
74,354,279
2
null
67,968,952
0
null
I had the same question and [this](https://stackoverflow.com/questions/66406003/clustering-geospatial-data-on-coordinates-and-non-spatial-feature) is the best link I could find online. It's a bit complex but I think creating the distance matrix by yourself, as suggested in the link, is the best option I'm aware of. Many ML algorithms create a distance matrix internally to find the neighbors. Here, you need to make your distance matrix based on lat/long using Harvesine, then create another distance matrix for the categorical feature, then concatenate the two matrices side by side and pass it as input to the model.
null
CC BY-SA 4.0
null
2022-11-07T23:53:01.153
2022-11-07T23:58:19.457
2022-11-07T23:58:19.457
3,665,906
3,665,906
null
74,354,439
2
null
10,348,228
0
null
Some of the CSS properties acts differently in both Chrome and Firefox.To fix this I used the below solution which worked for me. Add the CSS properties which acts differently in chrome and firefox inside class(same class name which use for chrome css prop as well) which should come under @supports (-moz-appearance:meterbar). The properties which we add within @supports (-moz-appearance:meterbar) will be taken only for Firefox browser. Example: ``` @supports (-moz-appearance:meterbar) { .yourclassname { margin-bottom: 10px; bottom: 2px; } } ```
null
CC BY-SA 4.0
null
2022-11-08T00:22:55.257
2022-11-08T00:31:34.950
2022-11-08T00:31:34.950
13,812,708
13,812,708
null
74,354,544
2
null
74,354,431
0
null
That's because you are trying ot listen for connections on a port that is already in use. `EADDRINUSE`. Before `mongoose.connect()` line, you are listening for connections on port `300` with `app.listen(port)`. Then after handling the promise success `.then()`, you are doing the same, also listening for connections on the same port `300` with `app.listen(port)`. ## Solution: Remove `app.listen(port)` line before `// for DB` comment.
null
CC BY-SA 4.0
null
2022-11-08T00:45:14.357
2022-11-08T00:45:14.357
null
null
12,320,320
null
74,354,632
2
null
70,491,774
0
null
## Problem My exact error was ``` console.error Error: Uncaught [Error: useNavigate() may be used only in the context of a <Router> component.] ``` and it happened only when running the following unit test code: ``` // Act const button: HTMLElement = render(<MyButton myChoice="myChoice" />).container; // Assert expect(button).toHaveTextContent("myChoice"); ``` ## Solution I solved the error by wrapping the rendered element with `<BrowserRouter>`: ``` // Act const button: HTMLElement = render( <BrowserRouter> <MPBenefitChoiceButton selectedChoice={selectedChoice} /> </BrowserRouter> ).container; // Assert expect(button).toHaveTextContent(buttonText); ```
null
CC BY-SA 4.0
null
2022-11-08T01:07:49.997
2022-11-08T01:07:49.997
null
null
5,587,356
null
74,354,972
2
null
51,073,309
0
null
add an argument `flags = cv2.CALIB_USE_LU` then it will much faster. such as: ``` cv2.calibrateCamera(points_3d, points_2d, img_calib_set[0].shape[::-1], None, None,flags = cv2.CALIB_USE_LU) ```
null
CC BY-SA 4.0
null
2022-11-08T02:08:30.143
2022-11-10T22:04:07.703
2022-11-10T22:04:07.703
14,271,145
20,445,358
null
74,355,013
2
null
74,353,591
1
null
> Ultimately, it seems that what I need to do is create a boost Graph implementation, but am lost at what resources I need to accomplish this step. The [algorithm documents](https://www.boost.org/doc/libs/1_80_0/libs/graph/doc/kruskal_min_spanning_tree.html) the concept requirements: [](https://i.stack.imgur.com/1807x.png) You can zoom in on the implications here: [VertexListGraph](https://www.boost.org/doc/libs/1_80_0/libs/graph/doc/VertexListGraph.html) and [EdgeListGraph](https://www.boost.org/doc/libs/1_80_0/libs/graph/doc/EdgeListGraph.html). > I found that I could possibly provide my own implementation for edge descriptors through an adjacency list as shown in Boost's example for a Kruskal MST, but got lost and confused at this step, and didn't know if that would be a sufficient approach. It would be fine to show your attempt as a question, because it would help us know where you are stuck. Right now there is really no code to "go at", so I'll happily await a newer, more concrete question.
null
CC BY-SA 4.0
null
2022-11-08T02:15:55.393
2022-11-08T02:15:55.393
null
null
85,371
null
74,355,370
2
null
74,353,347
1
null
In your file, you are missing the `POST` method ``` router.post('/', createPost); ``` In your file, it should be ``` app.use("/posts", postRouter) ```
null
CC BY-SA 4.0
null
2022-11-08T03:24:27.113
2022-11-08T03:24:27.113
null
null
11,566,161
null
74,355,609
2
null
74,343,650
0
null
Here are two possible missing steps in your setup. Please check that on your ACC account and project. 1. Go to account admin to enable the Power Automate App. https://learn.microsoft.com/en-us/connectors/autodeskforgedataexc/#how-to-get-credentials 2. Open your Revit model on your acc Project, select either view in the model, create an Exchange and save it to your Sentralfil folder. See https://youtu.be/VNzmxkMze48?t=45
null
CC BY-SA 4.0
null
2022-11-08T04:17:22.533
2022-11-13T19:22:13.923
2022-11-13T19:22:13.923
472,495
7,745,569
null
74,355,973
2
null
74,355,555
0
null
``` <?php echo nl2br($row['content']); ?> ``` Use nl2br to convert Input/textarea linebreaks to real html linebreaks (br).
null
CC BY-SA 4.0
null
2022-11-08T05:18:16.133
2022-11-08T05:18:16.133
null
null
2,443,767
null
74,356,225
2
null
74,355,264
1
null
You can use look behind `(?<=...)` pattern. ``` (?<==)[0-9]* // matches zero or more digits but only if they follow the '=' sign. ``` Example: ``` scala> "(?<==)[0-9]*".r.findAllIn("hdfs://aloha/data/8907yhb/folders/folder=2319/").toList List(2319) ```
null
CC BY-SA 4.0
null
2022-11-08T05:55:13.067
2022-11-08T05:55:13.067
null
null
1,439,771
null
74,356,270
2
null
74,356,129
0
null
To remove the `", "` part which is immediately followed by end of string, you can do: ``` str = str.replaceAll(", $", ""); ``` This handles the empty list (empty string) gracefully, as opposed to `lastIndexOf` / `substring` solutions which requires special treatment of such case. ``` String str = "kushalhs, mayurvm, narendrabz, "; str = str.replaceAll(", $", ""); System.out.println(str); // prints "kushalhs, mayurvm, narendrabz" ``` Since there has been some comments and suggested edits about the `", $"` part: The expression should match the trailing part that you want to remove - `"a,b,c,"``",$"`- `a, b, c``", $"`- `"a , b , c``" , $"`
null
CC BY-SA 4.0
null
2022-11-08T05:59:47.913
2022-11-08T05:59:47.913
null
null
11,863,448
null
74,356,362
2
null
74,356,058
0
null
Your question doesn't contain sufficient level of details so it cannot be answered comprehensively. 1. First of all check your ${x} JMeter Variable value using Debug Sampler and View Results Tree listener combination 2. Then check the request header using the aforementioned View Results Tree listener. The token should be exactly the same as the one returned in the previous request. Also it seems that your token comes in JSON-like structure, [JSON is not a regular language](https://cstheory.stackexchange.com/questions/3987/is-json-a-regular-language) so it would be a better idea considering using [JSON Extractor](https://jmeter.apache.org/usermanual/component_reference.html#JSON_Extractor) instead of Regular Expression Extractor
null
CC BY-SA 4.0
null
2022-11-08T06:10:57.577
2022-11-08T06:10:57.577
null
null
2,897,748
null
74,356,418
2
null
74,356,294
1
null
Add this after contentResponse line and check with console.log if is that what do you want.? ``` const convertdata = contentResponse.map((item) =>{ let obj={ Name:item.path, Country:item.mode } }) ```
null
CC BY-SA 4.0
null
2022-11-08T06:18:01.730
2022-11-08T06:18:01.730
null
null
16,697,937
null
74,356,459
2
null
74,356,294
0
null
Judging by what you get in the console, you already have what you need, just replace `customers` with your array (`response.data.tree`) and replace also `name` and `country` with `path` and `mode`. ``` {myArray.map(element => <tr> <td>{element.path}</td> <td>{element.mode}</td> </tr> )} ```
null
CC BY-SA 4.0
null
2022-11-08T06:24:15.710
2022-11-08T06:24:15.710
null
null
9,681,386
null
74,356,473
2
null
70,649,610
0
null
You can try this: ``` int DImensions3D[] = { 100,100 ,100 }; cv::Mat RTstruct3D(3,DImensions3D, CV_8U, Scalar(0)); ```
null
CC BY-SA 4.0
null
2022-11-08T06:26:25.197
2022-11-08T06:26:25.197
null
null
null
null
74,356,501
2
null
15,770,860
0
null
Answer to Adween [https://stackoverflow.com/a/35607342/20446686](https://stackoverflow.com/a/35607342/20446686) instead of adding type manually as in the script Type[] types = { typeof(MyType), typeof(AnotherType), }; we can dynamically add Types by ``` Areas\HelpPage\App_Start\HelpPageConfig.cs uncomment config.SetSampleForType("[0]=foo&[1]=bar", new MediaTypeHeaderValue("application/x-www-form-urlencoded"), typeof(IEnumerable<string>)); Type[] types = Assembly.GetExecutingAssembly().GetTypes(); foreach (Type t in types) { List<string> propExample = new List<string>(); foreach (var p in t.GetProperties()) { propExample.Add(p.Name + "=value"); } config.SetSampleForType(string.Join("&", propExample), new MediaTypeHeaderValue("application/x-www-form-urlencoded"), t); } ```
null
CC BY-SA 4.0
null
2022-11-08T06:28:51.630
2022-11-15T05:53:21.240
2022-11-15T05:53:21.240
20,446,686
20,446,686
null
74,356,559
2
null
72,361,026
1
null
You can monkeypatch the collections module near the start of your app before the module is imported elsewhere. ``` # Monkey patch collections import collections import collections.abc for type_name in collections.abc.__all__: setattr(collections, type_name, getattr(collections.abc, type_name)) ```
null
CC BY-SA 4.0
null
2022-11-08T06:36:14.403
2022-11-08T06:36:14.403
null
null
570,559
null
74,356,785
2
null
71,591,971
2
null
I had the same problem with fresh MacOS Ventura with Apple Silicon M1 Pro chip. Seems like brew installs to a different location than before on Apple Silicon? `/usr/bin/` folder had a Python executable and the version for it was 3.9.6. So I installed Python using `brew` but then I had to execute it via `python3` command so I ran `echo "alias python=/opt/homebrew/bin/python3" >> ~/.zshrc` and restarted my terminal. I was prompted with the desired version of Python when executing `python` command.
null
CC BY-SA 4.0
null
2022-11-08T07:02:22.323
2022-11-08T07:08:02.840
2022-11-08T07:08:02.840
12,794,085
12,794,085
null
74,357,056
2
null
74,356,066
0
null
The problem you are facing here is due to the `container` as its limiting your nav to a certain with. this can be resolved by moving your `container` element from the parent of nav to the child of nav, something like this. ``` <section class="header"> <!-- Navigation Bar --> <div class="row"> <div class="navbar2 col-md-12" data-interval="false"> <nav class="navbar navbar-expand-lg navbar-dark"> <div class="container"> <a class="navbar-brand" href="#">MAD</a> <button class="navbar-toggler" type="button" data-mdb-toggle="collapse" data-mdb-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation" > <i class="fas fa-bars"></i> </button> <div class="collapse navbar-collapse" id="navbarNav"> <ul class="navbar-nav"> <li class="nav-item"> <a class="nav-link active" aria-current="page" href="#">Home</a> </li> <li class="nav-item"> <a class="nav-link" href="#">About</a> </li> <li class="nav-item"> <a class="nav-link" href="#">Book a Service</a> </li> <li class=[![enter image description here](https://i.stack.imgur.com/MKM0z.png)](https://i.stack.imgur.com/MKM0z.png)"nav-item"> <a class="nav-link" href="#" >Shop</a > </li> </ul> </div> </div> </nav> </div> </div> </section> ``` or if you don't need to container you can either remove it or change the `container` class to `container-fluid` depending on your situation.
null
CC BY-SA 4.0
null
2022-11-08T07:28:20.787
2022-11-08T07:28:20.787
null
null
9,994,468
null
74,357,114
2
null
27,222,758
0
null
Here is my GridView ``` <asp:GridView ID="grdAccounts" class="table table-condensed" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None"> <AlternatingRowStyle BackColor="White" /> <Columns> <asp:BoundField DataField="CUST_NAME" HeaderText="Name" /> <asp:BoundField DataField="CUST_NUMBER" HeaderText="Account Number" /> <asp:BoundField DataField="BR_CODE" HeaderText="CIF Number" /> <asp:TemplateField HeaderText="Select" > <EditItemTemplate> <asp:CheckBox ID="CheckBox1" runat="server" ItemStyle-HorizontalAlign="Right" /> </EditItemTemplate> <ItemTemplate> <asp:CheckBox ID="CheckBox1" runat="server" onclick="SingleCheckboxCheck(this)" OnCheckedChanged="CheckBox1_CheckedChanged" /> </ItemTemplate> </asp:TemplateField> </Columns> <EditRowStyle BackColor="#7C6F57" /> <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" /> <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" /> <PagerStyle CssClass="pagination-ys" /> <RowStyle BackColor="#E3EAEB" HorizontalAlign="Center" /> <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" /> <SortedAscendingCellStyle BackColor="#F8FAFA" /> <SortedAscendingHeaderStyle BackColor="#246B61" /> <SortedDescendingCellStyle BackColor="#D4DFE1" /> <SortedDescendingHeaderStyle BackColor="#15524A" /> </asp:GridView> ``` c#(I assumed as the required value is in the 1 cell of the selected row.) ``` string accnbr = string.Empty; foreach (GridViewRow gvrow in grdAccounts.Rows) { CheckBox chk = (CheckBox)gvrow.FindControl("CheckBox1"); if (chk != null & chk.Checked) { cif += gvrow.Cells[1].Text + ','; } } ```
null
CC BY-SA 4.0
null
2022-11-08T07:34:26.777
2022-11-08T07:34:26.777
null
null
9,514,987
null
74,357,311
2
null
17,852,739
0
null
There is [this request](https://bugreports.qt.io/browse/QTBUG-22487) on the Qt bug tracker asking for such feature
null
CC BY-SA 4.0
null
2022-11-08T07:54:03.773
2022-11-08T07:54:03.773
null
null
19,424,365
null
74,357,362
2
null
74,357,014
2
null
You have `configuration.json` file in wrong location. From exception the file should exist in `C:\Users\samee\source\repos\ConsoleApp1\ConsoleApp1\bin\Debug\netcoreapp3.1` folder. You have several options here: 1. If file is included in solution then you can set in file properties Build action to Content and Copy to output directory to Copy always or Copy if newer. This option is preferred - see why in options below. 2. Move configuration.json file there manually - but if you change configuration to Release then you should also manually move the file there. 3. Pass full (absolute) file path to AddJsonFile() method - but if you use some repository like Git on every PC you'll have different absolute path.
null
CC BY-SA 4.0
null
2022-11-08T07:58:10.057
2022-11-08T09:55:47.247
2022-11-08T09:55:47.247
3,777,113
3,777,113
null
74,357,468
2
null
74,357,014
-1
null
First, .NET Core 3.1 [reaches End of Life in December 13, 2022](https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core). That's one month from now. The current Long-Term-Support version is .NET 6, supported until November 2024. The exception says that the file can't be found. You're using a relative path to load it. The path is relative to the executable's path, not the project path. When debugging, the executable is in `bin\Debug\net...`. To make .NET copy the file to the output folder automatically change its properties to `Content`. This ensures that the file is copied both to the output the publish folder. Make sure the `Copy to Output Directory` action is set to `Copy Always` or `Copy Newer`.
null
CC BY-SA 4.0
null
2022-11-08T08:06:58.950
2022-11-08T08:06:58.950
null
null
134,204
null
74,357,756
2
null
30,809,532
0
null
Great working thanks so much I use this ``` Application.Initialize; // Application.MainFormOnTaskbar := True;///* Application.CreateForm(TAT_musteriler, AT_dATA); Application.CreateForm(TForm2, Form2); Application.CreateForm(TForm1, Form1); Application.CreateForm(TForm3, Form3); Application.CreateForm(TForm4, Form4); ``` .... which form is showing (active) that show on windows task bar if * line active only 1 form showing on taskbar when i hide main form and show other form i cant see at windows task bar
null
CC BY-SA 4.0
null
2022-11-08T08:32:32.417
2022-11-19T04:45:05.700
2022-11-19T04:45:05.700
2,622,287
20,447,629
null
74,358,267
2
null
28,895,100
0
null
Now you can get the shop's address accessing 'shop' liquid object. Ex: Please refer the [shopify official cheat sheet](https://www.shopify.com/partners/shopify-cheat-sheet?shpxid=567e048b-6295-4870-E79E-1A754256B8E7) for more info. Check the shop object in there.
null
CC BY-SA 4.0
null
2022-11-08T09:18:38.407
2022-11-08T09:18:38.407
null
null
9,523,830
null
74,358,360
2
null
74,353,591
2
null
Do you want the graph of vertices and edges, or the graph of the dual, that is the tetrahedra would be BGL vertices and the faces between tetrahedra would be BGL edges? For both it is not that hard to write the specialization of the graph traits class and the some free functions to navigate. Get inspired by the code for the 2D version for the [graph_traits](https://github.com/CGAL/cgal/blob/master/TDS_2/include/CGAL/boost/graph/graph_traits_Triangulation_data_structure_2.h#L36)
null
CC BY-SA 4.0
null
2022-11-08T09:26:32.020
2022-11-08T09:26:32.020
null
null
1,895,240
null
74,358,967
2
null
62,621,424
1
null
You can achieve it by adding circle on the same location as of markers and using animation controller to increase or decrease the radius of circle. I am able to achieve animation but it started lagging (different issues). You can refer to my question [Ripple animation from circles on google map flutter lags the app](https://stackoverflow.com/questions/74358791/ripple-animation-from-circles-on-google-map-flutter-lags-the-app) to get the animations done.
null
CC BY-SA 4.0
null
2022-11-08T10:09:46.380
2022-11-08T10:09:46.380
null
null
14,655,727
null
74,359,201
2
null
46,553,726
0
null
In the users_controller.rb, there is one update method defined where redirect_to @user. This is in fact which is redirecting to some URL. But this error says this @user is no URL matching against this. Solution: The best way to write routes is to run rails routes. From there copy the path for `user#index` and paste in the arguments of `redirect_to`. it may be like ``` redirect_to user_path ``` or ``` redirect_to users_path ``` or ``` redirect_to user_index_path ```
null
CC BY-SA 4.0
null
2022-11-08T10:28:30.930
2022-11-08T10:33:59.993
2022-11-08T10:33:59.993
4,826,457
20,145,213
null
74,359,528
2
null
45,158,803
0
null
For react native below solution works apply this fix to your top level build.gradle file as follows: ``` // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { // ... } allprojects { repositories { + exclusiveContent { + // We get React Native's Android binaries exclusively through npm, + // from a local Maven repo inside node_modules/react-native/. + // (The use of exclusiveContent prevents looking elsewhere like Maven Central + // and potentially getting a wrong version.) + filter { + includeGroup "com.facebook.react" + } + forRepository { + maven { + // NOTE: if you are in a monorepo, you may have "$rootDir/../../../node_modules/react-native/android" + url "$rootDir/../node_modules/react-native/android" + } + } + } // ... } } ```
null
CC BY-SA 4.0
null
2022-11-08T10:54:41.167
2022-11-08T10:54:41.167
null
null
996,787
null
74,359,678
2
null
72,829,561
1
null
In Laravel 9 this command works too. ``` vite build --watch ``` [https://vitejs.dev/guide/build.html#rebuild-on-files-changes](https://vitejs.dev/guide/build.html#rebuild-on-files-changes)
null
CC BY-SA 4.0
null
2022-11-08T11:06:21.323
2022-11-08T11:08:00.087
2022-11-08T11:08:00.087
20,395,538
20,395,538
null
74,360,613
2
null
21,865,020
0
null
Looks like Inline Editing is now FrontEnd Editing in Joomla 4. Hopefully it stays put for a while. Still located in /administrator/ -> Global Configuration -> Site tab. Just renamed. [](https://i.stack.imgur.com/Snb98.png)
null
CC BY-SA 4.0
null
2022-11-08T12:17:31.453
2022-11-08T12:17:31.453
null
null
5,540,540
null
74,361,404
2
null
21,872,915
1
null
The important thing to note is that on hover, google charts will create 2 of the same text nodes. The css of one of which is set to "display: none", and the other is displayed with a lighter background. This gives an illusion that the background colour of the rectangle has dimmed ``` export const drawCurrentTime = ( label: string ) => { if (ref.current != null) { const nodes = Array.from(document.getElementsByTagName("text")).filter( (node) => node.textContent === label ); // To observe the duplication of the nodes... console.log(nodes.map((node) => node.outerHTML)); // For each rectangle rendered, expand the height of both of those for (const node of nodes) { const rect = node.previousElementSibling as SVGElement; rect.style.height = "100%"; } } }; ``` Then, for the data row, make the second row contain the current time, with a label ``` const currentTime = new Date(); const currentTimeLabel = "Now"; rows.splice(1, 0, ["\0", currentTimeLabel, currentTime, currentTime]); // Lastly, feed the rows to the corresponding google chart renderer method ```
null
CC BY-SA 4.0
null
2022-11-08T13:18:42.423
2022-11-08T13:22:20.040
2022-11-08T13:22:20.040
6,514,532
6,514,532
null
74,361,520
2
null
74,361,421
0
null
Not sure I understand your issue, but I already see a bad thing in your code, so try to resolve it and see if the issue persists. You don't need to create 3 subscriptions, a single one is enough. ``` <ng-container *ngIf="channels$ | async as channels"> <app-virtual-list *ngIf="channels?.length" [items]="channels" [itemHeightPx]="32" [maxContainerHeightPx]="190 - (channels?.length ? 29 : 0)" [trackByFn]="trackByFn" > <ng-template let-item>Some template</ng-template> </app-virtual-list> </ng-container> ```
null
CC BY-SA 4.0
null
2022-11-08T13:26:51.893
2022-11-08T13:26:51.893
null
null
20,059,754
null
74,361,804
2
null
65,577,539
0
null
So `NARY_MAX(<field/metric>,0)` has been working for me in the past to use fields / metrics that can potentially be `null` in a calculation. Suddenly it stopped working, no idea why. What seems to work, however, is `IFNULL(<field/metric>,0)`.
null
CC BY-SA 4.0
null
2022-11-08T13:47:48.993
2022-11-08T13:47:48.993
null
null
7,820,210
null
74,361,884
2
null
74,361,629
0
null
The default css for the animation is: ``` .progress-bar-striped { background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent); } ``` You can mess with that to change the animation itself. Or / and you can just change the background color: ``` .bg-indigo { background-color: black; } ``` In both cases you have to overwrite the exsisting css.
null
CC BY-SA 4.0
null
2022-11-08T13:52:52.877
2022-11-08T13:52:52.877
null
null
17,017,316
null
74,362,382
2
null
74,349,668
0
null
I created one Azure AD application named `WebApp` and granted like below: ![enter image description here](https://i.imgur.com/RnF0bHi.png) I generated via Postman with below parameters: ``` POST https://login.microsoftonline.com/<tenantID>/oauth2/v2.0/token client_id: appID grant_type: client_credentials client_secret: secret scope: https://management.azure.com/.default ``` ![enter image description here](https://i.imgur.com/J1pXMQI.png) Using above token, I too got like `202 Accepted` while running the as you like below: ``` POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/assessPatches?api-version=2022-08-01 ``` ![enter image description here](https://i.imgur.com/2prayAg.png) Currently, there is such `REST API` query that can fetch you all virtual machine's compliance status. To confirm that, you can check [this](https://stackoverflow.com/questions/68366457/retrieve-azure-update-management-status-using-rest-api). , you can make use of . I have below information on virtual machine's in my automation account: ![enter image description here](https://i.imgur.com/0O3m5xw.png) To get this from Kusto query, you need to follow below steps: ![enter image description here](https://i.imgur.com/Ef78xq8.png) When I ran the query with as subscription, I got the successfully like below: ![enter image description here](https://i.imgur.com/bkdGQBV.png) [Retrieve azure update management status using REST API by VenkateshDodda-MSFT](https://stackoverflow.com/questions/68366457/retrieve-azure-update-management-status-using-rest-api)
null
CC BY-SA 4.0
null
2022-11-08T14:27:26.117
2022-11-08T14:27:26.117
null
null
18,043,665
null
74,362,682
2
null
73,540,447
0
null
It's neither an `Intellij` nor `AceJump` issue. It's a shortcut for entering emojis... You can turn it off in terminal. Run this: ``` gsettings set org.freedesktop.ibus.panel.emoji hotkey "[]" ``` Take a look at this issue: [https://unix.stackexchange.com/questions/692237/ctrl-displays-e-character-and-captures-the-keyboard-shortcut](https://unix.stackexchange.com/questions/692237/ctrl-displays-e-character-and-captures-the-keyboard-shortcut)
null
CC BY-SA 4.0
null
2022-11-08T14:49:31.733
2022-11-08T14:49:31.733
null
null
8,734,046
null
74,362,801
2
null
69,350,874
1
null
The code described below is over on github in `main.py` here [simbo1905/CubieMoves](https://github.com/simbo1905/CubieMoves/tree/af1895945facaeca8af7ddd44db25c590782eecb). Note that link points to the first commit that has a working solve that is detailed below. My approach will be to get the user to hold the cube face close and centre until it is the correct size. This is what apps do to have you scan a credit card into your phone or a QR code: [](https://i.stack.imgur.com/5Ee0q.png) Then I put this mask over the image to pick out the majority of the stickers: [](https://i.stack.imgur.com/CyDN9.png) So I can draw circles on a video image to help the user align the mask properly. If you apply the mask over the sticker and concatenate all the images into one large "all sides" image you get: [](https://i.stack.imgur.com/ttWnA.png) Note the commit above does not have any user input logic it starts as input with some files such as 'U.png', 'L.png', 'R.png' etc that need to have been cropped to 768x768 centred on the cube face. This is to be able to focus on the image processing logic. Here is the logic to mask each of the six images and stack them into one large image to make that polka dot image above: ``` # Up, Left, Front, Right, Back, and Down https://pypi.org/project/kociemba/ face_labels = ['U', 'R', 'F', 'D', 'L', 'B'] masked_images = [] for face in face_labels: img_name = face + '.png' img_original = cv2.imread(img_name) img = cv2.resize(img_original, dim, interpolation=cv2.INTER_LINEAR) # Apply mask onto input image masked = cv2.bitwise_and(img, img, mask=mask_img) masked_images.append(masked) zero_one = np.hstack((masked_images[0], masked_images[1])) zero_one_two = np.hstack((zero_one, masked_images[2])) zero_one = None three_four = np.hstack((masked_images[3], masked_images[4])) three_four_five = np.hstack((three_four, masked_images[5])) sticker_stack = np.vstack((zero_one_two, three_four_five)) ``` We then know we need to segment that large sides image into 7 colours (the six sides plus the black mask). In the following image below, I have run `kmeans` for 7 clusters as per the OpenCV docs (see the main.py code at the link above). It has successfully found blue, yellow and green. Yet it has confused red and orange as one colour. It has also split up white to light grey and pink: [](https://i.stack.imgur.com/6CrwW.png) First I "count pixels" in each circle and label that position with the majority colour. We have a high certainty of correctly identifying one set of stickers when you count exactly 9 sticker of one colour. You can then mask out those regions of interest and subtract 1 from the total number of clusters left to find. In the first pass it had correctly picked out 9 yellow, 9 blue and 9 green stickers. For each group them I overwrite them with black pixes and subtract 1 from `k`. So I then run `kmeans` again to find 4 clusters (black, white, orange and red) which gave: [](https://i.stack.imgur.com/RQFTB.png) In that second run, it successfully segmented each of black, white, orange and red. Once again I count the pixels of each colour in each sticker spot and label the spot with the majority colour. As I then find that I have 9 of each sticker column we are solved. This leads me to the following classification: [](https://i.stack.imgur.com/1JTgu.png) We end up with the array `final_colors` logging as: ``` INFO:root:final_colours: [(0, 58, 241), (0, 185, 204), (150, 118, 38), (0, 58, 241), (0, 185, 204), (34, 2, 202), (143, 161, 198), (0, 163, 82), (34, 2, 202), (150, 118, 38), (150, 118, 38), (0, 58, 241), (150, 118, 38), (150, 118, 38), (0, 185, 204), (0, 58, 241), (34, 2, 202), (0, 185, 204), (150, 118, 38), (0, 58, 241), (0, 185, 204), (143, 161, 198), (0, 58, 241), (0, 185, 204), (150, 118, 38), (150, 118, 38), (0, 185, 204), (0, 58, 241), (0, 58, 241), (0, 163, 82), (150, 118, 38), (143, 161, 198), (143, 161, 198), (34, 2, 202), (34, 2, 202), (34, 2, 202), (143, 161, 198), (143, 161, 198), (34, 2, 202), (0, 163, 82), (0, 163, 82), (0, 163, 82), (143, 161, 198), (143, 161, 198), (0, 185, 204), (143, 161, 198), (34, 2, 202), (0, 163, 82), (0, 58, 241), (34, 2, 202), (0, 185, 204), (0, 163, 82), (0, 163, 82), (0, 163, 82)] ``` We know that the centres do not move and are at the following indexes in that array: ``` centres: dict[str, int] = {'U': 4 + (0 * 9), 'R': 4 + (1 * 9), 'F': 4 + (2 * 9), 'D': 4 + (3 * 9), 'L': 4 + (4 * 9), 'B': 4 + (5 * 9)} ``` So we can pick out from the long list what the colours are at the centres stickers with: ``` INFO:root:colors_to_labels: {(0, 185, 204): 'U', (150, 118, 38): 'R', (0, 58, 241): 'F', (143, 161, 198): 'D', (0, 163, 82): 'L', (34, 2, 202): 'B'} ``` Then we can loop over the 45 elements of `final_colours` and lookup their labels with: ``` encoding = "" for colour in final_colours: encoding = encoding + colors_to_labels[colour] ``` That gives our input to the solver library: ``` solve = kociemba.solve(encoding) ``` For my test images in the 'solve0' folder we get: ``` INFO:root:encoding: FURFUBDLBRRFRRUFBURFUDFURRUFFLRDDBBBDDBLLLDDUDBLFBULLL INFO:root:solve:D R2 L F' R' ```
null
CC BY-SA 4.0
null
2022-11-08T14:57:47.057
2022-11-13T20:46:27.933
2022-11-13T20:46:27.933
329,496
329,496
null
74,363,028
2
null
44,576,406
0
null
Pressing Ctrl+C interrupts the currently running command. Find out more here [https://initialcommit.com/blog/how-to-paste-in-git-bash#:~:text=Many%20new%20users%20try%20to,such%20as%20Ctrl%2BC%20](https://initialcommit.com/blog/how-to-paste-in-git-bash#:%7E:text=Many%20new%20users%20try%20to,such%20as%20Ctrl%2BC%20)).
null
CC BY-SA 4.0
null
2022-11-08T15:13:23.837
2022-11-08T15:13:23.837
null
null
5,197,593
null
74,363,113
2
null
74,362,830
0
null
A great thing to look at would be XLWings: [https://www.xlwings.org/](https://www.xlwings.org/) Although XLWings does not work with saving as ".csv" format, creating the Excel file is pretty simple here and then you can just save the Excel workbook as CSV in Excel. You can then open a workbook and sheet and assign different cells to specific dataframes, for example if an excel file exists: ``` import xlwings as xl wb = xl.Book(path) #open the workbook of the path sheet = xl.sheets['Sheet1'] #open specified sheet sheet.range('A1').options(index=True).value = df1 #specify which cell to start and assign dataframe sheet.range('F1').options(index=True).value = df2 wb.save(path) #save and close wb.close() ``` You can assign if you want to include the index within the `options` parameter. Edit: There has been examples where people have got XLWings to go to CSV if it has to be in CSV format : [https://stackoverflow.com/a/68824974/20356301](https://stackoverflow.com/a/68824974/20356301).
null
CC BY-SA 4.0
null
2022-11-08T15:19:28.907
2022-11-08T15:38:29.887
2022-11-08T15:38:29.887
4,591,884
4,591,884
null
74,363,633
2
null
7,950,030
0
null
Right, to sum up, if you want to "remove" popups, you can just use: ``` clickableIcons: false ``` for map options object. But if you want to have a popup, but without "View on Google Maps" label, you can use a hacky CSS trick: ``` google-map { .view-link { display: none !important; } } ``` That was my requirements, and it works! If you want to define which icons/pins (elements or labels, however you call it) should be visible, you can use this site to generate proper JSON with map settings: [https://mapstyle.withgoogle.com/](https://mapstyle.withgoogle.com/)
null
CC BY-SA 4.0
null
2022-11-08T15:53:57.630
2022-11-08T15:53:57.630
null
null
7,666,033
null
74,364,128
2
null
68,578,138
0
null
Here's a solution in ruby ``` def is_palindrome(string) string = removeNonAlphanumeric(string).gsub(" ","").downcase string == string.reverse ? true : false end def removeNonAlphanumeric(string) string.each_line do |ch| ascii = ch.ord if !(48 <= ascii && ascii <=57) && !(97 <= ascii && ascii <=122) string = string.gsub(ch, "") end end string end puts is_palindrome("Eye: eye eYe") ```
null
CC BY-SA 4.0
null
2022-11-08T16:33:23.353
2022-11-09T06:19:26.827
2022-11-09T06:19:26.827
12,900,473
12,900,473
null
74,364,517
2
null
3,829,841
0
null
I know this is question is old but this code worked well for me. It allowed for full control of text and background color. I used this code with a disabled select control whose value is set based on a value from another select. I didn't want to see the grayed background, especially when the value had not yet been set. CSS ``` <style> .whatever-control:disabled, .whatever-control[readonly] { background-color: white; opacity: 1; color: blue; font-weight: bold; } </style> ``` Form ``` <select id = "SelectState" name="SelectState" class="whatever-control" disabled="disabled"> <option value="AK">Alaska</option> <option value="AL">Alabama</option> <option value="AR">Arkansas</option> <option value="AZ">Arizona</option> <option value="CA">California</option> <option value="CO">Colorado</option> <option value="CT">Connecticut</option> <option value="DC">District of Columbia</option> <option value="DE">Delaware</option> <option value="FL" selected="selected">Florida</option> <option value="GA">Georgia</option> </select> ```
null
CC BY-SA 4.0
null
2022-11-08T17:01:34.100
2022-11-13T08:50:14.970
2022-11-13T08:50:14.970
5,515,287
3,093,106
null
74,365,173
2
null
71,689,201
0
null
`@tf.contrib.eager.defun` appears to do some sort of pre-compilation of its decorated function to improve performance and is a TF 1.x method. I couldn't find where it was moved in TF 2.0, so I got it to work by either downgrading TF or removing the decorator (the latter slows down execution speed).
null
CC BY-SA 4.0
null
2022-11-08T17:55:05.730
2022-11-08T17:55:05.730
null
null
7,828,984
null
74,365,270
2
null
74,363,002
0
null
This can be done by making a small change in vscode settings. Go to and search for . Under the section you'll find option. Its default value is zero. Change the value to add additional space above the first line of your file. [](https://i.stack.imgur.com/0fs07.png)
null
CC BY-SA 4.0
null
2022-11-08T18:03:11.483
2022-11-08T18:03:11.483
null
null
7,148,982
null
74,366,737
2
null
74,365,769
1
null
You can use: ``` (df['col'].str.extract('GROUP_FILENAME:(.*)|([^:]+):(.*)') .set_axis(['GROUP_FILENAME', 'var', 'val'], axis=1) .assign(GROUP_FILENAME=lambda d: d['GROUP_FILENAME'].bfill(), n=lambda d: d.groupby(['GROUP_FILENAME', 'var']).cumcount() ) .dropna(subset=['var']) .pivot(index=['GROUP_FILENAME', 'n'], columns='var', values='val') .droplevel(1).rename_axis(columns=None) .reset_index('GROUP_FILENAME') ) ``` Output: ``` GROUP_FILENAME GROUP_FIELD_NAME GROUP_FIELD_VALUE 0 000000018.pdf BKR_ID T80 1 000000018.pdf GROUP_OFFSET 0 2 000000018.pdf GROUP_LENGTH 0 3 000000018.pdf FIRM_ID KIZEM 4 000000019.pdf BKR_ID T80 5 000000019.pdf FI_ID P 6 000000019.pdf RUN_DTE 7 000000019.pdf FIRM_ID 20220208 8 000000019.pdf NaN KIZEM ``` Used input: ``` col 0 GROUP_FIELD_NAME:BKR_ID 1 GROUP_FIELD_VALUE:T80 2 GROUP_FIELD_NAME:GROUP_OFFSET 3 GROUP_FIELD_VALUE:0 4 GROUP_FIELD_NAME:GROUP_LENGTH 5 GROUP_FIELD_VALUE:0 6 GROUP_FIELD_NAME:FIRM_ID 7 GROUP_FIELD_VALUE:KIZEM 8 GROUP_FILENAME:000000018.pdf 9 GROUP_FIELD_NAME:BKR_ID 10 GROUP_FIELD_VALUE:T80 11 GROUP_FIELD_VALUE:P 12 GROUP_FIELD_NAME:FI_ID 13 GROUP_FIELD_VALUE: 14 GROUP_FIELD_NAME:RUN_DTE 15 GROUP_FIELD_VALUE:20220208 16 GROUP_FIELD_NAME:FIRM_ID 17 GROUP_FIELD_VALUE:KIZEM 18 GROUP_FILENAME:000000019.pdf ```
null
CC BY-SA 4.0
null
2022-11-08T20:22:50.557
2022-11-08T22:38:12.073
2022-11-08T22:38:12.073
16,343,464
16,343,464
null
74,367,001
2
null
74,366,748
1
null
Try the following to strip out the line breaks that must already exist: ``` select Replace(Concat(first_name, ' ', last_name),Char(13),'') ``` You might need to try `char(10)`, or even both eg `char(10) + char(13)`
null
CC BY-SA 4.0
null
2022-11-08T20:48:53.453
2022-11-08T20:48:53.453
null
null
15,332,650
null
74,367,825
2
null
74,367,542
1
null
We don't know your goal so "cannot produce," "having problems," "wrong" don't tell us what result you're aiming for / expecting. Maybe you wanted groups along the x axis, not just one group for each method? We might do that with the code below. `group = interaction(method, floor(log10(input_copies_ul)))` will make groups for each method for each power of ten along the x axis. ``` library(ggplot2); library(scales) ggplot(subset(LOD_nA_nzeros ,biosample=="preserved saliva"), aes(x=input_copies_ul, y=Cq, color=method,group=method)) + geom_boxplot(aes(group = interaction(method, floor(log10(input_copies_ul)))), position = position_dodge(preserve = "single"))+ geom_point(position=position_jitterdodge())+ scale_x_log10(breaks = trans_breaks("log10", function(x) 10^x), labels = trans_format("log10", math_format(10^.x))) + theme_minimal()+ theme(text=element_text(size = 20)) ``` [](https://i.stack.imgur.com/NwQGT.png)
null
CC BY-SA 4.0
null
2022-11-08T22:25:58.837
2022-11-08T22:25:58.837
null
null
6,851,825
null
74,368,150
2
null
74,368,054
3
null
use: ``` =INDEX(LAMBDA(c; IF(c>1; c; ))(IF(A2:A="";; VLOOKUP(ROW(A2:A); IF(B2:B<>""; {ROW(A2:A)\ B2:B}); 2)))) ``` [](https://i.stack.imgur.com/nIMr4.png) --- ## update: ``` =INDEX(LAMBDA(z, y, IF(y, z, ))(LAMBDA(x, IF(x>1,x,))(IF(A3:A="",,VLOOKUP(ROW(R3:R),IF(B3:B<>"",{ROW(R3:R),B3:B}),2))), ""<>IF(VLOOKUP(ROW(R3:R),IF(IF(INDIRECT("A2:A"&ROWS(A:A)-1)<>A3:A, row(A3:A), )<>"",{ROW(R3:R),IF(INDIRECT("A2:A"&ROWS(A:A)-1)<>A3:A, row(A3:A), )}),2)=IFNA(VLOOKUP(ROW(R3:R),IF((IF(INDIRECT("A2:A"&ROWS(A:A)-1)<>A3:A, row(A3:A), )<>"")*(B3:B>1),{ROW(R3:R),IF(INDIRECT("A2:A"&ROWS(A:A)-1)<>A3:A, row(A3:A), )}),2)), VLOOKUP(ROW(R3:R),IF(IF(INDIRECT("A2:A"&ROWS(A:A)-1)<>A3:A, row(A3:A), )<>"",{ROW(R3:R),IF(INDIRECT("A2:A"&ROWS(A:A)-1)<>A3:A, row(A3:A), )}),2), ))) ``` [](https://i.stack.imgur.com/qrP7v.png)
null
CC BY-SA 4.0
null
2022-11-08T23:04:14.833
2022-11-10T10:50:34.600
2022-11-10T10:50:34.600
5,632,629
5,632,629
null
74,368,168
2
null
19,460,386
0
null
For .net 6 you need to use the Duende.IdentityServer.EntityFramework.Entities ``` protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.Entity<IdentityUser>().ToTable("SecurityUsers"); modelBuilder.Entity<IdentityRole>().ToTable("SecurityRole"); modelBuilder.Entity<IdentityUserRole<string>>().ToTable("SecurityUserRole"); modelBuilder.Entity<IdentityUserClaim<string>>().ToTable("SecurityUserClaim"); modelBuilder.Entity<IdentityUserLogin<string>>().ToTable("SecurityUserLogin"); modelBuilder.Entity<IdentityRoleClaim<string>>().ToTable("SecurityRoleClaims"); modelBuilder.Entity<IdentityUserToken<string>>().ToTable("SecurityUserTokens"); modelBuilder.Entity<Duende.IdentityServer.EntityFramework.Entities.PersistedGrant>().ToTable("SecurityPersistedGrant"); modelBuilder.Entity<Duende.IdentityServer.EntityFramework.Entities.Key>().ToTable("SecurityKey"); modelBuilder.Entity<Duende.IdentityServer.EntityFramework.Entities.DeviceFlowCodes>().ToTable("SecurityDeviceCode"); } ```
null
CC BY-SA 4.0
null
2022-11-08T23:07:28.730
2022-11-08T23:07:28.730
null
null
2,544,235
null
74,368,481
2
null
74,367,857
1
null
Perhaps something like this? ``` library(ggpattern) ggplot(surf_box, aes(x = region, y = Chla, fill = region, pattern = Size)) + geom_boxplot_pattern(pattern_fill = "white", pattern_color = "white", pattern_angle = 45, pattern_size = 0, pattern_spacing = 0.015) + scale_pattern_fill_manual(values = region_colors) + scale_pattern_manual(values = patterns) + theme(panel.background = element_blank(), legend.position = 'top', axis.line.x = element_line(color="black", size = 1), axis.line.y = element_line(color="black", size = 1), plot.title = element_text(margin = margin(t = 0, r = 0, b = 0, l = 0), hjust = 0.5, size = 15, face = 'bold'), legend.key = element_blank(), legend.title = element_text(margin = margin(t = 0, r = 0, b = 0, l = 0), size = 10, face = "bold")) + labs(x=expression(bold(paste("Regions of the Gulf of Mexico"))), y=expression(bold(paste("Chl-",bolditalic ("a"), " biomass (µg L"^'-1',')'))), title = expression(bold(paste("Surface Chl-", bolditalic ("a"), ' Biomass')))) ``` [](https://i.stack.imgur.com/Le58i.png)
null
CC BY-SA 4.0
null
2022-11-08T23:53:30.187
2022-11-08T23:53:30.187
null
null
12,500,315
null
74,368,500
2
null
57,069,897
1
null
Best solution here : [https://support.google.com/looker-studio/thread/96504295?hl=en](https://support.google.com/looker-studio/thread/96504295?hl=en) I have found others with a similar issue [https://support.google.com/datastudio/thread/65220021?hl=en](https://support.google.com/datastudio/thread/65220021?hl=en) The workaround I guess is to maybe have dedicated column that represents date month in your source data. So 01-01-2021 for all Jan 2021, etc. As long as they are the same it should work I think. WORKAROUND You can use the following Formula and add a calculated field to your source table: DATE(YEAR(your_date_column),MONTH(your_date_column),1) Last edited Feb 3, 2021
null
CC BY-SA 4.0
null
2022-11-08T23:57:42.790
2022-11-08T23:57:42.790
null
null
20,454,544
null
74,369,297
2
null
73,261,715
0
null
I faced the same error.The problem was that I had installed the react-router-dom outside the folder in which my app is located. As such, the browser router was not being accessed. So, navigate to the folder in which your react app is located then reinstall the react router. This worked for me. Good Luck!
null
CC BY-SA 4.0
null
2022-11-09T02:30:00.593
2022-11-09T02:30:00.593
null
null
18,296,581
null
74,369,355
2
null
74,339,969
1
null
TLDR; this is a scripting problem, not a SQL problem. --- You don't group like that. `GROUP BY` is for using aggregate functions (`MAX`, `MIN`, `AVG`, [etc](https://dev.mysql.com/doc/refman/8.0/en/aggregate-functions.html)) to get things like the maximum or average value of the set of values that are associated with a field or group of fields. For instance: ``` SELECT field1, MIN(field_x), MIN(field_y) FROM table GROUP BY field1 ``` will get you the minimum values for field_x and field_y for each value of field1 that exists in the database. ``` SELECT field1, field2, MIN(field_x), MIN(field_y) FROM table GROUP BY field1, field2 ``` will get you the minimum values for field_x and field_y for each combination of field1 and field2 that exists in the database. It seems like this isn't what you are trying to do, though. You just want to display the data that you do have in a certain format, and that brings us to the php part of the answer. --- I'm not going to do a complete solution here, and I couldn't anyway because I don't know enough about your data, but I will go over one possible way to approach the display of a data set in php (btw, you should always include your versions when you ask your question, either in the tags or in the question). Let's say this is your data: ``` |=============================================| |Discipline | power | rank | |=============================================| |Dominate | Cloud Memory | 1 | |Dominate | Mesmerise | 2 | |Dominate | The Forgetful Mind | 3 | |Presence | Awe | 1 | |Presence | Daunt | 1 | |=============================================| ``` and you have it in an array already, which you generated something like this, iterating over the result set from mysqli (assuming you're using mysqli, which I also don't know) and pushing each row into the $data buffer array: ``` $data = []; $results = $db->query($query); while($row = $results->fetch_assoc()) { $data[] = $row(); } $results->close(); ``` What you will want to do is generate the HTML for your display dynamically from that, iterating over the buffer array and using a variable to compare the previous value of the grouping field (assuming Discipline) to the current value. When the value changes, you dump a new header: ``` echo "<div>"; $previous = ''; foreach($data as $d) { $current = $d['Discipline']; if($current !== $previous) { echo "<h1>{$current}</h1>"; } $previous = $current; echo "<div>{$d['power']}</div><div>{$d['rank']}</div>"; } echo "</div>"; ``` First, this sample code starts and ends by `echo`ing the opening and closing of the outer `<div>` element. I haven't worried about styling and layout, and this is going to generate the simplest possible html. Initialize the `$previous` variable. Inside each loop, you'll get the current discipline and compare it to the previous value, and if they don't match, you `echo` out a new header element containing the new discipline. After that, set `$previous` equal to `$current` in anticipation of the next loop. Finally (and no matter what the outcome of the comparison is), you `echo` the power and rank. And that is just about it. Your use case may be a little more complex, but this is the basic idea. Let me know if this addressed your problem and was helpful, or if you have any questions. --- For future reference (and I mentioned this in my comments), you need to include a little more information when asking questions, especially SQL questions, to make it easier for people to help you. You'll get more answers and better quality if you do. Here are a couple of links: [Why should I provide a Minimal Reproducible Example for a very simple SQL query?](https://meta.stackoverflow.com/questions/333952/why-should-i-provide-a-minimal-reproducible-example-for-a-very-simple-sql-query) [https://dba.stackexchange.com/help/minimal-reproducible-example](https://dba.stackexchange.com/help/minimal-reproducible-example) In addition, you should include your SQL engine and version, as well as the version of any other languages that you're using, in this case the PHP version. Since I don't have that information, or even sample data, this answer is very generalized, and I kept it as simple as I could.
null
CC BY-SA 4.0
null
2022-11-09T02:37:48.233
2022-11-09T02:37:48.233
null
null
509,940
null
74,369,726
2
null
31,165,558
0
null
It's caused by the way you name the columnname. Try to get rid of '/' in the columnname. I had experienced the same issue when I put the dots in the columnname.
null
CC BY-SA 4.0
null
2022-11-09T03:50:22.190
2022-11-09T03:50:22.190
null
null
5,218,197
null