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,866,652
2
null
74,863,788
0
null
I did a quick check with user input and to me it seems like it's working fine ... isn't that the behavior you want? [](https://i.stack.imgur.com/JChKw.gif) ``` TextField("Input", text: $input) Text(input) .frame(width: 300, alignment: .leading) .border(.red) Text(input) .frame(width: 150, alignment: .leading) .border(.red) ```
null
CC BY-SA 4.0
null
2022-12-20T17:21:12.627
2022-12-20T17:40:42.560
2022-12-20T17:40:42.560
17,896,776
17,896,776
null
74,866,705
2
null
71,735,757
1
null
The real hint is the project number 522309567947, which is probably the project number for the project Collab is hosted in. This means that it's not an authentication issue but a client project id or quota project id configuration issue. Setting your quota project would probably resolve the issue: ``` !gcloud auth application-default set-quota-project your-project-id ``` The solution for me was to explicitly set the quota project id when creating the client: ``` from google.cloud import bigquery_datatransfer from google.cloud import bigquery_datatransfer_v1 from google.api_core.client_options import ClientOptions options = ClientOptions(quota_project_id="your-project-id") transfer_client = bigquery_datatransfer.DataTransferServiceClient(client_options=options) parent = transfer_client.common_location_path(project=project, location="europe") configs = transfer_client.list_transfer_configs(parent=parent) print("Got the following configs:") for config in configs: print(f"\tID: {config.name}, Schedule: {config.schedule}") ```
null
CC BY-SA 4.0
null
2022-12-20T17:25:06.833
2022-12-20T17:30:31.830
2022-12-20T17:30:31.830
2,481,652
2,481,652
null
74,866,922
2
null
74,866,659
0
null
Assuming I got your intentions right and you try to do something with calculations. I would suggest this approach. Save the symbols you need in order to convert them in the array later, use `map` over your array, map returns a new array, going over each element and if `signs` has a key that it finds in the array it replaces it with the value corresponding to this key which is the symbol itself. ``` const signs = { 'plus': '+', 'minus': '-', 'multiply': '*', 'divide': '/' }; const arr = ['3', 'plus', '3']; const convertedArr = arr.map((elem) => { if (signs[elem]) { return signs[elem]; } return elem; }); ``` [JSFiddle](https://jsfiddle.net/0vu1a3jk/)
null
CC BY-SA 4.0
null
2022-12-20T17:43:44.147
2022-12-20T17:43:44.147
null
null
8,009,638
null
74,867,117
2
null
74,862,862
0
null
You can create the required elements in HTML and update their content after the chart is created. For example: ``` const chart = Highcharts.chart('container', {...}); const yAxis = chart.yAxis[0]; document.getElementById('chart-data-min').innerHTML = yAxis.dataMin; document.getElementById('chart-data-max').innerHTML = yAxis.dataMax; ``` --- [http://jsfiddle.net/BlackLabel/2d9mphby/](http://jsfiddle.net/BlackLabel/2d9mphby/) [https://api.highcharts.com/class-reference/Highcharts.Chart](https://api.highcharts.com/class-reference/Highcharts.Chart)
null
CC BY-SA 4.0
null
2022-12-20T18:00:06.773
2022-12-20T18:00:06.773
null
null
8,951,377
null
74,867,291
2
null
74,837,504
1
null
The answer is: ``` <%= column_chart @completed_tasks.group_by_day(:completed_time, last:7).count%> ``` Thanks to @anothermh
null
CC BY-SA 4.0
null
2022-12-20T18:15:56.567
2022-12-20T18:15:56.567
null
null
19,222,518
null
74,867,415
2
null
17,132,342
0
null
Just use overlap. It can be can be calculated like difference between sum of radiuses of 2 particles and distance between them. Code below written in javascript. And it works pretty good in my simulation: ``` let overlap = particle1.r + particle2.r - distance(particle1, particle2); particle1.x += 0.5*overlap; particle2.x -= 0.5*overlap; ```
null
CC BY-SA 4.0
null
2022-12-20T18:27:39.447
2022-12-20T18:27:39.447
null
null
20,825,751
null
74,867,853
2
null
74,849,429
0
null
It is difficult to understand what exactly you're trying to achieve. In this example, a button named RefreshButton was added to the Form. This shows your GetOrders method getting called from the ButtonClick event. ``` Private Sub GetOrders() 'your GetOrders code... End Sub Private Sub RefreshButton_Click(sender As Object, e As EventArgs) Handles RefreshButton.Click Try GetOrders() ' this will call your GetOrders method Catch ex As Exception MessageBox.Show(String.Concat("An error occurred: ", ex.Message)) End Try End Sub ```
null
CC BY-SA 4.0
null
2022-12-20T19:13:30.707
2022-12-20T19:13:30.707
null
null
1,358,543
null
74,867,859
2
null
74,838,070
0
null
I got it working! With help from 'Deleted'? Is that the handle or is that person gone? In the Kart Microgame I just needed to add the Unity.Postprocessing.Runtime ASMDEF to the KartGame ASMDEF. Now my Kart scripts can see the Post Processing classes! Thanks for the help!
null
CC BY-SA 4.0
null
2022-12-20T19:14:10.400
2022-12-20T19:14:10.400
null
null
6,467,333
null
74,868,102
2
null
14,675,913
-2
null
You can set size at the end of the image like this: ``` ![image.png](source **=600x400**) ```
null
CC BY-SA 4.0
null
2022-12-20T19:38:06.467
2022-12-25T16:22:30.750
2022-12-25T16:22:30.750
4,865,723
3,342,209
null
74,868,108
2
null
74,867,639
0
null
Try using `display: flex;` for the button and try to resize the images with pixels like `width: 20px;` and `height: auto;` or verse versa, it should fix it.
null
CC BY-SA 4.0
null
2022-12-20T19:38:33.883
2022-12-20T19:43:45.407
2022-12-20T19:43:45.407
18,994,140
18,994,140
null
74,868,220
2
null
74,828,473
0
null
Add the JSON Encoder to the Encoder part of the Send Pipeline and JSON Decoder to Decode Sescion of the Receive Pipe. You probably want the JSON Encoder after the ESB components in the send, and the JSON Decoder before the ESB component in the receive.
null
CC BY-SA 4.0
null
2022-12-20T19:49:48.183
2022-12-20T19:49:48.183
null
null
2,571,021
null
74,868,749
2
null
74,868,458
0
null
It would help to see your response, but I think the problem is that you're checking one product and updating all rows. You need to identify which row to update, and if your user puts the same product name in two different rows, your system will be confused, so start by changing your function call to onChange="showAmount(this)", so you're passing a DOM element rather than text. ``` function ShowAmount(productInput) { const xmlhttp = new XMLHttpRequest(); xmlhttp.onload = function() { myObj = JSON.parse(this.responseText); row = productInput.parentElement.closest('tr'); // find the table row let i = myObj.map(item => item.NomArt).indexOf(productInput.value); // find matching data in response row.getElementsByClassName('qte')[0].innerHTML = myQbj[i].Qte // update the row } xmlhttp.open("GET", "templates/Client/products.json", "true"); xmlhttp.send(); } ``` Of course, you're downloading the entire product catalogue every time the user makes a single change. If your database is large, this is very inefficient. You'd be better updating your back end to return data on a specified product. ``` xmlhttp.open("GET", "templates/Client/products.json?product="+productInput.value, "true"); ```
null
CC BY-SA 4.0
null
2022-12-20T20:49:40.550
2022-12-21T11:19:21.067
2022-12-21T11:19:21.067
11,035,210
11,035,210
null
74,868,755
2
null
74,790,886
0
null
You need the argument `tiling`. I think this is what you're asking for. ``` import plotly.graph_objects as go fig = go.Figure(go.Treemap( labels = ["DR","1,2","D 1","D 2","O","U", "3,4,5","P","B","Pe", "6,7,8","F","C","Pl", "9","UR", "10","NA"], parents = ["", "DR", "1,2","1,2","1,2","1,2","DR","3,4,5","3,4,5","3,4,5", "DR","6,7,8","6,7,8","6,7,8", "DR","9", "DR","10"], marker_colors = ["lightgrey", "lightblue", "cornflowerblue", "cornflowerblue","goldenrod","green", "lightblue","lightgray","chocolate","cadetblue", "lightblue","grey",'chocolate',"saddlebrown", "salmon","salmon", "burlywood","burlywood", ], branchvalues="total", tiling = dict(packing='slice-dice') )) ``` [](https://i.stack.imgur.com/zmT01.png)
null
CC BY-SA 4.0
null
2022-12-20T20:50:33.610
2022-12-20T20:50:33.610
null
null
5,329,073
null
74,868,780
2
null
17,946,150
-1
null
Running `xampp` as admin on windows 10 would be the simplest solution.
null
CC BY-SA 4.0
null
2022-12-20T20:53:51.947
2022-12-23T09:44:55.370
2022-12-23T09:44:55.370
11,834,856
5,674,382
null
74,868,772
2
null
74,867,639
0
null
Here is my idea of doing that: [https://jsfiddle.net/L1ma5qrc/86/](https://jsfiddle.net/L1ma5qrc/86/) ``` *{ margin: 0; padding: 0; } body{ padding: 20px } #but1 { /* margin-right: 5px; */ /* background-color: transparent; */ border: 0; background-color: #fff; width: 50%; height: 50px; border-radius: 125px; border: 1px solid lightgray; box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2); } #but1:before { content: ""; display: block; background: url("https://cdn-icons-png.flaticon.com/128/1078/1078599.png") no-repeat; background-size: 50%; background-position: center right; height: 50px; width: 50px; margin-right: 16px; margin-left: auto; } #but2 { /* margin-right: 5px; */ /* background-color: transparent; */ border: 0; background-color: #fff; width: 50%; height: 50px; border-radius: 125px; border: 1px solid lightgray; box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2); } #but2:before { content: ""; display: block; background: url("https://cdn-icons-png.flaticon.com/128/1078/1078599.png") no-repeat; background-size: 50%; background-position: center left; height: 50px; width: 50px; margin-right: auto; margin-left: 16px; } ``` ``` <div> <div class="button-container" id="but-cont-1"> <button id="but1"> </button> </div> <div class="button-container" id="but-cont-2"> <button id="but2"> </button> </div> </div> ```
null
CC BY-SA 4.0
null
2022-12-20T20:52:29.633
2022-12-20T20:52:29.633
null
null
18,547,372
null
74,869,010
2
null
74,868,269
0
null
SUMMARIZE() was the right idea. Here's your expression: ``` Grouped Table = FILTER( SUMMARIZE( 'Table', 'Table'[Customer], "Count of Yes/No", CALCULATE( COUNTROWS('Table'), 'Table'[Yes/No] = "Yes" ) ), [Count of Yes/No] <> BLANK() ) ``` [](https://i.stack.imgur.com/RtvDI.png)
null
CC BY-SA 4.0
null
2022-12-20T21:17:30.920
2022-12-20T21:17:30.920
null
null
7,108,589
null
74,869,118
2
null
74,867,639
0
null
I think I'd look at applying the images as backgrounds. It cleans up the markup quite a bit and makes positioning easier. Other tips: - - - - - - ``` .button-container { background-color: #fff; width: 50%; height: 50px; border-radius: 125px; margin-left: auto; margin-right: auto; box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5); position: relative; overflow: hidden; } .button-container.alt { margin-top: 25px; background-color: #79b2f7; } .button-container button { width: 100%; height: 100%; background-size: auto 60%; background-position: 93% 50%; background-repeat: no-repeat; border: 0; } .button-container button.icon-recycle { background-image: url("https://cdn-icons-png.flaticon.com/512/861/861180.png"); } .button-container button.icon-trash { background-image: url("https://cdn-icons-png.flaticon.com/128/1078/1078599.png"); background-position: 7% 50%; } #textarea { position: absolute; width: 85%; background-color: transparent; border: 0; height: 100%; outline: none; resize: none; } .text { width: 100%; background-color: transparent; border: 0; margin: 0; position: absolute; top: 50%; transform: translateY(-50%); text-align: right; right: 21px; } ``` ``` <div> <div class="button-container"> <textarea id="textarea" name="prod"></textarea> <button class="icon-recycle" onclick="sub()"></button> </div> <div class="button-container alt"> <span class="text"></span> <button class="icon-trash"></button> </div> </div> ```
null
CC BY-SA 4.0
null
2022-12-20T21:31:20.073
2022-12-20T21:37:06.367
2022-12-20T21:37:06.367
1,264,804
1,264,804
null
74,869,197
2
null
74,865,468
0
null
You need to use the WCF-WebHttp Adapter for a RESTful service. See [WCF-WebHttp Adapter](https://learn.microsoft.com/en-us/biztalk/core/wcf-webhttp-adapter) (Microsof.com) > Microsoft BizTalk Server uses the WCF-WebHttp adapter to send messages to RESTful services. The WCF-WebHttp send adapter sends HTTP messages to a service from a BizTalk message. The receive location receives messages from a RESTful service. For GET and DELETE request, the adapter does not use any payload. For POST and PUT request, the adapter uses the BizTalk message body part to the HTTP content/payload. The WCF-WSHttp is expecting a SOAP envelope and XML see [What Is the WCF-WSHttp Adapter?](https://learn.microsoft.com/en-us/biztalk/core/what-is-the-wcf-wshttp-adapter) (Microsof.com). > The WCF-WSHttp adapter provides full access to the SOAP security, reliability, and transaction feature
null
CC BY-SA 4.0
null
2022-12-20T21:42:45.837
2022-12-21T06:24:53.580
2022-12-21T06:24:53.580
2,571,021
2,571,021
null
74,869,718
2
null
74,869,228
0
null
Try this, which assumes your image is in the project directory: ``` --- output: word_document --- # Heading 1 Text ## Heading 2 Text 2 Next paragraph ```{r results='asis', echo=FALSE, out.width="60mm"} knitr::include_graphics("img.png") ``` Paragraph after image ``` [](https://i.stack.imgur.com/jgelX.png)
null
CC BY-SA 4.0
null
2022-12-20T22:55:41.280
2022-12-20T22:55:41.280
null
null
6,936,545
null
74,870,502
2
null
74,857,285
0
null
It looks like you are double clicking the `index.html` file to view the file locally in your browser using the `file://` protocol but websites are meant to be served from a server to view them properly using `http://` | `https://`, Astro provides the [npm run preview](https://docs.astro.build/en/reference/cli-reference/#astro-preview) command which will run a server locally for you to view your build in `/dist` at [http://127.0.0.1:3000/](http://127.0.0.1:3000/)
null
CC BY-SA 4.0
null
2022-12-21T01:23:49.807
2023-01-12T04:29:36.777
2023-01-12T04:29:36.777
6,909,829
6,909,829
null
74,870,511
2
null
74,838,774
1
null
In the meantime I decided to set up the ssl connection manually and it works. Now I just have to fix the error. apollo.model.tablecreation.dbschemaquery: Error while retrieveing Schema of DB Table "NoHostAvailableError: All host(s) tried for query failed. First host tried, 34.79.132.94:29080: Error [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname/IP does not match certificate's altna mes: IP: 34.79.132.94 is not in the cert's list: . See innerErrors. [](https://i.stack.imgur.com/AacHy.png)
null
CC BY-SA 4.0
null
2022-12-21T01:26:52.673
2022-12-21T01:26:52.673
null
null
20,805,138
null
74,870,538
2
null
74,870,056
0
null
By `PrimeNGConfig` get `setTranslation()` to use to customize label name; ``` import { PrimeNGConfig } from 'primeng/api'; export class AppComponent implements OnInit { constructor( ..., private config: PrimeNGConfig ) {} ngOnInit() { this.config.setTranslation({ noFilter: 'MyNoFilter', }); ... } } ``` Example: [Stackblitz](https://stackblitz.com/edit/primeng-tablefilter-demo-bzjnad?file=src/app/app.component.ts)
null
CC BY-SA 4.0
null
2022-12-21T01:32:30.963
2022-12-21T01:32:30.963
null
null
11,634,381
null
74,870,623
2
null
74,861,289
0
null
My guess is that you want the data sources to appear in the table in the same order as the bar chart, and your graph is a horizontal bar, so your code is fine, and it does invert the X-axis. But why doesn't it work, and so I looked at the source code. The code for `getChartAxisX()` in your method looks like this ``` public function getChartAxisX() { if ($this->xAxis !== null) { return $this->xAxis; } return new Axis(); } ``` As you can see, when the member variable xAxis does not exist, this method creates a new object and returns it. But this new object is not set into the $chart object, so your set method does not work on the $chart object. However, I have found that Chart does not have a setXAxis() method in PhpSpreadsheet, so if you want it to work, you should set the Axis object in when you create the $chart object. ``` $axisX = new Axis(); $axisX->setAxisOrientation(Axis::ORIENTATION_REVERSED); $chart = new Chart( "chart", // name $title, // title $legend, // legend $plotArea, // plotArea true, // plotVisibleOnly DataSeries::EMPTY_AS_GAP, // displayBlanksAs null, $xAxisLabel, // xAxisLabel - Owen added null xAxisLabel $yAxisLabel, // yAxisLabel $axisX //xAxis ); ``` Now it should do what you want.
null
CC BY-SA 4.0
null
2022-12-21T01:54:33.940
2022-12-21T01:54:33.940
null
null
20,822,065
null
74,870,716
2
null
72,291,163
0
null
There is an obvious problem in the accepted answer because the last coordinates that we can see are [539, 677]. Well, there is neither a green pixel at (539,677) nor at (677,539). The problem here is, that it checks if the condition is somewhere True in the RGB value. If only one value is True, then all the others are True as well. ``` def argwhere(pic, color): a = np.argwhere(pic == color) return np.delete(a, 2, 1) exa2 = argwhere(pic=img, color=[0, 255, 0]) for e in exa2: if np.sum(img[e[0], e[1]]) != 255: print(img[e[0], e[1]]) # .... # [0 0 0] # [0 0 0] # [0 0 0] # [0 0 0] # [0 0 0] # [255 255 255] # [255 255 255] # [255 255 255] # [255 255 255] # [255 255 255] # [255 255 255] # .... ``` This week, I found out about Numexpr [https://github.com/pydata/numexpr](https://github.com/pydata/numexpr) (thanks to Stackoverflow), and wrote a little function which is 5x faster than np.argwhere(image == [0,255,0]) and probably a 100 times faster than PIL. And what's even better: it checks all RGB values :) ``` import numexpr import numpy as np def search_colors(pic, colors): colorstosearch = colors red = pic[..., 0] green = pic[..., 1] blue = pic[..., 2] wholedict = {"blue": blue, "green": green, "red": red} wholecommand = "" for ini, co in enumerate(colorstosearch): for ini2, col in enumerate(co): wholedict[f"varall{ini}_{ini2}"] = np.array([col]).astype(np.uint8) wholecommand += f"((red == varall{ini}_0) & (green == varall{ini}_1) & (blue == varall{ini}_2))|" wholecommand = wholecommand.strip("|") expre = numexpr.evaluate(wholecommand, local_dict=wholedict) exa = np.array(np.where(expre)).T[::-1] return np.vstack([exa[..., 1], exa[..., 0]]).T import cv2 path = r"C:\Users\Gamer\Documents\Downloads\jFDSk.png" img = cv2.imread(path) exa1 = search_colors(pic=img, colors=[(0, 255, 0)]) coords = exa1[np.where(np.max(exa1[..., 1]))[0]] print(coords) #array([[324, 66]], dtype=int64) ``` It is blazing fast: (1 ms / Intel i5) ``` %timeit search_colors(pic=img, colors=[(0,255,0)]) 1.05 ms ± 7.97 µs per loop (mean ± std. dev. of 7 runs, 1,000 loops each) %timeit argwhere(pic=img, color=[0, 255, 0]) 4.68 ms ± 63.6 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) ```
null
CC BY-SA 4.0
null
2022-12-21T02:14:28.613
2022-12-21T02:14:28.613
null
null
15,096,247
null
74,870,751
2
null
74,838,774
1
null
Its solved. ``` import { auth, ExpressCassandraModuleOptions, } from '@iaminfinity/express-cassandra'; // get fs to read the certificate import * as fs from 'fs'; // get path to resolve the certificate path import * as path from 'path'; export const cassandraOptions: () => ExpressCassandraModuleOptions = () => { const sslOptions = { rejectUnauthorized: true, cert: fs.readFileSync(path.resolve(__dirname, '../src/database/cert')), key: fs.readFileSync(path.resolve(__dirname, '../src/database/key.pem')), ca: fs.readFileSync(path.resolve(__dirname, '../src/database/ca.crt')), }; return { clientOptions: { contactPoints: [ 'host', ], protocolOptions: { port: 29042 }, keyspace: 'partii', queryOptions: { fetchSize: 100, consistency: 1, }, sslOptions: { ...sslOptions, host: '34.79.236.16', checkServerIdentity: function (host, cert) { return undefined; }, }, authProvider: new auth.PlainTextAuthProvider( 'id', 'secret', ), }, ormOptions: { createKeyspace: false, defaultReplicationStrategy: { class: 'SimpleStrategy', replication_factor: 1, }, migration: 'alter', }, }; }; ```
null
CC BY-SA 4.0
null
2022-12-21T02:24:06.180
2022-12-21T02:24:06.180
null
null
20,805,138
null
74,870,759
2
null
74,866,882
0
null
Go to build phases | Embed pod frameworks Remove any entries in the output file list. Clean and rebuild.
null
CC BY-SA 4.0
null
2022-12-21T02:26:44.127
2022-12-21T02:26:44.127
null
null
12,323,191
null
74,870,758
2
null
74,859,263
0
null
### Pivoting Data to Long Form Here is at least one way to simplify your summary stats so you are not aggregating each group one-by-one. First, you can pivot your data to long format using the groups and class as your target variable, then summarise data for these groups. First, the pivot: ``` #### Load Tidyverse #### library(tidyverse) #### Pivot to Long Format #### groups <- testdf %>% pivot_longer(cols = contains("Group"), names_to = "Class", values_to = "Group") groups ``` Which looks like this: ``` # A tibble: 40 × 6 ID Age Sex Name Class Group <chr> <int> <chr> <chr> <chr> <chr> 1 Stu1 24 Girl Pwyll GroupMath B 2 Stu1 24 Girl Pwyll GroupEng B 3 Stu1 24 Girl Pwyll GroupScie A 4 Stu1 24 Girl Pwyll GroupChine B 5 Stu2 20 Girl Flavian GroupMath B 6 Stu2 20 Girl Flavian GroupEng A 7 Stu2 20 Girl Flavian GroupScie A 8 Stu2 20 Girl Flavian GroupChine B 9 Stu3 24 NA Leehi GroupMath A 10 Stu3 24 NA Leehi GroupEng B ``` ### Aggregating Data Then you can aggregate the data using class, group, and sex: ``` #### Aggregate Data by Class x Group #### sums <- groups %>% group_by(Class,Group,Sex) %>% summarise( Mean = mean(Age), Max = max(Age), Min = min(Age), sd = sd(Age)) %>% ungroup() sums ``` Shown below. Notice that some values are NA because there is only one person per gender in some cases, so there can be no standard deviation in this case: ``` # A tibble: 16 × 7 Class Group Sex Mean Max Min sd <chr> <chr> <chr> <dbl> <int> <int> <dbl> 1 GroupChine A Boy 24 24 24 NA 2 GroupChine A Girl 22.3 24 21 1.53 3 GroupChine B Girl 20 24 18 2.35 4 GroupChine B NA 24 24 24 NA 5 GroupEng A Boy 24 24 24 NA 6 GroupEng A Girl 20.5 24 19 2.38 7 GroupEng B Girl 21.2 24 18 2.5 8 GroupEng B NA 24 24 24 NA 9 GroupMath A Girl 20.8 24 19 2.36 10 GroupMath A NA 24 24 24 NA 11 GroupMath B Boy 24 24 24 NA 12 GroupMath B Girl 21 24 18 2.58 13 GroupScie A Girl 21.7 24 20 2.08 14 GroupScie A NA 24 24 24 NA 15 GroupScie B Boy 24 24 24 NA 16 GroupScie B Girl 20.4 24 18 2.51 ``` Then you can get gender counts like so: ``` #### Get Grouped Gender Counts #### sex <- groups %>% group_by(Class,Group) %>% count(Sex) %>% ungroup() sex ``` Which looks like this: ``` # A tibble: 16 × 4 Class Group Sex n <chr> <chr> <chr> <int> 1 GroupChine A Boy 1 2 GroupChine A Girl 3 3 GroupChine B Girl 5 4 GroupChine B NA 1 5 GroupEng A Boy 1 6 GroupEng A Girl 4 7 GroupEng B Girl 4 8 GroupEng B NA 1 9 GroupMath A Girl 4 10 GroupMath A NA 1 11 GroupMath B Boy 1 12 GroupMath B Girl 4 13 GroupScie A Girl 3 14 GroupScie A NA 1 15 GroupScie B Boy 1 16 GroupScie B Girl 5 ``` ### Joining Data Frames Finally you can join these two data frames in this way: ``` #### Join #### sums %>% right_join(sex) ``` Giving you the final product. You can see now where the NA values come from, such as Row 1 which only has 1 boy included, making SD impossible to evaluate: ``` Joining, by = c("Class", "Group", "Sex") # A tibble: 16 × 8 Class Group Sex Mean Max Min sd n <chr> <chr> <chr> <dbl> <int> <int> <dbl> <int> 1 GroupChine A Boy 24 24 24 NA 1 2 GroupChine A Girl 22.3 24 21 1.53 3 3 GroupChine B Girl 20 24 18 2.35 5 4 GroupChine B NA 24 24 24 NA 1 5 GroupEng A Boy 24 24 24 NA 1 6 GroupEng A Girl 20.5 24 19 2.38 4 7 GroupEng B Girl 21.2 24 18 2.5 4 8 GroupEng B NA 24 24 24 NA 1 9 GroupMath A Girl 20.8 24 19 2.36 4 10 GroupMath A NA 24 24 24 NA 1 11 GroupMath B Boy 24 24 24 NA 1 12 GroupMath B Girl 21 24 18 2.58 4 13 GroupScie A Girl 21.7 24 20 2.08 3 14 GroupScie A NA 24 24 24 NA 1 15 GroupScie B Boy 24 24 24 NA 1 16 GroupScie B Girl 20.4 24 18 2.51 5 ```
null
CC BY-SA 4.0
null
2022-12-21T02:26:39.327
2022-12-21T03:16:06.143
2022-12-21T03:16:06.143
16,631,565
16,631,565
null
74,871,020
2
null
74,870,983
1
null
In your Server index.js you are not using the params you sent from the frontend. It looks you are using express for you server. Try doing something like ``` await TestTable.create({ test_name: req.body.test_name, test_sauce: req.body.test_sauce }) ``` Check this: [How to access the request body when POSTing using Node.js and Express?](https://stackoverflow.com/questions/11625519/how-to-access-the-request-body-when-posting-using-node-js-and-express)
null
CC BY-SA 4.0
null
2022-12-21T03:23:46.747
2022-12-21T03:23:46.747
null
null
4,898,348
null
74,871,053
2
null
74,745,255
3
null
Same problem here, also using ChartJS. Thanks for posting your solution, it is working for us. Note there is an open [Chromium issue](https://bugs.chromium.org/p/chromium/issues/detail?id=1399313&q=print&can=2) about this.
null
CC BY-SA 4.0
null
2022-12-21T03:31:43.207
2022-12-21T03:31:43.207
null
null
9,803,180
null
74,871,190
2
null
74,870,685
0
null
Since you didn't share your model classes code. I created C# classes based on the JSON structure and here is the result. ``` public class DataResponse { [JsonPropertyName("data")] public List<Item> Data { get; set; } = null!; } public class Item { [JsonPropertyName("id")] public int Id { get; set; } [JsonPropertyName("ad_soyad")] public string? AdSoyad { get; set; } [JsonPropertyName("il")] public string? Il { get; set; } [JsonPropertyName("ilce")] public string? Ilce { get; set; } [JsonPropertyName("kart")] public string? Kart { get; set; } [JsonPropertyName("rfid")] public string? RfId { get; set; } [JsonPropertyName("durum")] public string? Durum { get; set; } } ``` Next, you can create an instance of the DataResponse object and Data property, then return it, like this. ``` var result = new DataResponse() { Data = new List<Item>() { new Item() { Id = 1, AdSoyad = "Ad Soyad", Il = "İl", Ilce = "İlçe", Kart = "Kart", RfId = "RfId", Durum = "Durum" }, new Item() { Id = 2, AdSoyad = "Ad Soyad", Il = "İl", Ilce = "İlçe", Kart = "Kart", RfId = "RfId", Durum = "Durum" }, } }; return Json(result); ``` And you get results like this. [](https://i.stack.imgur.com/NS1Cd.png)
null
CC BY-SA 4.0
null
2022-12-21T04:01:30.147
2022-12-21T04:01:30.147
null
null
38,024
null
74,871,402
2
null
74,871,234
0
null
Make a div and wrap the two icons and give some class then add this CSS to that div, ``` .that_div_class { display: flex; align-items: center; justify-content: center; } ``` After this, you can give other CSS to the two icons as you wish.
null
CC BY-SA 4.0
null
2022-12-21T04:39:58.747
2022-12-21T04:39:58.747
null
null
19,757,319
null
74,871,439
2
null
58,437,132
2
null
Sadly this is no longer possible. Support for window.activeBorder and window.InactiveBorder has been officially widthdrawn, as of Visual Studio Code 1.71.x See [https://github.com/microsoft/vscode/issues/160159](https://github.com/microsoft/vscode/issues/160159)
null
CC BY-SA 4.0
null
2022-12-21T04:47:27.423
2022-12-21T04:47:27.423
null
null
333,889
null
74,871,462
2
null
74,871,081
2
null
I suggest you, always use a flex box to align items using a flex box is easy and it always works. ``` .ull{ display: flex; align-items: center; justify-content: flex-start; padding-left :0px; } #menu2 ul li{ list-style :none; margin-right:10px; } ``` ``` <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <div id="menu2"> <ul class="ull" > <li id="home"><a href="#">Home</a> </li> <li id="intro"><a href="#">Introduce</a> </li> <li id="news"><a href="#">News</a> </li> <li id="qa"><a href="#">Q&A</a> </li> <li id="software"><a href="#">Software</a> </li> <li id="guide"><a href="#">Tutorial</a> </li> <li id="design"><a href="#">Design</a> </li> <li id="video"><a href="#">Video</a> </li> <li id="contact"><a href="#">Contact</a> </li> <li><a href="#">Recruitment</a> </li> </ul> </div> </body> </html> ``` Hope this is what you are looking for, let me know if there is some query or if you want something else.
null
CC BY-SA 4.0
null
2022-12-21T04:51:34.533
2022-12-21T04:51:34.533
null
null
19,757,319
null
74,871,548
2
null
74,871,234
0
null
To ensure that the action column's icons are horizontally aligned, set a minimum width for the column. This will prevent the icons from being separated from each other horizontally. Example for using Bootstrap: ``` <table class="table"> <thead> <tr> <th scope="col">Name</th> <th scope="col" style="min-width: 150px;">Action</th> </tr> </thead> ... </table> ```
null
CC BY-SA 4.0
null
2022-12-21T05:09:28.367
2022-12-21T05:09:28.367
null
null
8,316,900
null
74,872,063
2
null
18,386,210
0
null
I updated the previous answers to have some of the features I wanted, like an option for a vertical brace, that I wanted to place in multi-plot figures. One still has to futz with the beta_scale parameter sometimes depending on the scale of the data that one is applying this to. [](https://i.stack.imgur.com/Ae8Zh.png) ``` def rotate_point(x, y, angle_rad): cos,sin = np.cos(angle_rad),np.sin(angle_rad) return cos*x-sin*y,sin*x+cos*y def draw_brace(ax, span, position, text, text_pos, brace_scale=1.0, beta_scale=300., rotate=False, rotate_text=False): ''' all positions and sizes are in axes units span: size of the curl position: placement of the tip of the curl text: label to place somewhere text_pos: position for the label beta_scale: scaling for the curl, higher makes a smaller radius rotate: true rotates to place the curl vertically rotate_text: true rotates the text vertically ''' # get the total width to help scale the figure ax_xmin, ax_xmax = ax.get_xlim() xax_span = ax_xmax - ax_xmin resolution = int(span/xax_span*100)*2+1 # guaranteed uneven beta = beta_scale/xax_span # the higher this is, the smaller the radius # center the shape at (0, 0) x = np.linspace(-span/2., span/2., resolution) # calculate the shape x_half = x[:int(resolution/2)+1] y_half_brace = (1/(1.+np.exp(-beta*(x_half-x_half[0]))) + 1/(1.+np.exp(-beta*(x_half-x_half[-1])))) y = np.concatenate((y_half_brace, y_half_brace[-2::-1])) # put the tip of the curl at (0, 0) max_y = np.max(y) min_y = np.min(y) y /= (max_y-min_y) y *= brace_scale y -= max_y # rotate the trace before shifting if rotate: x,y = rotate_point(x, y, np.pi/2) # shift to the user's spot x += position[0] y += position[1] ax.autoscale(False) ax.plot(x, y, color='black', lw=1, clip_on=False) # put the text ax.text(text_pos[0], text_pos[1], text, ha='center', va='bottom', rotation=90 if rotate_text else 0) ```
null
CC BY-SA 4.0
null
2022-12-21T06:27:47.370
2022-12-21T18:01:49.657
2022-12-21T18:01:49.657
1,783,976
1,783,976
null
74,872,128
2
null
74,865,810
0
null
Well, based on your code snippet, it's clear that you have done two major mistakes. First of all, you have not defined the decimal precision for your `UnitPrice` property and the other one in database schema entity definition is incorrect. You should update your code in following way: ``` [Required] [Column(TypeName = "decimal(18, 2)")] // OR `[Precision(18, 2)]` public decimal UnitPrice { get; set; } ``` this means `UnitPrice` would be a decimal number which would contains upto 18 main number along with 2 decimal precision after `.` point. Keep in mind that `[Column(TypeName = "decimal(18, 2)")]` and `[Precision(14, 2)]` act same. More details can be found in the [official document here](https://learn.microsoft.com/en-us/ef/core/modeling/entity-properties?tabs=data-annotations%2Cwithout-nrt#precision-and-scale). ``` UnitPrice NUMERIC(18,2) NOT NULL ``` Now PostgreSQL schema, would preserve up to 18 main number along with 2 decimal precision. You could check [official document for more information](https://www.postgresql.org/docs/current/datatype-numeric.html). The above two reasons are causing your unexpected decimal result.
null
CC BY-SA 4.0
null
2022-12-21T06:36:58.600
2022-12-24T23:57:41.057
2022-12-24T23:57:41.057
472,495
9,663,070
null
74,872,396
2
null
74,871,271
0
null
You can use table functions. you able join T.F with another table. ``` CREATE FUNCTION [dbo].[fn_test] ( --INPUT PARAMETERS ) RETURNS @output TABLE(ID NVARCHAR(MAX)) BEGIN INSERT INTO @output (ID) EXEC('SELECT 1 AS A') RETURN END ```
null
CC BY-SA 4.0
null
2022-12-21T07:07:34.397
2022-12-21T07:07:34.397
null
null
18,739,729
null
74,872,418
2
null
74,872,129
0
null
Please delete the folder and your project.
null
CC BY-SA 4.0
null
2022-12-21T07:09:36.503
2022-12-21T07:09:36.503
null
null
20,655,686
null
74,872,491
2
null
74,847,526
0
null
Follow up for history and archives. The `Examples` directories having a `Package.swift` file do not show up in Xcode. I guess Xcode tries to avoid package conflict. It does not handle sub-projects very well.
null
CC BY-SA 4.0
null
2022-12-21T07:17:30.193
2022-12-21T07:17:30.193
null
null
663,360
null
74,872,632
2
null
17,017,124
1
null
Is there any security issue about this? If it is, what is the solution to this issue? Yes, there is a security issue. Mostly of 2 types: 1. Shoulder Surfing. 2. Save Password on Browser or from history. For Type 1, the user needs to be discrete and manage his environment better. For Type 2, the user could walk away from his computer and another user could basically type out the username, the browser could prompt the user to autofill the password and you are through. Now to close this security. Turn off the saving password at your browser end. The browser will not be able to save the password. So it's not exposed to other users if they change it from text to password. Ideally, no autofill should be available for Security.
null
CC BY-SA 4.0
null
2022-12-21T07:33:30.913
2022-12-21T07:33:30.913
null
null
6,467,921
null
74,873,299
2
null
74,872,905
0
null
If the rest of your group can run this and it works, this means usually a hardware or software problem on your part. I had same issue, turns out it was software problem on android studio, missing dependencies or other plugins that interferes. I would say try on another device in case this is hardware problem.
null
CC BY-SA 4.0
null
2022-12-21T08:39:57.960
2022-12-21T08:39:57.960
null
null
12,208,775
null
74,874,136
2
null
74,852,561
0
null
> I expected the bot's message to be ticked that he had read it This is not possible, messages send by a Telegram Bot will never get those checkmarks. Those marks are only for messages send from a user-account
null
CC BY-SA 4.0
null
2022-12-21T09:52:23.670
2022-12-21T09:52:23.670
null
null
5,625,547
null
74,874,273
2
null
74,871,982
0
null
The way I would tackle it is as follows ``` const [starred, setStarred] = useState({ "1": false, "2": false, "3": false }); const Star = ({ buttonId }) => (starred[buttonId] ? <AiFullStar /> : <AiOutlineStar />); return ( <div className="App"> <button onClick={() => setStarred((prevState) => ({ ...prevState, "1": !prevState[1] })) } > <Star buttonId="1" /> </button> <button onClick={() => setStarred((prevState) => ({ ...prevState, "2": !prevState[2] })) } > <Star buttonId="2" /> </button> <button onClick={() => setStarred((prevState) => ({ ...prevState, "3": !prevState[3] })) } > <Star buttonId="3" /> </button> </div> ); } ``` [Sandbox](https://codesandbox.io/s/interesting-pasteur-in3l7c?file=/src/App.js) What we did here is first change the `starred` state to an object containing each button id and the state of true or false, if it was chosen or not. We then made another component for the icon named `Star` and we pass it a prop called `buttonId` which will then be used to check if `starred[buttonId]` is true or false, if true render a full star else render an outlined star. When you click any of the buttons you set the `starred` state to a modified object where the current button state changed to the opposite of what it used to be.
null
CC BY-SA 4.0
null
2022-12-21T10:01:33.023
2022-12-21T10:17:29.513
2022-12-21T10:17:29.513
8,009,638
8,009,638
null
74,874,601
2
null
73,462,296
6
null
You can manually add this feature to your bot's description box using the command ID. 1. Go to Server Settings. 2. Click on "Integrations". 3. Look for your bot and click on it. 4. Scroll up until you see the list of the commands that are deployed. 5. Right-click to copy the command ID of your choice to be displayed later. Next, we go to [Discord Developer Portal](https://discord.com/developers/applications) to place the command ID into your bot's description box. So all you need to do is to put the command that are to be displayed in this format: ``` </(command-name):(command-ID)> ``` It'll look something like this: ``` **TRY MY COMMANDS** // ** to bold the text </play:938016496168932622> | </help:938012345242127927> ``` And here's how it will look like: [Screenshot | Stackoverflow won't let me embed picture cause I'm new :(](https://i.stack.imgur.com/DPALS.jpg) It may not look as good as the verified version but hey, it works. You can press on it and use it like a normal slash command.
null
CC BY-SA 4.0
null
2022-12-21T10:25:43.450
2022-12-21T10:28:23.520
2022-12-21T10:28:23.520
13,663,851
13,663,851
null
74,874,729
2
null
12,769,590
4
null
You can use PowerShell to register a typelib. The script uses a small piece of C# code, that in its turn calls WinApi function `LoadTypeLibEx`. The script has a single argument, a path of the typelib. Create `RegisterTypeLib.ps1`: ``` param($path) Write-Host $path $signature = @' [DllImport("oleaut32.dll", CharSet=CharSet.Unicode, ExactSpelling=true, SetLastError=true)] public static extern int LoadTypeLibEx(string fileName, uint regkind, out System.Runtime.InteropServices.ComTypes.ITypeLib typeLib); '@ $type = Add-Type -MemberDefinition $signature ` -Name Win32Utils -Namespace LoadTypeLibEx ` -PassThru $typeLib = $null $hr = $type::LoadTypeLibEx($path, 1, ([ref]$typeLib)) if ($hr -ne 0) { throw "LoadTypeLibEx failed, hr = $hr" } ``` It's handy to use a batch file to launch the script; it just passes the argument to the script: ``` powershell -ExecutionPolicy ByPass -NoProfile -Command "& '%~dp0\RegisterTypeLib.ps1'" %* ``` Additionally, the following script can be used to unregister a typelib. It's a bit tricky but works well: ``` param($path) Add-Type -Language CSharp @' using System; using System.Runtime.InteropServices; using System.Runtime.InteropServices.ComTypes; namespace Helpers { public static class TypeLibRegistration { [DllImport("oleaut32.dll", CharSet=CharSet.Unicode, ExactSpelling=true, SetLastError=true)] public static extern int LoadTypeLibEx(string fileName, uint regkind, out ITypeLib typeLib); [DllImport("oleaut32.dll", CharSet=CharSet.Unicode, ExactSpelling=true, SetLastError=true)] public static extern int UnRegisterTypeLib(ref Guid libID, ushort wVerMajor, ushort wVerMinor, uint lcid, uint syskind); public struct TLIBATTR { public Guid guid; public uint lcid; public uint syskind; public ushort wMajorVerNum; public ushort wMinorVerNum; public ushort wLibFlags; } public static void Unregister(string fileName) { ITypeLib typeLib; int hr = LoadTypeLibEx(fileName, 0, out typeLib); if (0 != hr) throw new Exception(string.Format("LoadTypeLibEx() failed, hr = {0}", hr)); IntPtr libAttrPtr; typeLib.GetLibAttr(out libAttrPtr); TLIBATTR libAttr = (TLIBATTR)Marshal.PtrToStructure(libAttrPtr, typeof(TLIBATTR)); hr = UnRegisterTypeLib(ref libAttr.guid, libAttr.wMajorVerNum, libAttr.wMinorVerNum, libAttr.lcid, libAttr.syskind); if (0 != hr) throw new Exception(string.Format("UnRegisterTypeLib() failed, hr = {0}", hr)); } } } '@ [Helpers.TypeLibRegistration]::Unregister($path) ```
null
CC BY-SA 4.0
null
2022-12-21T10:35:54.857
2022-12-21T10:35:54.857
null
null
1,480,104
null
74,874,847
2
null
74,846,995
0
null
For anyone who faces this issue in future, as mentioned by @GrahamD this issue is because of space in the path. In this case it's `HP PC` that should be `HP_PC` or `HPPC` or any valid string. Here are few ways you can troubleshoot this issue. - `mypc``my_pc``MyPc`- - After moving your directory, run `flutter clean` command and then run your project again. It should work now. Note: You may need to install software if you create a new user account.
null
CC BY-SA 4.0
null
2022-12-21T10:44:37.947
2022-12-21T10:58:13.310
2022-12-21T10:58:13.310
6,340,327
6,340,327
null
74,874,999
2
null
74,857,099
2
null
If you want to use that image then you have to use a path like ``` https://gillevi.github.io/images/posts/deit3/deit3_table1.png ``` or ``` https://raw.githubusercontent.com/GilLevi/gillevi.github.io/master/images/posts/deit3/deit3_table1.png ``` and the best practice to use image in markdown is ``` ![alt text](/images/posts/deit3/deit3_table1.png) ``` this will resolve that issue.
null
CC BY-SA 4.0
null
2022-12-21T10:55:48.687
2022-12-21T10:55:48.687
null
null
17,891,149
null
74,875,003
2
null
74,873,956
4
null
Looks like both datasets got same headers so you can benefit from that. If the headers are always the same and same sorting, just copy whole row: ``` Sub test() 'if headers of both datasets are always the same and sorted the same way, just copy whole row Dim rngDestiny As Range Dim rngSource As Range Dim rngFind As Range Dim rng As Range Dim i As Long Dim RowN As Long Dim LR As Long Set rngSource = Range("I2:M4") Set rngFind = Range("H2:H4") Set rngDestiny = Range("B2:F6") LR = Range("A" & Rows.Count).End(xlUp).Row 'last non-blank cell in column f-name For i = 2 To LR Step 1 With Application.WorksheetFunction 'check if the value of f-name exists in column FIND If .CountIf(rngFind, Range("A" & i).Value) > 0 Then 'there is a match, get row number and copy RowN = .Match(Range("A" & i).Value, rngFind, 0) rngSource.Rows(RowN).Copy rngDestiny.Rows(i - 1) 'minus 1 because our first row of data starts with i=2!!! End If End With Next i Set rngSource = Nothing Set rngFind = Nothing Set rngDestiny = Nothing End Sub ``` [](https://i.stack.imgur.com/xZYIw.gif)
null
CC BY-SA 4.0
null
2022-12-21T10:55:58.397
2022-12-21T10:55:58.397
null
null
9,199,828
null
74,875,027
2
null
42,420,621
-1
null
Invalidate cashe and restart worked for me
null
CC BY-SA 4.0
null
2022-12-21T10:58:07.950
2022-12-21T10:58:07.950
null
null
14,142,986
null
74,875,343
2
null
74,874,873
0
null
This could help : ``` select max(c.period) from contracts c inner join ( select project_owner, min(period) as period from contracts c group by project_owner ) as s on s.project_owner = c.project_owner and s.period < c.period; ```
null
CC BY-SA 4.0
null
2022-12-21T11:26:11.540
2022-12-21T11:26:11.540
null
null
4,286,884
null
74,875,463
2
null
74,836,568
0
null
I created a usability problem about the non user-friendly message - [https://youtrack.jetbrains.com/issue/CPP-31572](https://youtrack.jetbrains.com/issue/CPP-31572). The thing is that you have no CMake profiles ([https://www.jetbrains.com/help/clion/cmake-profile.html](https://www.jetbrains.com/help/clion/cmake-profile.html))configured. Please go to `File | Settings | Build, Execution, Deployment | CMake` and add a profile there.
null
CC BY-SA 4.0
null
2022-12-21T11:34:48.937
2022-12-21T11:34:48.937
null
null
11,988,753
null
74,875,620
2
null
74,864,599
0
null
Try to search for `Anaconda Prompt` in the windows search menu; it might be just an issue of conda not being added to the `path` variable. [Check here how to do so](https://www.geeksforgeeks.org/how-to-setup-anaconda-path-to-environment-variable/). Try to use [conda init](https://docs.conda.io/projects/conda/en/latest/commands/init.html) inside the Anaconda Prompt (`conda init --all` for all terminals), or add it to Path and then initialize it in any of the other terminals.
null
CC BY-SA 4.0
null
2022-12-21T11:48:48.180
2022-12-21T11:48:48.180
null
null
10,985,412
null
74,876,235
2
null
74,871,451
0
null
You can turn off the offset as shown in the examples [here](https://matplotlib.org/stable/gallery/ticks/scalarformatter.html). For example, if you've made you plot with: ``` from matplotlib import pyplot as plt plt.plot(x, y) ``` then you can turn off the offset with ``` ax = plt.gca() # get the axes object # turn off the offset (on the y-axis only) ax.ticklabel_format(axis="y", useOffset=False) plt.show() ``` See the [ticklabel_format](https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.ticklabel_format.html) docs for more info.
null
CC BY-SA 4.0
null
2022-12-21T12:43:39.793
2022-12-21T12:49:04.117
2022-12-21T12:49:04.117
1,862,861
1,862,861
null
74,876,299
2
null
74,870,685
0
null
``` public IActionResult Get() { var data = db.Kullanicilars.ToList(); var result = new DataResponse() { Data = new List<Kullanicilar>() { new Kullanicilar() { KullaniciId = 1, AdSoyad = "", Il = "", Ilce = "", Eposta = "", Telefon = "", Kart = "", Rfid = "", Durum = 1 }, } }; return Json(result); } ``` So how can I fill in the list you saw in the vaccine according to the model data I pulled from my database? I want it to be like foreach logic, so that for each new data, a new new users open the list and add it. How can I do that?
null
CC BY-SA 4.0
null
2022-12-21T12:48:56.740
2022-12-21T12:48:56.740
null
null
20,670,541
null
74,876,624
2
null
74,870,557
0
null
I reproduced the above and got the below results. `company_code=='4901` in this there is no single quote in your filter condition. This might be the cause of the error. This is input data. ![enter image description here](https://i.imgur.com/pWhr9n3.png) I have used the below filter condition. ``` company_code=='7833'||company_code=='7828'||company_code=='4904'||company_code=='4901'||company_code=='7832' ``` ![enter image description here](https://i.imgur.com/7mR3ZBM.png) ![enter image description here](https://i.imgur.com/rPlIZFI.png)
null
CC BY-SA 4.0
null
2022-12-21T13:14:30.883
2022-12-21T13:14:30.883
null
null
18,836,744
null
74,876,782
2
null
74,876,623
0
null
An easy approach would be using pandas, also quite fast with large csv files. It might need some tweaking but you get the point. ``` import pandas as pd import json df = pd.read_csv(filename, sep = ';') data = json.dumps(df.to_dict('records')) ```
null
CC BY-SA 4.0
null
2022-12-21T13:27:02.243
2022-12-21T14:20:04.560
2022-12-21T14:20:04.560
9,473,052
9,473,052
null
74,876,811
2
null
74,876,623
1
null
You will need to specify the column delimiter then you can use to give you the required output format ``` import csv import json with open('forcebrute.csv') as data: print(json.dumps([d for d in csv.DictReader(data, delimiter=';')], indent=2)) ``` ``` [ { "name": "Action-1", "price": "20", "profit": "5" }, { "name": "Action-2", "price": "30", "profit": "10" }, { "name": "Action-3", "price": "50", "profit": "15" }, { "name": "Action-4", "price": "70", "profit": "20" }, { "name": "Action-5", "price": "60", "profit": "17" } ] ```
null
CC BY-SA 4.0
null
2022-12-21T13:29:03.633
2022-12-21T13:29:03.633
null
null
17,580,381
null
74,876,831
2
null
60,594,178
0
null
The solution for me: is that i am using Windows 11 and i used to use instead of [](https://i.stack.imgur.com/q2hom.png) In case want to use you have to run this cmd first: ``` Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser ```
null
CC BY-SA 4.0
null
2022-12-21T13:31:04.940
2022-12-21T13:31:04.940
null
null
7,590,031
null
74,876,945
2
null
74,876,623
0
null
You will need to use `Dictreader` from the `csv` library to read the contents of the CSV file and then convert the contents to a list before using `json.dumps` to turn the data into JSON. ``` import csv import json filename ="forcebrute.csv" # Open the CSV file and read the contents into a list of dictionaries with open(filename, 'r') as f: reader = csv.DictReader(f, delimiter=';') csv_data = list(reader) # Convert the data to a JSON string and print it to the console json_data = json.dumps(csv_data) print(json_data) ```
null
CC BY-SA 4.0
null
2022-12-21T13:40:40.423
2022-12-21T13:40:40.423
null
null
2,707,342
null
74,877,236
2
null
74,876,619
1
null
If you want a "point" at the mean, you can use a `scatter!` with the means on top of the boxplots.
null
CC BY-SA 4.0
null
2022-12-21T14:03:50.783
2022-12-21T14:03:50.783
null
null
10,404,107
null
74,877,234
2
null
74,877,201
0
null
You can use [strptime()](https://docs.python.org/3/library/datetime.html#strftime-strptime-behavior) ``` from datetime import datetime my_date_1 = "15:25" my_date_2 = "25:25" try: datetime.strptime(my_date_1, "%H:%M") print(True) except ValueError: print(False) try: datetime.strptime(my_date_2, "%H:%M") print(True) except ValueError: print(False) ``` Output: ``` True False ``` So your code will be something like this: ``` try: datetime.strptime(message.text, "%H:%M") bot.send_message(message.chat.id,f'Напомню вам о тренировке в {message.text}') schedule.every().day.at(message.text).do(bot.send_message,message.chat.id, 'Время тренировки!') while True: schedule.run_pending() time.sleep(1) except ValueError: firts = bot.send_message(message.chat.id,f'Вы неправильно указали формат времени, попробуйте еще раз.') bot.register_next_step_handler(firts, gonap) ```
null
CC BY-SA 4.0
null
2022-12-21T14:03:39.520
2022-12-21T14:09:11.570
2022-12-21T14:09:11.570
5,165,980
5,165,980
null
74,877,885
2
null
74,877,818
1
null
You need to use parenthesis, because of operator precedence you can't just write some or/and like you have ``` if ((date < 31 or date < 30) and month == "march") or (month == "april" and (date <= 30 or date <= 31) and date != 20): print("you are Aries. ...") elif ((date < 31 or date < 30) and month == "april") or (month == "may" and (date <= 30 or date <= 31)): print("you are a Taurus. ...") elif ((date < 31 or date < 30) and month == "may") or (month == "june" and (date <= 30 or date <= 31)): print("You are a Gemini. ...") ```
null
CC BY-SA 4.0
null
2022-12-21T14:55:18.660
2022-12-21T14:55:18.660
null
null
7,212,686
null
74,877,890
2
null
74,877,818
0
null
use the parentheses in conditional statements to separat the condition or and and .. evry conditions on apropriate parenthese.
null
CC BY-SA 4.0
null
2022-12-21T14:55:57.573
2022-12-21T14:55:57.573
null
null
15,068,171
null
74,877,951
2
null
74,876,619
3
null
Adding context to the tip to use `scatter!`. The difference between `scatter` and `scatter!` already has a good explanation [here](https://stackoverflow.com/questions/45396685/what-does-an-exclamation-mark-mean-after-the-name-of-a-function). ``` julia> using StatsPlots julia> using Statistics julia> using Random julia> Random.seed!(42) TaskLocalRNG() julia> val = randn(300); julia> boxplot(repeat(['A'], outer=100), val, label = "boxplot") julia> scatter!(['A'], [mean(val)], label = "mean") ``` [](https://i.stack.imgur.com/hzrYs.png)
null
CC BY-SA 4.0
null
2022-12-21T15:01:38.460
2022-12-21T15:17:39.707
2022-12-21T15:17:39.707
9,462,095
9,462,095
null
74,877,974
2
null
74,877,818
0
null
First of all, I assume you are new to programming because this is not good looking code. I believe your output is incorrect because you are missing parentheses. For example your first if: ``` if date < 31 or date < 30 and month == "march" or month == "april" and date <= 30 or date <= 31 and date != 20: ``` First it will check if date < 31. That is true, so then it will go into the if statement. You need to put it like this: ``` if ((date < 31 or date < 30) and month == "march") or (month == "april" and (date <= 30 or date <= 31) and date != 20): ``` I also do not understand why you are checking for dates, you could just have it like this: ``` if (month == "march" or month == "april") and date != 20: ``` Also, why are you checking if date < 31 and date < 30 on every row. If date < 31 then date < 30 is also true. Even the february row has a date < 31 on it. If you want to check for invalid input, then do it like this: ``` #Check input if date > 31 or date < 1: print("Invalid date") if (month == "march" or month == "april") and date != 20: ``` You can then add more checks for whatever things can go wrong FIRST and keep your later if logic clean.
null
CC BY-SA 4.0
null
2022-12-21T15:03:17.727
2022-12-21T15:03:17.727
null
null
20,824,037
null
74,878,784
2
null
74,878,694
1
null
You are describing how formula results get misaligned with manually entered data. There is no turn-key solution to work around the issue. Lance has given a thorough [treatment of the row misalignment issue](https://support.google.com/docs/thread/95901649) and how it can be dealt with in some cases.
null
CC BY-SA 4.0
null
2022-12-21T16:09:36.803
2022-12-21T16:09:36.803
null
null
13,045,193
null
74,878,788
2
null
73,243,926
0
null
One of the options is disabled JxBrowser... Preferences > Languages & Frameworks > Flutter uncheck "Enable embedding DevTools in the Flutter Inspector tool window". After that another browser will be used. Icons will be different but the essence remains the same... [](https://i.stack.imgur.com/Rc3NF.png)
null
CC BY-SA 4.0
null
2022-12-21T16:10:20.340
2022-12-21T16:10:20.340
null
null
11,407,701
null
74,878,917
2
null
71,583,658
0
null
The only way to bypass this "bug" is to ask the user twice (or in a loop) by showing a OK alert or some sort of user confirm box. My solution: ``` OpenLinkInExternalApp(Link); alerty.alert('', { title: '', okLabel: 'Open Link' }, function () { OpenLinkInExternalApp(Link); }); ``` The above code will open the external app, then a OK alert will pop up, after clicking OK, I call the same code again. Do this in a loop if needed. TIP: We guide our users to use split screen at this stage. This is where users can dock your web-app on the left and the external app on the right as an example. Alert Box: We user Alerty.js [https://github.com/undead25/alerty#readme](https://github.com/undead25/alerty#readme)
null
CC BY-SA 4.0
null
2022-12-21T16:20:45.500
2022-12-21T16:20:45.500
null
null
3,073,905
null
74,878,899
2
null
74,878,011
8
null
It is not that easy, because what you have here are implicit equations. You don't have a `y=f(x)` formula to just plot it. What you have is something that tells you if a pair (x,y) is on the curve or not, but can't tell you directly how to find x if you know y, or y if you know x (I assume you know what "implicit" and "explicit" means, but if not, it is that. `y=f(x)` gives explicitly y from x. `f(x,y)=0` gives implicitly y from x... once you've solved the equation `f(x,y)=0`) So, I can see 3 options to solve that. 1. Transform the implicit formula into an explicit one. That is solve the equations. That is what you've already tried. That might be possible. I don't know. And since this is stackoverflow, and that would be pure maths, I assume it is not, and we don't want to. 2. Use sympy to do it. Either by using sympy to solve the equation and obtain an explicit form. That is just a computer aided version of the 1st one. You could also do it using Maple of Wolfram alpha, etc. 3. More on the spot on SO, where we are looking for code version, assume we can't solve the equation, and therefore try to plot the thin area for which the equation is true. I assume that what we see here is a localisation of a impact in a 2d area, given the time of its detection at 3 different points (like a seismic event detected by 3 seismograph, or like a tap on a touch screen detected by 3 microphones — I published, 2 decades ago a paper on how to make precise and cheap touch screen that way; at the time I was pretty sure that is was the most practical way... and now we all have cheap capacitive screens everywhere; but I still tend to think of these equation as a way to build such touch screens) So, for practical application, let say that we have a speed of S=1, and 3 detectors at (5,5), (10,10) and (10,2). And that user touched point (6,6). So (t1-t2)S=√2-√32≈-4.24, (t2-t3)S=0, (t3-t1)S≈4.24. ## 3.a Compute image of area where equation are almost true ``` import numpy as np impost matplotlib.pyplot as plt X1,Y1=5,5 X2, Y2=10,10 X3,Y3=10,2 # Creates 200x200 images of x and y xx,yy=xx,yy=np.meshgrid(np.linspace(0,15,200), np.linspace(0,15,200)) # And a black image for the result res=np.zeros((200,200,3), dtype=np.uint8) # Helper values: distances d1, d2 and d3 of (x,y) from (Xk,Yk) d1=np.sqrt((xx-X1)**2+(yy-Y1)**2) d2=np.sqrt((xx-X2)**2+(yy-Y2)**2) d3=np.sqrt((xx-X3)**2+(yy-Y3)**2) # Compute image of area where d1-d2 is almost -4.24, so |d1-d2+4.24|<ε eps=0.1 # Pixels where d1-d2 is almost -4.24 are red res[np.abs(d1-d2+4.24)<eps,0]=255 # Pixels where d2-d3 is almost 0 are green res[np.abs(d2-d3)<eps,1]=255 # Pixels where d3-d1 is almost 4.24 are blue res[np.abs(d3-d1-4.24)<eps,2]=255 # Show this plt.imshow(res) plt.show() ``` [](https://i.stack.imgur.com/OsJhM.png) Solution of all 3 equations is at the intersection. Note that (0,0) is top left, and y axis is downward. Plus, scale in in pixels. Since we know that solution is a (6,6), and that those 200 pixels represent values from 0 to 15, we should expect solution to be at 6×200/15 → (80,80) We could try to change the scale, to reverse the image, and then to thinner `eps` to have lines. Or try to find the middle of the area. But we won't since that was just a way for me to explain that there is already a function that does all that in matplotlib : `contour`. So, in reality, you'll never use solution 3a. But I wanted to make clear what `contour` does in reality: it does not solve the equation, nor does it magically draw a 2d implicit curve. What it does is working on meshgrid and areas. But find the best "line" in that area. ## 3b. Contour ``` import numpy as np import matplotlib.pyplot as plt X1,Y1=5,5 X2, Y2=10,10 X3,Y3=10,2 # Creates 200x200 images of x and y xx,yy=xx,yy=np.meshgrid(np.linspace(0,15,200), np.linspace(0,15,200)) # And a black image for the result res=np.zeros((200,200,3), dtype=np.uint8) # Helper values: distances d1, d2 and d3 of (x,y) from (Xk,Yk) d1=np.sqrt((xx-X1)**2+(yy-Y1)**2) d2=np.sqrt((xx-X2)**2+(yy-Y2)**2) d3=np.sqrt((xx-X3)**2+(yy-Y3)**2) # Plot contour for the 3 equations plt.contour(xx,yy,d1-d2, [-4.24]) plt.contour(xx,yy,d2-d3, [0]) plt.contour(xx,yy,d3-d1, [4.24]) plt.show() ``` [](https://i.stack.imgur.com/NDFdC.png) ## 3c. sympy plot_implicit Lastly, sympy also have a function dedicated to this task. But that means that you have to create a symbolic version of those equations. And sympy won't really solve them: it is still a meshgrid based, thin area drawing. ``` import sympy x,y=sympy.var('x y') cur1=sympy.plot_implicit(sympy.sqrt((x-X1)**2 + (y-Y1)**2) - sympy.sqrt((x-X2)**2 + (y-Y2)**2) + 4.24, x_var=(x,0,15), y_var=(y,0,15), show=False) cur2=sympy.plot_implicit(sympy.sqrt((x-X2)**2 + (y-Y2)**2) - sympy.sqrt((x-X3)**2 + (y-Y3)**2), x_var=(x,0,15), y_var=(y,0,15), show=False) cur3=sympy.plot_implicit(sympy.sqrt((x-X3)**2 + (y-Y3)**2) - sympy.sqrt((x-X1)**2 + (y-Y1)**2) - 4.24, x_var=(x,0,15), y_var=(y,0,15), show=False) cur1.append(cur2[0]) # Add line of cur2 to cur1 plot cur1.append(cur3[0]) # Likewise for cur3 cur1.show() ``` [](https://i.stack.imgur.com/nDC4q.png) Note that it is not exactly the same meshgrid I've used in my first solution. Because it is adaptative, so you get a more precise area. And yet, you can see that it is an area, not a curve: it has a thickness. Only solution 3b is uniformly thin. And that is just because it draws a contour, yet it is also an area. So, none of those 3 solution strictly speaking draw curve of the equations. Unless you solve those equations, you can't draw them. What they do it to find, among all possible combination of x and y, those that are closer to be solutions of the equations. They look like some 1d-curve `y=f(x)` drawing. But in reality they are 2d-curve `z=f(x,y)` drawing, `z` being as much as possible a binary value meaning "on the curve or not". Note, to give a positive conclusion: my favorite option is 3b. Just, do not let it deceive you and make you thinking that it draws a curve. It is just the same solution as 3a and 3c, but with some smart contour detection to end up with a thin uniform line.
null
CC BY-SA 4.0
null
2022-12-21T16:19:04.307
2022-12-21T16:49:59.057
2022-12-21T16:49:59.057
20,037,042
20,037,042
null
74,879,025
2
null
74,878,455
0
null
That moment when you find an answer to your own question! -_- ``` axes[i].set_ylabel('{:.3f}'.format(top_features[i]), rotation=0, labelpad=30) ``` Adjusting the `labelpad` value solves! Thanks all!
null
CC BY-SA 4.0
null
2022-12-21T16:29:27.810
2022-12-21T16:29:27.810
null
null
11,200,555
null
74,879,257
2
null
74,879,106
0
null
You need to do few things... create a variable ``` bool textFieldDisplayed = false; ``` Wrap your widget with GestureDetector and use onTap of GestureDetector. ``` onTap: () { textFieldDisplayed = true; setState(() {}); }, ``` check the condition before your textField ``` if(textFieldDisplayed) TextFormField() ``` The whole code is below and you can make some changes as per yours.... ``` class _MyHomePageState extends State<MyHomePage> { TextEditingController controller = TextEditingController(); bool textFieldDisplayed = false; @override Widget build(BuildContext context) { return GestureDetector( onTap: () { textFieldDisplayed = false; setState(() {}); }, child: Scaffold( body: GestureDetector( onTap: () { textFieldDisplayed = true; setState(() {}); }, child: Center( child: Container( color: Colors.blue, child: Column( mainAxisSize: MainAxisSize.min, mainAxisAlignment: MainAxisAlignment.center, children: [ if(textFieldDisplayed) Padding( padding: const EdgeInsets.all(10.0), child: SizedBox( width: 100, child: TextFormField( decoration: InputDecoration( enabledBorder: OutlineInputBorder( borderSide: const BorderSide(width: 1, color: Colors.white), borderRadius: BorderRadius.circular(5.0), ), border: OutlineInputBorder( borderSide: const BorderSide(width: 1, color: Colors.white), borderRadius: BorderRadius.circular(5.0), ), focusedBorder: OutlineInputBorder( borderSide: const BorderSide(width: 1,color: Colors.white), borderRadius: BorderRadius.circular(5.0), ), ), controller: controller, ), ), ), Container(height: 20,width: 100,) ], ), ), ), ), ), ); } } ```
null
CC BY-SA 4.0
null
2022-12-21T16:51:02.490
2022-12-21T16:51:02.490
null
null
13,954,519
null
74,879,475
2
null
74,879,106
0
null
You can achieve this using the widget. Rohan's answer is correct but I wouldn't recommend using if statements in building widgets in a list since it makes the code look messy. I'll put and example bellow: ``` import 'package:flutter/material.dart'; const Color darkBlue = Color.fromARGB(255, 18, 32, 47); void main() { runApp(MyApp()); } class MyApp extends StatefulWidget { @override State<MyApp> createState() => _MyAppState(); } class _MyAppState extends State<MyApp> { bool showWidget = false; @override Widget build(BuildContext context) { return MaterialApp( theme: ThemeData.dark().copyWith( scaffoldBackgroundColor: darkBlue, ), debugShowCheckedModeBanner: false, home: Scaffold( body: Center( child: Column( children: [ Visibility( visible: showWidget, child: MyWidget() ), MyButton( onTap: (){ setState((){ showWidget = !showWidget; }); } ) ], ), ), ), ); } } class MyWidget extends StatelessWidget { @override Widget build(BuildContext context) { return Text( 'Hello, World!', style: Theme.of(context).textTheme.headline4, ); } } class MyButton extends StatelessWidget { final Function() onTap; const MyButton({required this.onTap}); @override Widget build(BuildContext context) { return InkWell( onTap: onTap, child: const Text('Press me!') ); } } ``` When visibility's value is true, it will display the content of its child property. Otherwise it will return a by default. Or, you can change whatever widget you want to return adding the 'replacement' property. Copy the code above and try on a new [DartPad](https://www.dartpad.dev/?id). Good Luck!
null
CC BY-SA 4.0
null
2022-12-21T17:08:56.667
2022-12-21T17:08:56.667
null
null
18,704,324
null
74,879,499
2
null
74,879,290
0
null
Try to adjust it with `position` as below: ``` nav .dropdown { position: relative; } nav .dropdown ul { position: absolute; } nav > ul .dropdown > ul, nav > ul .dropdown > ul li { padding-left:0; } ``` [Here](https://developer.mozilla.org/en-US/docs/Web/CSS/position) is the doc for `position` if you want to know more. ## DEMO ``` @font-face { font-family: "Chivo Mono"; src: url("Resource/Fonts/ChivoMono-Black.ttf") format("ttf"); font-weight: normal; font-style: normal; } * { box-sizing: border-box; font-family: 'Trebuchet MS'; color: #777; } html, body { margin: 0; padding:0; } p { text-align:center; } .emails { height:100px; width:250px; } .nav li { display: inline-block; } .header { background-color:#A7C7E7; background-size: cover; padding-bottom: 40px; margin-bottom: 20px } .nav a { display: inline-block; padding:1em; color: white; text-decoration: none; } .nav a:hover { background-color: rgba(255, 150, 190, 1); } .main-nav { text-align: center; font-size: 1.7em; border-bottom: 3px solid rgba(255, 150, 190, 1); } .main-nav li { padding: 0 5%; } .page-name { text-align: center; margin: 0; font-size: 4em; font-family: "Chivo Mono"; font-weight: normal; color: rgba(255, 150, 150, 1); } .footer { background-color: #A7C7E7; margin: 50px 0px; padding: 50px 0px; border: white; } .footer h1 { padding: 0px 0px; } .footer textarea { margin-top: 2em; width: 400px; height: 200px; } .body-text { max-width: 900px; margin: 0 auto; padding: 0 1.5em; } .footer { text-align: center; margin-top: 10em; margin-bottom: 0em; } body { min-height: 100vh; display: flex; flex-direction: column; } .email-button { padding: 1em; } .article-title h2 { text-align: center; color: Black; } .coming-soon { color: white; } .nav li { color: white; } .email-button button { background-color: rgba(255, 150, 190, 1); color: white; padding: 7px 20px; font-size: 1.3em; border-radius: 10px; border: 0px; transition-duration: 0.9s; } .button:hover { background-color: white; color: #A7C7E7; } .dropdown ul li a { font-size: .6em; } .dropdown ul a{ display: inline-block; background-color: rgba(255, 150, 190, 1); text-align: center; } nav .dropdown { position: relative; } nav > ul .dropdown > ul { position: absolute; } nav > ul .dropdown > ul, nav > ul .dropdown > ul li{ padding-left:0; } ``` ``` <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content="zuckymuckyboi" /> <title>Home</title> <link rel="stylesheet" href="Resources\styles.css"> <style></style> </head> <body> <header class="header"> <nav class="nav main-nav"> <ul> <li><a href= "index.html">Home</a></li> <li class="dropdown"><a>Rules</a> <ul> <li><a href= "gunlawramble.html">Bus</a></li> </ul> </li> </ul> </nav> <div> <h1 class="page-name">About</h1> </div> </header> <section class="body-text"> <div> <p text>To be writen...<p> </div> </section> </body> ```
null
CC BY-SA 4.0
null
2022-12-21T17:11:06.377
2022-12-22T08:30:47.907
2022-12-22T08:30:47.907
11,044,542
11,044,542
null
74,879,765
2
null
74,879,489
0
null
Make sure you have either Pygeos version >= 0.8 installed or you have shapely version >= 2.0. These are [optional dependencies](https://geopandas.org/en/stable/getting_started/install.html#using-the-optional-pygeos-dependency) which dramatically improve performance for large operations like this. ``` # conda conda install pygeos --channel conda-forge # pip pip install pygeos ``` If you are thinking about installing them, I’d give the [optional dependencies](https://geopandas.org/en/stable/getting_started/install.html#using-the-optional-pygeos-dependency) installation guide a read to make sure this advice is still up to date, and to check the list of known downsides, as there is at least one thing that won’t work with the pygeos speed up (CRS transforms for 3D objects). If you have both of these, you can check that pygeos is enabled with: ``` geopandas.options.use_pygeos # should be True ``` If it is and it’s still taking a long time, then I’d go make some cookies or something. It’s a large operation you have there.
null
CC BY-SA 4.0
null
2022-12-21T17:33:32.737
2022-12-21T17:39:50.710
2022-12-21T17:39:50.710
3,888,719
3,888,719
null
74,879,891
2
null
74,879,583
0
null
- : you can use `::-moz-range-progress` and `::-moz-range-track`- : you can use `::-ms-fill-lower` and `::-ms-fill-upper`- : this one is tricky. You can change the color of the slider and thumb simultaneously by adjusting the `accent-color` on the input itself (using gradients is not possible..). If you want them to be a different color. You can add `overflow: hidden;` to the input itself, and a `box-shadow` (e.g. `box-shadow: -255px 0 0 255px blue;`) to your `::-webkit-slider-thumb`. The downside of that is that it also stops your thumb from overflowing and `box-shadow` doesn't allow a gradient.
null
CC BY-SA 4.0
null
2022-12-21T17:45:35.743
2022-12-21T17:45:35.743
null
null
18,691,321
null
74,880,103
2
null
74,879,290
-1
null
This is really just a hack to get what you are trying to do: ``` <li style="padding-right:119px;"><a href= "gunlawramble.html">Bus</a></li> ``` Using inline css styling you can add a padding to the specific element you want to adjust. In this case, you can see `padding-right:119px` aligns the elements to the left side. If you want the elements to align on the opposite side, you can similarly use `padding-left` and adjust in the same manner. ``` @font-face { font-family: "Chivo Mono"; src: url("Resource/Fonts/ChivoMono-Black.ttf") format("ttf"); font-weight: normal; font-style: normal; } * { box-sizing: border-box; font-family: 'Trebuchet MS'; color: #777; } html, body { margin: 0; padding:0; } .emails { height:100px; width:250px; } .nav li { display: inline-block; } .header { background-color:#A7C7E7; background-size: cover; padding-bottom: 40px; margin-bottom: 20px } .nav a { display: inline-block; padding:1em; color: white; text-decoration: none; } .nav a:hover { background-color: rgba(255, 150, 190, 1); } .main-nav { text-align: center; font-size: 1.7em; border-bottom: 3px solid rgba(255, 150, 190, 1) } .main-nav li { padding: 0 5%; } .page-name { text-align: center; margin: 0; font-size: 4em; font-family: "Chivo Mono"; font-weight: normal; color: rgba(255, 150, 150, 1); } .footer { background-color: #A7C7E7; margin: 50px 0px; padding: 50px 0px; border: white; } .footer h1 { padding: 0px 0px } .footer textarea { margin-top: 2em; width: 400px; height: 200px; } .body-text { max-width: 900px; margin: 0 auto; padding: 0 1.5em } .footer { text-align: center; margin-top: 10em; margin-bottom: 0em; } body { min-height: 100vh; display: flex; flex-direction: column; } .email-button { padding: 1em; } .article-title h2 { text-align: center; color: Black; } .coming-soon { color: white; } .nav li { color: white; } .email-button button { background-color: rgba(255, 150, 190, 1); color: white; padding: 7px 20px; font-size: 1.3em; border-radius: 10px; border: 0px; transition-duration: 0.9s; } .button:hover { background-color: white; color: #A7C7E7; } .dropdown ul li a { font-size: .6em; } .dropdown ul a{ display: inline-block; background-color: rgba(255, 150, 190, 1); text-align: center; } ``` ``` <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content="zuckymuckyboi" /> <title>Home</title> <link rel="stylesheet" href="Resources\styles.css"> <style> p { text-align:center; } </style> </head> <body> <header class="header"> <nav class="nav main-nav"> <ul> <li><a href= "index.html">Home</a></li> <li class="dropdown"><a>Rules</a> <ul> <li style="padding-right:119px;"><a href= "gunlawramble.html">Bus</a></li> </ul> </li> </ul> </nav> <div> <h1 class="page-name">About</h1> </div> </header> <section class="body-text"> <div> <p text>To be writen...<p> </div> </section> </body> ```
null
CC BY-SA 4.0
null
2022-12-21T18:04:11.477
2022-12-21T18:04:11.477
null
null
14,194,793
null
74,880,167
2
null
74,875,394
1
null
You can disable and enable buttons via JavaScript: ``` const normalButton = document.querySelector('.normal'); const disabledButton = document.querySelector('.disabled'); disabledButton.disabled = true; normalButton.addEventListener("click", ()=> { disabledButton.disabled = false; }) ``` ``` <p>Click on 'aaaa' button to enable the other button</p> <button class="normal">aaaa</button> <button class="disabled">bbbb</button> ```
null
CC BY-SA 4.0
null
2022-12-21T18:10:08.423
2022-12-21T18:10:08.423
null
null
18,691,321
null
74,880,308
2
null
74,880,226
1
null
In your `Card` you can use the `align` modifier to override the `contentAlignment` defined by the parent `Box`: ``` Box( modifier = Modifier.fillMaxSize(), contentAlignment = Alignment.Center ) { //.. Card( modifier = Modifier .width(380.dp) .height(350.dp) .align(BottomCenter), //... } ``` As described in the [doc](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/BoxScope#(androidx.compose.ui.Modifier).align(androidx.compose.ui.Alignment)): > Pull the content element to a specific `Alignment` within the `Box`. This alignment the `Box`'s `alignment` parameter. [](https://i.stack.imgur.com/SZwR8.png)
null
CC BY-SA 4.0
null
2022-12-21T18:23:20.563
2022-12-21T18:23:20.563
null
null
2,016,562
null
74,880,450
2
null
74,880,107
0
null
You can try it with pure `ggplot2` combined with `viridis`. Something like this: ``` library(ggplot2) library(viridis) Category1 <- c("a","b","c","c","a","d","c","c","c","d") Category2 <- c("x","x","z","w","x","y","z","w","x","x") Count <- c(11,12,12,25,10,8,9,10,7,6) codons <- data.frame(Count, Category1, Category2) ggplot(codons, aes(fill=Category1, y=Count, x=Category2)) + geom_bar(position="fill", stat="identity") + scale_fill_viridis(discrete = T) ``` [](https://i.stack.imgur.com/KpbR1.png) Then you can set different color scales following this reference: [https://sjmgarnier.github.io/viridis/reference/scale_viridis.html#arguments](https://sjmgarnier.github.io/viridis/reference/scale_viridis.html#arguments).
null
CC BY-SA 4.0
null
2022-12-21T18:39:21.567
2022-12-23T15:09:55.867
2022-12-23T15:09:55.867
14,910,249
14,910,249
null
74,881,030
2
null
74,880,890
0
null
Nevermind, I found the answer. Just had to do 'git config --global user.name "My Name"' and it worked.
null
CC BY-SA 4.0
null
2022-12-21T19:39:06.327
2022-12-21T19:39:06.327
null
null
20,225,714
null
74,881,190
2
null
74,881,085
2
null
This error appears when a React component prop ends up being added as an attribute on a DOM element. Typically this error will appear when passing props to a component that then uses the spread operator to pass them into another component. Consider a contrived example like this: ``` const ParentComponent = () => { return (<ChildComponent showLabel={true} />); } const ChildComponent = (props) => { return ( <div {...props}>blah blah blah</div> ) } ``` In this case the `showLabel` prop that you passed to `ChildComponent` ends up being rendered as an attribute on a `div` tag, which isn't allowed as indicated by the error message you're seeing. Make sure any props that you're passing into a component are accounted for, and if necessary remove them or destructure and only pass the necessary props to the next component: ``` const ChildComponent = (props) => { const { someLabel, ...rest } = props; return ( <div {...rest}>blah blah blah</div> ) } ```
null
CC BY-SA 4.0
null
2022-12-21T19:57:26.790
2022-12-21T19:57:26.790
null
null
1,183,876
null
74,881,313
2
null
74,880,349
0
null
Plotly doesn't calculate r-squared values for lowess or other non-parametric trendlines (like rolling average). I think it's important to understand how `lowess` is meant to be used. Since `lowess` is non-parametric (it doesn't assume that the data behaves according to a mathematical model), there isn't an explicit mathematical formula (see [here](https://en.wikipedia.org/wiki/Local_regression#Disadvantages)). I would think about lowess like a more sophisticated rolling average – a rolling average just shows you local patterns and trends in the data. If you try to calculate r-squared for a rolling average function, it doesn't tell you anything meaningful – it can be high or low and won't necessarily fall between 0 and 1. On the other hand, when you use an ordinary least squares trendline, this assumes that the data assumes according to an [explicit mathematical formula](https://en.wikipedia.org/wiki/Ordinary_least_squares#Matrix/vector_formulation). In that case, the r-squared value shows you how well variation from between the actual data points and predictions is explained by the ordinary least squares model. This is probably the reason why plotly calculates r-squared values for ordinary least squares, but not lowess or rolling average.
null
CC BY-SA 4.0
null
2022-12-21T20:10:11.227
2022-12-21T20:54:43.343
2022-12-21T20:54:43.343
5,327,068
5,327,068
null
74,881,715
2
null
74,881,460
2
null
You want `dplyr::slice_max()`: ``` library(dplyr) base_cambio_recent <- base_cambio %>% group_by(DataReferencia) %>% slice_max(Data) %>% ungroup() ``` Or a base R approach: ``` base_cambio_recent <- base_cambio[rev(order(base_cambio$Data)), ] base_cambio_recent <- lapply( split(base_cambio_recent, base_cambio_recent$DataReferencia), \(x) head(x, 1) ) base_cambio_recent <- do.call(rbind, base_cambio_recent) ``` Result from either approach: ``` # A tibble: 2 × 10 Indicador Data DataReferencia Media Mediana DesvioPadrao Minimo Maximo numeroRespondentes baseCalculo <chr> <date> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <int> <int> 1 Câmbio 2021-01-28 01/2021 5.3 5.3 0.11 4.85 5.62 102 0 2 Câmbio 2021-02-25 02/2021 5.38 5.4 0.07 5 5.52 107 0 ```
null
CC BY-SA 4.0
null
2022-12-21T20:59:22.220
2022-12-22T01:42:16.813
2022-12-22T01:42:16.813
17,303,805
17,303,805
null
74,882,088
2
null
74,877,089
2
null
It's possible to use the class names to select different parts of the widget, for example this will click the top fold button. The result is that the folded text is removed from the DOM, so initially assert one of the code lines is visible then assert it's missing after the click. ``` // this is a line within the fold button that should disappear cy.contains('.ace_line', 'for (var i=0; i<items.length; i++) {') .should('be.visible') // this is somewhat crude, but it follows the hierarchy of the gutter control // so it should accurately get the first fold button cy.get('.ace_gutter') .find('.ace_layer.ace_gutter-layer.ace_folding-enabled') .find('.ace_gutter-cell') .find('.ace_fold-widget') .eq(0) .click() // now verify the code line has gone cy.contains('.ace_line', 'for (var i=0; i<items.length; i++) {') .should('not.exist') ``` --- ### Inner fold buttons Clicking the inner fold (the one on line #2) is a little tricky, it seems that the `scrollBehavior` affects the way it works. Note, I'm testing with gutter indexes visible. ``` // turn off scrollBehavior to click the inner fold button Cypress.config('scrollBehavior', false) // check target line is visible cy.contains('.ace_line', 'alert(items[i]').should('be.visible') // click the 2nd fold button cy.contains('.ace_gutter-cell', '2') // this is the gutter index .find('.ace_fold-widget') .click() // verify the target line has gone cy.contains('.ace_line', 'alert(items[i]').should('not.exist') // verify the for-loop line is still present and visible cy.contains('.ace_line', 'for (var i=0; i<items.length; i++) {') .should('exist') ```
null
CC BY-SA 4.0
null
2022-12-21T21:48:26.997
2022-12-21T21:48:26.997
null
null
16,791,505
null
74,882,294
2
null
74,877,435
0
null
The problem is that the file is too large to display in the web view. The file is 36.8 MB in size, and in order to render that Jupiter Notebook, it would have to be downloaded and rendered, which, due to its size, would probably take substantial resources and might simply time out. As a result, GitHub is telling you that it's not going to render it because it would likely fail due to timeouts and resource constraints necessary to prevent denial of service attacks. If you want to display it elsewhere on your own site, you can render it there yourself, but GitHub won't do it for you.
null
CC BY-SA 4.0
null
2022-12-21T22:17:47.660
2022-12-21T22:17:47.660
null
null
8,705,432
null
74,882,404
2
null
74,882,280
0
null
Here are some things you can try doing: 1. Try refreshing your page using CTRL + Shift + R (if using Google Chrome) 2. Try logging in with another device. 3. Try logging in with another IP address (A VPN may be used) 4. Try logging in with a third account. If the issue persist, you should contact GitHub support here
null
CC BY-SA 4.0
null
2022-12-21T22:32:44.480
2022-12-21T22:32:44.480
null
null
17,038,034
null
74,882,432
2
null
74,881,752
0
null
I think you are most of the way there. The final step is simply to take the OutfactorAccumulated column, and do a similar windowed function over it to calculate the next column e.g., `MIN(OutFactorAccumulated) OVER (PARTITION BY Machine)`. Note also that the other windowed function (the SUM) should also have a `PARTITION BY Machine` in the window to ensure that each machine only uses its own data. Here is a [db<>fiddle](https://dbfiddle.uk/5e2mFLKV) with the example code below in SQL Server/T-SQL. - - (Note lots of CAST AS decimal(14,10) to match your data - there's probably a better way to do this). ``` CREATE TABLE #MachData (Machine nvarchar(10), Operation int, QtyIn int, QtyOut int, PRIMARY KEY (Machine, Operation)); INSERT INTO #MachData (Machine, Operation, QtyIn, QtyOut) VALUES (N'A1', 1, 100, 100), (N'A1', 2, 100, 95), (N'A1', 3, 95, 95), (N'A1', 4, 95, 94), (N'A1', 5, 94, 86), (N'A1', 6, 86, 66), (N'A1', 7, 66, 66), (N'A1', 8, 66, 66), (N'A1', 9, 66, 66); WITH MachData_with_Factors AS (SELECT Machine, Operation, QtyIn, QtyOut, CAST(1 - CAST(QtyOut AS decimal(14,10))/CAST(QtyIn AS decimal(14,10)) AS decimal(14,10)) AS LossFactor, CAST(CAST(QtyOut AS decimal(14,10))/CAST(QtyIn AS decimal(14,10)) AS decimal(14,10)) AS OutFactor FROM #MachData ), MachineData_with_Acc AS (SELECT *, CAST(exp(SUM(log(OutFactor)) OVER (PARTITION BY Machine ORDER BY Operation)) AS decimal(14,10)) AS OutFactorAccumulated FROM MachData_with_Factors ), MachineData_with_ExpQtyOut AS (SELECT *, CAST(OutFactorAccumulated * 100.0 / MIN(OutFactorAccumulated) OVER (PARTITION BY machine) AS decimal(14,10)) AS NewExpectedQtyOut FROM MachineData_with_Acc ) SELECT * FROM MachineData_with_ExpQtyOut ORDER BY Machine, Operation; ``` Results are as below ``` Machine Operation QtyIn QtyOut LossFactor OutFactor OutFactorAccumulated NewExpectedQtyOut ------------------------------- --------------------------------------------------------------------------- A1 1 100 100 0.0000000000 1.0000000000 1.0000000000 151.5151515152 A1 2 100 95 0.0500000000 0.9500000000 0.9500000000 143.9393939394 A1 3 95 95 0.0000000000 1.0000000000 0.9500000000 143.9393939394 A1 4 95 94 0.0105263158 0.9894736842 0.9400000000 142.4242424242 A1 5 94 86 0.0851063830 0.9148936170 0.8600000000 130.3030303030 A1 6 86 66 0.2325581395 0.7674418605 0.6600000000 100.0000000000 A1 7 66 66 0.0000000000 1.0000000000 0.6600000000 100.0000000000 A1 8 66 66 0.0000000000 1.0000000000 0.6600000000 100.0000000000 A1 9 66 66 0.0000000000 1.0000000000 0.6600000000 100.0000000000 ```
null
CC BY-SA 4.0
null
2022-12-21T22:36:54.847
2022-12-21T22:43:47.360
2022-12-21T22:43:47.360
14,267,425
14,267,425
null
74,882,740
2
null
74,880,812
1
null
I am not sure if I understood everything in your question correctly, but here is some code that might help you. One thing I do not know is how to add element edges to physical groups in gmsh. But maybe you can figure that out. So here is the code: ``` import gmsh import numpy as np def mapping(point): x = point[0] y = point[1] z = point[2] result = [2*x,3*y,z] return result def inverseMapping(point): x = point[0] y = point[1] z = point[2] result = [(1/2)*x,(1/3)*y,z] return result def getNodes(): nodeTags, nodeCoord, _ = gmsh.model.mesh.getNodes() nodeCoord = np.reshape(nodeCoord,(len(nodeTags),3)) return nodeTags, nodeCoord def getEdgeNodeCoordinates(): edgeTags, edgeNodes = gmsh.model.mesh.getAllEdges() edgeNodes = np.reshape(edgeNodes,(len(edgeTags),2)) nodeTags, nodeCoord = getNodes() coord = [] for i in range(0,len(edgeTags)): tagNode1 = edgeNodes[i][0] tagNode2 = edgeNodes[i][1] nodeIndex1 = list(nodeTags).index(tagNode1) nodeIndex2 = list(nodeTags).index(tagNode2) nodeCoord1 = nodeCoord[nodeIndex1] nodeCoord2 = nodeCoord[nodeIndex2] coord.append([nodeCoord1,nodeCoord2]) return edgeTags, edgeNodes, nodeTags, coord def getInverseNodeCoordinates(edgeNodeCoordinates): coord = [] for edgeNodes in edgeNodeCoordinates: nodeCoord1 = edgeNodes[0] nodeCoord2 = edgeNodes[1] newCoord1 = inverseMapping(nodeCoord1) newCoord2 = inverseMapping(nodeCoord2) coord.append([newCoord1, newCoord2]) return coord def checkIntersection(edgeTags, edgeNodeCoordinates, inverseCoordinates): intersectingEdgeTags = [] intersectingEdgeNodeCoord = [] # 1 = inside, 0 = outside for i in range(0,len(inverseCoordinates)): pair = inverseCoordinates[i] coord1 = pair[0] coord2 = pair[1] e1 = 1 if np.linalg.norm(coord1) <= 1 else 0 e2 = 1 if np.linalg.norm(coord2) <= 1 else 0 s = e1 + e2 # s = 0 --> both nodes outside of manifold # s = 1 --> one node inside and one node outside of manifold # s = 2 --> both nodes inside of manifold if s == 1: intersectingEdgeTags.append(edgeTags[i]) intersectingEdgeNodeCoord.append(edgeNodeCoordinates[i]) return intersectingEdgeTags, intersectingEdgeNodeCoord def visualizeEdges(intersectingEdgeNodeCoord): for pair in intersectingEdgeNodeCoord: p1 = pair[0] p2 = pair[1] t1 = gmsh.model.occ.addPoint(p1[0],p1[1],p1[2]) t2 = gmsh.model.occ.addPoint(p2[0],p2[1],p2[2]) line = gmsh.model.occ.addLine(t1, t2) gmsh.model.occ.synchronize() gmsh.model.setColor([(1,line)], 255, 0, 0) gmsh.model.occ.synchronize() gmsh.initialize() # Create a rectangle which will be meshed later. tag_vol_1 = gmsh.model.occ.addRectangle(-3, -4, 0, 6, 8) # Sample the S1 manifold with n_points S1_sampling_points = [] n_points = 100 maxAngle = 2*np.pi angle = maxAngle/n_points z = 0 for i in range(0,n_points): x = np.cos(i*angle) y = np.sin(i*angle) S1_sampling_points.append([x,y,z]) # Map the sampled S1 points to 2*x, 3*y, z. # This is only for "visualization" via a spline. mappedPoints = [] mappedPointTags = [] for point in S1_sampling_points: mappedPoint = mapping(point) tag = gmsh.model.occ.addPoint(mappedPoint[0], mappedPoint[1], mappedPoint[2]) mappedPointTags.append(tag) # Here the spline fitting is performed # You will see it visualized when gmsh opens. tagMappedS1 = gmsh.model.occ.addSpline(mappedPointTags + [mappedPointTags[0]]) # make the spline periodic by setting the last point equal to the first one gmsh.model.occ.synchronize() # Mesh the rectangle and tell gmsh to create edges which we can access. gmsh.model.mesh.generate(2) gmsh.model.mesh.createEdges() # You need to call this before using gmsh.model.mesh.getAllEdges() # Get all these self-explanatory things edgeTags, edgeNodes, nodeTags, edgeNodeCoordinates = getEdgeNodeCoordinates() # Calculate the inverse-mapped coordinates of all nodes. # With this we can just check if the transformed nodes are inside a circle of radius 1 or outside. # If for every egde one node is inside, and the other node is outside the circle, then the edge is # intersected by the mapped manifold f(S1) --> (2*x, 3*y, z). We then save the tag of such an edge. inverseCoordinates = getInverseNodeCoordinates(edgeNodeCoordinates) intersectingEdgeTags, intersectingEdgeNodeCoord = checkIntersection(edgeTags, edgeNodeCoordinates, inverseCoordinates) # Here all intersecting edges are created within gmsh so you can see it. # This is for visualization only. A lot of nodes with the same coordinates are created here twice. visualizeEdges(intersectingEdgeNodeCoord) gmsh.fltk.run() gmsh.finalize() ``` And the result in gmsh looks like this: [](https://i.stack.imgur.com/M1UNh.png)
null
CC BY-SA 4.0
null
2022-12-21T23:26:15.397
2022-12-21T23:26:15.397
null
null
11,586,057
null
74,882,937
2
null
27,181,837
1
null
adding this meta line fixed it for me ``` <meta name="viewport" content="width=device-width, initial-scale=1"> ```
null
CC BY-SA 4.0
null
2022-12-22T00:00:05.130
2022-12-22T00:00:05.130
null
null
18,190,527
null
74,882,960
2
null
51,080,755
0
null
This error usually happens if you try to install an app from .apk file. The first thing you can do is to disable Play Protect from the inside of Play Store app in your phone: Open Google Play Store app --> Play Protect --> Click Settings Icon on the top --> Disable scanning apps for security Note: It is recommended that you enable it back again after finishing installation for security purposes. Now after this you should be able to install the app. If you still receive error saying something like Error, app was not installed when you click on the .apk file, it means you have installed version of that app already. Uninstall the app first then you can install the app from .apk file without problem.
null
CC BY-SA 4.0
null
2022-12-22T00:03:32.017
2022-12-22T00:03:32.017
null
null
2,976,879
null
74,883,208
2
null
74,882,818
0
null
Unfortunately, `backdrop-filter` applies the filter to everything behind the element, and in order to do that, it might be restoring the flow of `.burger` (not sure). Now I might ask. Is it necessary for `.burger` to be inside `nav`? If its position is fixed, it no longer needs a parent for ordering the flow. I would recommend to put `.burger` outside of `nav`, being a direct child of `body`, if possible.
null
CC BY-SA 4.0
null
2022-12-22T00:54:07.320
2022-12-22T00:54:07.320
null
null
20,622,341
null
74,883,227
2
null
74,882,979
0
null
You could create an object to keep track of all the filter option. Then simply use `JSON.stringify` to convert it to JSON. You could also ignore the `null` and `undefined` value by passing in a [replacer function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify). ``` let opt = { a: 'string', b: 5.1, c: true, d: { e: 'object' }, f: ['array'], g: null, h: undefined, }; console.log(JSON.stringify(opt, (key, value) => { if (value !== null) return value; })); ```
null
CC BY-SA 4.0
null
2022-12-22T00:58:07.280
2022-12-22T00:58:07.280
null
null
7,099,900
null
74,883,298
2
null
70,032,739
1
null
Maybe you can try like this. ``` import SwiftUI // Ignore safearea for UIHostingController when wrapped in UICollectionViewCell class SafeAreaIgnoredHostingController<Content: View>: UIHostingController<Content> { override func viewSafeAreaInsetsDidChange() { super.viewSafeAreaInsetsDidChange() // Adjust only when top safeAreaInset is not equal to bottom guard view.safeAreaInsets.top != view.safeAreaInsets.bottom else { return } // Set additionalSafeAreaInsets to .zero before adjust to prevent accumulation guard additionalSafeAreaInsets == .zero else { additionalSafeAreaInsets = .zero return } // Use gap between top and bottom safeAreaInset to adjust top inset additionalSafeAreaInsets.top = view.safeAreaInsets.bottom - view.safeAreaInsets.top } } ```
null
CC BY-SA 4.0
null
2022-12-22T01:14:54.753
2022-12-22T01:15:23.757
2022-12-22T01:15:23.757
20,835,862
20,835,862
null
74,883,306
2
null
74,883,195
1
null
You get that all wrong. "The venv module supports creating lightweight “virtual environments”, each with their own independent set of Python packages installed in their site directories. A virtual environment is created on top of an existing Python installation, known as the virtual environment’s “base” Python, and may optionally be isolated from the packages in the base environment, so only those explicitly installed in the virtual environment are available. When used from within a virtual environment, common installation tools such as pip will install Python packages into a virtual environment without needing to be told to do so explicitly." pip is python package manager and there for tool for installing modules such as Django. If you are running linux you can use following commands ``` -> cd storefront -> python -m venv venv (create new virtual environment name: "venv") -> . venv/bin/activate (to activate virtual environment) -> pip install django (to install Django modules) ```
null
CC BY-SA 4.0
null
2022-12-22T01:16:04.430
2022-12-22T01:16:04.430
null
null
20,804,242
null
74,883,411
2
null
20,663,545
0
null
For me, this problem was a symptom of having created the file in the wrong place without realising. Before taking any drastic actions, check your project structure
null
CC BY-SA 4.0
null
2022-12-22T01:40:31.857
2022-12-22T01:40:31.857
null
null
20,835,961
null
74,883,412
2
null
74,883,389
0
null
You can put a space between each bulletpoint with something like ``` ul li { margin-bottom: 1em; } ``` But you're also missing the `<ul>` wrap around the list items: ``` <ul> <li>Learn to plan and set your goals so you get more done in less time.</li> <li>Discover the #1 way to create to-do lists to dramatically improve your daily performance and productivity.</li> </ul> ```
null
CC BY-SA 4.0
null
2022-12-22T01:40:51.483
2022-12-22T01:40:51.483
null
null
156,388
null
74,883,450
2
null
74,883,389
0
null
You can also use word wrap ``` div { width: 250px; border: 1px solid #000000; } div.a { word-wrap: normal; } ``` ``` <div class="b"> <h1>FREQUENTLY ASKED QUESTIONS</h1> <li>Learn to plan and set your goals so you get more done in less time.</li> <li>Discover the #1 way to create to-do lists to dramatically improve your daily performance and productivity.</li> </div> ``` It will look like this[](https://i.stack.imgur.com/l32Xu.png)
null
CC BY-SA 4.0
null
2022-12-22T01:49:06.580
2022-12-30T13:41:57.727
2022-12-30T13:41:57.727
100,297
9,027,338
null
74,883,470
2
null
74,882,979
0
null
Yes, it is possible to programmatically generate query parameters. You could maintain an array of param key/values using `Object.entries` to convert an object to an array of key/value pairs, and `Object.fromEntries` to convert from an array of key/value pairs back to an object. ``` const params = { currency: 'USD', language: 'en-US' } // convert to [['currency', 'USD], ['language', 'en-US']] const arrayOfParams = Object.entries(params) // convert back to { currency: 'USD', language: 'en-US' } const paramsObj = Object.fromEntries(arrayOfParams) ``` Then use `HttpParams` to serialize/deserialize an object to query params: ``` import { HttpParams } from '@angular/common/http' const paramsObj = { currency: 'USD', language: 'en-US'} const params = new HttpParams({ fromObject: paramsObj }) /* Serializes the body to an encoded string, * where key-value pairs (separated by =) are separated by &s. */ const queryStr = params.toString() ```
null
CC BY-SA 4.0
null
2022-12-22T01:52:51.497
2022-12-22T01:52:51.497
null
null
3,661,630
null
74,883,996
2
null
74,816,516
0
null
# How to use select menu in pyvis network? Passing `cdn_resources='remote'` in `Network` worked for me. In your case the following should work: ``` net = Network(notebook=True, height="750px", width="100%", bgcolor = '#222222', font_color = 'white', select_menu=True, cdn_resources='remote') ``` Possible reason for this would be that, `pyvis` is not able to find the required cdn resources in our local directory.
null
CC BY-SA 4.0
null
2022-12-22T03:59:21.300
2022-12-22T03:59:21.300
null
null
13,275,849
null
74,884,011
2
null
74,880,951
0
null
Well, you don't have to edit `woocommerce/includes/abstracts/abstract-wc-product.php` file to fetch the meta key and the `get_prop` function doesn't work that way that you're assuming. You can simply use [get_post_meta](https://developer.wordpress.org/reference/functions/get_post_meta/) function to fetch your meta key value for the product. so you just need to replace `<p><?php echo $product->get_icon(); ?></p>` with the below code: ``` <p><?php echo get_post_meta( $product->get_id(), 'product_icon', true ); ?></p> ```
null
CC BY-SA 4.0
null
2022-12-22T04:04:02.817
2022-12-22T04:04:02.817
null
null
11,848,895
null